Introduction
In the landscape of Information Retrieval (IR), two primary paradigms exist: Dense Retrieval (DR), which relies on vector embeddings to find matches, and the emerging Generative Retrieval (GR). GR reformulates retrieval by training a model to "index" a corpus, learning to generate a unique Document Identifier (docid) for every document. When presented with a user query, the model directly generates the docid of the most relevant document, enabling end-to-end optimization.
Despite its potential, GR suffers from a critical limitation: generalization. Most GR models overfit to specific training datasets and struggle significantly in zero-shot scenarios or when faced with heterogeneous document formats (like code or tables). To bridge this gap, researchers introduce ZeroGR, a novel framework designed to make generative retrieval as flexible and scalable as traditional methods without requiring task-specific training data.
The ZeroGR Framework
To enable zero-shot generalization, ZeroGR introduces three core components that rethink how documents are indexed and retrieved.
- Unified DocID Representation: Instead of relying on arbitrary numeric IDs or simple titles, ZeroGR utilizes a model-based generator to create short, keyword-rich sentences (typically 6–8 words) that capture the semantic essence of a document. This unified approach allows the model to handle diverse data types—including text, tables, and code—in a single, semantically meaningful format.
- Instructed Corpus Indexing: To effectively "index" a document into the model's parameters, ZeroGR employs an instruction-tuned query generator. This generator takes a document and a natural language task instruction (e.g., "Find a technical question this code answers") to produce diverse pseudo-queries. The retrieval model is subsequently trained to map these varied queries to the document's semantic docid.
- Reverse-Annealed DocID Generation: Standard decoding techniques, such as beam search, often suffer from "recall collapse," where the model repeatedly selects the same few high-probability documents. ZeroGR mitigates this using a novel temperature-scheduling strategy called reverse annealing. It begins with a low temperature (prioritizing high precision) for the top results and gradually increases the temperature (boosting diversity and recall) as it generates the remainder of the ranked list.
Datasets and Key Insights
Alongside the framework, the authors introduce OpenInstIR, currently the largest and most diverse open-source instructed retrieval dataset. It comprises 41 million query-document pairs spanning 69 tasks and 6 domains (Academic, Code, Finance, Legal, Medical, Web).
A critical insight from the development of ZeroGR is that task diversity outweighs data volume. Increasing the number of distinct tasks the model encounters during training is significantly more effective for zero-shot generalization than merely scaling up examples for a single task. As shown in the evaluations, incorporating diverse datasets like OpenInstIR not only increases the diversity of query lengths but also reduces docid conflict rates and substantially boosts retrieval accuracy. Furthermore, shifting from structured docids (like hierarchical clusters) to semantic, keyword-rich docids allows the model to better leverage the pre-trained knowledge inherent in Large Language Models (LLMs).
Key Results
ZeroGR establishes a new state-of-the-art for zero-shot generative retrieval.
- State-of-the-Art Performance: The ZeroGR-3B model achieved top-tier results among GR methods on the standard BEIR benchmark.
- Competitive with Dense Retrieval: On the more recent and diverse MAIR (Massive Augmented Information Retrieval) benchmark, ZeroGR achieved an average Acc@1 of 41.1. This significantly outperforms traditional sparse methods like BM25 (36.1) and performs competitively with industry-leading dense models like OpenAI-Embedding-v3-Small.
- Scaling Laws: The framework exhibits clear scaling trends, with performance consistently improving as both model size (tested up to 3 billion parameters) and the number of training tasks increase.
Limitations and Future Work
While ZeroGR marks a significant step forward, challenges remain. The current evaluation primarily focuses on moderately sized corpora. Scaling generative retrieval to massive collections (e.g., millions of documents) is still constrained by the memory capacity of model parameters. Additionally, unlike dense retrieval which only requires computing embeddings, GR necessitates a "one-time" fine-tuning phase to index a new corpus. Although ZeroGR streamlines this process, it remains computationally heavier than standard vectorization. Future work will likely focus on scaling ZeroGR to larger backbone LLMs and further optimizing the indexing overhead.
Summary updated