The abc index: exact retrieval for learned sparse representations
Read first: SPLADE-v3: New baselines for SPLADE · SPARSEUP: an open SPLADE-style sparse retriever (Linkup)
Intuition. For years, IR researchers treated learned sparse retrieval (LSR) like SPLADE as hostile to classical inverted-index pruning: queries expand to 40–100 terms with “wacky” learned weights, so WAND and MaxScore often run slower than exhaustive scans, pushing teams toward approximate graph or cluster indexes like Seismic and HNSW. The abc index shows that this failure was an artifact of mismatched data layouts, not of exact pruning itself. Put every posting list onto the same L1-cache-sized hard doc-id windows, add one byte per 1,024-doc sub-block, and classical Block-Max MaxScore beats every exact engine—and overtakes approximate indexes at large .
Source: arXiv, submitted November 21, 2026 (HTML full text), by Rossano Venturini (University of Pisa). Code promised upon acceptance.
First read: focus on why hard windows make TAAT and Block-Max MaxScore click on modern CPUs, and where exact abc-bmms overtakes approximate Seismic/kANNolo. Skip the low-level Rust/SIMD packing details on a first pass.
Why classical dynamic pruning failed on LSR
Section titled “Why classical dynamic pruning failed on LSR”Classic inverted indexes (Lucene, Qdrant) use soft windowing: posting lists are split by fixed posting cardinality, so at query time each list must search for where the current doc-id window ends and translate each doc-id into an accumulator offset. Worse, block maxima cover mismatched document intervals across terms, so every window must recompute per-list upper bounds from overlapping chunks. On expanded SPLADE queries, Lucene’s Block-Max MaxScore is up to 2.7× slower than Lucene’s own exhaustive scan (only beating exhaustive on short-query OS-gte at ), and Qdrant’s uncompressed f32 WAND index runs 1.1–1.4× slower than Qdrant’s compressed exhaustive index.
Hard windows, sub-block maxima, and fast reordering
Section titled “Hard windows, sub-block maxima, and fast reordering”1. Exhaustive abc (hard L1 windows). Partition the entire doc-id universe into fixed, aligned blocks of consecutive doc-ids—identical across every term:
- A 32-bit float accumulator array for one block takes , staying inside the CPU’s 48 KiB L1 data cache.
- Each posting stores only its 16-bit in-block offset, which is its accumulator index: scoring a posting is a single multiply-add (
acc[offset] += q_t * d_t) with zero window-boundary checks or shifts. - A quick SIMD scan over the 8,192 accumulators updates the top- heap and zeroes the array for the next block.
2. Dynamic pruning (abc-bmms). Split each 8,192-doc block into 8 aligned sub-blocks of 1,024 doc-ids, storing one 8-bit rounded-up maximum weight per sub-block (8 bytes per non-empty block of a term—only 124 MiB, or 4% of the index on CoCondenser, versus 30.0 GB uncompressed / 5.5 GB compressed for BMP’s 8-doc blocks):
- Score sub-block bounds first: one fast pass sums across query terms—valid without alignment work because every term shares the same hard sub-block boundaries.
- Visit blocks in decreasing bound order: the heap threshold climbs rapidly on the best blocks, stopping the search once the next block’s bound falls below and skipping any sub-block below .
- Inside-block MaxScore + cost model: because long 44-term queries still visit 626 of MS MARCO’s 1,080 blocks at ,
abc-bmmsre-runs MaxScore inside each visited block, skipping non-essential posting lists or probing only the few surviving candidate doc-ids directly.
3. Fast doc-id reordering. Standard recursive graph bisection (BP, rgbisect) recurses down to 16-doc leaves (101.2 s on 20 threads, ~2.2 min with input prep). Venturini uses actual abc-packed size to guide bisection parameters, stops recursion at 256-doc leaves (cutting four levels that rarely change 8-gap group bit-widths), and overhauls sampling, ranking, and per-level passes—cutting reordering to 5.2 s (19.5× faster). On CoCondenser, reordering shrinks packed doc-ids by roughly a third and concentrates term postings into 32% fewer blocks (cutting maxima from ~184 MiB to 124 MiB).
Results on MS MARCO (four LSR models)
Section titled “Results on MS MARCO (four LSR models)”Evaluated on all 8,841,823 MS MARCO v1 passages and 6,980 dev queries across four distinct LSR encoders: CoCondenser (classic SPLADE, 44 query non-zeros), SparseUp (Sep 2026 ModernBERT SPLADE), OS-gte (inference-free doc-only OpenSearch sparse, 6.9 query non-zeros), and SPLARE (123,627-dim sparse autoencoder, 284.6 doc / 106.9 query non-zeros). Hardware: Intel Core Ultra 7 265K (Arrow Lake, AVX2, 122 GiB RAM).
| Comparison (author-reported) | Latency vs. abc-bmms (u8) | Index space / build | Notes |
|---|---|---|---|
| Qdrant (exact) | abc-bmms 6.5–84× faster | Comparable to abc-bmms-packed | Qdrant uncompressed f32 WAND slower than compressed exhaustive |
| Lucene (exact) | abc-bmms 13–55× faster | Comparable to abc-bmms-packed | Lucene BMMS up to 2.7× slower than exhaustive (except OS-gte at ) |
| BMP (exact block-max) | abc-bmms 2.9–18× faster | abc-bmms 5–7× smaller | BMP stores fine 8–16 doc block maxima |
| Seismic (approx, 0.99 recall, 2× budget) | Seismic 1.1–4.2× faster at (incl. 240 vs. 264 µs on OS-gte); abc-bmms 1.7–7.4× faster at | abc-bmms 1.5–3.6× smaller; builds in 13–32 s (41 s packed f32 SPLARE) vs. minutes | Seismic requires per- grid search and separate indexes |
| kANNolo / HNSW (approx, 0.99 recall) | kANNolo 1.5–4.3× faster at on 3 models (19× slower on OS-gte); abc-bmms 1.6–2.2× faster at on those 3 models | Builds in 13–32 s vs. 9–27 hours for HNSW | kANNolo misses 0.99 recall on OS-gte (0.981–0.985) |
Exact f32 ground truth (abc-groundtruth) | 27–52× faster than vectorium brute force | 15–30 s vs. 9–25 min (20 threads, ) | Uses unreordered f32 abc for exact f32 scores |
Caveats and open boundaries
Section titled “Caveats and open boundaries”- 8-bit quantization:
abc-bmmsis exact over its 8-bit document weights, achieving ≥ 0.992 recall@k against exact f32 top- (less than 1% recall loss). True f32 exactness requires the f32 variant (abc-groundtruth). - Small- trade-off: approximate indexes still lead at on query-expanded LSR models, though
abc-bmmsavoids per- parameter tuning and already wins at on OS-gte and SparseUp (vs. Seismic). - Static single-machine scope: experiments cover MS MARCO v1 (8.8M passages) in RAM; larger corpora (MS MARCO v2) and live incremental index updates are left to future work (though sub-minute full rebuilds make periodic replacement practical).
- SPLARE reproducibility: the 123k-dim SPLARE encoded corpus was obtained privately from its authors rather than from a public release.
Connection to the rest of the track: Directly addresses the serving asymmetry noted on SPARSEUP (where Seismic approximate search handicapped sparse evaluation) and pairs with SPLADE-v3 and PROSPER for high-recall first-stage retrieval.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
An abc index partitions MS MARCO (8,841,823 passages) into hard windows of B = 8,192 doc-ids with 32-bit float accumulators, and abc-bmms splits each block into 8 sub-blocks of 1,024 doc-ids with one 8-bit maximum per sub-block. Compute (a) the number of blocks covering MS MARCO, (b) the byte size of the accumulator array and why it fits in the test CPU's 48 KiB L1 data cache, and (c) both the sub-block granularity ratio relative to BMP's 8-doc blocks and the observed maxima-storage ratio on CoCondenser (124 MiB for abc-bmms vs. 30.0 GB uncompressed / 5.5 GB compressed for BMP at b = 8).
What a strong answer covers
- (a) ceil(8,841,823 / 8,192) = 1,080 blocks (1,079 full blocks plus one partial block), which makes sorting all blocks by upper bound per query negligible.
- (b) 8,192 × 4 bytes = 32,768 bytes = 32 KiB, fitting comfortably inside the 48 KiB L1d cache while leaving room for stack/metadata; offsets 0..8,191 also fit inside 16-bit integers.
- (c) 1,024 / 8 = 128× coarser doc-id granularity; because abc-bmms also stores maxima only for non-empty blocks (marked by a bitvector), observed maxima storage is ~231× smaller than uncompressed BMP (30.0 GB / 124 MiB ≈ 231× using GB=10^9, MiB=2^20) and ~42× smaller than compressed BMP (5.5 GB / 124 MiB).
- The trade-off: coarser 1,024-doc maxima reject fewer whole blocks up front (626 of 1,080 blocks are still visited at k=10 on CoCondenser), so most savings must come from inside-block MaxScore pruning.
- Mechanism
Why does Lucene's Block-Max MaxScore run up to 2.7× slower than exhaustive Lucene on expanded LSR queries (except OS-gte at k ≤ 100) and Qdrant's uncompressed f32 WAND run slower than Qdrant's compressed exhaustive scan, yet Block-Max MaxScore makes abc-bmms 1.1–4.1× faster than exhaustive abc on every tested LSR model?
What a strong answer covers
- Hard aligned windows: abc partitions the doc-id universe identically for every term, so sub-block maxima cover the exact same 1,024 doc-ids across all query terms and can be summed directly without aligning mismatched cardinality-based posting chunks (which Lucene must recompute per window).
- Note on Qdrant: Qdrant's end-to-end WAND comparison uses an uncompressed f32 index against a compressed exhaustive index, so it reflects full-engine layout and pruning overhead rather than toggling WAND in isolation.
- Simple inner loop: each posting stores only its 16-bit in-block offset, which is already its L1 accumulator slot—scoring is a single multiply-add with no window boundary comparison or doc-id shifting.
- Decreasing-bound block order raises the top-k threshold θ quickly on the first few blocks, after which inside-block MaxScore splits terms into essential vs. non-essential lists, skips sub-blocks below θ, and uses a cost model to decide between full list scans and direct candidate probing.
- What if…
Venturini rewrites recursive graph bisection (BP) for doc-id reordering—using abc-packed size to guide bisection parameters, stopping recursion at 256-doc leaves instead of 16, and overhauling sampling, ranking, and per-level passes (cutting reordering from 101.2 s to 5.2 s, 19.5× faster). Explain why deep recursion down to 16-doc leaves wastes build time on abc-packed and quantify what reordering buys for abc-bmms.
What a strong answer covers
- abc-packed encodes gaps in fixed groups of 8 using the bit-width of the largest gap in each group, plus a per-block header; permuting documents inside a few-hundred-doc window changes individual gaps but rarely shrinks the group max bit-width, so fine recursion down to 16 docs costs full passes for near-zero space gain.
- Stopping at 256-doc leaves eliminates four recursion levels, and combining that with the new sampling, ranking, and per-level pass implementation cuts BP reordering from 101.2 s (rgbisect on 20 threads, ~2.2 min with input prep) down to 5.2 s (19.5× faster) with negligible space loss.
- On CoCondenser, reordering shrinks abc-packed doc-ids by roughly a third, creates dense blocks, and concentrates term postings into 32% fewer blocks—cutting sub-block maxima from ~184 MiB to 124 MiB and tightening upper bounds.
- Critique
The paper calls abc-bmms "exact" yet uses 8-bit quantized document weights and reports ≥ 0.992 recall@k against exact f32 top-k. Identify every boundary condition in the experimental claims—including quantization, collection size, k-regime, and dynamic updates.
What a strong answer covers
- Quantization boundary: abc-bmms is exact with respect to its 8-bit quantized weights, which lose up to ~0.8% recall (≥ 0.992 recall@k) relative to exact f32 inner products; true f32 exactness requires the f32 abc variant (used in abc-groundtruth).
- k-regime boundary: at k=10, approximate Seismic (2× budget) is still 1.1–4.2× faster across all four models (including 240 µs vs. 264 µs on OS-gte), and kANNolo (HNSW) is 1.5–4.3× faster on the three non-OS-gte models (while 19× slower and missing 0.99 recall on OS-gte). By k=1000, abc-bmms beats Seismic by 1.7–7.4× on all four models and beats kANNolo by 1.6–2.2× on the three models where kANNolo meets 0.99 recall.
- Scale and corpus boundary: all benchmarks are on MS MARCO v1 (8.84M passages, 6,980 dev queries) on one Arrow Lake CPU (AVX2, 122 GiB RAM); larger collections (e.g., MS MARCO v2) and live incremental updates are left to future work.
- SPLARE (123,627 SAE dims, 106.9 query non-zeros) was obtained privately from authors, so reproducing that specific workload requires access to the encoded vectors.
- Design
You operate a two-stage learned-sparse search stack serving both interactive k=10 lookups and k=1000 reranker/agent candidate generation over 10M passages with daily corpus refreshes. Decide when you would deploy abc-bmms vs. Seismic vs. HNSW (kANNolo), citing build time, memory, recall, and parameter-tuning risk.
What a strong answer covers
- At k=1000 (first-stage candidate generation for rerankers or agent search), u8 abc-bmms is strictly better on the tested workloads: 1.7–7.4× faster than Seismic across all four models and 1.6–2.2× faster than kANNolo on the three models where kANNolo reaches 0.99 recall, 1.5–3.6× smaller in RAM, zero per-k tuning parameters, and one index serves every k.
- For frequent corpus refreshes, u8 abc-bmms builds in 13–32 seconds (13, 19, 21, and 32 s across the four models; 41 s is the packed f32 SPLARE build) versus minutes for Seismic and 9–27 hours for kANNolo (HNSW), making full periodic rebuilds practical without online graph-mutation drift.
- At ultra-low-latency k=10 with static corpora and tolerance for grid-searching per-k indexes, Seismic (2× budget) still leads by 1.1–4.2× (including 240 µs vs. 264 µs on OS-gte), whereas kANNolo (HNSW) fails on inference-free OS-gte (19× slower and below 0.99 recall).
- For offline evaluation and ANN benchmarking, f32 abc-groundtruth replaces slow brute-force scans (27–52× faster than vectorium brute force: 15–30 s vs. 9–25 min on 20 threads).