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

Abstract

The locate-then-edit paradigm has shown significant promise for knowledge editing (KE) in Large Language Models (LLMs). While previous methods perform well on single-hop fact recall tasks, they consistently struggle with multi-hop factual recall tasks involving newly edited knowledge. In this paper, leveraging tools in mechanistic interpretability, we first identify that in multi-hop tasks, LLMs tend to retrieve knowledge with implicit subject information from deeper MLP layers, unlike single-hop tasks, which rely on shallow layers. This distinction explains the poor performance of current methods in multi-hop queries, as they primarily focus on editing shallow layers with single-hop edit prompts, leaving deeper layers unchanged. To address this, we propose IFMET, a novel locate-then-edit KE approach designed to edit both shallow and deep MLP layers. Beyond single-hop editing prompts, IFMET further incorporates multi-hop editing prompts to locate and modify knowledge across different stages of reasoning. Experimental results demonstrate that IFMET significantly improves performance on multi-hop factual recall tasks, overcoming the limitations of previous locate-then-edit methods.

Introduction: The Reasoning Gap in Knowledge Editing

Large Language Models (LLMs) serve as vast repositories of knowledge, but keeping this information current requires efficient Knowledge Editing (KE) techniques. The "locate-then-edit" paradigm is the current state-of-the-art, identifying specific MLP layers where facts are stored and modifying their weights. However, these methods suffer from a persistent "reasoning gap." While a model might correctly answer a direct question after an edit (e.g., changing the capital of Spain to "Hartford"), it often fails when that same fact is required as an intermediate step in a multi-hop reasoning chain.

Overview of the reasoning gap in existing locate-then-edit methods and the proposed furtherance edit approach.

Mechanistic Insights: Where is Knowledge Stored?

To investigate this gap, we utilized mechanistic interpretability tools, specifically Logit Lens and causal interventions. Our findings reveal a fundamental mechanical difference in how LLMs process information based on the query type:

  1. Single-hop tasks retrieve information from shallow MLP layers using explicit subject tokens.
  2. Multi-hop tasks retrieve information from deeper MLP layers at the last token position of the prompt, where information about the "implicit subject" accumulates.
Logit Lens analysis showing that implicit subject information peaks in middle layers while the final answer peaks in deeper layers for 2-hop tasks.

This layer disconnect explains why traditional KE methods fail; by focusing edits on shallow layers using single-hop prompts, they leave the deeper layers—which the model actually relies on for complex reasoning—unchanged.

The IFMET Framework

We introduce IFMET (Interpretability-Guided Furtherance Model Editing in a Transformer), a two-stage editing framework designed to ensure knowledge propagates through the model's internal reasoning pathways.

The process begins with a standard single-hop edit to update shallow layers. To address the deep-layer retrieval observed in complex queries, IFMET then executes a "furtherance edit" stage. This stage utilizes multi-hop prompts automatically constructed from WikiData using SPARQL queries. These prompts allow the algorithm to locate and update the target knowledge in the deeper MLP layers identified by our mechanistic analysis. By modifying both shallow and deep representations, IFMET ensures that the new information is accessible whether the model is performing direct recall or multi-step reasoning.

Experimental Evaluation

IFMET was evaluated on the MQuAKE-3K dataset using models such as GPT-J-6B and LLaMA-2-7B. MQuAKE-3K is specifically designed for testing multi-hop factual recall after editing, containing chains of facts and corresponding complex questions. The results were significant:

  • Accuracy Boost: IFMET achieved a multi-hop accuracy of 31.01%, nearly doubling the performance of the previous best method, PMET (17.04%).
  • Consistency: Improvements were consistent across 2-hop, 3-hop, and 4-hop queries, as well as across different numbers of simultaneous edits.
  • Ablation Results: Removing the furtherance step caused performance on multi-hop questions to crater, confirming that editing deep layers is essential for reasoning tasks.

While the two-stage process is slightly slower than single-stage methods—taking approximately 9.7 seconds per edit on GPT-J-6B compared to PMET’s 5.0 seconds—the gain in reasoning reliability is substantial.

Conclusion and Limitations

IFMET successfully bridges the reasoning gap in knowledge editing by aligning the editing process with the model's internal retrieval mechanisms. Although the method relies on the ability to generate multi-hop prompts and is computationally more intensive than single-stage edits, it represents a significant step toward more robust and consistent knowledge management in LLMs. Future work will focus on optimizing prompt construction and testing the framework on larger-scale models exceeding 70B parameters.

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