TL;DR
This paper introduces Block-Max Pruning (BMP), a new dynamic pruning strategy that significantly speeds up "learned sparse retrieval" (LSR) models like SPLADE and uniCOIL. By dividing the document space into small blocks and using vectorized CPU instructions to quickly identify promising candidates, BMP achieves up to a 7.5x speedup over existing methods for safe retrieval and enables sub-millisecond response times for approximate search.
What Problem Does This Paper Address?
In the world of information retrieval, we are seeing a shift from traditional models (like BM25) to "learned sparse models" (like SPLADE). These new models are great because they use neural networks to understand context, but they still produce sparse vectors that can be stored in a classic inverted index.
However, there's a catch: the indexes generated by these neural models look very different from traditional ones. They often have much longer queries (due to query expansion), smaller vocabularies (due to sub-word tokenization), and different score distributions. Because of these structural shifts, classic optimization "tricks" like MaxScore and Block-Max WAND (BMW)—which have been the gold standard for decades—don't perform nearly as well. The authors aim to bridge this efficiency gap with a pruning strategy specifically designed for the quirks of learned sparse indexes.
Methods
The core of the paper is Block-Max Pruning (BMP), which operates in two main phases:
- Block Filtering: The document collection is divided into small, consecutive blocks of docIDs (e.g., 8, 16, or 32 documents per block). For every term in the vocabulary, the system stores the maximum impact score within each block. When a query comes in, BMP uses vectorized (SIMD) CPU instructions to sum up these block-max scores across all query terms. This produces a tight upper bound on the possible score for every block in the collection very quickly.
- Block Evaluation: Blocks are then processed in decreasing order of their upper bounds. Instead of a standard inverted index, BMP uses a hybrid index structure. For each block, it stores a mini-inverted list of document-score pairs and a sorted list of terms present in that block. This allows the system to aggregate scores into a small array of accumulators efficiently.
The system is tunable via two parameters:
- $\alpha$ (Alpha): Controls early termination. By adjusting $\alpha$, users can trade a tiny bit of retrieval accuracy for massive gains in speed.
- $\beta$ (Beta): Controls query term pruning, dropping low-weight terms to further boost performance.
Datasets
The authors evaluated their approach using the MS MARCO Passage dataset, a standard benchmark in the IR community containing roughly 8.8 million documents. They tested BMP against three prominent learned sparse models:
- SPLADE (specifically the CoCondenser-EnsembleDistil variant)
- ESPLADE (a more efficient version of SPLADE)
- uniCOIL (which uses token-level contextualization)
Key Insights and Ideas
- The "Forward Index" Surprise: Interestingly, the authors found that a standard inverted index was actually a bottleneck for block-level evaluation because of expensive pointer movements. Their hybrid structure—which functions more like a block-based forward index—proved much faster.
- Vectorization is King: By using SIMD instructions to process block-max arrays, the system can "look ahead" at the potential scores of thousands of documents simultaneously.
- Document Ordering Matters: The researchers used Bipartite Graph (BP) ordering to assign document IDs. This groups similar documents together, making the block-max scores sparser and the upper bounds tighter, which directly improves pruning efficiency.
Key Results
BMP consistently outperformed all baselines, including MaxScore, BMW, and specialized LSR optimizers like Anytime and IOQP.
- Safe Retrieval (Exact Results): For the SPLADE model at $k=10$, BMP achieved a latency of 10.5 ms, compared to 79.1 ms for IOQP and 120.6 ms for MaxScore. This represents a 7.5x speedup over the next best competitor.
- Approximate Retrieval: As shown in Figure 1, BMP (and its "raw" uncompressed variant) defines a new Pareto frontier for the effectiveness-efficiency trade-off.
- Sub-millisecond Latency: For models like ESPLADE and uniCOIL, BMP reached average response times of less than 1 ms with a negligible loss (less than 1%) in ranking effectiveness (RR@10).
Detailed query times across different models and $k$ values are summarized in Table 2:
Limitations and Future Work
While BMP is highly effective, the authors note a few areas for further exploration:
- Index Size: Storing block-max scores adds overhead. While compression helps, smaller block sizes (which offer better pruning) require more memory.
- Comparison to ANN: The paper focuses on CPU-based pruning for sparse indexes. A natural next step is comparing BMP's performance against graph-based Approximate Nearest Neighbor (ANN) algorithms, which are currently the dominant choice for dense vector retrieval.
- Dynamic Environments: The current study assumes a static index; how BMP handles frequent document updates remains to be seen.
Summary updated