Reproduce “Best Practices for Distilling Large Language Models into BERT for Web Search Ranking” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Dezhi Ye, Junwei Hu, Jiabin Fan, Bowen Tian, Jie Liu, Haijin Liang, Jin Ma

The DisRanker framework, developed by Tencent, effectively transfers the ranking capabilities of a 7-billion parameter LLM to a lightweight 6-layer BERT model, enabling a 10x reduction in inference time while preserving ranking quality. This approach led to improvements in online user engagement metrics like PageCTR (+0.47%) and UserCTR (+0.58%) in A/B tests within a commercial search engine.

Key insights

  • Knowledge distillation offers a viable path to transfer powerful LLM ranking capabilities to smaller, production-ready models.
  • Domain-Continued Pre-Training of the LLM teacher using large-scale clickstream data improves its understanding of search relevance, enhancing distillation efficacy.
  • A hybrid loss combining point-wise and margin-wise Mean Squared Error is crucial for effectively transferring both absolute relevance scores and relative ranking preferences during distillation.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.