Descriptive and Discriminative Document Identifiers for Generative Retrieval

Jiehan Cheng, Zhicheng Dou, Yutao Zhu, Xiaoxi Li

Introduction

Generative Retrieval (GR) represents a paradigm shift in information retrieval. Unlike traditional "search and rank" systems that rely on vector similarity between queries and documents, GR models directly generate a unique identifier (DocID) for the relevant document. This approach simplifies the retrieval pipeline but introduces a critical challenge: the "DocID bottleneck."

Existing DocID strategies often fall short. Arbitrary numeric IDs lack semantic meaning, making them difficult for models to learn. Conversely, semantic IDs like titles or URLs may lack uniqueness, failing to distinguish between highly similar documents. This paper, presented at AAAI-25, introduces D2Gen, a framework designed to create DocIDs that are both descriptive (capturing core meaning) and discriminative (uniquely identifying a document within its specific corpus).

Methodology: The D2Gen Pipeline

The authors propose a three-stage iterative process to refine document identifiers and optimize retrieval performance.

The D2Gen training pipeline and the NR-IDR method for DocID selection.

1. Document Understanding

The process begins with a T5-based model trained via contrastive learning. This stage ensures the encoder develops a deep semantic understanding of the documents. The resulting internal attention scores serve as a proxy for the importance of specific text segments.

2. DocID Selection (NR-IDR)

The core innovation is the N-gram Relevance-Inverse Document Relevance (NR-IDR) method. Inspired by TF-IDF, NR-IDR selects n-grams (sequences of 1–3 words) that exhibit high relevance to the target document (based on attention scores) but low relevance to the rest of the corpus. This ensures that the selected DocID acts as a unique "fingerprint" that is also a meaningful summary.

3. Retrieval Learning

The model is then trained to map queries to these optimized n-gram DocIDs. To enhance robustness, the authors employ a data augmentation strategy involving the generation and filtering of synthetic queries. Crucially, this entire pipeline is iterative: as retrieval improves, the model's document understanding deepens, leading to even more effective DocID selection in subsequent rounds.

Experimental Evaluation

The D2Gen framework was evaluated on two primary benchmarks:

  • MS300k: A subset of MS MARCO featuring ~324,000 noisy, unstructured web documents.
  • NQ320k: A version of the Natural Questions dataset based on structured Wikipedia content.

Key Results

D2Gen achieved state-of-the-art performance across both datasets, consistently outperforming sparse, dense, and other generative retrieval baselines.

Performance comparison of D2Gen against state-of-the-art retrieval models on MS300K and NQ320K.

On the challenging MS300k dataset, D2Gen reached a Recall@1 of 0.513, a 4.5% improvement over the previous leading generative model, NOVO. The model showed a particular advantage in high-precision scenarios (top-1 retrieval). Furthermore, ablation studies demonstrated that the D2-DocIDs themselves are superior representations; replacing the native identifiers in other models (e.g., Ultron or SE-DSI) with D2-DocIDs led to consistent performance gains.

Discussion and Insights

The success of D2Gen highlights the necessity of "discriminative" identifiers. A DocID's effectiveness is not absolute; it is relative to the competition within the corpus. By using n-grams as a middle ground between abstract numbers and redundant titles, D2Gen leverages pre-trained linguistic knowledge while maintaining high specificity. The use of transformer attention scores as a relevance signal effectively bridges modern deep learning with classical statistical NLP techniques.

Conclusion

D2Gen addresses the DocID bottleneck by ensuring identifiers are both semantically rich and corpus-aware. While the iterative training process introduces additional computational requirements, the significant gains in retrieval accuracy—especially on noisy web data—mark a substantial step forward for generative retrieval. Future research will explore the integration of D2Gen into Retrieval-Augmented Generation (RAG) systems, where descriptive DocIDs could provide valuable context for downstream generators.

Summary updated

BibTeX
@inproceedings{cheng2025descriptive,
  author = {Jiehan Cheng and Zhicheng Dou and Yutao Zhu and Xiaoxi Li},
  title = {{Descriptive and Discriminative Document Identifiers for Generative Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i11.33253},
}
Figure