TL;DR
Generative retrieval (GR) models excel at finding documents by directly generating document IDs, but they struggle when new documents are added to a corpus over time. This paper introduces CLEVER, a continual learning framework for GR that uses Incremental Product Quantization to efficiently assign stable document IDs and a memory-augmented rehearsal mechanism to prevent the model from forgetting previously indexed data.
What Problem Does This Paper Address?
Traditional Information Retrieval (IR) systems use an explicit index (like an inverted index or vector database) separate from the retrieval model. When new documents arrive, you simply update the external index. Generative Retrieval (GR), however, collapses indexing and retrieval into a single sequence-to-sequence neural network. The model parameters are the index.
The catch? If the corpus changes—which happens constantly in real-world applications like digital libraries or web search—a standard GR model must either be retrained from scratch (which is prohibitively expensive) or fine-tuned on the new data. Naive fine-tuning leads to catastrophic forgetting, where the model completely loses its ability to retrieve older documents. This paper addresses the challenge of making GR models work efficiently over dynamic corpora via continual learning.
Methods
The authors propose CLEVER (Continual-LEarner for generatiVE Retrieval), which introduces two main innovations to handle document increments:
- Incremental Product Quantization (IPQ): Instead of using arbitrary atomic IDs (integers) or static semantic IDs that break when new data arrives, IPQ represents document IDs (docids) via a set of quantized centroids. When new documents arrive, CLEVER uses two adaptive thresholds ($ad$ and $md$) to dynamically decide whether a quantization centroid should remain unchanged, be updated, or if a new centroid needs to be added. This keeps old docids stable while efficiently encoding new ones.
- Memory-Augmented Learning Mechanism: To prevent catastrophic forgetting, CLEVER maintains a dynamic memory bank of old documents that are semantically similar to the incoming new documents. During training, it rehearses these old documents. Furthermore, it uses a query generator (T5) to sample pseudo-queries for both new and memory-bank documents, ensuring the model maintains its query-to-docid mapping capability. Elastic Weight Consolidation (EWC) regularization is also applied to protect important parameters.
Datasets
The authors constructed two new benchmark datasets to simulate dynamic document streams:
- CDI-MS: Built from the MS MARCO 300k document ranking subset.
- CDI-NQ: Built from the Natural Questions dataset.
For both datasets, they initialize the system with a base set (60% of the documents) and then simulate the arrival of new documents over 4 subsequent sessions (10% increments each).
Key Insights and Ideas
- Stable Docids are Crucial: Re-clustering the entire corpus when new documents arrive changes the docids of old documents, completely invalidating what the sequence-to-sequence model previously learned. IPQ solves this by keeping old docids intact while adapting the underlying codebook representation.
- Cognitive Strategy ("Given-New"): Instead of randomly sampling old documents for rehearsal (which performs poorly), CLEVER selects old documents that are similar to the new ones. This mimics how humans anchor new information to existing, related memories.
- Pseudo-Queries Maintain the Mapping: Simply remembering the document text isn't enough; the model must remember how to retrieve it via queries. Generating and training on pseudo-queries during incremental updates is vital to preserving retrieval accuracy.
Key Results
- Mitigating Forgetting: CLEVER almost entirely avoids catastrophic forgetting. As shown in the training curves, while baseline models drop significantly in indexing and retrieval accuracy over time, CLEVER maintains stable performance across sessions.
- State-of-the-Art Performance: On the CDI-MS dataset, CLEVER achieved a final session MRR@10 of 43.75% compared to 34.93% for the BASE fine-tuning model and 38.29% for DSI++. On CDI-NQ, it achieved 67.50% Hits@10 versus 58.61% for BASE.
- Efficiency Win: Unlike atomic-ID methods (like DSI++), which suffer from expanding softmax layers and growing memory footprints as new documents are added, CLEVER maintains a near-constant memory footprint and training time close to the simple BASE model.
Limitations and Future Work
- The document encoder (BERT) is frozen after the initial base session to keep the document representations stable. The authors note that future work could explore jointly optimizing the quantization method and the GR model dynamically.
- The current framework focuses strictly on document addition. Real-world dynamic corpora also require document removal and updates, which are not addressed in this paper and remain open challenges for generative retrieval.
Summary updated