mlsanityData to 14 Oct 2026

Distillation versus Contrastive Learning: How to Train Your Rerankers

arXiv 2507.08336 ↗First posted 11 Jul 2025cs.CL cs.IRcited by 6

On the map: Knowledge distillation → Knowledge distillation for LLMs

Abstract (arXiv)

Training effective text rerankers is crucial for information retrieval. Two strategies are widely used: contrastive learning (optimizing directly on ground-truth labels) and knowledge distillation (transferring knowledge from a larger reranker). While both have been studied extensively, a clear comparison of their effectiveness for training cross-encoder rerankers under practical conditions is needed. This paper empirically compares these strategies by training rerankers of different sizes (0.5B, 1.5B, 3B, 7B) and architectures (Transformer, Recurrent) using both methods on the same data, with a strong contrastive learning model acting as the distillation teacher. Our results show that knowledge distillation generally yields better in-domain and out-of-domain ranking performance than contrastive learning when distilling from a more performant teacher model. This finding is consistent across student model sizes and architectures. However, distilling from a teacher of the same capacity does not provide the same advantage, particularly for out-of-domain tasks. These findings offer practical guidance for choosing a training strategy based on available teacher models. We recommend using knowledge distillation to train smaller rerankers if a larger, more performant teacher is accessible; in its absence, contrastive learning remains a robust baseline. Our code implementation is made available to facilitate reproducbility.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Knowledge distillation for LLMs, one of 12 directions in Knowledge distillation. Builds on 69 of its 98 references that are in the map. First posted on arXiv 11 Jul 2025.

Builds on

69 of 98 references.

Closest ancestors · 2

Same direction, newest first

  1. 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes23 Jun
  2. 2023Distilling Robustness into Natural Language Inference Models with Domain-Targeted Augmentation22 May

Other references · 67

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2023GPT-4 Technical Reportcited by 18,396
  4. 2024The Llama 3 Herd of Modelscited by 14,715
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  6. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  8. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  9. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  10. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  11. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  12. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
38 more
  1. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
  2. 2020Knowledge Distillation: A Surveycited by 1,603
  3. 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,375
  4. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  5. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,261
  6. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
  7. 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
  8. 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
  9. 2016Sequence-Level Knowledge Distillationcited by 801
  10. 2019Passage Re-ranking with BERTcited by 645
  11. 2020Fact or Fiction: Verifying Scientific Claimscited by 554
  12. 2021ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interactioncited by 476
  13. 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 472
  14. 2020SPECTER: Document-level Representation Learning using Citation-informed Transformerscited by 430
  15. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 407
  16. 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 376
  17. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 361
  18. 2023Large Language Models for Information Retrieval: A Surveycited by 331
  19. 2020Overview of the TREC 2019 deep learning trackcited by 286
  20. 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 272
  21. 2020Pretrained Transformers for Text Ranking: BERT and Beyondcited by 267
  22. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 242
  23. 2024Generative Representational Instruction Tuningcited by 233
  24. 2019Document Expansion by Query Predictioncited by 231
  25. 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
  26. 2021Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrievalcited by 203
  27. 2020CLIMATE-FEVER: A Dataset for Verification of Real-World Climate Claimscited by 196
  28. 2021Overview of the TREC 2020 deep learning trackcited by 196
  29. 2019Poly-encoders: Transformer Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoringcited by 165
  30. 2020Improving Efficient Neural Ranking Models with Cross-Architecture Knowledge Distillationcited by 145
  31. 2020Regularizing Class-wise Predictions via Self-knowledge Distillationcited by 144
  32. 2021SPLADE v2: Sparse Lexical and Expansion Model for Information Retrievalcited by 127
  33. 2022RankT5: Fine-Tuning T5 for Text Ranking with Ranking Lossescited by 115
  34. 2022SimLM: Pre-training with Representation Bottleneck for Dense Passage Retrievalcited by 90
  35. 2020Mind the Trade-off: Debiasing NLU Models without Degrading the In-distribution Performancecited by 85
  36. 2024OpenScholar: Synthesizing Scientific Literature with Retrieval-augmented LMscited by 72
  37. 2021Rethink Training of BERT Rerankers in Multi-Stage Retrieval Pipelinecited by 65
  38. 2024Arctic-Embed 2.0: Multilingual Retrieval Without Compromisecited by 58

50 most cited of 67 All 67 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 4.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2021DistilCSE: Effective Knowledge Distillation For Contrastive Sentence Embeddings
  2. 2023DistillCSE: Distilled Contrastive Learning for Sentence Embeddings
  3. 2024Contrastive Learning in Distilled Models
  4. 2025Supervised Fine-Tuning or Contrastive Learning? Towards Better Multimodal LLM Reranking
  5. 2023Accurate Knowledge Distillation with n-best Reranking
  6. 2024On the Surprising Efficacy of Distillation as an Alternative to Pre-Training Small Models
  7. 2024Intermediate Distillation: Data-Efficient Distillation from Black-Box LLMs for Information Retrieval
  8. 2025Rethinking Knowledge in Distillation: An In-context Sample Retrieval Perspective