TL;DR
Generative retrieval systems typically struggle to find documents they weren't explicitly trained on because they "memorize" arbitrary document IDs. This paper introduces CoBIGR, a method that computes bit-factorized identifiers directly from document content, allowing the system to retrieve new, unseen documents with high accuracy and up to 7x lower latency than existing numeric baselines.
What Problem Does This Paper Address?
Generative Retrieval (GR) is an emerging paradigm where a model (like a Transformer) generates a Document Identifier (DocID) directly in response to a query, rather than searching a separate vector database. While efficient, GR has a major "cold start" problem: dynamic corpora.
Most numeric DocID schemes (like hierarchical k-means) assign IDs that are essentially arbitrary labels. To learn these labels, the model must undergo an "indexing" phase. If a new document arrives, the model has no way to "know" its ID without expensive retraining or complex model-editing. Consequently, these systems perform poorly on "unseen" documents added after the initial training.
Methods
The authors propose CoBIGR (Computed Bit-Factorized Identifiers for Generative Retrieval). The core shift is moving from memorizing IDs to computing them.
- DocID Derivation: Instead of clustering, they use a pre-trained encoder to project a document's embedding into a $k$-bit space. By applying a
tanhactivation and taking thesign, they create a binary DocID (e.g.,[-1, 1, 1, -1...]). Because this ID is a function of the document's content, any new document can have its ID computed instantly. - Bit-Factorized Scoring: The retrieval score is calculated as the sum of individual bit scores. This means the model doesn't need a massive autoregressive decoder to predict the next token; it just needs to score the bits.
- Multi-tree Beam Search: Standard GR uses a single prefix tree (trie) to ensure only valid DocIDs are generated. CoBIGR's bits are "flat" and permutation-invariant. The authors exploit this by building multiple trees with different bit orderings. If one tree prunes a correct document too early, another tree likely recovers it.
- Weight Interpolation: To prevent the model from becoming too biased toward the documents it saw during training, they use weight-space ensembling (WiSE-FT), blending the weights of the initial "knowledgeable" encoder with the "retrieval-optimized" encoder.
Datasets
The researchers evaluated CoBIGR on three standard information retrieval benchmarks, specifically splitting them into "seen" ($D_0$) and "unseen" ($D_1$) document sets:
- NQ320K (Natural Questions): A large-scale dataset based on Google searches.
- TriviaQA: A reading comprehension dataset.
- MS MARCO: A widely used web search dataset (used here to compare against weight-update methods).
Key Insights and Ideas
- Computed vs. Memorized: By making the DocID a deterministic output of the model's internal representation, the "meaning" of the ID is baked into the model's weights. This allows for zero-shot retrieval of new documents.
- The Power of Permutation: In traditional hierarchical IDs, the first digit is much more important than the last. In CoBIGR, all bits contribute equally to the score. Using multiple "views" (permuted trees) of these bits significantly boosts recall without adding much computational overhead.
- Efficiency through Independence: Because bit scores don't depend on previously generated bits, the system can score all possible tokens in a single forward pass. This bypasses the slow, step-by-step nature of standard generative decoders.
Key Results
CoBIGR demonstrates a massive leap in generalization and speed:
- Generalization: On the NQ320K and TriviaQA datasets, CoBIGR achieved over 20 percentage points higher Hit@10 on unseen documents compared to standard numeric DocID baselines like NCI and DSI.
- Latency: It is incredibly fast, clocking in at ~24ms per query. This is 7x faster than NCI/DSI and nearly 400x faster than substring-based methods like SEAL.
- Zero-Shot vs. Retraining: CoBIGR performs within 3 percentage points of state-of-the-art methods that actually retrain the model on new data, but without any of the associated training costs.
Limitations and Future Work
- Flat Identifier Challenges: Because the IDs are "flat" (no inherent hierarchy), the model can sometimes prune the correct document early in the beam search. While multi-tree search helps, CoBIGR's Hit@100 on seen documents is slightly lower than some hierarchical baselines.
- Future Directions: The authors suggest combining bit-factorization with hierarchical schemes (like RQ-VAE) to get the best of both worlds: the informative structure of a hierarchy with the generalizability of computed bits.
- Language Scope: The current study focused exclusively on English datasets; testing on multilingual corpora remains an open area for research.
Summary updated