MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questions

Zexuan Zhong, Zhengxuan Wu, Christopher D. Manning, Christopher Potts, Danqi Chen

Introduction

Large Language Models (LLMs) are trained on vast datasets, but their internal knowledge becomes static and eventually obsolete the moment training concludes. While retraining is computationally prohibitive, researchers have proposed "knowledge editing" techniques—such as ROME and MEMIT—to surgically update specific facts within a model's weights. However, these methods often focus on single-hop recall: can the model remember the specific fact it was just taught?

This paper argues that current evaluation metrics are insufficient. In a truly consistent world-view, changing one fact should trigger a "ripple effect" across all logically related information. For example, if a model is edited to believe that the Prime Minister of a country has changed, it should also correctly identify the new Prime Minister's spouse or birthplace when asked. The authors introduce the MQuAKE benchmark to test this capability and propose MeLLo, a retrieval-based reasoning framework that outperforms traditional weight-editing methods.

The MQuAKE Benchmark

The Multi-hop Question Answering for Knowledge Editing (MQuAKE) benchmark is designed to evaluate whether edited LLMs can handle the logical consequences of new information. MQuAKE consists of fact chains (2, 3, or 4 hops) derived from Wikidata. The benchmark is split into two primary datasets:

  • MQuAKE-CF (Counterfactual): This dataset uses artificial, counterfactual edits (e.g., changing a person's birthplace to a random city). This ensures the model cannot rely on its pre-existing training data and must instead utilize the edited information to answer correctly.
  • MQuAKE-T (Temporal): This dataset focuses on real-world changes that occurred between 2021 and 2023, such as changes in heads of state or sports team affiliations, testing the model's ability to synchronize with the current state of the world.

To ensure linguistic diversity, the authors utilized ChatGPT to transform raw Wikidata triples into natural, multi-hop questions, providing a more rigorous test of natural language understanding than simple template-based queries.

MeLLo: Memory-based Editing for LLMs

In response to the failures of weight-editing methods, the authors propose MeLLo (Memory-based Editing for LLMs). Unlike ROME or MEMIT, MeLLo leaves the base LLM's weights frozen. Instead, it treats the LLM as a reasoning engine that interacts with an external memory of edited facts through a "reason-then-check" loop:

  1. Decomposition: The LLM breaks a complex multi-hop question into simpler sub-questions.
  2. Tentative Answering: The LLM generates a candidate answer for the sub-question based on its internal knowledge.
  3. Retrieval & Self-Checking: MeLLo retrieves relevant edited facts from an external memory. If a retrieved fact contradicts the LLM's tentative answer, the system updates the answer to reflect the new information.
  4. Iteration: This process repeats until the model reaches a final answer for the original multi-hop question.

Key Results and Insights

The study reveals a significant gap between single-hop recall and multi-hop reasoning in edited models.

The "Knowledge Editing" Illusion

State-of-the-art weight-editing methods like ROME and MEMIT demonstrate a high success rate (often >90%) on single-hop tasks. However, their performance collapses on multi-hop questions. For instance, on MQuAKE-CF, a GPT-J model edited with ROME achieved an 88.3% success rate on single-hop recall but plummeted to only 7.4% on multi-hop questions. This suggests that weight editing creates a "lookup table" effect—the model learns to map a specific prompt to a new answer without integrating that fact into its broader reasoning framework.

Scaling and Stability

As the number of edits increases, the performance of weight-editing methods drops toward zero. In contrast, MeLLo remains relatively stable even as the external memory grows to thousands of facts. When paired with a strong base model like GPT-3.5-turbo, MeLLo achieved over 90% accuracy on real-world temporal updates in MQuAKE-T, significantly outperforming all weight-editing baselines.

The Role of Chain-of-Thought

While Chain-of-Thought (CoT) prompting can improve reasoning in general, it does not solve the underlying issue for weight-edited models. Even when prompted to reason step-by-step, these models struggle to access the "newly injected" knowledge during the intermediate steps of a logical chain.

Conclusion and Future Work

The MQuAKE benchmark highlights a critical failure in current knowledge editing research: the inability of weight-modified models to propagate changes through logical chains. MeLLo offers a robust alternative by combining frozen LLMs with external memory and iterative reasoning.

Future work remains in automating prompt engineering for MeLLo's decomposition steps and improving the retrieval bottleneck. While MeLLo excels as a "wrapper" for black-box models, the challenge of truly integrating new knowledge into a model's internal weights in a logically consistent way remains an open problem in the field.

Summary updated

BibTeX
@inproceedings{zhong2023mquake,
  author = {Zexuan Zhong and Zhengxuan Wu and Christopher D. Manning and Christopher Potts and Danqi Chen},
  title = {{MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questions}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.971},
}
Figure