Generative Retrieval Meets Multi-Graded Relevance

Yubao Tang, Ruqing Zhang, Jiafeng Guo, Maarten de Rijke, Wei Chen, Xueqi Cheng

Abstract

Generative Retrieval (GR) has emerged as a promising paradigm in information retrieval, where models directly generate document identifiers (docids) rather than ranking an external index. However, existing GR research has largely focused on binary relevance, failing to account for the nuanced, multi-graded relevance levels (e.g., "highly relevant" vs. "partially relevant") common in real-world applications. This paper introduces GR² (GRaded Generative Retrieval), a framework designed to bridge this gap. By utilizing a novel regularized fusion approach for docid design and a Multi-Graded Constrained Contrastive (MGCC) loss, GR² achieves significant performance gains over state-of-the-art generative and traditional retrieval baselines.

Introduction

Traditional Information Retrieval (IR) systems typically rely on an "index-and-retrieve" pipeline. In contrast, Generative Retrieval (GR) utilizes Seq2Seq Transformers to encode an entire corpus into the model's parameters. Given a query, the model generates the identifier of a relevant document. While GR has shown great potential, it has historically struggled with multi-graded relevance. Most GR models are trained using Maximum Likelihood Estimation (MLE) on binary labels, treating all relevant documents as equally important.

In practice, relevance is a spectrum. A document that perfectly answers a query should be prioritized over one that is only tangentially related. Traditional Learning to Rank (LTR) systems have long optimized for this using metrics like Normalized Discounted Cumulative Gain (nDCG), but incorporating these nuances into the generative framework requires a fundamental shift in how docids are designed and how the model is trained.

The GR² Framework

1. Docid Design: Regularized Fusion

A critical component of GR is the document identifier. To be effective, docids must be semantically meaningful (reflecting the document's content) and distinct (ensuring uniqueness to avoid collisions). GR² addresses this through a dual-module "Regularized Fusion" strategy:

  • Docid Generation (QG): This module generates pseudo-queries that serve as the base for the docid.
  • Autoencoder (AE): This module ensures the docid captures the latent semantic essence of the document.

To prevent different documents from sharing the same identifier—a common failure point in GR—the authors introduce two regularization terms. The first aligns the docid representation with the document’s semantic space, while the second explicitly penalizes similarity between different docids, "pushing" them apart in the latent space to ensure uniqueness.

2. Multi-Graded Constrained Contrastive (MGCC) Loss

Standard GR models use MLE to predict docid strings. GR² shifts this to a contrastive embedding space. The MGCC Loss introduces two key mechanisms:

  • Grade Penalty: The model pulls query representations toward relevant docids with a force proportional to the relevance grade. Higher-grade (more relevant) documents result in a tighter cluster around the query.
  • Grade Constraint: This hierarchical constraint ensures that the loss associated with a highly relevant pair is strictly lower than or equal to that of a less relevant pair. This forces the model to respect the relative ranking order of documents during training.

Experimental Evaluation

Datasets and Pre-training

The authors evaluated GR² across several benchmarks:

  • Multi-Graded Benchmarks: Gov2 (500K subset), ClueWeb09-B (500K subset), and Robust04.
  • Binary Benchmarks: MS MARCO (500K subset) and Natural Questions (NQ 320K).

To enhance the model's understanding of relevance grades, the authors developed a massive synthetic dataset using English Wikipedia. Relevance grades were derived from the article structure; for instance, the main article text was assigned the highest grade, while "See Also" links were assigned lower grades. Pre-training on this synthetic data proved highly effective for downstream tasks with human-labeled grades.

Key Results

GR² demonstrated superior performance across multiple metrics:

  • State-of-the-Art Performance: On the Gov 500K dataset, GR² achieved a 14% relative improvement in P@20 compared to RIPOR, the previous leading GR model.
  • Robustness in Low-Resource Settings: In scenarios with limited training queries, GR² outperformed the traditional BM25 algorithm, which is often difficult for neural models to beat without extensive data.
  • Architectural Efficiency: Compared to dense retrieval models like ANCE, GR² is significantly more efficient, requiring 16.7x less memory. This is because GR² eliminates the need for massive document vector indices, storing the "index" within the model weights and a compact prefix trie.

Discussion and Future Work

GR² represents a significant step forward in making generative retrieval viable for complex ranking tasks. The transition from MLE-based string prediction to a grade-aware contrastive space allows for a more geometric and nuanced representation of relevance.

However, challenges remain. Currently, docids are generated in a static pre-processing step. Future research could explore the joint optimization of docid generation and retrieval. Additionally, while the MGCC loss uses fixed penalties for different grades, "soft" assignments—where the model learns the optimal distances between relevance levels—could further refine ranking accuracy. Finally, scaling these generative techniques to the billions of documents found on the open web remains the ultimate frontier for the field.

Conclusion

By introducing multi-graded relevance to the generative retrieval paradigm, GR² addresses a major limitation of current models. Its combination of unique docid design and a hierarchical contrastive loss allows it to outperform both existing GR models and traditional baselines, all while maintaining a significantly smaller memory footprint.

Summary updated

BibTeX
@inproceedings{tang2024generative,
  author = {Yubao Tang and Ruqing Zhang and Jiafeng Guo and Maarten de Rijke and Wei Chen and Xueqi Cheng},
  title = {{Generative Retrieval Meets Multi-Graded Relevance}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=2xTkeyJFJb},
}
Figure