TL;DR
This paper investigates the scalability of generative retrieval, a method that uses a single sequence-to-sequence model to find relevant documents without external indices. They scale up to 8.8 million passages, finding that synthetic query generation is crucial for performance, while many proposed architectural improvements don't scale well with compute cost.
What Problem Does This Paper Address?
Traditional information retrieval (IR) systems often rely on complex indexing structures and dual-encoder models that map queries and documents to a shared embedding space. Generative retrieval offers a more streamlined approach, using a single Transformer model to directly generate document identifiers from queries. However, previous work has primarily evaluated these models on relatively small document collections (around 100,000 documents). This paper addresses the critical question of whether generative retrieval can effectively scale to much larger corpora, like the widely used MS MARCO dataset with 8.8 million passages, and how different techniques perform at this scale.
Methods
The authors build upon the Differentiable Search Index (DSI) framework, which treats retrieval as a sequence-to-sequence task. They explore various design choices, including:
- Document Representations: How documents are represented as input for the model during indexing. They compare using the first 64 tokens (FirstP) versus multiple randomly selected chunks (Document As Query - DaQ).
- Synthetic Query Generation: A key technique where queries are generated for documents during training to bridge the gap between the indexing and retrieval tasks. This is contrasted with using only "Labeled Queries" (actual queries from the dataset).
- Document Identifiers: Different ways to represent document identifiers (docids), such as Atomic IDs (each docid as a single token), Naive IDs (treating the original docid string as text), and Semantic IDs (hierarchically clustered representations).
- Model Architecture Additions: They also evaluate techniques like Prefix-Aware Weight-Adaptive Decoder (PAWA), constrained decoding, and consistency loss, which were proposed in prior work.
Datasets
The experiments were conducted on the following datasets:
- Natural Questions (NQ100k): A subset of the Natural Questions dataset.
- TriviaQA: A dataset for question answering.
- MS MARCO Passage Ranking: The full dataset, which was also subsampled into:
- MSMarco100k: 100,000 passages.
- MSMarco1M: 1 million passages.
- MSMarcoFULL: The entire 8.8 million passages.
Key Insights and Ideas
- Synthetic Queries are King: The most critical factor for generative retrieval performance, especially at scale, is the use of synthetic queries for training. This technique significantly outperforms using only labeled queries.
- Compute Cost Matters: Many proposed architectural improvements (like PAWA) that aim to boost performance on small corpora become less effective or even detrimental when considering the computational cost and scaling to larger datasets.
- Naive Scaling Has Limits: Simply increasing model parameters (e.g., using larger T5 models) is necessary for better performance, but there's a point of diminishing returns. Surprisingly, scaling to an 11B parameter model (T5-XXL) did not improve performance over a 3B parameter model (T5-XL) for sequential IDs.
- Atomic IDs: A Trade-off: Atomic IDs offer high quality and efficiency on smaller scales but incur significant parameter costs. While they perform well, their advantage diminishes compared to scaled-up naive IDs on very large corpora.
- Query Distribution Gap: Synthetic queries help bridge the gap between the distribution of queries seen during training and those encountered during evaluation.
Key Results
- On small datasets (NQ100k, TriviaQA), the authors achieved state-of-the-art results with their best configuration, outperforming existing methods.
- For the full MS MARCO dataset (8.8M passages), the best performing approach used synthetic queries with Naive IDs, scaled to a T5-XL (3B) model, achieving 26.7 MRR@10.
- Scaling to T5-XXL (11B) with Naive IDs resulted in 24.3 MRR@10, showing a performance drop.
- Atomic IDs, while efficient on smaller scales, required significantly more parameters (7B for T5-Base with Atomic IDs vs. 220M for T5-Base with Naive IDs) to achieve comparable or slightly worse results on MSMarcoFULL.
- The effectiveness of synthetic queries was demonstrated by a 2-3x improvement on MS MARCO compared to using only labeled queries.
Limitations and Future Work
- Limited Scope of Techniques: The study focused on a subset of generative retrieval techniques and did not exhaustively cover all recent advancements, particularly in identifier design.
- Incomplete Scaling Experiments: Due to resource constraints, not all ablation scenarios were scaled to larger model sizes.
- Parameterization: The paper used default T5 parameterizations, suggesting that optimized scaling recipes might yield different results.
- Future Directions: The authors highlight the need for research into how to best leverage large language models and scaling for generative retrieval, developing optimal scaling recipes, and designing architectures that can bridge the trade-offs between Atomic and sequential IDs. They also suggest further investigation into the maximum corpus size for which generative retrieval can achieve state-of-the-art performance.
Summary updated