DeeperImpact: Optimizing Sparse Learned Index Structures

Soyuj Basnet, Jerry Gou, Antonio Mallia, Torsten SuelarXiv 2024 · DOI

Introduction

In the field of Information Retrieval (IR), a persistent tension exists between lexical and semantic search methodologies. Traditional lexical systems, such as BM25, utilize inverted indexes to provide exceptional speed but often suffer from the "vocabulary mismatch" problem—failing to retrieve relevant documents that do not share exact keywords with the query. Conversely, modern neural dense retrievers capture deep semantic meaning but typically require significant computational overhead and specialized infrastructure.

Sparse learned indexes, exemplified by the original DeepImpact framework, seek a middle ground. These systems use neural networks to predict term importance and expand documents with potentially relevant terms, storing the resulting scores in a standard inverted index. While promising, early iterations like DeepImpact lagged behind state-of-the-art (SOTA) models like SPLADE in terms of accuracy. This research introduces DeeperImpact, an optimized framework that leverages Large Language Models (LLMs) and advanced training techniques to close the performance gap while maintaining the efficiency of traditional indexing.

Methodology

DeeperImpact improves upon its predecessor through a series of architectural and procedural enhancements designed to maximize retrieval effectiveness without compromising latency.

LLM-Powered Document Expansion

The core of DeeperImpact’s improvement lies in its document expansion phase. While the original model utilized DocT5Query (based on the T5 architecture), DeeperImpact employs a fine-tuned Llama 2 (7B) model. To manage the computational demands of a 7-billion parameter model, the researchers utilized Low-Rank Adaptation (LoRA) and 8-bit quantization. This transition allows for more sophisticated "hallucination" of potential user queries, significantly improving the model's recall by capturing a broader range of linguistic variations.

Model Initialization and Training

Beyond expansion, the underlying encoder was upgraded. Rather than starting with a generic BERT initialization, DeeperImpact utilizes CoCondenser, a model specifically pre-trained to generate high-quality text embeddings for retrieval tasks.

The training process was further refined through two key strategies:

  1. Hard-Negative Mining: Instead of training on random irrelevant passages, the model was exposed to "hard negatives"—documents that appear relevant to simpler models but are contextually incorrect. This forces the model to learn finer distinctions in relevance.
  2. Knowledge Distillation: A powerful Cross-Encoder was employed as a "Teacher" model. DeeperImpact (the "Student") was trained to minimize the KL-Divergence between its own relevance scores and the more nuanced scores provided by the Teacher, effectively transferring complex ranking logic into the faster sparse index format.

Experimental Evaluation

The researchers evaluated DeeperImpact across several benchmark datasets to test both in-domain performance and zero-shot generalization:

  • MS MARCO (Passage Ranking): The primary training and evaluation set, consisting of 8.8 million passages.
  • TREC Deep Learning (2019 & 2020): Used to assess generalization across different query distributions.
  • BEIR Benchmark: A diverse collection of datasets (including COVID-19 and financial data) used to evaluate the model’s "out-of-the-box" performance on unseen domains.

Results and Discussion

The experimental results demonstrate that DeeperImpact successfully bridges the gap between speed and accuracy.

Accuracy and Recall

On the MS MARCO Dev set, DeeperImpact achieved an MRR@10 of 37.30, a substantial improvement over the 32.74 recorded by the original DeepImpact. Furthermore, the model showed remarkable recall efficiency; its "Recall at depth 400" matched the "Recall at depth 1000" of the previous version, allowing for high-quality retrieval while examining fewer candidate documents.

Efficiency vs. State-of-the-Art

The most significant finding is the trade-off between DeeperImpact and SPLADE. While SPLADE remains slightly more accurate, it is computationally expensive. DeeperImpact recorded a Mean Response Time (MRT) of approximately 40ms, whereas SPLADE required 476ms. This represents a nearly 12x speed advantage, making DeeperImpact a more viable candidate for production environments where sub-100ms latency is a requirement.

Interestingly, the study found that the Doc2Query-- filtering technique—often used to prune low-quality LLM-generated queries—did not benefit DeeperImpact. This suggests that the DeepImpact training objective is inherently robust enough to ignore noise generated during the Llama 2 expansion phase.

Conclusion

DeeperImpact demonstrates that sparse learned indexes can achieve near-SOTA accuracy by integrating modern LLMs and distillation techniques. By maintaining the structure of an inverted index, it provides a high-throughput, low-latency solution for large-scale search.

The primary remaining challenge is the indexing bottleneck caused by the autoregressive nature of Llama 2. Future work will focus on accelerating document expansion through query likelihood sampling (e.g., TILDE) and exploring alternative loss functions to further narrow the accuracy gap with dense and hybrid retrievers.

Summary updated

BibTeX
@misc{basnet2024deeperimpact,
  author = {Soyuj Basnet and Jerry Gou and Antonio Mallia and Torsten Suel},
  title = {{DeeperImpact: Optimizing Sparse Learned Index Structures}},
  year = {2024},
  eprint = {2405.17093},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.17093},
}
Figure