Sparsifying Sparse Representations for Passage Retrieval by Top-k Masking

Jheng-Hong Yang, Xueguang Ma, Jimmy LinarXiv 2021

Introduction

In modern information retrieval, there is a significant divide between dense representations (latent vectors like DPR) and sparse representations (lexical vectors like SPLADE). Sparse models are attractive because they are compatible with traditional inverted indexes used by search engines like Lucene. However, "sparse" models often generate representations where thousands of tokens have non-zero weights, leading to "bloated" indexes that consume excessive disk space and increase query latency. This paper introduces SPLADE-mask, a method to enforce stricter sparsity without sacrificing ranking accuracy.

Methodology

The authors build upon the SPLADE (SParse Lexical AnD Expansion) framework, introducing a top-$k$ masking strategy to control the number of non-zero dimensions in the lexical vector.

The SPLADE-mask architecture utilizes a dual-path approach where a KL-divergence loss aligns the masked sparse representation with its unmasked counterpart.

The approach consists of several key components:

  1. Top-$k$ Masking: Instead of relying solely on regularization, the model explicitly retains only the top-$k$ highest-weighted tokens. This is applied during training to allow the model to adapt to the constraint.
  2. Exponential Decay Scheduler: The number of allowed non-zero tokens ($k$) is gradually reduced during training, helping the model transition from a dense to a sparse state.
  3. Self-Learning via KL-Divergence: To mitigate information loss, a KL-divergence loss ($L_{KL}$) forces the probability distribution of the masked representation to mimic that of the unmasked version. This "coaxes" the model to pack more signal into fewer tokens.
  4. Layer Freezing: Interestingly, freezing the pre-trained projection layer was found to improve ranking effectiveness compared to fine-tuning it.

Experimental Results

The researchers evaluated SPLADE-mask on the MS MARCO passage ranking corpus (8.8M passages). The results demonstrate a significant breakthrough in the trade-off between effectiveness and efficiency.

Ablation study and performance comparison showing that SPLADE-mask (f) achieves higher MRR@10 with significantly lower storage and token counts than unmasked baselines.

Key findings include:

  • Efficiency Gains: While a reproduced SPLADE-max baseline achieved an MRR@10 of 0.354 with 30.0 GiB of storage, SPLADE-mask achieved a superior MRR@10 of 0.373 with only 5.4 GiB—a nearly 6x reduction in index size.
  • Sparsity Control: By setting $k \approx 305$ (1% of the vocabulary), the average tokens per passage were reduced from nearly 2,000 to exactly 305.
  • State-of-the-Art Performance: SPLADE-mask (0.373) outperformed other leading models such as uniCOIL (0.351) and the original SPLADE-distil (0.368) on the MS MARCO Dev set.

Conclusion

SPLADE-mask proves that lexical retrieval models can achieve high sparsity and state-of-the-art effectiveness simultaneously. By using self-learning to align sparse and dense distributions, the model learns to prioritize the most informative tokens. Future work will focus on investigating performance discrepancies on TREC benchmarks and measuring real-time query latency improvements.

Summary updated

BibTeX
@misc{yang2021sparsifying,
  author = {Jheng-Hong Yang and Xueguang Ma and Jimmy Lin},
  title = {{Sparsifying Sparse Representations for Passage Retrieval by Top-k Masking}},
  year = {2021},
  eprint = {2112.09628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.09628},
}
Figure