Abstract
The dynamic nature of real-world information necessitates efficient knowledge editing (KE) in large language models (LLMs). However, current KE approaches, which typically operate on (subject, relation, object) triples, ignore contextual information and the logical relations among different pieces of knowledge. This often results in an uncertain editing boundary, where queries that could be answered pre-edit cannot be reliably answered afterward. We introduce a theoretical framework for KE that highlights the "deduction anchor"—a set of knowledge that remains unchanged and aids in knowledge deduction. We propose a novel task of event-based knowledge editing that pairs facts with event descriptions to implicitly define these anchors. Our new benchmark, EvEdit, and our proposed Self-Edit approach demonstrate a 55.6% improvement in consistency while maintaining natural generation.
Introduction
Updating the knowledge within Large Language Models (LLMs) is crucial as the world evolves. Traditional Knowledge Editing (KE) methods focus on isolated factual triples. While effective for simple updates, this "triple-based" approach fails to account for the complex web of related facts. When a model's belief is updated, it often enters a state of logical ambiguity regarding related information. This paper addresses this "uncertain editing boundary" by shifting the paradigm from isolated facts to event-based narratives.
The Challenge of Uncertain Editing Boundaries
Current KE techniques often leave models in a "gray area" of indecision. Without context, a model doesn't know the limits of what should change versus what should remain. This leads to two primary fallacies: the No-Anchor Fallacy, where the lack of context makes reasoning impossible, and the Max-Anchor Fallacy, where assuming all other knowledge is static leads to contradictions.
As illustrated above, simple factual edits without context can paralyze a model's ability to reason about the nationality of a person or the location of a landmark, even when the edit seems straightforward.
Event-based Knowledge Editing
To resolve these ambiguities, we propose Event-based Knowledge Editing. By providing a paragraph-long event description instead of a single triple, we implicitly define a Deduction Anchor. This anchor consists of the pre-edit knowledge that remains true, providing a logical foundation for the model to deduce correct answers to related queries.
By specifying that an event occurs in a specific timeframe (e.g., 2024), the model can correctly deduce that facts from previous years remain unchanged, whereas a simple triple edit leaves the status of historical facts in doubt.
The Self-Edit Framework
We introduce Self-Edit, a novel approach designed to leverage event-based context. Unlike "locate-and-edit" methods (e.g., ROME or MEMIT) that surgically modify weights, Self-Edit uses a three-step process:
- Self-Prompting: The model generates potential questions related to the new event.
- Answer Generation: The model answers these questions using the event description as a reference, learning to identify undecidable questions to maintain the editing boundary.
- Fine-tuning: The model is fine-tuned on these pairs, learning to recite relevant context before answering.
The EvEdit Benchmark
We curated EvEdit, a benchmark derived from the COUNTERFACT dataset. It contains approximately 15,000 facts expanded into full event descriptions. Each event includes five QA pairs, including "Unknown" questions designed to test whether the model can avoid over-generalization and respect the logical boundaries of the edit.
Empirical Results
Our experiments show that Self-Edit achieves a 55.6% improvement in factual consistency over direct fine-tuning. Notably, traditional methods like ROME and MEMIT struggled with the event-based format, often resulting in repetitive text or a significant loss in generation naturalness. Furthermore, Self-Edit demonstrated superior scalability, maintaining performance even as the number of simultaneous edits increased to 100, whereas In-Context Learning (ICL) approaches were limited by context window constraints.
Conclusion
By moving from isolated triples to event-based narratives, we provide a more logically sound framework for knowledge editing. Defining the "deduction anchor" is essential for maintaining model consistency and preventing the degradation of existing knowledge during updates. The EvEdit benchmark and Self-Edit method represent a significant step toward more robust and reliable LLM maintenance.
Summary updated