Introduction
Large Language Models (LLMs) frequently require updates to correct outdated information or rectify hallucinations. Traditionally, "model editing" has focused on sentence-level modifications—simple "fill-in-the-blank" tasks where a single token or short phrase is swapped (e.g., changing the current U.S. President). However, real-world knowledge is rarely isolated; a single factual change often necessitates updates across an entire document to maintain coherence and accuracy.
This paper introduces DocMEdit, a benchmark designed to shift the focus toward document-level model editing. This task requires models to handle long contexts, integrate multiple related facts simultaneously, and maintain the stylistic integrity of the original document while minimizing unintended side effects.
The DocMEdit Benchmark
To facilitate research in this new domain, the authors developed the DocMEdit dataset by analyzing Wikipedia revisions between November 2023 and January 2024. By identifying documents with factual updates and extracting the underlying "diffs," they created a large-scale resource comprising 37,990 data items and over 105,000 editing facts.
Unlike existing benchmarks like ZsRE or CounterFact, where target outputs are typically around 10 tokens, DocMEdit features target documents averaging 867 tokens. Furthermore, each edit involves an average of nearly three facts, significantly increasing the complexity of the task compared to single-fact sentence-level benchmarks.
Methodology and Evaluation
The study evaluates two primary categories of editing methods:
- Parameter Modification: Methods such as Fine-Tuning (FT) and MEMIT (Locate-and-Edit) that directly alter the model's weights.
- Parameter Preservation (RAG-based): Methods like IKE, SKEME, and EREN that utilize In-Context Learning or Retrieval-Augmented Generation to provide new facts at inference time without weight changes.
Performance is measured using Accuracy (Document-Entity/DE scores), Locality (measuring unintended changes to unrelated text), and Quality (semantic coherence via human evaluation).
Key Insights: The Challenges of Scale
The evaluation reveals that current state-of-the-art editing techniques struggle significantly with the demands of document-level tasks.
The Impact of Context Length
A critical finding is the sharp decline in performance as document length increases. Most existing methods fail to effectively integrate new facts once the context exceeds 4,000 tokens. This "context length penalty" suggests that current editing mechanisms are not yet robust enough for long-form content.
Fact Density and Hallucination
The research identifies "hallucination" as the primary failure mode, accounting for 78.4% of errors. Models often generate plausible but incorrect filler text instead of accurately incorporating the provided facts. Additionally, while RAG-based methods like SKEME perform well with a few facts, simple Fine-Tuning becomes more competitive as the number of facts increases, indicating potential retrieval bottlenecks in RAG systems.
Conclusion
DocMEdit highlights a significant gap between current model editing capabilities and the requirements of real-world document maintenance. While RAG-based methods generally preserve generative quality better than weight-modifying techniques, all methods suffer from low accuracy and significant side effects on document locality. Future research must focus on improving long-context reasoning and developing more precise retrieval mechanisms to handle the complexities of document-level knowledge updates.
Summary updated