Decoupling Reasoning and Knowledge Injection for In-Context Knowledge Editing

Changyue Wang, Weihang Su, Qingyao Ai, Yujia Zhou, Yiqun Liu
5/31/2025
cs.CLcs.AI

Official code: bebr2/DecKER (3 stars, last commit 2025-08-21).

Abstract

Knowledge editing aims to efficiently update Large Language Models (LLMs) by modifying specific knowledge without retraining the entire model. Among knowledge editing approaches, in-context editing (ICE) offers a lightweight solution by injecting new knowledge directly into the input context, leaving model parameters unchanged. However, existing ICE approaches do not explicitly separate the newly injected knowledge from the model's original reasoning process. This entanglement often results in conflicts between external updates and internal parametric knowledge, undermining the consistency and accuracy of the reasoning path.In this work, we conduct preliminary experiments to examine how parametric knowledge influences reasoning path planning. We find that the model's reasoning is tightly coupled with its internal knowledge, and that naively injecting new information without adapting the reasoning path often leads to performance degradation, particularly in multi-hop tasks. To this end, we propose DecKER, a novel ICE framework that decouples reasoning from knowledge editing by generating a masked reasoning path and then resolving knowledge edits via hybrid retrieval and model-based validation. Experiments on multi-hop QA benchmarks show that DecKER significantly outperforms existing ICE methods by mitigating knowledge conflicts and preserving reasoning consistency. Our code is available at: https://github.com/bebr2/DecKER .

View on arXivView PDF

Code Implementations(1)

bebr2/DecKEROfficial100%

Source code of DecKER, ACL 2025 Long Paper

32PythonFeb 10, 20251 years ago

Similar Papers

Cite this paper

@article{wang2025decoupling,
  title  = {Decoupling Reasoning and Knowledge Injection for In-Context Knowledge Editing},
  author = {Changyue Wang and Weihang Su and Qingyao Ai and Yujia Zhou and Yiqun Liu},
  year   = {2025},
  eprint = {2506.00536},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.00536v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.00536.svg)](https://codeofpaper.com/paper/2506.00536)

Discussion