Retrieval-enhanced Knowledge Editing in Language Models for Multi-Hop Question Answering

Yucheng Shi, Qiaoyu Tan, Xuansheng Wu, Shaochen Zhong, Kaixiong Zhou, Ninghao Liu

Abstract

Large Language Models (LLMs) often struggle to answer complex, multi-step questions when the underlying facts change. This paper introduces RAE (Retrieval-Augmented model Editing), a framework that uses mutual information to retrieve precise "fact chains" and an entropy-based pruning strategy to strip away redundant information, significantly improving the accuracy of multi-hop question answering without needing to retrain the model.

Introduction: The Challenge of the Ripple Effect

LLMs are snapshots of information at their time of training. When real-world facts change—such as a change in political leadership or corporate valuations—the model becomes outdated. While "model editing" aims to correct individual facts, it faces a significant hurdle with multi-hop questions.

For instance, updating the fact that "The Prime Minister of the UK is now Rishi Sunak" is straightforward for single-hop queries. However, a multi-hop question like "What is the net worth of the UK Prime Minister?" requires the model to link the updated entity (Sunak) to his specific financial data. This creates a "ripple effect" where one edit necessitates a chain of logical updates. Traditional Retrieval-Augmented Generation (RAG) often fails here because it relies on semantic similarity; the query about "net worth" may not semantically resemble the fact about the "Prime Minister," leading to retrieval failures.

The challenge of naive retrieval in multi-hop model editing.

Methodology: Retrieval-Augmented model Editing (RAE)

The RAE framework moves beyond simple similarity searches toward a reasoning-aware approach consisting of three core components:

1. MI-based Retrieval

Instead of searching for facts that look like the question, RAE maximizes the Mutual Information (MI) between retrieved facts and the query. By treating the LLM as a probability engine, RAE estimates which facts in a Knowledge Graph (KG) are most logically relevant to completing the "fact chain" required for an answer.

2. Knowledge Graph Integration

RAE integrates edited facts into a structured Knowledge Graph (e.g., Wikidata). This allows the system to perform graph traversals (e.g., UK → Prime Minister → Rishi Sunak → Net Worth), ensuring that logically connected but semantically distant facts are captured.

3. Uncertainty-based Pruning

To prevent hallucinations caused by redundant or noisy information, RAE utilizes the model’s own output entropy. By measuring the model's uncertainty, RAE identifies a "Goldilocks" set of facts that minimizes entropy, ensuring the LLM is as confident as possible in its final response.

The RAE framework: from knowledge insertion to in-context learning.

Experimental Results

RAE was evaluated on three primary benchmarks: MQUAKE-CF (counterfactual edits), MQUAKE-T (temporal edits), and Popular (2-hop questions on popular entities).

  • Accuracy: On the MQUAKE-CF dataset, RAE achieved 62.8% accuracy using GPT-2, whereas traditional weight-editing methods like MEMIT struggled at just 2.3%.
  • Cost Efficiency: When applied to proprietary models like GPT-4, RAE outperformed "generate-then-retrieve" methods (e.g., Mello) while incurring only 15% of the cost by avoiding expensive multi-round LLM calls.
  • Robustness: Unlike many RAG methods that degrade as the number of edits increases, RAE maintained stable performance even with a batch size of 1,000 edits.

Conclusion

RAE demonstrates that effective model editing for complex reasoning does not require retraining or extensive weight modification. By leveraging structured knowledge graphs and information-theoretic retrieval, RAE successfully addresses the "ripple effect" in LLMs. Future work will focus on automating the detection of required hop counts and further optimizing MI estimation to reduce computational overhead.

Summary updated

BibTeX
@inproceedings{shi2024retrieval,
  author = {Yucheng Shi and Qiaoyu Tan and Xuansheng Wu and Shaochen Zhong and Kaixiong Zhou and Ninghao Liu},
  title = {{Retrieval-enhanced Knowledge Editing in Language Models for Multi-Hop Question Answering}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  url = {https://openreview.net/forum?id=byo12MZrBj},
}
Figure