Accelerating Learned Sparse Indexes Via Term Impact Decomposition

Joel Mackenzie, Antonio Mallia, Alistair Moffat, Matthias PetriEMNLP 2022

Abstract

Learned sparse retrieval models, such as DeepImpact and uniCOIL, provide superior search accuracy compared to traditional methods like BM25. However, they suffer from significant latency issues because they decouple term importance from frequency, breaking the assumptions of standard dynamic pruning algorithms. This paper introduces postings clipping, a technique that decomposes term impacts into base and residual components. This reorganization allows standard pruning algorithms to skip irrelevant documents more aggressively, achieving up to a 9.6× speedup on large-scale datasets with zero loss in retrieval effectiveness.

The Challenge: Why Learned Models are Slow

Traditional information retrieval relies on inverted indexes and dynamic pruning algorithms (e.g., WAND, MaxScore) to accelerate search. These algorithms use the maximum possible "impact" of a term to determine if a document list can be skipped. In models like BM25, common terms have low impact scores, allowing the engine to quickly bypass long lists.

Modern learned sparse models use Transformers to assign context-aware importance. Consequently, a common word might be assigned a high impact score in a specific context. As shown in Figure 1, while BM25's maximum impact decreases as list length (bucket size) increases, learned models like DeepImpact and uniCOIL maintain high maximum impacts even in very long lists. This prevents pruning algorithms from effectively skipping documents, leading to excessive computation.

Normalized maximum impact scores across different list lengths (buckets). Learned models like DeepImpact and uniCOIL maintain high max impacts even in long lists, hindering traditional pruning.

Proposed Method: Postings Clipping

The authors propose postings clipping, a refined approach to list splitting that mathematically decomposes term impacts.

The Mechanism

Instead of a single long list for a term, the index is split into two:

  1. Low-impact (Base) List: Contains every document, but its score is "clipped" at a specific threshold.
  2. High-impact (Residual) List: A much shorter list containing only the "leftover" scores for documents that exceeded the threshold.

By capping scores in the long base list, the search engine sees a significantly lower "maximum impact" ($U_A$). As illustrated in Figure 2, when this upper bound falls below the current query threshold ($θ$), the engine can safely bypass the remaining documents in that list.

Conceptual overview of dynamic pruning. When the upper bound $U_A$ of a term falls below the current score threshold $θ$, subsequent documents can be bypassed.

This method requires no changes to existing pruning logic; it simply provides tighter upper bounds by treating the base and residual lists as independent terms.

Experimental Evaluation

The technique was evaluated on MSMARCO-v1 (~8.8M passages) and MSMARCO-v2 (~138.4M passages) using four ranking models: BM25, DocT5Query, DeepImpact, and uniCOIL.

Key Results

  • Significant Speedups: DeepImpact achieved a 9.65× speedup for top-10 retrieval on MSMARCO-v2 compared to standard MaxScore.
  • Exact Retrieval: Because the decomposition ($w = w_{base} + w_{residual}$) is mathematically exact, there is zero loss in retrieval quality.
  • Low Overhead: The additional residual lists increased index size by only 1.8%.
  • Broad Applicability: Even traditional models like BM25 saw modest gains (up to 1.22×).

Conclusion and Future Directions

Postings clipping effectively bridges the gap between the high accuracy of learned sparse models and the efficiency requirements of production systems. Future work includes optimizing the heuristic used for splitting (currently fixed at 1/64th of the list) and exploring "pruning-friendly" training objectives that incorporate these decomposition principles directly into the model learning process. Additionally, improving initial threshold estimation could potentially double the observed speedups.

Summary updated

BibTeX
@inproceedings{mackenzie2022accelerating,
  author = {Joel Mackenzie and Antonio Mallia and Alistair Moffat and Matthias Petri},
  title = {{Accelerating Learned Sparse Indexes Via Term Impact Decomposition}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.205},
}
Figure