[Paper Review] Off the Beaten Path: Let's Replace Term-Based Retrieval with k-NN Search
This paper proposes replacing traditional term-based retrieval with k-NN search using a novel, non-metric similarity function combining BM25 and IBM Model 1 scores to overcome vocabulary mismatch. The approach enables effective, approximate k-NN search that is nearly 100x faster than brute-force while improving recall by up to 21.6% over BM25, demonstrating that k-NN can outperform standard inverted index pipelines in both speed and effectiveness.
Retrieval pipelines commonly rely on a term-based search to obtain candidate records, which are subsequently re-ranked. Some candidates are missed by this approach, e.g., due to a vocabulary mismatch. We address this issue by replacing the term-based search with a generic k-NN retrieval algorithm, where a similarity function can take into account subtle term associations. While an exact brute-force k-NN search using this similarity function is slow, we demonstrate that an approximate algorithm can be nearly two orders of magnitude faster at the expense of only a small loss in accuracy. A retrieval pipeline using an approximate k-NN search can be more effective and efficient than the term-based pipeline. This opens up new possibilities for designing effective retrieval pipelines. Our software (including data-generating code) and derivative data based on the Stack Overflow collection is available online.
Motivation & Objective
- To address the vocabulary gap in information retrieval, where query and document terms fail to match due to synonymy or polysemy.
- To demonstrate that k-NN search with a non-metric, non-symmetric similarity function can outperform traditional term-based inverted index pipelines.
- To enable efficient, scalable retrieval using approximate k-NN algorithms despite the high computational cost of exact search on complex similarity functions.
- To show that a large number of term associations (e.g., 15,000 per query term) are needed to bridge the vocabulary gap, which is infeasible with term-based indexing but tractable with k-NN.
Proposed method
- Proposes a similarity function that combines BM25 scores with IBM Model 1 log-likelihood scores to model term associations beyond simple co-occurrence.
- Uses a pivoting technique to accelerate approximate k-NN search, avoiding reliance on LSH or metric space assumptions.
- Employs an approximate k-NN algorithm that achieves near-brute-force accuracy while reducing search time by nearly two orders of magnitude.
- Leverages the low intrinsic dimensionality of text vectors (estimated at ~2500 for Wikipedia TF×IDF with angular distance) to enable efficient search.
- Implements a query expansion strategy using translation tables $T(q|a)$, where $q$ is a query term and $a$ is a potential synonym, with probabilities derived from IBM Model 1.
- Integrates the k-NN pipeline into a retrieval system that replaces Lucene’s inverted index with a vector-based k-NN retrieval layer.
Experimental results
Research questions
- RQ1Can k-NN search with a non-metric, non-symmetric similarity function like BM25+Model 1 outperform traditional term-based retrieval in effectiveness and efficiency?
- RQ2How many term associations (e.g., synonyms) are needed to significantly reduce the vocabulary gap, and is this feasible within a k-NN framework?
- RQ3Can approximate k-NN search achieve near-brute-force accuracy while being substantially faster than exact search on complex similarity functions?
- RQ4Is k-NN-based retrieval more effective than Lucene’s term-based pipeline, especially in handling vocabulary mismatch?
- RQ5Can pivoting-based approximate k-NN search be efficiently applied to non-metric similarity functions not amenable to standard LSH techniques?
Key findings
- Using a similarity function combining BM25 and IBM Model 1, the k-NN pipeline improved mean average precision (P@1) by 21.6% over BM25 when using 15,000 average associations per query term.
- The approximate k-NN search achieved nearly two orders of magnitude speedup compared to exact brute-force k-NN search, with only a small loss in accuracy.
- The k-NN pipeline was 1.5× faster than Lucene while achieving higher effectiveness, demonstrating that k-NN can outperform traditional inverted index systems.
- A minimum of 15,000 translation table entries per query term were required to achieve a 21.6% improvement over BM25, highlighting the scale of term aliasing needed to bridge the vocabulary gap.
- The approach remains effective even with long queries, but its performance on short ad hoc queries typical of web search remains uncertain.
- The method successfully handles non-symmetric, non-metric similarities—rare in prior k-NN IR work—by using pivoting techniques instead of LSH.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.