2025-03-21 · 专家 · 机器学习 · 自然语言处理

CaKE: Circuit-aware Editing Enables Generalizable Knowledge Learners

CaKE通过分析推理电路,提出了一种新颖的知识编辑方法,有效提高了大型语言模型在多跳推理任务中的知识利用和泛化能力。

更新于 2025-03-21。作者:Yunzhi Yao、Jizhan Fang、Jia-Chen Gu、Ningyu Zhang、Shumin Deng、Huajun Chen、Nanyun Peng。

中文摘要

知识编辑(KE)使大型语言模型(LLMs)中过时或错误的信息得以修改。尽管现有的KE方法可以更新孤立的事实,但它们在将这些更新推广到依赖于修改后知识的跨步推理任务方面存在困难。通过对推理电路——LLMs用于基于知识的推理的神经网络通路的分析,我们发现当前的层局部化KE方法,如MEMIT和WISE,仅编辑单个或少数模型层,难以有效地将这些更新信息融入这些推理路径。为了解决这一局限性,我们提出了CaKE(电路感知知识编辑),这是一种新颖的方法,它使LLMs中更新知识的更有效集成成为可能。CaKE利用基于电路分析精心挑选的数据,强制模型利用修改后的知识,刺激模型为新集成的知识发展适当的推理电路。实验结果表明,CaKE使得在相关推理任务中更准确和一致地使用更新知识成为可能,在MQuAKE数据集上,与现有的KE方法相比,多步推理准确率平均提高了20%。我们在https://github.com/zjunlp/CaKE上发布了代码和数据。

英文摘要

Knowledge Editing (KE) enables the modification of outdated or incorrect information in large language models (LLMs). While existing KE methods can update isolated facts, they struggle to generalize these updates to multi-hop reasoning tasks that depend on the modified knowledge. Through an analysis of reasoning circuits -- the neural pathways LLMs use for knowledge-based inference, we observe that current layer-localized KE approaches, such as MEMIT and WISE, which edit only single or a few model layers, struggle to effectively incorporate updated information into these reasoning pathways. To address this limitation, we propose CaKE (Circuit-aware Knowledge Editing), a novel method that enables more effective integration of updated knowledge in LLMs. CaKE leverages strategically curated data, guided by our circuits-based analysis, that enforces the model to utilize the modified knowledge, stimulating the model to develop appropriate reasoning circuits for newly integrated knowledge. Experimental results show that CaKE enables more accurate and consistent use of updated knowledge across related reasoning tasks, leading to an average of 20% improvement in multi-hop reasoning accuracy on MQuAKE dataset compared to existing KE methods. We release the code and data in https://github.com/zjunlp/CaKE.

解读

一句话总结

CaKE通过分析推理电路,提出了一种新颖的知识编辑方法,有效提高了大型语言模型在多跳推理任务中的知识利用和泛化能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt