Distilling Dense Representations for Ranking using Tightly-Coupled Teachers

Sheng-Chieh Lin, Jheng-Hong Yang, Jimmy LinarXiv 2020

Abstract

This paper introduces TCT-ColBERT, a method to bridge the gap between slow, high-accuracy ranking models and fast, lower-accuracy retrieval models. By distilling the knowledge of a complex "late interaction" teacher (ColBERT) into a simpler dot-product bi-encoder student through tight coupling during training, the authors achieve state-of-the-art performance with significant efficiency gains.

Introduction

Modern Information Retrieval (IR) faces a persistent trade-off between efficiency and effectiveness. Cross-encoders, such as BERT-based rerankers, offer high accuracy by modeling deep interactions between query and document tokens but suffer from high computational costs, limiting them to reranking small candidate sets. Conversely, bi-encoders are fast and support millisecond-scale retrieval via Approximate Nearest Neighbor (ANN) search but often lack the nuanced interaction modeling of cross-encoders. ColBERT attempted a middle ground with "late interaction," but its storage requirements and latency remain higher than simple dot-product models. TCT-ColBERT aims to provide the best of both worlds: the speed of a bi-encoder with the ranking power of ColBERT.

Methods

The core innovation is Knowledge Distillation (KD) using a "tightly-coupled" teacher-student framework.

Overview of the TCT-ColBERT distillation process, comparing the teacher's MaxSim operator with the student's dot product.

The teacher model is ColBERT, which utilizes a "MaxSim" operator to sum maximum similarities between query and document token embeddings. The student is a standard BERT-base bi-encoder that employs average pooling to generate single-vector representations, with relevance calculated via a simple dot product. Unlike traditional static distillation, this approach interleaves the teacher's inference directly into the training loop. As the student processes a batch, the teacher dynamically evaluates the same pairs, including in-batch negatives, providing a richer training signal.

Evaluation and Results

The models were evaluated on the MS MARCO Passage Ranking dataset and the TREC 2019 Deep Learning Track.

Performance and latency comparison of TCT-ColBERT against various retrieval baselines on MS MARCO and TREC 2019 DL.

TCT-ColBERT demonstrates significant improvements in both speed and storage. It is approximately 4x faster than the original ColBERT and 30x faster than a BERT-large cross-encoder. By storing only one vector per document instead of one per token, storage needs are drastically reduced. On the MS MARCO Dev set, a hybrid model combining TCT-ColBERT with doc2query-T5 achieved an MRR@10 of 0.364, nearly matching the 0.365 score of the much slower BERT-large cross-encoder.

Discussion and Key Insights

The success of TCT-ColBERT highlights that the complex multi-vector interactions of MaxSim can be effectively compressed into a single-vector dot product. Tight coupling proves essential, as it allows the student to learn from dynamic negatives without the expensive index refreshes required by methods like ANCE. Furthermore, the synergy between dense and sparse signals is evident; adding sparse signals (enhanced by doc2query-T5) compensates for the dense model's weaknesses in exact keyword matching.

Limitations

The primary constraint of this framework is teacher efficiency; since the teacher is run during every training step, extremely heavy cross-encoders may be impractical. Future work could explore more advanced sampling strategies for negatives or joint training of the sparse and dense components.

Summary updated

BibTeX
@misc{lin2020distilling,
  author = {Sheng-Chieh Lin and Jheng-Hong Yang and Jimmy Lin},
  title = {{Distilling Dense Representations for Ranking using Tightly-Coupled Teachers}},
  year = {2020},
  eprint = {2010.11386},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.11386},
}
Figure