Abstract
Auto-regressive search engines emerge as a promising paradigm for next-gen information retrieval systems. These methods work with Seq2Seq models, where each query can be directly mapped to the identifier of its relevant document. As such, they are praised for merits like being end-to-end differentiable. However, auto-regressive search engines also confront challenges in retrieval quality, given the requirement for the exact generation of the document identifier. That's to say, the targeted document will be missed from the retrieval result if a false prediction about its identifier is made in any step of the generation process. In this work, we propose a novel framework, namely AutoTSG (Auto-regressive Search Engine with Term-Set Generation), which is featured by 1) the unordered term-based document identifier and 2) the set-oriented generation pipeline. With AutoTSG, any permutation of the term-set identifier will lead to the retrieval of the corresponding document, thus largely relaxing the requirement of exact generation. Besides, the Seq2Seq model is enabled to flexibly explore the optimal permutation of the document identifier for the presented query, which may further contribute to the retrieval quality. AutoTSG is empirically evaluated with Natural Questions and MS MARCO, where notable improvements can be achieved against the existing auto-regressive search engines.
Introduction
Generative retrieval represents a modern shift in information retrieval, where models like T5 are trained to map queries directly to unique Document Identifiers (DocIDs). While promising, traditional generative systems treat DocIDs as fixed sequences. This rigidity leads to the "false pruning" problem: if a model mispredicts a single early token during beam search, the entire document is discarded. Because standard autoregressive models only consider preceding tokens, they are blind to the remaining valid terms in a DocID, making them highly susceptible to fatal errors.
Methodology
To address these limitations, we introduce TSGen (Term-Set Generation). This framework reimagines the DocID not as a sequence, but as a flexible set of discriminative terms. The system comprises four core innovations:
- Term-Set DocID: Each document is represented by a set of its most discriminative terms (typically 12–16), rather than a fixed string.
- Learned Term Selection: A BERT-based module, trained via contrastive learning, assigns weights to terms based on their ability to distinguish a document from "hard negatives."
- Permutation-Invariant Decoding: This is the central technical contribution. By utilizing an inverted index, the decoding algorithm allows the model to generate terms in any order. At each step, the model can choose from all valid remaining terms across the corpus, providing a broader perspective than standard sequence generation.
- Iterative Optimization: To handle the $N!$ possible permutations of a term-set, the model periodically re-samples its preferred generation order, learning the most natural and probable sequence for specific query-document pairs.
Experimental Setup and Results
TSGen was evaluated on three major benchmarks: NQ320K (Natural Questions), MS300K (a subset of MS MARCO), and the full MS MARCO Passage dataset (8.8 million passages) to test scalability.
As shown in the results, TSGen achieves state-of-the-art performance, outperforming strong generative baselines like GenRet and Ultron. On the MS300K dataset, TSGen achieved a notable +16% relative improvement in MRR@100 over Ultron.
Key insights from the evaluation include:
- Error Resilience: Pruning only occurs if the model fails to select any remaining valid term, making it significantly more robust than sequence-based models.
- Superior Generalization: TSGen excels at retrieving "unseen" documents because terms are shared across the corpus, allowing the model to learn the underlying semantics of DocIDs rather than just memorizing unique strings.
- Scalability: On the 8.8M passage MS MARCO set, TSGen outperformed other generative methods like DSI and MINDER, demonstrating its viability for large-scale applications.
Conclusion
TSGen effectively mitigates the "false pruning" problem by replacing rigid sequences with flexible term-sets. By allowing query-adaptive ordering and permutation-invariant decoding, it enhances both retrieval accuracy and generalizability. While it currently lags slightly behind the most advanced dense retrieval methods (like DPR) on massive datasets, it represents a significant leap forward for the generative retrieval paradigm. Future work will explore the use of n-gram sets and further integration of contrastive learning to close the remaining performance gap.
Summary updated