Skip to content

ChainEdit: Propagating Ripple Effects in LLM Knowledge Editing through Logical Rule-Guided Chains

Conference: ACL 2025
arXiv: 2507.08427
Code: https://github.com/NUSTM/ChainEdit
Area: Knowledge Editing
Keywords: Knowledge Editing, Logical Rules, Ripple Effects, Knowledge Graph, Chain-based Updates

TL;DR

The ChainEdit framework is proposed, which aligns logical rules mined from knowledge graphs with the intrinsic logical reasoning capabilities of LLMs to achieve chain-based updates during knowledge editing, improving logical generalization accuracy from ~20% to 58-65%.

Background & Motivation

Background: Knowledge Editing (KE) technology enables targeted modifications to LLMs without requiring retraining, primarily categorized into two paradigms: parameter-preserving and parameter-modifying.

Limitations of Prior Work: Existing knowledge editing methods perform poorly regarding the "ripple effect" — after editing a specific fact, logically related association knowledge fails to update synchronously. For instance, after modifying "The President of the US is Donald Trump", the model still answers "The First Lady of the US is Jill Biden".

Key Challenge: The logical generalization accuracy on the RippleEdits benchmark is only around 20%, indicating that models fail to organically integrate edited knowledge with existing reasoning chains.

Goal: To enable LLMs to automatically infer and synchronously update related knowledge using logical rules during knowledge editing.

Key Insight: Drawing inspiration from the update mechanism of Knowledge Graphs (KGs) — where KGs infer related knowledge using logical rules — this approach migrates this concept to LLM knowledge editing.

Core Idea: Logical rules are mined from KGs and aligned with the intrinsic logic of LLMs, enabling the chain-like propagation of edited knowledge.

Method

Overall Architecture

ChainEdit operates in three stages: (1) rule mining and alignment; (2) preprocessing rules into instruction rules; and (3) rule application to generate related knowledge and perform batch editing.

Key Designs

  1. Rule Mining from KG: 10,000 instances are sampled from Wikidata to identify high-frequency alternative paths (2-hop and 3-hop) for the target relation R. Paths with a frequency exceeding the threshold γ are retained as candidate rules. For example: Nationality ← (BornIn, CityOf). After deduplication, 3,120 candidate rules are obtained.
  2. LLM-Rule Alignment: Candidate rules are converted into natural language descriptions. Through prompts, the LLM evaluates the universality of these rules, retaining highly generalizable rules that align with the model's intrinsic logic. This ensures that the rule base respects KG constraints while matching the reasoning structures of the LLM.
  3. Instruction Rules and Chain-based Updates: Rules are formalized as ⟨ϕ, ψ⟩, where ϕ is the trigger condition and ψ is the knowledge generation template. The framework explicitly handles multiple valid update paths under the same rule (e.g., when editing A's sibling to B, the father of A or the father of B can be updated).

Loss & Training

No additional training process is involved. As a plug-and-play module, ChainEdit is combined with existing editing methods (such as MEMIT, LoRA, FT, etc.) to perform batch editing on associated knowledge derived from rules while editing the original knowledge.

Key Experimental Results

Main Results

On the RippleEdits "Popular" dataset (using Llama-3-8B-Instruct):

Method Using ChainEdit Reliability LG RE SA RS FF
MEMIT 90.0 58.7 37.4 65.8 41.9 37.0
MEMIT 99.8 18.6 34.3 75.7 38.0 31.2
FT 100.0 65.5 47.2 97.4 60.2 36.5
FT 98.9 19.2 33.4 73.3 39.8 35.1
LoRA 99.9 65.7 51.0 97.8 48.2 33.0
LoRA 100.0 23.7 41.7 99.0 45.6 28.1

LG (Logical Generalization) metrics: MEMIT improved from 18.6% → 58.7% (+40.1%), and FT improved from 19.2% → 65.5% (+46.3%).

Ablation Study

Impact of different rule sets (Qwen2.5-1.5B + MEMIT-Merge):

Rule Set Reliability LG RE SA RS FF
Pure Rule Mining 97.1 53.0 29.8 63.5 36.3 30.5
+ LLM Alignment 97.3 60.0 26.0 58.8 36.0 29.3
+ LLM Alignment + Human Selection 96.6 61.5 29.5 59.0 35.8 29.4

Key Findings

  • ChainEdit achieves substantial LG improvements (30 to 46 percentage points) across all editing methods without significantly compromising Reliability.
  • The impact of model size on logical integration capability is limited: both large and small models exhibit similarly poor baseline LG (<20%), yet achieve similar magnitudes of improvement after applying ChainEdit.
  • RS (Relation Specificity) fluctuations remain within a very small range, indicating that the precise boundary control of ChainEdit effectively prevents large-scale knowledge interference.
  • An evaluation flaw in existing benchmarks was identified: intermediate knowledge relying on external KGs may be inconsistent with the internal knowledge of the LLM.

Highlights & Insights

  • Migrating the KG update mechanism to LLM knowledge editing serves as a natural and highly effective analogy.
  • The proposal of three dataset variants (Filtered/Replaced/In-Prompt) to diagnose evaluation bias represents a prominent methodological contribution.
  • The instruction rule templates explicitly handle logical path ambiguity, offering greater flexibility than traditional rule representations.

Limitations & Future Work

  • Rule mining depends on Wikidata, which may provide insufficient coverage for long-tail relations or emerging domains.
  • Chain updates increase editing complexity, causing a decrease in MEMIT's Reliability when processing multiple facts for the same subject.
  • The method was validated only on a single benchmark, RippleEdits, leaving its generalizability to be confirmed.
  • Applying rules requires querying the LLM to retrieve intermediate entities, which introduces additional inference overhead.
  • In complementary relationship with ROME/MEMIT: ChainEdit serves as a general module to enhance the logical generalization capabilities of existing editing methods.
  • Comparison with GradSim: GradSim uses gradient similarity to measure ripple effects, whereas ChainEdit is driven by explicit logical rules.
  • Insight: The integration of symbolic rules and neural reasoning may hold practical value in more scenarios, such as continual learning and fact-checking.

Supplementary Analysis

  • On the Filtered dataset, the LG further improves to 71.0% (compared to 61.5% on the original dataset), indicating that after removing evaluation noise from intermediate knowledge inconsistency, the actual efficacy of ChainEdit is even stronger.
  • The baseline LG for both large and small models is under 20%, illustrating that logical generalization is a common weakness of editing methods rather than an issue related to model scale.
  • The LoRA method paired with ChainEdit achieves 97.8-99.1% on SA (Subject Aliasing), which is near-perfect.
  • Batch editing experiments (Appendix D) further validate the scalability of the method.

Rating

  • Novelty: ⭐⭐⭐⭐ The combination of KG rules and LLM alignment is novel, though rule mining itself is a mature technology.
  • Experimental Thoroughness: ⭐⭐⭐⭐ Covers multiple editing methods across two models, with thorough ablation and dataset variant analyses.
  • Writing Quality: ⭐⭐⭐⭐⭐ The motivation is clear, examples are intuitive, and the framework diagrams are highly expressive.
  • Value: ⭐⭐⭐⭐ Logical generalization in knowledge editing is a real pain point, and the improvement of over 40% is highly significant.