arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.00536cs.CLcs.AI
收藏

解耦上下文知识编辑中的推理与知识注入

Decoupling Reasoning and Knowledge Injection for In-Context Knowledge Editing

Tsinghua University(清华大学)

Changyue Wang, Weihang Su, Qingyao Ai, Yujia Zhou, Yiqun Liu

AI总结:

针对上下文知识编辑中新知识注入与模型推理纠缠导致冲突的问题,提出DecKER框架,通过生成掩码推理路径并结合混合检索与模型验证解耦推理与知识编辑,在多跳问答基准上显著提升了推理一致性与准确性。

摘要:

知识编辑旨在通过修改特定知识来高效更新大型语言模型(LLMs),而无需重新训练整个模型。在知识编辑方法中,上下文编辑(ICE)通过将新知识直接注入输入上下文来提供一种轻量级解决方案,保持模型参数不变。然而,现有的ICE方法并未将新注入的知识与模型原始推理过程明确分离。这种纠缠通常导致外部更新与内部参数化知识之间产生冲突,破坏推理路径的一致性和准确性。在本研究中,我们进行了初步实验以检验参数化知识如何影响推理路径规划。我们发现模型的推理与其内部知识紧密耦合,且在不调整推理路径的情况下简单注入新信息通常会导致性能下降,特别是在多跳任务中。为此,我们提出DecKER,一种新型ICE框架,通过生成掩码推理路径,随后通过混合检索和基于模型的验证来解决知识编辑,从而将推理与知识编辑解耦。在多跳QA基准上的实验表明,DecKER通过缓解知识冲突并保持推理一致性,显著优于现有ICE方法。

英文摘要:

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 .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑