Introduction
Learned Sparse Retrieval (LSR) models, such as SPLADE and uniCOIL, have emerged as powerful alternatives to traditional keyword-based retrieval (e.g., BM25). By utilizing neural networks to expand queries and documents into high-dimensional sparse vectors, LSR captures semantic nuances that keyword matching misses. However, these models introduce unique indexing challenges: queries are significantly longer due to expansion, vocabularies are smaller, and score distributions differ from traditional models.
Existing "safe" pruning algorithms like MaxScore and Block-Max WAND (BMW) were designed for the statistical properties of traditional inverted indexes. When applied to LSR, these methods often suffer from high latency, undermining the efficiency benefits of sparse representations. This paper introduces Block-Max Pruning (BMP), a dynamic pruning strategy tailored for the "heavy" queries and specific index structures of LSR models.
Methodology: Block-Max Pruning
BMP optimizes retrieval by partitioning the document space into small, contiguous blocks (typically 8 to 32 documents). The core of the approach lies in several key innovations:
- Block-Level Filtering: For every term in the vocabulary, the system stores the maximum "impact score" it achieves within each block.
- SIMD-Accelerated Scoring: During query processing, BMP leverages Single Instruction, Multiple Data (SIMD) CPU instructions to rapidly aggregate these block-level maximums. This provides a tight upper bound on the potential score for all documents within a block.
- Hybrid Indexing: BMP moves away from purely inverted indexes. It uses the block upper bounds to identify candidate blocks, which are then evaluated using a cache-friendly forward index (storing documents as term-impact pairs). This approach is significantly more efficient for the final evaluation of candidate documents than traditional inverted lists.
- Tunable Approximation: A parameter ($\alpha$) allows for early termination, enabling a trade-off between marginal accuracy losses and significant speed gains by stopping if the current top-$k$ results are sufficiently good compared to remaining potential.
Experimental Evaluation
The authors evaluated BMP on the MS MARCO Passage ranking dataset (~8.8 million passages) using three prominent LSR models: SPLADE, ESPLADE, and uniCOIL. Performance was measured against established baselines including BMW, MaxScore, and approximate methods like Anytime and IOQP.
Key Results and Insights
BMP demonstrates a significant shift in the efficiency-effectiveness frontier for sparse retrieval, particularly for models with heavy query expansion.
Massive Speedups over Baselines
As shown in the comparative analysis, BMP achieves dramatic performance improvements. For "safe" retrieval (where the top-$k$ results are guaranteed to be exact), BMP is 2.9x to 7.5x faster than the next best competitors on SPLADE. Most notably, it outperforms the standard BMW algorithm by up to 60x.
Superior Efficiency-Effectiveness Frontier
In approximate retrieval scenarios, BMP consistently occupies the "top-left" of the performance graph, meaning it provides the best balance of high accuracy and low latency. By adjusting the pruning aggressiveness, BMP can achieve sub-millisecond query latency on models like ESPLADE while maintaining over 99% of the original retrieval effectiveness (RR@10).
The Role of Document Ordering
A critical insight is the impact of document ID assignment. Using Bipartite Graph Partitioning (BP) ordering clusters similar documents together. This makes the block-max scores more representative, allowing for more aggressive and effective pruning.
Conclusion and Future Directions
Block-Max Pruning effectively addresses the latency bottlenecks of Learned Sparse Retrieval. By combining block-level metadata with hardware-level SIMD optimizations and a hybrid index structure, BMP enables high-accuracy retrieval at speeds previously unattainable for expanded sparse models.
Future work includes exploring the memory overhead associated with block-max metadata and conducting direct comparisons with graph-based Approximate Nearest Neighbor (ANN) algorithms. Additionally, evaluating BMP's performance on non-x86 architectures like ARM remains an area for further investigation.
Summary updated