Introduction
Generative Retrieval (GR) represents a paradigm shift in information retrieval where models directly generate document identifiers (DocIDs) from queries, making the retrieval pipeline end-to-end differentiable. However, traditional GR systems rely on rigid, sequence-based DocIDs (like titles or numeric codes), which suffer from the "false pruning" problem. TSGen (Term Set Generation) addresses this by reimagining DocIDs as flexible sets of terms. By employing a permutation-invariant decoding algorithm, TSGen ensures that relevant documents are not discarded prematurely, leading to state-of-the-art performance and exceptional generalization to unseen data.
The Problem: False Pruning in Sequence-Based Retrieval
In sequence-based GR, models generate tokens one by one. Because the model only considers the generated prefix, it can be "blind" to highly relevant tokens appearing later in a DocID. If the initial tokens of a relevant document have a lower probability than a distractor, beam search will prune the correct document entirely.
For instance, given the query "sodium level in white bread," a sequence-based model might encounter the document "Calorie and sodium in white bread." If the word "Calorie" is assigned a low probability relative to other candidates, the model prunes the path before it ever reaches the highly relevant term "sodium."
The TSGen Methodology
TSGen overcomes these limitations through three core innovations:
- Learned Term Selection: Instead of using arbitrary titles, TSGen identifies the most discriminative terms for each document using a BERT-based weighting module. These terms form the document's unique "Term-Set" DocID.
- Permutation-Invariant Decoding: Since the DocID is a set, terms can be generated in any order. TSGen utilizes an inverted index during decoding to ensure that every generated term sequence corresponds to a valid document in the corpus. This allows the model to "see" all valid remaining terms at every step, providing a broader perspective than sequence-based models.
- Iterative Optimization: To handle the $N!$ possible permutations of a set, TSGen uses an iterative training process. The model learns to generate terms in the most "natural" order for a specific query, optimizing both memorization and ranking accuracy.
Experimental Results
TSGen was evaluated on major benchmarks, including NQ320K and MS300K. As shown in the results below, TSGen consistently outperforms existing generative, dense, and sparse retrieval methods.
Key Performance Highlights:
- State-of-the-Art Accuracy: On NQ320K, TSGen achieved a significant improvement over the previous best generative model, GenRet. On MS300K, it demonstrated a 16% relative improvement over the Ultron baseline.
- Superior Generalization: TSGen excels at retrieving "unseen" documents (those not encountered during training). On NQ320K (Unseen), TSGen reached an R@10 of 0.654, vastly outperforming MINDER (0.415).
- Scalability: The system successfully scaled to the 8.8 million passage MSMARCO dataset, outperforming the DSI baseline even when the latter was trained with 40x more augmented data.
Conclusion
By shifting from sequences to sets, TSGen mitigates the structural vulnerabilities of traditional generative retrieval. It moves beyond simple string memorization toward a semantic understanding of term importance. While the model still depends on the underlying transformer's ability to relate query terms to document terms, its permutation-invariant approach sets a new standard for robustness and generalization in generative search.
Summary updated