Abstract
Generative retrieval seeks to replace traditional search index data structures with a single large-scale neural network, offering the potential for improved efficiency and seamless integration with generative large language models. As an end-to-end paradigm, generative retrieval adopts a learned differentiable search index to conduct retrieval by directly generating document identifiers through corpus-specific constrained decoding. The generalization capabilities of generative retrieval on out-of-distribution corpora have gathered significant attention. In this paper, we examine the inherent limitations of constrained auto-regressive generation from two essential perspectives: constraints and beam search. We begin with the Bayes-optimal setting where the generative retrieval model exactly captures the underlying relevance distribution of all possible documents. Then we apply the model to specific corpora by simply adding corpus-specific constraints. Our main findings are two-fold: (i) For the effect of constraints, we derive a lower bound of the error, in terms of the KL divergence between the ground-truth and the model-predicted step-wise marginal distributions. (ii) For the beam search algorithm used during generation, we reveal that the usage of marginal distributions may not be an ideal approach. This paper aims to improve our theoretical understanding of the generalization capabilities of the auto-regressive decoding retrieval paradigm, laying a foundation for its limitations and inspiring future advancements toward more robust and generalizable generative retrieval.
Introduction
Generative Retrieval (GR) represents a radical shift in Information Retrieval. Instead of the traditional "index-and-retrieve" workflow—where a query is matched against a pre-computed data structure—GR models (such as T5 or BART) are trained to directly "generate" a document identifier (docID) for a given query. While this paradigm offers seamless integration with Large Language Models (LLMs), it relies heavily on two mechanisms during inference: constrained decoding (ensuring the model only generates valid docIDs) and beam search (a heuristic to find the most likely sequences).
This paper investigates why GR models often struggle to generalize to "out-of-distribution" corpora. We provide a rigorous theoretical and empirical analysis showing that the very mechanisms used to ensure valid results actually sabotage the model's accuracy through a phenomenon we call "future blindness."
Theoretical Framework: The Impact of Constraints
To isolate the effects of the decoding process, we begin with a Bayes-Optimal Analysis. We assume an "ideal" model that perfectly captures the relevance distribution of all possible documents. We then analyze what happens when corpus-specific constraints are applied to this ideal model at inference time.
The "Future Blindness" Trap
When a GR model generates the first token of a docID, it typically relies on step-wise marginal distributions. However, at the start of the sequence, the model is "blind" to which tokens will be legally available several steps down the line. This lack of foresight creates a mathematical mismatch between the model's predictions and the actual ground-truth relevance of the documents.
We derive a lower bound for the error introduced by these constraints, measured via Kullback–Leibler (KL) divergence. Our findings show that this error is proportional to the degree of "concentration" in the underlying relevance distribution. Using the Simpson Diversity Index—a metric adapted from ecology to quantify distribution sharpness—we demonstrate that the more concentrated a distribution is (i.e., when a few documents are much more relevant than others), the more the model's performance suffers under constraints.
The Beam Search Bottleneck
Beyond the constraints themselves, the search algorithm used to navigate the docID space—beam search—introduces its own set of limitations. By modeling docID generation as a tree structure, we reveal a Recall-Precision Paradox:
- Precision: In distributions with high concentration, beam search is effective at finding the single most relevant document (Top-1 Precision).
- Recall: However, beam search often suffers from abysmal Top-k recall. This occurs because "non-relevant" branches can have high initial marginal probabilities, causing them to overtake "relevant" branches early in the generation process. Once a relevant branch is pruned, the model can never recover it, regardless of its total joint probability.
Empirical Validation
We validated our theoretical findings using both synthetic datasets and the MS MARCO V1 passage corpus (8.8 million documents). The model was evaluated on MS MARCO-dev, TREC DL 2019, and TREC DL 2020.
Key results include:
- Recall Ceiling: In synthetic experiments, even the Bayes-optimal model saw its recall capped at approximately 50% due to beam search limitations.
- Real-World Performance Gap: On MS MARCO-dev, while the model achieved a high Top-1 precision of 90.5%, the Recall@50 was significantly lower at 67.5%, confirming the predicted "recall drop."
- Sampling Effects: We found that non-uniform sampling, which mimics real-world data distributions, significantly exacerbates the KL divergence error compared to uniform sampling.
Conclusion and Future Directions
Our analysis demonstrates that the limitations of Generative Retrieval are inherent to the auto-regressive decoding process. The reliance on marginal probabilities and the lack of "future-aware" constraints create a fundamental barrier to effective retrieval and generalization.
To move toward more robust GR systems, future research should focus on:
- Post-calibration: Developing techniques to adjust model outputs during inference to account for future constraints.
- Alternative Decoding: Exploring search strategies that prioritize joint probabilities over step-wise marginals.
- DocID Design: Investigating how different identifier structures (e.g., hierarchical clustering) interact with decoding biases.
Summary updated