Wacky Weights in Learned Sparse Representations and the Revenge of Score-at-a-Time Query Evaluation

Joel Mackenzie, Andrew Trotman, Jimmy LinarXiv 2021

Introduction

Modern Information Retrieval (IR) has been transformed by Learned Sparse Representations (LSRs) such as SPLADE and uniCOIL. These models leverage transformer architectures to perform term expansion and re-weighting, significantly improving retrieval effectiveness. However, these "neural weights" exhibit characteristics fundamentally different from traditional statistical distributions like BM25. This paper explores how these "wacky weights" impact the efficiency of standard retrieval algorithms and demonstrates the resurgence of Score-at-a-Time (SaaT) evaluation as a robust alternative.

The Challenge of "Wacky Weights"

Traditional search engines primarily utilize Document-at-a-Time (DaaT) evaluation. Algorithms like WAND and Block-Max WAND achieve high efficiency by using mathematical upper bounds to skip documents that cannot possibly enter the top-$k$ results. This skipping logic relies on a skewed distribution of weights where a few terms carry most of the discriminative power.

LSRs break this paradigm. Neural models often assign high weights to non-discriminative tokens, including stopwords and punctuation, and produce "flatter" weight distributions across expanded queries. When the mathematical bounds for skipping become loose, DaaT algorithms are forced to evaluate nearly every document, causing search speeds to degrade significantly—sometimes by as much as 50x compared to BM25 baselines.

Evaluation Strategies: DaaT vs. SaaT

To address these efficiency bottlenecks, the authors compare three distinct retrieval systems:

  1. Anserini (Lucene): A Java-based production system using DaaT.
  2. PISA: A high-performance C++ engine utilizing the MaxScore DaaT algorithm.
  3. JASS: A specialized engine employing Score-at-a-Time (SaaT) evaluation.

Unlike DaaT, which evaluates all query terms for a single document before moving to the next, SaaT processes the entire postings list for the highest-impact term first. This approach is inherently more resilient to unusual weight distributions because it prioritizes processing based on term impact rather than relying on document-level skipping heuristics.

Key Results: Efficiency and the Pareto Frontier

The study utilized the MS MARCO passage corpus to evaluate models including DeepImpact, uniCOIL, and SPLADEv2. The results highlight a stark contrast in how systems handle neural models. While PISA (DaaT) remains efficient for models with simpler weight distributions, its performance collapses under the "wacky" weights of SPLADEv2.

Pareto frontier showing the trade-off between retrieval effectiveness (RR@10) and query latency across different systems and models.

As shown in the Pareto frontier above, JASS (SaaT) provides a compelling trade-off: by accepting a marginal decrease in effectiveness (1-2%), it can achieve 2-4x speedups over DaaT systems for the most complex neural models. This makes SaaT the clear winner for applications where latency predictability is paramount.

Latency and Predictability

A critical finding is the difference in latency distributions. DaaT systems often suffer from "long tails," where specific queries take significantly longer than the average due to the failure of skipping heuristics. SaaT, functioning as an "anytime algorithm," allows for much more predictable latency by capping the number of postings processed.

Query latency distributions (ms) for PISA and JASS-A across various retrieval models, highlighting the increased tail latency in neural models.

Conclusion

The emergence of LSRs necessitates a re-evaluation of core IR indexing and retrieval strategies. While DaaT has been the industry standard for decades, its reliance on skipping heuristics makes it vulnerable to the "wacky weights" produced by modern neural models. Score-at-a-Time evaluation, as implemented in systems like JASS, offers a more predictable and often more efficient path forward for next-generation neural search. Future work should focus on developing "efficiency-aware" training objectives to mitigate these weight-related overheads at the model level.

Summary updated

BibTeX
@misc{mackenzie2021wacky,
  author = {Joel Mackenzie and Andrew Trotman and Jimmy Lin},
  title = {{Wacky Weights in Learned Sparse Representations and the Revenge of Score-at-a-Time Query Evaluation}},
  year = {2021},
  eprint = {2110.11540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.11540},
}
Figure