TL;DR
Generative Retrieval (GR) models struggle to integrate new documents without undergoing expensive retraining or suffering from catastrophic forgetting. This paper introduces DOME (docID-oriented model editing), a novel framework that uses a hybrid-label adaptive training strategy to precisely update specific decoder layers. DOME successfully integrates new documents while fully preserving performance on the original collection—all while cutting adaptation time by over 40% compared to incremental training.
What Problem Does This Paper Address?
Generative Retrieval (GR) represents a major paradigm shift in information retrieval. Instead of relying on traditional, separate index-lookup mechanisms (like BM25 or dense vector bi-encoders), GR models use a single sequence-to-sequence network to directly generate a unique document identifier (docID) given a query.
However, a massive bottleneck prevents GR from being deployed in production: dynamic corpora. When new documents are added to a collection, standard GR models fail to generalize and cannot generate the new docIDs. Retraining the model from scratch or performing incremental fine-tuning is computationally prohibitive and frequently causes catastrophic forgetting of the original documents.
The authors investigate this failure and find that the model's encoder actually understands the semantics of new documents perfectly fine. The breakdown happens entirely in the decoder's ability to map those semantic states to the exact, discrete tokens of the new docIDs.
While model editing (making targeted parameter modifications) seems like the perfect fix, standard language model editing techniques fail here. Because docID vocabularies are highly constrained, many distinct queries map to the exact same target docID tokens. Under standard hard-label optimization, this causes the calculated "edit vectors" to lose their distinctiveness, leading to conflicting updates and severe performance degradation.
Methods
To solve this, the authors propose DOME (docID-Oriented Model Editing), which operates in three distinct stages:
- Identification of Critical Layers: Using an average patching strategy, the authors systematically replace intermediate layer outputs with their dataset averages to see where performance drops the most. They pinpoint the middle-to-late Feed-Forward Network (FFN) layers of the decoder (layers 14–18 in a T5-large backbone) as the core repository for docID mapping knowledge.
- Optimization of Edit Vectors via Hybrid Labels: To fix the "indistinguishable edit vector" problem, DOME introduces a hybrid-label adaptive training strategy. Instead of optimizing purely against a hard one-hot target token, it mixes the target token with the model's original soft output distribution. Early in training, the soft label preserves query-specific semantic diversity, ensuring the edit vectors remain distinct. As training progresses, a mixing coefficient ($\lambda_s$) smoothly shifts the focus entirely toward the hard label for exact docID generation.
- Construction and Application of Updates: The optimized edit vectors are assembled into a constrained, closed-form update matrix ($\Delta$). This update is applied to the target FFN projection weights ($W_{out}$) while explicitly factoring in a preservation constraint (using key-value pairs from the original corpus) to ensure old knowledge remains completely untouched.
Datasets
The framework was evaluated using two widely recognized information retrieval benchmarks:
- Natural Questions (NQ): A dataset consisting of real Google search queries and their corresponding Wikipedia answer passages.
- MS-MARCO: A large-scale dataset focused on web search queries derived from Bing.
To simulate real-world document ingestion, the authors partitioned both datasets by training the base GR model on 90% of the corpus (Initial Docs) and treating the remaining 10% as the incoming stream (New Docs).
Key Insights and Ideas
- The Decoder is the Bottleneck: As visualized via t-SNE in the paper, the encoder successfully clusters new documents near semantically related initial documents. The failure is purely a structural mapping issue within the decoder FFN layers, meaning full-model retraining is an unnecessary waste of compute.
- Hard Labels Cause Vector Collapse: In standard model editing, optimizing distinct queries against identical target tokens forces the resulting edit vectors to collapse into the same direction. DOME's hybrid-label approach acts as a regularizer that keeps updates distinct before locking down on the exact token sequence.
Key Results
DOME achieves state-of-the-art efficiency and accuracy balances across both datasets:
- High Retrieval Accuracy on New Docs: On the NQ dataset, DOME achieved a Recall@1 of 0.686 on new documents, significantly outperforming the strongest incremental training baseline, DSI++ (0.674), and approaching the theoretical upper bound of retraining entirely from scratch (0.693).
- Zero Catastrophic Forgetting: DOME maintained a near-flawless forgetting score ($F_n$) of 0.003 on initial documents, whereas standard model editing baselines like ROME suffered catastrophic collapses (Recall@1 dropping from 0.696 down to 0.285).
- Substantial Speedups: DOME required an update Time Per Document (TPD) of just 2.14 seconds, making it over 40% faster than incremental training (3.54s) and more than 5× faster than alternative transformer editing methods like MEMIT (12.62s).
Limitations and Future Work
Currently, DOME restricts its parameter updates exclusively to the decoder's FFN layers. The authors note that while this is highly effective, exploring joint adaptation strategies that include the attention layers and encoder representations could further improve model adaptability. Additionally, scaling the framework to handle continuous, lifelong streams of thousands of documents sequentially remains an open area for optimization.
Summary updated