Abstract
Generative Retrieval (GR) has emerged as a promising paradigm for text retrieval, directly generating document identifiers. However, GR models often struggle with coarse-grained training signals that fail to capture the nuanced relevance between documents. We present Distillation Enhanced Generative Retrieval (DGR), a framework that distills fine-grained ranking knowledge from a powerful teacher model into a generative student. By employing a novel distilled RankNet loss with a dynamic margin, DGR enables the student to learn sophisticated ranking patterns without increasing inference latency. Experimental results on Natural Questions, TriviaQA, and MSMARCO demonstrate that DGR achieves state-of-the-art performance, significantly outperforming established dense retrieval methods.
Introduction
Traditional text retrieval typically relies on dual-encoder architectures to map queries and documents into a shared vector space for similarity search. Recently, Generative Retrieval (GR) has introduced a shift by training autoregressive models to generate document identifiers (e.g., Wikipedia titles or numeric IDs) directly. While GR shows potential, it faces a significant "binary vision" challenge: standard training objectives often treat a single ground-truth document as positive and all others as equally negative. This oversimplification ignores the varying degrees of relevance among non-labeled documents and the inherent noise in large-scale datasets.
Methodology: The DGR Framework
To address these limitations, the Distillation Enhanced Generative Retrieval (DGR) framework leverages Knowledge Distillation (KD) to transfer ranking expertise from a high-capacity teacher model to a generative student.
Teacher-Student Setup
The framework utilizes a standard GR model as the student and a sophisticated ranking model (e.g., a cross-encoder) as the teacher. While cross-encoders provide superior ranking accuracy, their high computational cost makes them unsuitable for massive search tasks. DGR uses the teacher to rerank a subset of passages initially retrieved by the student, creating a refined "gold standard" rank list for the student to emulate.
Distilled RankNet Loss
The core innovation of DGR is the distilled RankNet loss. Unlike traditional distillation that matches raw probability scores—which can be unstable across different model architectures—DGR focuses on the relative rank order. The loss function incorporates a dynamic margin: if the teacher determines a significant relevance gap between two documents (indicated by their distance in the rank list), the student is penalized more heavily if it fails to maintain a proportional score separation. This forces the student to learn a more robust internal representation of document relevance.
Inference Efficiency
A key advantage of DGR is that the distillation process occurs exclusively during the training phase. The resulting student model remains a standard autoregressive transformer, preserving the speed and efficiency of generative retrieval during inference. There is zero additional overhead compared to base GR models.
Experimental Evaluation
The researchers evaluated DGR across several benchmark datasets, including Open-Domain QA (Natural Questions and TriviaQA) and Web Search (MSMARCO and TREC Deep Learning Tracks).
Key Results
DGR established new state-of-the-art benchmarks for generative retrieval. On the Natural Questions dataset, Hits@5 improved from 65.8% to 71.4%, surpassing the widely used Dense Passage Retriever (DPR) at 68.3%. Similar gains were observed on TriviaQA and MSMARCO, where MRR@10 saw a substantial relative increase.
Discussion and Insights
The success of DGR highlights several critical insights:
- Rankings as Stable Signals: Relative document order is a more transferable signal for generative models than absolute similarity scores.
- The Power of the Margin: The dynamic margin in the loss function is essential for teaching the model to distinguish between documents with varying levels of relevance.
- Generalizability: The framework is robust to different teacher architectures, performing effectively whether paired with a cross-encoder or a dual-encoder.
Conclusion and Future Work
DGR represents a significant step forward for generative retrieval, proving that these models can outperform traditional dense retrievers when provided with high-quality ranking supervision. Future research will focus on overcoming GPU memory constraints to allow teachers to rerank larger sets of passages, addressing the inherent left-to-right bias of autoregressive generation, and scaling GR to billion-scale corpora.
Summary updated