A Unified Framework for Learned Sparse Retrieval

Thong Nguyen, Sean MacAvaney, Andrew Yates

Abstract

Learned Sparse Retrieval (LSR) has emerged as a powerful first-stage retrieval method, yet the diversity of architectures and training recipes makes direct comparison difficult. This paper introduces a unified conceptual framework to decompose LSR models into encoders, regularizers, and supervision strategies. Our analysis reveals that training recipes often outweigh architectural choices and identifies a "cancellation effect" between query and document expansion, enabling a 74% reduction in latency without compromising state-of-the-art effectiveness.

Introduction

Information retrieval typically employs a two-stage process: a fast first-stage retrieval to identify candidates, followed by a more computationally intensive re-ranking stage. Learned Sparse Retrieval (LSR) models, such as SPLADE, uniCOIL, and EPIC, have gained popularity by using neural networks to transform text into sparse vectors compatible with traditional inverted indexes like Lucene. However, the field has become fragmented, with various models employing disparate encoders, regularization techniques, and training data. This lack of standardization makes it difficult to discern whether performance gains stem from architectural innovation or superior training conditions.

The Unified Framework

To address this, we propose a unified framework that breaks any LSR method down into three core components: the sparse encoder, the sparse regularizer, and the supervision strategy. By reproducing prominent methods in a common codebase and re-training them in a standardized environment, we can "level the playing field."

Sparse Encoders

The encoder determines how text is mapped to term weights. Models vary significantly in their use of Transformer backbones and specific heads, such as simple MLPs versus Masked Language Model (MLM) heads. The following table illustrates how various models are decomposed within our framework.

Comparison of LSR model components within the unified framework.

Supervision and Training Recipes

The training recipe—including the selection of negative examples and the use of knowledge distillation—is often the most significant factor in a model's success. We categorize these strategies into a taxonomy of negatives (quality and quantity) and labels (level and type).

Taxonomy of supervision strategies for training LSR models.

Key Insights

Our standardized evaluation across benchmarks like MSMarco, TREC DL, and TripClick yielded several critical insights:

  • Training Trumps Architecture: Many "older" or simpler models performed nearly as well as state-of-the-art models when given the same advanced training (distillation and hard negatives). For example, the EPIC model’s score improved by 36% simply by updating the training process.
  • The "Cancellation Effect": We discovered that query expansion and document expansion provide diminishing returns when used together. If a model effectively expands documents with relevant terms, adding query expansion provides little benefit but adds massive computational overhead.
  • Document Weighting is King: Of all architectural choices, the ability to weight document terms (deciding which words are most important) had the single largest impact on retrieval effectiveness.
  • Encoder Bottlenecks: Using separate encoders for queries and documents (e.g., SPLADE-sep) significantly reduces the number of active terms in the index, leading to a 59% decrease in latency.

Results and Efficiency

By leveraging the "cancellation effect," we optimized a SPLADE-like model to rely primarily on document expansion. This reduced retrieval latency from 122.5 ms to 12.9 ms for that specific component. Overall, our optimized "distilSplade-qMLP" model achieved a 74% reduction in total retrieval latency compared to standard baselines while maintaining identical state-of-the-art effectiveness on MSMarco.

Conclusion

This unified framework provides a rigorous basis for comparing LSR models. By isolating the effects of training and architecture, we demonstrate that significant efficiency gains are possible through strategic simplification without sacrificing accuracy. We have released our code and a modified version of the Anserini toolkit to support standardized benchmarking in the research community.

Summary updated

BibTeX
@inproceedings{nguyen2023unified,
  author = {Thong Nguyen and Sean MacAvaney and Andrew Yates},
  title = {{A Unified Framework for Learned Sparse Retrieval}},
  booktitle = {Ecir},
  year = {2023},
  doi = {10.1007/978-3-031-28241-6\_7},
}
Figure