Abstract
Learned Sparse Retrieval (LSR) models like SPLADE have significantly improved retrieval effectiveness by leveraging Transformer-based query expansion and term weighting. However, these models often suffer from high latency compared to classical methods like BM25, primarily because their score distributions do not benefit from the dynamic pruning algorithms (e.g., WAND) used in standard search engines. This paper introduces "Two-Step SPLADE," a cascade retrieval strategy that approximates SPLADE scores using a pruned, re-weighted index followed by a targeted rescoring step. Across 30 datasets, this approach achieves up to 40x speedups with negligible loss in accuracy, bridging the gap between state-of-the-art effectiveness and production-level efficiency.
Introduction
In modern Information Retrieval (IR), the tension between effectiveness (the quality of results) and efficiency (the speed of retrieval) remains a central challenge. Classical models such as BM25 are highly efficient due to their use of inverted indexes and dynamic pruning algorithms. These algorithms rely on the "saturation effect"—where the impact of a term's frequency plateaus—to skip irrelevant documents during the search process.
Recent advancements have introduced Learned Sparse Retrieval (LSR) models, with SPLADE (Sparse Lexical and Expansion Model) being a prominent example. SPLADE enhances retrieval by expanding queries with latent terms and learning sophisticated weights. However, SPLADE's score distributions lack the saturation properties of BM25, forcing search engines to evaluate a much larger portion of the index. This results in latencies that are often orders of magnitude higher than classical baselines, limiting the practical deployment of LSR models in large-scale systems.
The Two-Step SPLADE Framework
To address the efficiency bottleneck, the authors propose a two-stage cascade retrieval process designed to be "infrastructure-friendly," requiring no specialized hardware or complex cross-encoders.
1. The Approximate Step
The first stage focuses on identifying a candidate set of documents as quickly as possible. This is achieved through two primary modifications to the standard SPLADE index:
- Pruning by Lexical Size: Documents and queries are truncated to their "lexical size," a heuristic based on the average length of natural language documents. This reduces the density of the sparse vectors.
- Term Re-weighting: The authors introduce a re-weighting function that incorporates a BM25-style saturation parameter ($k_1$). By mathematically forcing a saturation effect into the SPLADE weights, the system "tricks" standard dynamic pruning algorithms like WAND into working efficiently again.
2. The Rescoring Step
Once a small pool of candidate documents (e.g., the top 100) is identified in the first step, the system performs a full, exact SPLADE score calculation. Because this calculation is limited to a tiny fraction of the total document collection, the computational overhead is minimal, ensuring that the final ranking maintains the high effectiveness of the original SPLADE model.
Experimental Evaluation
The effectiveness and efficiency of Two-Step SPLADE were evaluated across a massive suite of 30 datasets to ensure robustness across different domains:
- MSMARCO: The industry standard for in-domain web search.
- BEIR: A collection of 18 diverse datasets (including BioMedical and Finance) used to test zero-shot out-of-domain performance.
- LoTTe: 10 datasets focused on long-tail, natural language queries.
Key Insights and Results
Massive Efficiency Gains
Two-Step SPLADE demonstrated dramatic improvements in retrieval speed. On in-domain data (MSMARCO), the method achieved a 30x improvement in mean response time. The gains were even more pronounced for the slowest queries (p99 tail latency), which saw speedups of up to 40x. On out-of-domain BEIR datasets, speedups ranged from 12x to 25x.
Preservation of Accuracy
Crucially, these speedups did not come at the cost of retrieval quality. In 60% of the tested datasets, there was no statistically significant difference in accuracy between Two-Step SPLADE and the original, full SPLADE model. Furthermore, the method consistently outperformed "Guided Traversal," a previous state-of-the-art efficiency technique, in both speed and effectiveness in 50% of cases.
Robustness of Heuristics
The use of "lexical size" as a pruning heuristic proved to be remarkably stable. Rather than requiring complex, per-dataset tuning, this simple heuristic allowed the model to perform well across 30 different domains, suggesting that the approach is highly generalizable.
Limitations and Future Work
While Two-Step SPLADE significantly reduces retrieval latency, some areas for improvement remain:
- Query Encoding Latency: The study primarily addresses index search time. Future work should incorporate the time required for the Transformer model to generate the initial SPLADE vector from a raw query.
- Storage Overhead: The method requires maintaining two versions of the index (the full index and the pruned approximate index), which increases storage requirements.
- Parameter Selection: Although the lexical size heuristic is robust, the system still relies on parameters like the saturation constant $k_1$ and the rescoring depth $k$.
Conclusion
Two-Step SPLADE provides a simple yet powerful solution to the efficiency problems plaguing learned sparse retrieval. By re-introducing saturation effects into SPLADE's score distribution, the authors have made it possible to leverage the effectiveness of modern Transformer-based models while maintaining the speed and infrastructure compatibility of classical search engines.
Summary updated