Abstract
When the world changes, so does the text that people write about it. How do we build language models that can be easily updated to reflect these changes? One popular approach is retrieval-augmented generation (RAG), in which new documents are inserted into a knowledge base and retrieved during prediction for downstream tasks. Most prior work on RAG has focused on improving model behavior during prediction through better retrieval or reasoning. This paper introduces ERASE, which instead improves model behavior when new documents are acquired, by incrementally deleting or rewriting other entries in the knowledge base each time a document is added. In two new datasets evaluating models’ ability to answer questions about a stream of news articles or conversations, ERASE improves accuracy relative to conventional retrieval-augmented generation by 7-13% (Mixtral-8x7B) and 6-10% (Llama-3-8B) absolute. This improvement is complementary to improved retrieval or reasoning for RAG: we demonstrate an 11% improvement by applying ERASE to SelfRAG.
Introduction
The world is inherently non-stationary. Facts that were true yesterday—such as a company's CEO or a nation's head of state—may change today. While Large Language Models (LLMs) utilize Retrieval-Augmented Generation (RAG) to access external information, current RAG implementations are primarily additive. New documents are simply appended to the knowledge base (KB), leading to the "stale fact" problem. When a retriever pulls both an outdated fact and a new, contradictory one, the LLM must resolve the conflict at prediction time, which is often error-prone.
This paper argues for a shift from prediction-time reasoning to insertion-time maintenance. We propose ERASE (Enhancing Retrieval Augmentation with Self-consistent Editing), a method that treats the knowledge base as an editable memory, proactively updating or removing outdated information as new data arrives.
The ERASE Framework
ERASE moves the computational burden of resolving contradictions to the document acquisition phase. Every time a new document is added to the KB, ERASE performs a three-step "housekeeping" process:
- Retrieve to Edit: The system identifies existing facts in the KB that are semantically similar to the incoming document using dense vector retrieval.
- Update: An LLM evaluates these retrieved facts against the new information. It classifies each fact into one of four categories: Reinforce (confirming), Keep Unchanged (irrelevant), Make False (contradictory), or Rewrite (modifying).
- Add: The new atomic facts from the incoming document are extracted and added to the KB.
By maintaining internal consistency at the point of insertion, ERASE ensures that subsequent queries retrieve a clean, up-to-date context, significantly reducing the likelihood of model confusion.
Experimental Setup: The CLARK Benchmark
To evaluate ERASE, the authors introduced CLARK (Continual Learning And Revising Knowledge), a benchmark designed to test a model's ability to handle evolving information across two domains:
- CLARK-News: Based on real-world news and Wikidata triples (e.g., political roles, sports transfers) from 2021 to 2024.
- CLARK-Conversations: A synthetic dataset of long-form dialogues where personal details (jobs, relationships) change over time, including "multi-hop" scenarios where one change triggers cascading updates.
Results and Discussion
ERASE demonstrates substantial performance gains over standard RAG baselines. On the CLARK-News and CLARK-Conversations datasets, ERASE improved question-answering accuracy by 7–13% for Mixtral-8x7B and 6–10% for Llama-3-8B.
Key findings include:
- Scalability: Unlike long-context models that struggle as the document stream grows, ERASE maintains high accuracy by keeping the retrieved context concise and relevant.
- Complementarity: ERASE is not a replacement for advanced RAG techniques but a foundation. When applied to Self-RAG, it yielded an additional 11% improvement.
- Reduced Forgetting: ERASE is significantly more effective at preserving the correct state of the world at specific historical timestamps, avoiding the confusion caused by mixing old and new documents.
Conclusion and Future Work
ERASE demonstrates that proactive knowledge base maintenance is a powerful alternative to complex prediction-time reasoning. While highly effective for single-hop updates, challenges remain in handling complex multi-hop dependencies and potential noise accumulation from LLM-driven edits. Future research will focus on improving retrieval-to-edit accuracy and developing formal guarantees for knowledge consistency.
Summary updated