PokeMQA: Programmable knowledge editing for Multi-hop Question Answering

Hengrui Gu, Kaixiong Zhou, Xiaotian Han, Ninghao Liu, Ruobing Wang, Xin Wang

Large Language Models (LLMs) are impressive, but they suffer from a "stale knowledge" problem. While the world changes—such as athletes moving teams or political leaders resigning—the weights of a pre-trained model remain frozen. Traditional "knowledge editing" techniques often fail when applied to Multi-hop Question Answering (MQA), where a single factual update must cascade through a complex reasoning chain.

Researchers from Jilin University have introduced PokeMQA, a framework that addresses these failures by decoupling the reasoning process from the task of conflict detection. By offloading fact-checking to an external "programmable scope detector," PokeMQA ensures that models arrive at the correct answers for the right reasons.

The Challenge of Multi-hop Reasoning

Current state-of-the-art methods like MeLLo attempt to handle knowledge updates by asking the LLM to simultaneously decompose questions, generate answers, and check for conflicts with edited facts. This approach leads to two primary issues:

  1. Cognitive Overload: Forcing an LLM to perform reasoning and conflict checking at once interferes with its core logical strengths.
  2. Unreliable Reasoning: Models often exhibit "shortcut reasoning," where they reach a correct final answer using outdated or non-existent facts, leading to high standard accuracy but low logical integrity.
Figure 1: Comparison of gold reasoning paths versus unreliable shortcut reasoning where the model reaches the correct answer through flawed logic.

The PokeMQA Framework

PokeMQA introduces a "programmable" approach using external, trainable modules that can be updated without retraining the massive backbone LLM. The architecture is built on three main pillars:

  • Decoupled Architecture: Instead of the LLM checking for conflicts, a standalone Programmable Scope Detector determines if a sub-question falls within the scope of edited facts. It uses a fast Pre-detector ($M_{pre}$) to filter irrelevant edits and a precise Conflict Disambiguator ($M_{dis}$) to identify the exact edit to apply.
  • Knowledge Prompt Generator ($M_{gen}$): This module uses entity linking to pull commonsense context from external knowledge bases (like Wikidata), injecting it into the initial prompt to stabilize the model's decomposition process.
  • Hop-wise Answering Accuracy (Hop-Acc): To move beyond deceptive standard accuracy metrics, the authors propose Hop-Acc, which evaluates whether every intermediate step in the reasoning chain is correct.
Figure 2: The PokeMQA architecture, showing the decoupling of the LLM's inference from the external Scope Detector and Prompt Generator.

Key Results and Scalability

PokeMQA was evaluated on benchmarks like MQuAKE-CF-3K (counterfactual edits) and MQuAKE-T (temporal updates). The results demonstrate a significant leap over previous methods:

  • Superior Reliability: On the LLaMa-2-7B backbone, PokeMQA achieved 30.60% Hop-Acc, a dramatic improvement over MeLLo's 9.90%. This confirms that the decoupled approach leads to much more reliable reasoning chains.
  • High Accuracy: PokeMQA reached 44.13% accuracy on the MQuAKE-CF-3K task, outperforming both MeLLo (33.57%) and parameter-editing methods like MEMIT.
  • Robust Scalability: Unlike parameter-updating methods that degrade as the number of edits increases, PokeMQA remains robust even when handling thousands of facts in "all-edited" batches.

Conclusion

PokeMQA demonstrates that the key to keeping LLMs up-to-date in complex scenarios is not necessarily changing the model's weights, but rather managing the "scope" of its knowledge externally. By separating reasoning from fact-checking, PokeMQA provides a scalable and reliable path for maintaining the accuracy of LLMs in a constantly changing world.

Summary updated

BibTeX
@inproceedings{gu2024pokemqa,
  author = {Hengrui Gu and Kaixiong Zhou and Xiaotian Han and Ninghao Liu and Ruobing Wang and Xin Wang},
  title = {{PokeMQA: Programmable knowledge editing for Multi-hop Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.438},
}
Figure