TL;DR
This paper introduces a suite of compression techniques for Learned Sparse Retrieval (LSR) that slashes memory usage by up to 3.9× while simultaneously boosting query speed by up to 5.3×. By replacing bulky synthetic block summaries with document "medoids" and employing SIMD-fused bit-packing, the authors prove that high-accuracy neural search can fit into much smaller memory footprints without hitting a performance wall.
What Problem Does This Paper Address?
Learned Sparse Retrieval (LSR) models like SPLADE have revolutionized text search by representing documents and queries as high-dimensional, sparse vectors. While highly effective, these vectors don't follow the classic "Zipfian" distribution of natural language that traditional search engines (like Lucene) rely on for efficiency.
State-of-the-art indexes like SEISMIC have solved the speed issue, but at a high cost: they are memory hogs. As retrieval latency drops into the microsecond range, the "memory wall"—the time spent moving data from RAM to the CPU—becomes the primary bottleneck. Specifically, the two-level design of these indexes (a selector to find candidates and a forward index to score them) suffers from bloated metadata and uncompressed vector storage.
Methods
The authors overhaul both levels of the SEISMIC architecture:
- Medoid-based Selector: Original SEISMIC uses synthetic "summary vectors" for blocks of documents to prune the search space. These summaries are huge. The authors replace them with medoids—actual documents from the block that act as representatives. This collapses per-block metadata from a sparse vector (~400 bytes) to a single 8-byte document ID.
- Vocabulary Reordering: They treat terms and documents as a bipartite graph and use Recursive Graph Bisection (RGB) to reorder the vocabulary. This clusters co-occurring terms together, significantly reducing the entropy of the gaps between term IDs ($\Delta$-gaps), making them easier to compress.
- DOTPACKING8: A novel, SIMD-friendly bit-packing scheme. Unlike standard compression, it fuses decompression directly with the dot-product calculation using AVX2 instructions. This avoids redundant memory traffic.
- JUMPDOT: A specialized kernel for "inference-free" retrievers (where queries are extremely sparse but documents are expanded). It allows the system to skip entire blocks of document data if they don't match the few terms in the query.
- Per-Component 4-bit Quantization: Instead of one global quantizer, they fit a unique 4-bit codebook to each term's value distribution, preserving accuracy even at high compression ratios.
Datasets
The researchers evaluated their approach using the MS MARCO passage retrieval benchmark (8.8 million passages). They tested three different state-of-the-art encoders:
- SPLADE: The standard for learned sparse expansion.
- SPLADE-v3: A more recent, stronger version of SPLADE.
- LILSR: An "inference-free" model where query encoding is a simple lookup, leading to extremely sparse queries.
Key Insights and Ideas
- The Medoid "Good Enough" Principle: You don't need a mathematically perfect upper bound (summary vector) to prune effectively. A well-chosen representative (medoid) combined with a "bouncing factor" in the heap can achieve similar recall with a fraction of the memory.
- Compression is Scoring: In the microsecond regime, you cannot afford to "decompress then score." The two must be interleaved. DOTPACKING8 achieves this by using SIMD gather instructions to fetch query weights while bit-unpacking document terms.
- Asymmetric Sparsity Matters: The optimal algorithm changes depending on whether both the query and document are expanded (SPLADE) or just the document (LILSR). JUMPDOT exploits the latter by treating the search as a "two-pointer merge" on steroids.
Key Results
The proposed "SEISMIC [new]" significantly outperformed baselines like SINDI and KANNOLO:
- Speed & Space: At equal accuracy on SPLADE, the new index is 5.3× faster than SINDI while using 3× less memory.
- Memory Constraints: In ultra-tight memory budgets, it remains 1.9× faster while using 3.9× less memory than competitors.
- Quantization: As shown in the figures below, 4-bit quantization (especially using K-Means) recovers nearly all the accuracy of 8-bit versions while halving the value-storage footprint.
The effectiveness of their vocabulary reordering and bit-packing is highlighted in their comparison of bits per integer (BPI). Their methods (DOTPACKING8/DP) approach the theoretical entropy limits:
Limitations and Future Work
While medoids save massive amounts of space, they provide a looser pruning signal than synthetic summaries, which can lead to higher latency in some high-accuracy configurations because the engine has to check more documents.
The authors suggest that future work could explore using multiple representatives per block or learned representatives to regain that tight pruning signal without sacrificing the compactness they've achieved. They also aim to test if these techniques scale to even larger, billion-scale datasets.
Summary updated