Weighted KL-Divergence for Document Ranking Model Refinement
Yingrui Yang, Yifan Qiao, Shanxiu He, Tao Yang
TL;DR
This work addresses improving knowledge-distillation-based ranking by introducing a contrastively-weighted KL-divergence (CKL) loss that prioritizes separation of positive and negative documents. CKL reweights KL terms using $(1-q_j)^{\gamma}$ for positives and $(q_i)^{\gamma-\beta_i}$ for negatives with a rank-based bias $\beta_i$, enabling the student model to follow the teacher more when the teacher is better and less when not. The approach yields state-of-the-art or competitive gains on MS MARCO and BEIR across two-stage retrieval pipelines and dense retrievers, demonstrating practical improvements for document ranking. CKL's simple, principled loss modification transfers effectively to both sparse and dense retrieval settings with minimal architectural changes. Overall, CKL offers a robust, scalable enhancement to distillation-based ranking methods.
Abstract
Transformer-based retrieval and reranking models for text document search are often refined through knowledge distillation together with contrastive learning. A tight distribution matching between the teacher and student models can be hard as over-calibration may degrade training effectiveness when a teacher does not perform well. This paper contrastively reweights KL divergence terms to prioritize the alignment between a student and a teacher model for proper separation of positive and negative documents. This paper analyzes and evaluates the proposed loss function on the MS MARCO and BEIR datasets to demonstrate its effectiveness in improving the relevance of tested student models.
