Introduction
Large Language Models (LLMs) are static snapshots of knowledge that quickly become outdated. While Knowledge Editing (KE) offers a way to inject new facts without full retraining, Parameter-Preserving Knowledge Editing (PPKE) is increasingly favored for its stability and transparency. PPKE typically utilizes an external knowledge base or graph to augment the model's internal parameters.
However, existing PPKE methods struggle with Multi-Hop Question Answering (MHQA), where a single query requires traversing multiple factual links. These failures often stem from three types of inconsistency: boundary inconsistency (mixing edited and unedited facts), update inconsistency (conflicts between multiple edits), and intent inconsistency (failing to prioritize edited knowledge during retrieval).
The CAPE-KG Framework
To address these challenges, the authors propose CAPE-KG (Consistency-Aware Parameter-Preserving Editing with Knowledge Graphs). This framework introduces a structured approach to knowledge management and retrieval designed specifically for multi-step reasoning.
Multi-Layer Architecture and Isolation
CAPE-KG employs a multi-layer Knowledge Graph (KG) architecture. A Base Layer stores static, pre-existing factual knowledge, while Overlay Layers are created for specific edit sessions. This isolation ensures that new information does not "leak" into unrelated queries or conflict with other edits, solving the problem of update inconsistency. A conflict arbitration module ensures that when a query falls within the scope of an edit, the Overlay Layer takes precedence over the Base Layer.
Progressive Retrieval Strategy
The framework utilizes an Edit-Aware Retrieval Router to direct sub-questions to the appropriate KG layer. To ensure high recall and precision, CAPE-KG implements a three-stage progressive retrieval strategy:
- High Confidence Stage: Uses strict entity matching and outlier filtering.
- Low Confidence Stage: Leverages the LLM to select the most plausible entity from a candidate pool when initial matching is ambiguous.
- Failure Stage: If no entity is found but the question is within an edit's scope, the edited triple is injected directly into the prompt context, forcing the model to adhere to the new information.
Experimental Evaluation
The framework was rigorously tested on two benchmarks: MQuAKE-CF-3K (counterfactual edits with 2-4 hops) and MQuAKE-T (real-world temporal updates).
Results and Performance
As shown in the results table, CAPE-KG consistently outperforms existing state-of-the-art methods like TEMPLE-MQA and KEDKG across various backbone models, including LLaMA 2-7B, Vicuna-7B, and GPT-3.5.
Key highlights include:
- Significant Accuracy Gains: On MQuAKE-CF-3K with LLaMA 2-7B, CAPE-KG achieved a 78.03% Multi-hop Accuracy (M-Acc), a nearly 10% absolute improvement over the previous best.
- Robustness to Batch Edits: Unlike many PPKE methods that degrade as more edits are added, CAPE-KG maintains stable performance even when the number of edits increases from 1 to 100.
- Improved Reasoning Chains: The framework improved "Hop Accuracy" (the probability of getting every step in a reasoning chain correct) by approximately 19% on average.
Discussion and Insights
Ablation studies revealed that the Retrieval module is the most critical component of the system. Ensuring the model successfully locates the edited fact is more impactful than the specific method of graph construction. Furthermore, the framework's success across different LLMs suggests that the identified consistency issues are architectural flaws in current PPKE approaches rather than model-specific limitations.
Limitations
Despite its performance, CAPE-KG introduces some computational latency due to its multi-stage retrieval process. Additionally, the current design assumes "case-isolated" edits, meaning it is optimized for scenarios where different users might have different sets of edits, rather than a single global update intended for all users.
Conclusion
CAPE-KG demonstrates that structural consistency and isolated knowledge management are vital for effective knowledge editing in complex reasoning tasks. By separating edited facts into overlay layers and employing a robust retrieval strategy, CAPE-KG provides a scalable and reliable path for keeping LLMs up-to-date without compromising their underlying stability.
Summary updated