Abstract
Dense retrieval models have set new benchmarks in information retrieval but often suffer from high computational costs due to their large parameter counts. Knowledge Distillation (KD) offers a solution by training smaller student models to mimic larger teachers. However, traditional feature-based KD is often constrained by architectural similarities between the teacher and student. This paper introduces LEAD (Liberal Feature-based Distillation), a framework that aligns similarity distributions of intermediate layers rather than raw hidden states. This "liberal" approach allows for cross-architecture distillation without requiring shared tokenizers or hidden dimensions. Experimental results on MS MARCO and TREC benchmarks demonstrate that LEAD significantly outperforms existing baselines, enabling efficient models to achieve state-of-the-art performance.
Introduction
In modern Information Retrieval (IR), dense retrieval—representing queries and documents as high-dimensional vectors—has become the standard for achieving high accuracy. Despite their effectiveness, the deployment of these massive models in real-world, high-traffic environments is limited by latency and resource constraints.
Knowledge Distillation (KD) is typically employed to compress these models. Existing KD techniques generally fall into two categories: response-based KD, which focuses on final outputs, and feature-based KD, which leverages internal representations. While feature-based KD provides richer signals, it often imposes strict architectural constraints, requiring the student to mirror the teacher's internal structure. LEAD addresses this "compatibility nightmare" by focusing on the relationships between data points rather than the specific coordinate values of hidden vectors.
Methods
The LEAD framework introduces several innovations to facilitate flexible and effective knowledge transfer.
Liberal Layer Feature Alignment
The core of LEAD is the alignment of similarity distributions. Instead of forcing a student's hidden vector to match a teacher's, LEAD calculates similarity scores between queries and a pool of passages at various intermediate layers. By forcing the student’s internal probability distributions to match the teacher’s, the framework becomes agnostic to internal dimensions and tokenization schemes.
Random Layer Selection and Re-weighting
To capture a diverse range of semantic information, LEAD randomly selects $K$ layers from both models during training. This prevents the student from being over-fitted to a specific rigid mapping. Furthermore, LEAD employs a re-weighting mechanism that prioritizes teacher layers whose internal distributions correlate most strongly with ground-truth labels, ensuring the student learns from the most informative signals.
Joint Training
LEAD utilizes a bi-directional joint training approach. Unlike standard KD where the teacher is frozen, both models are optimized simultaneously. This allows the teacher and student to complement each other, often leading to performance gains for both models.
Experimental Results
The authors evaluated LEAD on industry-standard benchmarks, including MS MARCO (Passage and Document) and the TREC 2019/2020 Deep Learning tracks.
As shown in the results, LEAD consistently outperforms state-of-the-art baselines. On the MS MARCO Passage Ranking task, a 12-layer student trained with LEAD achieved an MRR@10 of 40.4, surpassing strong models like RocketQA v2 and ERNIE-Search. Similarly, on the MS MARCO Document task, LEAD reached an MRR@10 of 41.3.
A key finding is the framework's efficiency: a 6-layer model trained via LEAD can achieve performance comparable to much larger 12-layer models. Additionally, LEAD demonstrated success in cross-architecture distillation, such as transferring knowledge from a complex ColBERT teacher to a simple Dual Encoder student—a task traditionally considered difficult due to differing internal computations.
Conclusion and Future Work
LEAD provides a robust and flexible framework for dense retrieval distillation, breaking the architectural barriers that previously limited feature-based KD. By focusing on similarity distributions and employing random layer selection, LEAD enables the creation of highly efficient yet powerful retrieval models.
Future research directions include exploring multi-teacher distillation (e.g., combining signals from Cross-Encoders and ColBERT) and reducing the computational overhead associated with joint training.
Summary updated