Abstract
Scaling large language models (LLMs) has shown great potential for improving retrieval model performance; however, previous studies have mainly focused on dense retrieval trained with contrastive loss (CL), neglecting the scaling behavior of other retrieval paradigms and optimization techniques, such as sparse retrieval and knowledge distillation (KD). In this work, we conduct a systematic comparative study on how different retrieval paradigms (sparse vs. dense) and fine-tuning objectives (CL vs. KD vs. their combination) affect retrieval performance across different model scales. Using MSMARCO passages as the training dataset, decoder-only LLMs (Llama-3 series: 1B, 3B, 8B), and a fixed compute budget, we evaluate various training configurations on both in-domain (MSMARCO, TREC DL) and out-of-domain (BEIR) benchmarks. Our key findings reveal that: (1) Scaling behaviors emerge clearly only with CL, where larger models achieve significant performance gains, whereas KD-trained models show minimal improvement, performing similarly across the 1B, 3B, and 8B scales. (2) Sparse retrieval models consistently outperform dense retrieval across both in-domain (MSMARCO, TREC DL) and out-of-domain (BEIR) benchmarks, and they demonstrate greater robustness to imperfect supervised signals. (3) We successfully scale sparse retrieval models with the combination of CL and KD losses at 8B scale, achieving state-of-the-art (SOTA) results in all evaluation sets.
Introduction
Recent breakthroughs in neural retrieval have predominantly focused on dense retrieval—representing documents as single, low-dimensional vectors and training them using Contrastive Loss (CL). While effective, this focus has left a gap in our understanding of how other paradigms, specifically sparse retrieval, scale as the underlying Large Language Model (LLM) increases in size. Sparse retrieval projects text into a high-dimensional vocabulary space, capturing lexical matches that dense vectors might overlook.
Furthermore, while Knowledge Distillation (KD) is a standard technique for boosting performance by leveraging a powerful "teacher" model, its scaling behavior remains poorly understood. This study addresses these gaps by evaluating the Llama-3 family across three scales (1B, 3B, and 8B) to determine which training strategies and retrieval paradigms yield the best results as models grow.
Methodology
Model Backbone and Modifications
The researchers utilized the Llama-3 family as the foundational backbone. Because decoder-only LLMs typically use causal masking—where a token cannot attend to subsequent tokens—they are inherently disadvantaged for retrieval tasks that require holistic context. To mitigate this, two key modifications were implemented:
- Bidirectional Attention: The causal mask was replaced with a bidirectional mask, allowing every token to attend to every other token in the sequence.
- Masked Next Token Prediction (MNTP): A brief pre-training phase was conducted where the model learned to predict masked tokens using both left and right context, aligning the model better with retrieval requirements.
Retrieval Paradigms
- Dense Retrieval: This approach uses mean pooling of the hidden states to generate a single, dense embedding vector.
- Sparse Retrieval: This approach projects hidden states into the LLM’s vocabulary space (similar to the SPLADE architecture), creating high-dimensional, sparse vectors that prioritize lexical matching.
Training Objectives
The models were fine-tuned using three distinct strategies: Contrastive Loss (CL), Knowledge Distillation (KD) using a Cross-Encoder teacher, and a hybrid approach combining both CL and KD.
Experimental Setup
Models were trained on the MS MARCO passage dataset, which contains approximately 8.8 million documents. Evaluation was conducted across two primary settings:
- In-Domain: MS MARCO Dev set, TREC Deep Learning (DL) 2019, and TREC DL 2020.
- Out-of-Domain (Zero-Shot): The BEIR benchmark, consisting of 13 diverse datasets (e.g., HotpotQA, Climate-Fever) to test the models' ability to generalize to unseen topics.
Key Insights
The Teacher Bottleneck in Knowledge Distillation
A significant finding of this study is the differing scaling behaviors of CL and KD. While CL shows clear scaling benefits—where larger models consistently achieve better performance—KD tends to plateau. The researchers hypothesize a "teacher bottleneck": as the student model (e.g., 8B) grows, it may eventually reach or surpass the capacity of the teacher model. In such cases, the teacher's "soft labels" may become a hindrance rather than a helpful signal, limiting the student's potential.
The Superiority of Sparse Retrieval
Sparse retrieval models consistently outperformed dense models across almost all scales and datasets. This superiority was particularly evident in out-of-domain scenarios, where sparse models maintained a significantly higher performance floor. This suggests that for LLM-based retrievers, the high-dimensional lexical signal provided by sparse representations is a more reliable foundation for scaling and generalization than the semantic focus of dense vectors.
Hybrid Loss and State-of-the-Art Results
The most effective results were achieved by combining CL and KD. This hybrid approach allows the model to benefit from the teacher's guidance at smaller scales while enabling larger models to "outgrow" the teacher's limitations via the contrastive signal.
The flagship model resulting from this research, Lion-SP-8B, achieved new SOTA results:
- BEIR (Out-of-Domain): Achieved an nDCG@10 of 0.552, outperforming previous benchmarks like RepLlama (0.551) and ColBERTv2 (0.499).
- TREC DL 19+20: Outperformed RepLlama by 4.1%.
- Efficiency: Despite its 8B parameter size, the sparse representation allows for rapid retrieval using traditional inverted indexes, avoiding the computational complexity associated with multi-vector models.
Conclusion
This systematic study demonstrates that sparse retrieval is a highly effective and scalable paradigm for LLM-based information retrieval. While dense retrieval remains popular, sparse models offer better robustness and generalization, especially when scaled to larger parameter counts. The findings also highlight the limitations of Knowledge Distillation at scale, suggesting that hybrid training objectives are necessary to fully unlock the potential of large-scale retrievers. Future work will explore the impact of more diverse teacher models and the application of these scaling laws to even larger models exceeding 70B parameters.
Summary updated