TL;DR
Generative Information Retrieval (GenIR) models achieve elegant end-to-end search by generating document IDs directly from queries, but they suffer from severe catastrophic forgetting when new documents are added sequentially. This paper introduces Post-Adaptation Memory Tuning (PAMT), a two-stage framework that first adapts the model to new data and then uses a sparse, external parametric memory head to calibrate the decoding interface. This approach dramatically recovers performance on older documents without requiring expensive retraining or storing legacy data.
What Problem Does This Paper Address?
Traditional search engines use modular indexes (like inverted indexes or vector databases) that are easy to update when new documents arrive. GenIR flips this paradigm by embedding the entire document index directly into the parameters of a sequence-to-sequence neural network. To find a document, the model autoregressively generates a unique document identifier (docid) based on the input query.
While architecturally simple, GenIR struggles immensely with dynamic collections. When new documents are continuously introduced, standard fine-tuning updates disrupt the fragile query-docid mappings already internalized by the model. This creates a harsh stability-plasticity trade-off: learning new documents (plasticity) causes the model to catastrophically forget previously indexed ones (stability). Retraining the model from scratch every time the corpus changes is computationally prohibitive, creating a major roadblock for deploying GenIR in production.
Methods
The authors propose an "adapt-then-stabilize" framework called Post-Adaptation Memory Tuning (PAMT). Instead of trying to balance learning and remembering in a single training objective, PAMT splits the process into two distinct stages:
- Stage 1: Backbone Adaptation: The GenIR model is fine-tuned on the newly arrived document slice using standard methods (like full fine-tuning or LoRA) to maximize its ability to retrieve the new documents.
- Stage 2: PMH Interface Calibration: The adapted backbone is completely frozen. The authors attach a modular Parametric Memory Head (PMH), implemented as a product-key memory (PKM). During prefix-trie constrained decoding, the PMH reads the decoder's hidden states and generates sparse, additive corrections in the hidden space. These corrections adjust the next-token logits only for valid docid tokens, effectively re-ranking candidate docids at the interface level.
To prevent the memory head itself from forgetting, PAMT uses a lightweight access log tracking mechanism based on an AF×IHF (Access Frequency × Inverse Historical Frequency) score. It locks a fixed percentage of historically high-usage memory rows (protecting legacy knowledge) and updates only a sparse, budgeted subset of memory values that are highly relevant to the current session.
Datasets
The approach was evaluated on two widely used information retrieval benchmarks, scaled to 320K documents each:
- MS MARCO Document Ranking
- Natural Questions (NQ320K)
To simulate a continual learning environment, each corpus was split into 5 sequential, disjoint slices: an initial baseline slice ($D_0$) containing 50% of the documents, followed by four incremental slices ($D_1$ to $D_5$) containing 10% of the documents each.
Key Insights and Ideas
- The Search Space Isn't the Enemy: Through parameter-free control experiments, the authors discovered that simply expanding the search space (the prefix trie) causes very little performance degradation on old documents. The true cause of catastrophic forgetting is parameter-induced interference in the learned query-docid mappings during fine-tuning.
- Value-Only Calibration Suffices: You don't need to alter the core representations of the backbone model or change its internal routing to fix forgetting. Applying sparse, additive corrections directly to the decoding interface is highly effective at restoring old capabilities.
- Docid Design Dictates Stability: Keyword-based docids (e.g., Title + URL) are inherently more stable and transferable during continual learning than semantic numeric codes (e.g., Product Quantization). Keyword docids leverage robust lexical subwords already present in pretrained language models, leading to fewer identifier collisions and better zero-shot transfer to future slices.
Key Results
PAMT consistently and significantly mitigates catastrophic forgetting across different datasets, fine-tuning methods, and docid schemes:
- Drastic Forgetting Reduction: On MS MARCO (using full fine-tuning and semantic docids), PAMT improved the Signed Backward Transfer (BWT, where closer to zero is better) from -55.72 down to -22.64. On Natural Questions, it improved BWT from -35.95 to -14.21.
- Synergy with Keywords: When paired with keyword-based docids on Natural Questions, PAMT achieved an exceptional BWT of -9.16, narrowing the stability gap between generative retrieval and classical index-based methods.
- Preserved Plasticity: Crucially, these massive gains in stability did not sacrifice the model's ability to learn new documents, outperforming existing continual GenIR baselines like DSI++, CLEVER, and MixLoRA-DSI in overall Average Performance (AP).
Limitations and Future Work
- Heuristic Hyperparameters: PAMT relies on a fixed, manually set protected-row ratio ($p$) and update budget ($m$). The authors suggest that future work could explore adaptive budgets driven by slice novelty or memory access divergence.
- Routing Consistency: While PAMT corrects the decoding interface, it does not explicitly quantify or constrain the routing changes that occur within the memory head during Stage 1.
- System Efficiency: The paper does not report wall-clock adaptation times or inference latency/throughput overhead introduced by the PMH lookup step.
- Evaluation Scale: The experiments were conducted on 320K-scale corpora over five sessions. Testing PAMT on million- or billion-scale document corpora with longer historical horizons remains an open challenge.
Summary updated