Curriculum Learning for Dense Retrieval Distillation

Hansi Zeng, Hamed Zamani, Vishwa Vinay

Introduction

In the field of information retrieval, dense retrieval models—typically implemented as dual-encoders—have become the standard for large-scale search due to their ability to process millions of documents in milliseconds. However, these models often exhibit an accuracy gap compared to cross-encoders, which perform deep interaction between queries and documents but are computationally prohibitive for initial retrieval.

To bridge this performance gap, researchers employ Knowledge Distillation (KD), where a high-performance "teacher" (cross-encoder) guides a faster "student" (dense retriever). Despite its potential, distilling ranking knowledge is difficult; the student must learn to order hundreds of documents correctly, often starting from sparse labels. This paper introduces CL-DRD, a framework that applies Curriculum Learning to the distillation process, allowing models to master simple ranking tasks before tackling the complexities of fine-grained document ordering.

The CL-DRD Framework

The core philosophy of CL-DRD is an "easy-to-hard" progression. Rather than forcing the student model to replicate the teacher's entire ranking distribution immediately, the framework introduces complexity iteratively.

Iterative Difficulty Control

In each training iteration, the framework categorizes documents into three distinct groups based on the teacher's ranking:

  1. Group 1 (Pseudo-relevant): The top $K$ documents.
  2. Group 2 (Hard negatives): The subsequent $K'$ documents.
  3. Group 3 (Remaining): The rest of the document corpus.

The curriculum is defined by the value of $K$. In the early stages of training, $K$ is kept small (e.g., $K=5$). This simplifies the task, requiring the student only to distinguish the very best documents from the rest. As training progresses, $K$ is increased (e.g., to $K=30$), forcing the student to learn the much more difficult task of correctly ordering the top-ranked documents among themselves.

Listwise Optimization

Unlike standard distillation methods that attempt to regress the student's scores to match the teacher's exact numerical outputs, CL-DRD utilizes a LambdaRank-inspired listwise loss. This approach focuses on the relative order of documents. By prioritizing the logic of the ranking over specific score values, the student model becomes more robust and generalizes better to unseen queries.

Experimental Evaluation

The authors evaluated CL-DRD using two prominent dense retrieval architectures: TAS-B (a single-vector model) and ColBERTv2 (a multi-vector model). Training was conducted on the MS MARCO Passage Retrieval dataset, with evaluations performed on both the MS MARCO Dev set and the TREC-DL 2019/2020 benchmarks.

Key Results

  • TAS-B + CL-DRD: The framework yielded an 11% improvement in MRR@10 on the MS MARCO Dev set compared to the baseline TAS-B model.
  • ColBERTv2 + CL-DRD: This combination set new competitive benchmarks, outperforming the original ColBERTv2 across nearly all metrics on MS MARCO and TREC-DL.
  • Efficiency Gains: CL-DRD allows smaller student models (such as those based on DistilBERT) to achieve performance levels previously reserved for much larger architectures, without increasing inference-time latency.

Insights and Discussion

A critical finding of the research is the necessity of the "easy-to-hard" progression. The authors conducted an ablation study using a "reverse curriculum" (starting with high $K$ and decreasing it), which resulted in significantly worse performance. This confirms that starting with simpler tasks helps the model avoid poor local optima early in the training process.

Furthermore, the framework leverages the flexibility of cross-encoder teachers. Because the teacher can score any query-document pair, the authors are not limited by the sparse manual labels of the original dataset. The teacher effectively "generates" dense, high-quality labels for any document the student retrieves, providing a richer signal for learning.

Limitations and Future Directions

While effective, CL-DRD introduces additional computational overhead during the training phase, as it requires multiple iterations of re-ranking documents with a cross-encoder. Additionally, the current curriculum relies on a heuristic (the value of $K$) to define difficulty. Future research may explore automated instance selection, where the curriculum adapts dynamically based on the student's real-time performance, potentially further optimizing the distillation process.

Summary updated

BibTeX
@inproceedings{zeng2022curriculum,
  author = {Hansi Zeng and Hamed Zamani and Vishwa Vinay},
  title = {{Curriculum Learning for Dense Retrieval Distillation}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2022},
}
Figure