mlsanityData to 7 Oct 2026

Best Practices for Distilling Large Language Models into BERT for Web Search Ranking

arXiv 2411.04539 ↗First posted 7 Nov 2024cs.IR cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

Recent studies have highlighted the significant potential of Large Language Models (LLMs) as zero-shot relevance rankers. These methods predominantly utilize prompt learning to assess the relevance between queries and documents by generating a ranked list of potential documents. Despite their promise, the substantial costs associated with LLMs pose a significant challenge for their direct implementation in commercial search systems. To overcome this barrier and fully exploit the capabilities of LLMs for text ranking, we explore techniques to transfer the ranking expertise of LLMs to a more compact model similar to BERT, using a ranking loss to enable the deployment of less resource-intensive models. Specifically, we enhance the training of LLMs through Continued Pre-Training, taking the query as input and the clicked title and summary as output. We then proceed with supervised fine-tuning of the LLM using a rank loss, assigning the final token as a representative of the entire sentence. Given the inherent characteristics of autoregressive language models, only the final token </s> can encapsulate all preceding tokens. Additionally, we introduce a hybrid point-wise and margin MSE loss to transfer the ranking knowledge from LLMs to smaller models like BERT. This method creates a viable solution for environments with strict resource constraints. Both offline and online evaluations have confirmed the efficacy of our approach, and our model has been successfully integrated into a commercial web search engine as of February 2024.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 22 of its 33 references that are in the map. First posted on arXiv 7 Nov 2024.

Builds on

22 of 33 references.

References · 22

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 946
  5. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
  6. 2023Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agentscited by 356
  7. 2023Large Language Models are Effective Text Rankers with Pairwise Ranking Promptingcited by 302
  8. 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 271
  9. 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
  10. 2022Improving Passage Retrieval with Zero-Shot Question Generationcited by 164
  11. 2020Improving Efficient Neural Ranking Models with Cross-Architecture Knowledge Distillationcited by 143
  12. 2023Continual Pre-Training of Large Language Models: How to (re)warm your model?cited by 135
10 more
  1. 2022RankT5: Fine-Tuning T5 for Text Ranking with Ranking Lossescited by 114
  2. 2022From Distillation to Hard Negative Sampling: Making Sparse Neural IR Models More Effectivecited by 98
  3. 2018Ranking Distillation: Learning Compact Ranking Models With High Performance for Recommender Systemcited by 60
  4. 2022Questions Are All You Need to Train a Dense Passage Retrievercited by 47
  5. 2021Pre-trained Language Model for Web-scale Retrieval in Baidu Searchcited by 31
  6. 2023Instruction Distillation Makes Large Language Models Efficient Zero-shot Rankerscited by 19
  7. 2020Understanding BERT Rankers Under Distillationcited by 15
  8. 2022Metric-guided Distillation: Distilling Knowledge from the Metric to Ranker and Retriever for Generative Commonsense Reasoningcited by 8
  9. 2022PILE: Pairwise Iterative Logits Ensemble for Multi-Teacher Labeled Distillationcited by 3
  10. 2021Improving Neural Ranking via Lossless Knowledge Distillationcited by 2

Built on by

Cited by year (2026 to 7 Oct)

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

3 papers.