Adapting Learned Sparse Retrieval for Long Documents

Thong Nguyen, Sean MacAvaney, Andrew Yates

TL;DR

Learned Sparse Retrieval (LSR) models like SPLADE are great for short passages but often stumble when documents get long. This paper demonstrates that incorporating term proximity—the idea that query terms appearing close together are a stronger signal than isolated matches—is the key to fixing this. By adapting the classic Sequential Dependence Model (SDM) to the neural LSR framework, the authors achieve state-of-the-art results on long-document benchmarks.

What Problem Does This Paper Address?

Most modern neural search models (transformers) have a "short-sighted" problem: they can only process a few hundred words at a time. To handle long documents, researchers typically split them into segments, score each segment, and then aggregate those scores (e.g., taking the maximum or the sum).

However, Learned Sparse Retrieval (LSR)—which maps text into high-dimensional, sparse vectors aligned with a dictionary—faces unique challenges here. As documents get longer, simple aggregation methods like "summing" tend to accumulate noise from irrelevant segments. Furthermore, LSR is inherently "bag-of-words," meaning it ignores the order of terms. In a long document, seeing the words "climate" and "change" in the same sentence is much more meaningful than seeing "climate" on page 1 and "change" on page 10. This paper investigates how to bring that missing spatial awareness back into LSR.

Methods

The authors propose two adaptations of the Sequential Dependence Model (SDM), a classic information retrieval technique that models the relationship between neighboring query terms, for use with LSR:

  1. ExactSDM: This model looks for exact phrase matches or terms appearing within a small window (e.g., 8 tokens) in the document. It assumes that if query terms appear close together, the document is more likely to be relevant.
  2. SoftSDM: This variant leverages the "expansion" power of LSR models like SPLADE. Since SPLADE uses a Masked Language Modeling (MLM) head to predict related terms (e.g., "car" might trigger "automobile"), SoftSDM allows for "soft" proximity matches between these predicted expansion terms.

To implement this, the authors modified the SPLADE architecture to track term positions and weights simultaneously. They compared these against standard aggregation strategies like Rep-max (taking the max weight for each term across segments) and Score-max (taking the highest score from any single segment).

Datasets

The researchers evaluated their models on two major long-document benchmarks:

  • MSMARCO Document: A large-scale dataset containing 3.2 million documents and over 360k training queries.
  • TREC Robust04: A classic, smaller dataset of roughly 0.5 million news articles, used here to test how well the models generalize to new types of data without additional fine-tuning (zero-shot evaluation).

Key Insights and Ideas

  • The "Max" Factor: Most aggregation methods (sum, mean) show a "downward trend"—performance actually drops as you add more document segments because of noise. Score-max was the only baseline that remained stable, suggesting that local, high-quality matches are more important than global term frequency in long docs.
  • Proximity is the Secret Sauce: By explicitly rewarding documents where query terms appear near each other, ExactSDM and SoftSDM significantly outperformed all standard aggregation baselines.
  • Softness isn't Necessary: Surprisingly, SoftSDM (which allows for expanded term matching) didn't perform better than ExactSDM. This suggests that while "soft" matching is useful for individual terms (unigrams), the exact proximity of the original query terms is a sufficient signal for modeling dependencies.
  • LSR vs. Cross-Encoders: In Cross-Encoder models, aggregating representations usually works best. In LSR, the authors found the opposite: aggregating scores (Score-max) is much more robust.

Key Results

  • MSMARCO Document: Both SDM variants improved MRR@10 by 1.0% to 2.0% over the best baseline (Score-max).
  • TREC Robust04: The gains were even more pronounced in the zero-shot setting, with improvements in NDCG@10 ranging from 3.9% to 5.8%.
  • Efficiency: ExactSDM is particularly attractive because it doesn't rely on the complex MLM logits of the transformer during the scoring phase, making it compatible with a wider range of LSR architectures (like uniCOIL or DeepImpact).

Limitations and Future Work

The authors note that while their SDM adaptations improve performance, they do require tracking positional information, which adds some complexity to the indexing and retrieval pipeline compared to a pure bag-of-words approach.

Future work could explore more efficient ways to store this positional data in inverted indices or investigate if even more complex term dependencies (beyond just neighboring pairs) could further move the needle for extremely long or technical documents.

Summary updated

BibTeX
@inproceedings{nguyen2023adapting,
  author = {Thong Nguyen and Sean MacAvaney and Andrew Yates},
  title = {{Adapting Learned Sparse Retrieval for Long Documents}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
  doi = {10.1145/3539618.3591943},
}

Loading related content...

Figure