Abstract
Generative Retrieval (GR) replaces traditional document ranking with a sequence-to-sequence model that directly generates document identifiers (DocIDs). This paper introduces MERGE, a framework that optimizes DocIDs using multi-level relevance data (e.g., "Exact" vs. "Substitute" matches). By treating queries as semantic anchors and employing a hierarchical optimization strategy, MERGE ensures that semantically similar documents share similar ID prefixes while remaining uniquely identifiable. Experimental results on the ESCI dataset demonstrate that MERGE significantly outperforms existing GR and dense retrieval baselines.
Introduction
Traditional Information Retrieval (IR) relies on keyword matching (sparse retrieval) or dense vector comparisons. Generative Retrieval (GR) simplifies this by training a model to map a query directly to a unique DocID. However, the quality of these DocIDs is critical for model performance. If DocIDs are arbitrary or based solely on document text, the model may fail to capture semantic nuances, leading to the "vocabulary mismatch" problem where identical products with different descriptions receive disparate IDs.
Current methods often treat relevance as a binary state, ignoring the multi-level relevance (e.g., highly relevant vs. partially relevant) common in real-world applications like e-commerce. MERGE addresses this by using queries as a "semantic bridge" to cluster documents based on their actual relevance levels, ensuring the learned identifiers reflect human-perceived relevance.
Methods
MERGE (Multi-lEvel Relevance document identifier learning for Generative rEtrieval) builds upon a Residual Quantization Variational Autoencoder (RQ-VAE). The RQ-VAE represents a document as a hierarchical tuple of codes (e.g., <a_1><b_0><c_2>), where earlier codes represent coarse semantic clusters and later codes provide fine-grained uniqueness.
The framework optimizes ID learning through three novel modules:
- Multi-relevance Query-Document Alignment: This module aligns document representations with queries. It uses the average embedding of the most relevant documents as a proxy for the "ideal" query representation to bridge the gap between short queries and long documents.
- Outer-level Contrastive Learning: This handles binary relevance using an InfoNCE loss to pull all relevant documents closer in the embedding space while pushing irrelevant ones away.
- Inner-level Multi-level Relevance Learning: This module employs a triplet loss to ensure that "Highly Relevant" documents are positioned closer to the query than "Moderately Relevant" ones.
Crucially, MERGE employs a hierarchical optimization strategy: the early layers of the DocID (the prefixes) are trained to capture broad relevance (Outer-level), while the deeper layers are trained to distinguish between specific relevance levels (Inner-level).
Experimental Setup
The researchers evaluated MERGE on the ESCI dataset (English, Spanish, and Japanese versions). Unlike standard benchmarks that mostly provide binary labels, ESCI is an e-commerce dataset from Amazon that categorizes query-product pairs into four levels: Exact (perfect match), Substitute (functional alternative), Complement (related product), and Irrelevant.
Results and Analysis
MERGE achieved state-of-the-art performance across all three languages in the ESCI dataset. On ESCI-English, MERGE achieved a Recall@10 of 6.73 and NDCG@100 of 12.58, significantly outperforming other GR models like RIPOR (5.49 R@10) and NCI (4.22 R@10). Notably, MERGE also outperformed the strong dense retrieval baseline Sentence-T5 in several metrics.
Visualization of the embedding space confirms that MERGE effectively clusters relevant items under the same ID "branches" compared to the vanilla RQ-VAE baseline. Statistical analysis showed that MERGE-generated IDs had much higher overlap for relevant documents in the first two layers, confirming that the model successfully learned to encode relevance into the hierarchical structure of the DocIDs.
Conclusion
While MERGE excels at finding the most relevant documents, its overall coverage (Recall@100) still lags slightly behind some dense retrieval baselines. Additionally, like most GR models, it faces efficiency challenges due to autoregressive decoding. Future work will focus on scaling this multi-level relevance approach to massive web corpora and improving inference speed.
Summary updated