NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Locate-then-edit for Multi-hop Factual Recall under Knowledge Editing

Zhuoran Zhang, Yongxiang Li, Zijian Kan, Keyuan Cheng, Lijie Hu, Di Wang

Introduction

Large Language Models (LLMs) act as massive knowledge bases, but they often contain outdated or incorrect information. Knowledge Editing (KE) aims to fix specific facts within a model without expensive retraining. A popular paradigm is "locate-then-edit," which identifies specific layers responsible for a fact and modifies their weights.

However, researchers have discovered that LLMs store and retrieve facts differently depending on whether they are asked a direct question or a complex, multi-hop one. By identifying that multi-hop reasoning relies on deeper MLP layers than single-hop tasks, the authors developed IFMET, a two-stage editing framework that successfully updates knowledge across the model's entire reasoning chain, doubling the performance of previous state-of-the-art methods.

The Multi-Hop Gap in Knowledge Editing

While current methods like ROME and MEMIT excel at "single-hop" edits (e.g., changing the capital of Spain from Madrid to Hartford), they consistently fail at multi-hop factual recall.

If you ask the edited model "What is the capital of Spain?", it correctly says "Hartford." But if you ask "What is the capital of the country where Pablo Picasso holds citizenship?", it reverts to the old answer: "Madrid." This "multi-hop gap" suggests that the model’s internal reasoning hasn't been fully updated, even if the surface-level fact has.

Existing single-hop edits fail on multi-hop queries, motivating the need for a furtherance edit.

Uncovering the Depth of Reasoning

To understand this failure, the authors used mechanistic interpretability tools—specifically LogitLens and Causal Intervention—to peek under the hood. They found a striking difference in how models process these queries:

  • Single-hop tasks primarily retrieve information from shallow MLP layers at the subject token position.
  • Multi-hop tasks accumulate implicit subject information (e.g., "Spain") at the last token position and retrieve the final answer from deeper MLP layers.
Logit Lens analysis for 2-hop cases shows the implicit subject probability peaking before the final answer emerges in deeper layers.

The most significant insight is that the model's "reasoning depth" is physical. As a model moves from identifying a subject to performing an implicit reasoning step, the computation migrates from shallow to deep layers. Because existing KE methods only use single-hop prompts for editing, they only activate and update shallow layers. The deeper layers—which are crucial for multi-hop chains—remain stuck with the old, unedited knowledge.

The IFMET Framework

Based on these findings, the authors proposed IFMET (Interpretability-Guided Furtherance Model Editing in a Transformer). Unlike previous methods that perform a single edit, IFMET uses a two-stage approach to update knowledge across the model's entire reasoning chain:

  1. Primary Edit: Uses a standard single-hop prompt (e.g., "The capital of Spain is...") to update shallow MLP layers.
  2. Furtherance Edit: Uses a generated multi-hop prompt (e.g., "The country where Barcelona is located has a capital city called...") to target and update the deeper MLP layers.

Key Results & Datasets

The study primarily utilized MQuAKE-3K (and its counterfactual variant MQuAKE-CF), a benchmark specifically designed to test multi-hop reasoning after knowledge editing. To construct the multi-hop prompts for the "furtherance edit," the authors used WikiData to find related preceding facts.

IFMET demonstrated a substantial leap in performance over existing "locate-then-edit" baselines like PMET, ROME, and MEMIT:

  • Accuracy Boost: On the MQuAKE-3K dataset using GPT-J (6B), IFMET achieved an average multi-hop accuracy of 31.01%, nearly doubling the 17.04% achieved by the previous state-of-the-art (PMET).
  • Consistency: The improvement was consistent across 2-hop, 3-hop, and 4-hop questions.
  • Chain-of-Thought (CoT) Synergy: When combined with CoT prompting, IFMET's performance improved even further, showing that the internal weight edits were robust enough to support explicit reasoning.
  • Generalizability: The authors successfully replicated these results on LLaMA-2-7B, proving the phenomenon isn't limited to a single model architecture.

Limitations and Future Work

While highly effective, IFMET introduces a few trade-offs:

  • Specificity Trade-off: There is a slight decrease in "specificity"—the ability to edit one fact without accidentally affecting unrelated neighboring facts. This suggests that deeper edits might have a wider "blast radius" than shallow ones.
  • Prompt Construction & Time Complexity: IFMET relies on having access to a multi-hop prompt. While this can be automated using WikiData or the model itself, it adds complexity to the pipeline. Furthermore, the two-stage process takes roughly twice as long as single-stage methods (e.g., ~9.7s vs ~5.0s for GPT-J).
  • Future Directions: The authors suggest exploring how these deeper layers handle even more complex logical structures beyond simple multi-hop chains, such as negation or temporal reasoning.

Summary updated

BibTeX
@inproceedings{zhang2025locate,
  author = {Zhuoran Zhang and Yongxiang Li and Zijian Kan and Keyuan Cheng and Lijie Hu and Di Wang},
  title = {{Locate-then-edit for Multi-hop Factual Recall under Knowledge Editing}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=kAWtGZIHzm},
}
Figure