HackerPapers

arXiv:1910.10208cs.IR

Lucene for Approximate Nearest-Neighbors Search on Arbitrary Dense Vectors

Tommaso Teofili, Jimmy Lin

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

We demonstrate three approaches for adapting the open-source Lucene search library to perform approximate nearest-neighbor search on arbitrary dense vectors, using similarity search on word embeddings as a case study. At its core, Lucene is built around inverted indexes of a document collection's (sparse) term-document matrix, which is incompatible with the lower-dimensional dense vectors that are common in deep learning applications. We evaluate three techniques to overcome these challenges that can all be natively integrated into Lucene: the creation of documents populated with fake words, LSH applied to lexical realizations of dense vectors, and k-d trees coupled with dimensionality reduction. Experiments show that the "fake words" approach represents the best balance between effectiveness and efficiency. These techniques are integrated into the Anserini open-source toolkit and made available to the community.

arXiv comments
Journal reference
DOI
Subjects
cs.IRInformation Retrieval

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Oct 2019 to Oct 2019.

Comments linking this paper, per year.

Discussed in comments1 thread

  1. Applying BERT models to Search 1 comment
    • I've been working on using BERT for search, for research and training development, with not so great results. Note the quote "when it comes to ranking results, BERT will help Search better understand one in 10 searches". This is because of the "keywordese" point they noted…

      binarymaxView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.