arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.07413cs.CL
收藏

知识叠加:揭示大型语言模型终身知识编辑的失败原因

Knowledge in Superposition: Unveiling the Failures of Lifelong Knowledge Editing for Large Language Models

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Chenhui Hu, Pengfei Cao, Yubo Chen, Kang Liu, Jun Zhao

AI总结:

本研究从叠加视角揭示知识编辑在终身编辑中失败的根源,通过数学推导识别干扰项,并在多模型实验中证实知识叠加的普遍性,为改进知识编辑提供理论基础。

摘要:

知识编辑旨在更新大型语言模型(LLMs)中过时或错误的知识。然而,当前的知识编辑方法在终身编辑场景下的可扩展性有限。本研究探讨了知识编辑在终身编辑中失败的根本原因。我们首先从线性联想记忆推导出的闭式解入手,该解支撑了最先进的知识编辑方法。我们将该解从单次编辑扩展到终身编辑,并通过严谨的数学推导,在最终解中识别出一个干扰项,表明编辑知识可能影响不相关的知识。对干扰项的进一步分析揭示了其与知识表示之间叠加现象的密切关系。当语言模型中不存在知识叠加时,干扰项消失,从而实现无损知识编辑。在众多语言模型上的实验表明,知识叠加具有普遍性,表现出高峰度、零均值和重尾分布,并具有清晰的缩放规律。最终,通过理论与实验的结合,我们证明了知识叠加是终身编辑失败的根本原因。此外,这是首次从叠加角度研究知识编辑的工作,并在众多真实世界语言模型上提供了对叠加现象的全面观察。代码可在 https://github.com/ChenhuiHu/knowledge_in_superposition 获取。

英文摘要:

Knowledge editing aims to update outdated or incorrect knowledge in large language models (LLMs). However, current knowledge editing methods have limited scalability for lifelong editing. This study explores the fundamental reason why knowledge editing fails in lifelong editing. We begin with the closed-form solution derived from linear associative memory, which underpins state-of-the-art knowledge editing methods. We extend the solution from single editing to lifelong editing, and through rigorous mathematical derivation, identify an interference term in the final solution, suggesting that editing knowledge may impact irrelevant knowledge. Further analysis of the interference term reveals a close relationship with superposition between knowledge representations. When knowledge superposition does not exist in language models, the interference term vanishes, allowing for lossless knowledge editing. Experiments across numerous language models reveal that knowledge superposition is universal, exhibiting high kurtosis, zero mean, and heavy-tailed distributions with clear scaling laws. Ultimately, by combining theory and experiments, we demonstrate that knowledge superposition is the fundamental reason for the failure of lifelong editing. Moreover, this is the first study to investigate knowledge editing from the perspective of superposition and provides a comprehensive observation of superposition across numerous real-world language models. Code available at https://github.com/ChenhuiHu/knowledge_in_superposition.

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

↑