LexBoost: Improving Lexical Document Retrieval with Nearest Neighbors

Hrishikesh Kulkarni, Nazli Goharian, Ophir Frieder, Sean MacAvaneyarXiv 2024 · DOI

TL;DR

LexBoost bridges the gap between fast lexical retrieval (like BM25) and accurate dense retrieval by utilizing a precomputed semantic "corpus graph" offline. At query time, it enhances a document's keyword score by blending it with the keyword scores of its nearest semantic neighbors, delivering significant accuracy gains with virtually zero added latency.

What Problem Does This Paper Address?

In information retrieval, there is a classic trade-off between efficiency and effectiveness.

  • Lexical retrieval methods (e.g., BM25) rely on exact keyword matching using inverted indices. They are incredibly fast and computationally cheap, but they suffer from the vocabulary mismatch problem—if a query uses "couch" and a relevant document uses "sofa," the system misses it.
  • Dense retrieval methods use deep neural networks to embed queries and documents into continuous vector spaces, capturing semantic meaning. While highly accurate, performing exhaustive vector searches across millions of documents at query time is computationally expensive and slow.

Existing hybrid or approximation methods (like HNSW or LADR) still require invoking a dense retriever during the query phase, adding latency overhead. The authors of LexBoost ask: Can we inject semantic awareness into lexical retrieval without paying any computational tax at query time?*

Methods

LexBoost achieves this by cleverly applying the Cluster Hypothesis—the idea that closely related documents are likely relevant to the same queries.

The architecture is split into two phases:

  1. Offline Indexing (The Corpus Graph): Before any queries are run, a dense retriever (like TCT-ColBERT-HNP or TAS-B) calculates embeddings for the entire document collection. For each document, the system identifies its top $n$ nearest semantic neighbors and saves this network as a static "corpus graph."
  2. Online Retrieval (The LexBoost Score): When a user submits a query, LexBoost first runs a standard, lightning-fast lexical search (e.g., BM25) to score the documents. Then, it updates each document's final score by calculating a convex combination ($\lambda$) of its own lexical score and the average lexical score of its precomputed dense neighbors.
Figure 2: System Architecture

Because looking up a document's neighbors in a precomputed graph takes negligible time, LexBoost introduces virtually no online latency overhead. No neural networks are evaluated at query time.

Datasets

The authors evaluated LexBoost across three widely recognized information retrieval benchmarks:

  • TREC 2019 Deep Learning (Passage Subtask): A dataset derived from MS MARCO containing 43 human-evaluated queries with dense relevance labels.
  • TREC 2020 Deep Learning (Passage Subtask): Similar to the 2019 task, containing 54 queries evaluated by NIST annotators.
  • CORD19/TREC-COVID: A specialized dataset consisting of biomedical literature and 50 topics related to COVID-19, used to test the model's robustness in specific domains.

Key Insights and Ideas

  • Semantic Smoothing without Neural Latency: LexBoost acts as a "smoothing" mechanism. If a document is highly relevant but misses a specific keyword, its dense neighbors (which likely do contain the keyword) will pull its score up.
  • Agnostic to Underlying Models: LexBoost is highly modular. It works regardless of which lexical method you use (BM25, PL2, DPH, QLD) and regardless of which dense model builds the offline corpus graph (TAS-B vs. TCT-ColBERT).
  • Better First-Stage Retrieval: By improving the initial pool of retrieved documents, LexBoost serves as a superior first-stage ranker for heavier downstream re-ranking pipelines (like cross-encoders).

Key Results

LexBoost consistently and significantly outperformed standard lexical baselines across all datasets and metrics (MAP, nDCG, and Recall).

  • Performance Boost: On the TREC DL 2019 dataset, using LexBoost on top of BM25 improved Mean Average Precision (MAP) from 0.3877 to 0.4150 and Recall@1000 from 0.7555 to 0.7922.
  • Parameter Robustness: The method proved highly stable across variations in the number of neighbors ($n \in \{2, 4, 8, 16\}$) and the fusion parameter $\lambda$, with optimal performance generally landing around $\lambda = 0.7$.
Figure 3: Heat-Maps showing impact of variation in fusion parameter 𝜆and no. of neighbors 𝑛on LexBoost.
  • Re-ranking Superiority: When used as a first-stage retriever beneath a dense re-ranker, the LexBoost pipeline outperformed traditional BM25-based re-ranking pipelines and achieved results comparable to high-latency exhaustive dense retrieval.

Limitations and Future Work

While LexBoost eliminates query-time dense overhead, it shifts that burden to the indexing phase. Building a corpus graph scales at $O(n^2)$ time complexity relative to the corpus size, which can be demanding for massive datasets.

To address this and expand the scope, the authors propose several future directions:

  1. Efficient Graph Construction: Evaluating LexBoost using approximate nearest neighbor graphs (like HNSW) to speed up the offline indexing phase.
  2. Dynamic Tuning: Developing methods to dynamically tune the fusion parameter $\lambda$ at runtime based on query characteristics.
  3. Broader Applications: Extending LexBoost to Cross-Lingual (CLIR) and Multi-Lingual (MLIR) retrieval settings, as well as incorporating user search history into a joint document-query graph.

Summary updated

BibTeX
@misc{kulkarni2024lexboost,
  author = {Hrishikesh Kulkarni and Nazli Goharian and Ophir Frieder and Sean MacAvaney},
  title = {{LexBoost: Improving Lexical Document Retrieval with Nearest Neighbors}},
  year = {2024},
  eprint = {2409.05882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.05882},
}
Figure