Abstract
Large Language Models (LLMs) often contain outdated information that is difficult to update without expensive retraining. This challenge is amplified in Multi-Hop Question Answering (MHQA), where answers depend on chains of interconnected facts. We present KEDKG (Knowledge Editing with Dynamic Knowledge Graphs), a framework that structures edited facts into a dynamic knowledge graph. This approach effectively manages knowledge conflicts and ensures that updates propagate correctly through reasoning chains, significantly outperforming existing retrieval-based methods.
Introduction: The Challenge of Stale Knowledge
LLMs are essentially snapshots of the world at the time of their training. When facts change—such as a new Olympic host being announced—the model's internal knowledge becomes "stale." Editing this knowledge is particularly difficult for complex, multi-hop questions where a single update might affect multiple downstream reasoning steps.
Existing methods often struggle with two primary issues:
- The Cascade Effect: Updating a single fact requires the model to adjust all subsequent reasoning that depends on that fact.
- Secondary Editing: Updating a fact that has already been edited can lead to "knowledge conflicts," where the model is caught between contradictory memories.
Traditional parameter-preserving methods typically store new facts in flat memory buffers and use semantic similarity for retrieval. However, this approach is often too noisy for the precision required in multi-hop reasoning.
Methodology: KEDKG
KEDKG addresses these challenges by treating knowledge editing as a graph-management problem. The framework operates in two main stages:
1. Dynamic Knowledge Graph Construction
Instead of storing raw text, KEDKG extracts structured triples (Subject, Relation, Object) from edited facts. These are linked to unique Wikidata IDs to ensure entity consistency (e.g., mapping "USA" and "United States" to the same node). A critical component is the Conflict Detection and Modification (CDM) module, which identifies when a new edit contradicts existing information in the graph and replaces the old data, maintaining a consistent "memory."
2. Knowledge Graph Augmented Generation
To answer complex questions, KEDKG employs a three-step reasoning process:
- Decomposition: A fine-tuned LLM breaks the multi-hop question into simpler sub-questions.
- Fine-Grained Retrieval: Specialized Entity and Relation Detectors act as filters to navigate the knowledge graph and find the exact path needed for each sub-question.
- Reasoning: The base LLM generates the final answer using the precisely retrieved triples.
Experimental Setup
The researchers evaluated KEDKG using the MQuAKE benchmark, focusing on two datasets:
- MQuAKE-CF-3K: Designed for counterfactual editing (e.g., hypothetical changes to world facts).
- MQuAKE-T: Focused on real-world temporal updates.
The framework was tested across several base models, including LLaMA 2-7B, Vicuna-7B, and GPT-3.5-turbo-instruct.
Key Results and Insights
KEDKG demonstrated substantial improvements over state-of-the-art baselines like MeLLo and PokeMQA.
Performance Gains
On the LLaMA 2-7B model, KEDKG achieved a 63.67% Hop-wise Accuracy (H-Acc), a metric requiring every step in the reasoning chain to be correct. In contrast, MeLLo and PokeMQA achieved only 9.90% and 30.60%, respectively. KEDKG also proved remarkably resilient to scale; when handling 100 simultaneous edits, it maintained a 55.37% H-Acc, whereas other methods suffered significant performance degradation due to interference.
Structural Precision
The success of KEDKG highlights that structure trumps similarity. By using a structured graph rather than semantic similarity, the model achieves the high precision necessary for multi-hop reasoning. Furthermore, decoupling the question decomposition into a separate fine-tuned model helps prevent the "hallucinations" often seen in intermediate reasoning steps of other methods.
Limitations and Future Directions
Despite its success, KEDKG faces challenges as the number of edits scales into the thousands, where entities and relations may become increasingly similar, complicating retrieval. Additionally, the system's accuracy is dependent on the quality of the initial relation extraction and entity linking. Future work will likely explore more sophisticated graph traversal techniques to handle deeper reasoning chains and even larger-scale knowledge bases.
Summary updated