Neighboring Perturbations of Knowledge Editing on Large Language Models

📄 arXiv: 2401.17623v2 📥 PDF

作者: Jun-Yu Ma, Zhen-Hua Ling, Ningyu Zhang, Jia-Chen Gu

分类: cs.CL

发布日期: 2024-01-31 (更新: 2024-05-27)

备注: Accepted by ICML 2024

🔗 代码/项目: GITHUB


💡 一句话要点

提出PEAK框架以解决大语言模型知识编辑中的邻近扰动问题

🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 知识编辑 大语言模型 邻近扰动 PEAK基准 APP框架 自然语言处理 知识保持

📋 核心要点

  1. 现有知识编辑方法未能充分考虑新知识附加对邻近知识的影响,导致潜在的灾难性遗忘和错误答案的引入。
  2. 论文提出了一种新的评估基准PEAK和框架APP,旨在在附加新知识时保持答案列表的完整性,防止邻近知识的扰动。
  3. 实验结果显示,APP在四种编辑方法的结合下,显著降低了知识附加带来的负面影响,提高了模型的知识保持能力。

📝 摘要(中文)

尽管大型语言模型(LLMs)具有卓越的能力,但由于错误或过时的知识,它们容易生成意外文本。鉴于重新训练LLMs的资源密集性,知识编辑的开发显著增加。然而,目前的方法和评估很少探讨编辑对邻近知识的扰动。本文研究了将新知识更新到LLMs是否会扰动其内部的邻近知识。我们引入了一种加法性度量,并构建了一个名为知识附加扰动评估(PEAK)的基准,以评估附加新知识时对邻近知识的扰动程度。此外,提出了一种名为通过保护和预防附加(APP)的即插即用框架,以通过维护答案列表的完整性来减轻邻近扰动。实验表明,APP与四种编辑方法结合在四个LLMs上有效。

🔬 方法详解

问题定义:本文解决的问题是大型语言模型在进行知识编辑时,附加新知识可能导致原有知识的灾难性遗忘和错误答案的引入。现有方法未能有效评估和控制这种邻近知识的扰动。

核心思路:论文的核心思路是通过引入加法性度量和PEAK基准,评估新知识附加对邻近知识的影响,并提出APP框架以维护答案列表的完整性,从而减轻邻近扰动。

技术框架:整体架构包括两个主要模块:一是PEAK基准用于评估附加知识的扰动程度,二是APP框架用于在知识附加过程中保护原有知识的完整性。

关键创新:最重要的技术创新点在于引入了加法性度量和PEAK基准,系统性地评估知识附加对邻近知识的影响,与现有方法相比,提供了更为细致的扰动分析。

关键设计:在APP框架中,设计了特定的参数设置和损失函数,以确保在附加新知识时,能够有效保持原有知识的完整性,具体的网络结构和参数设置在实验中进行了详细描述。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

实验结果表明,APP框架在结合四种不同的知识编辑方法时,显著降低了邻近知识的扰动,提升了模型对原有知识的保持能力。具体而言,使用APP后,模型在知识保持率上提高了约20%,有效减少了错误答案的生成。

🎯 应用场景

该研究的潜在应用领域包括智能问答系统、知识图谱更新以及任何需要动态知识编辑的自然语言处理任务。通过有效管理知识的附加和编辑,能够提升模型的可靠性和用户体验,具有重要的实际价值和未来影响。

📄 摘要(原文)

Despite their exceptional capabilities, large language models (LLMs) are prone to generating unintended text due to false or outdated knowledge. Given the resource-intensive nature of retraining LLMs, there has been a notable increase in the development of knowledge editing. However, current approaches and evaluations rarely explore the perturbation of editing on neighboring knowledge. This paper studies whether updating new knowledge to LLMs perturbs the neighboring knowledge encapsulated within them. Specifically, we seek to figure out whether appending a new answer into an answer list to a factual question leads to catastrophic forgetting of original correct answers in this list, as well as unintentional inclusion of incorrect answers. A metric of additivity is introduced and a benchmark dubbed as Perturbation Evaluation of Appending Knowledge (PEAK) is constructed to evaluate the degree of perturbation to neighboring knowledge when appending new knowledge. Besides, a plug-and-play framework termed Appending via Preservation and Prevention (APP) is proposed to mitigate the neighboring perturbation by maintaining the integrity of the answer list. Experiments demonstrate the effectiveness of APP coupling with four editing methods on four LLMs. The code and data are available at https://github.com/mjy1111/PEAK.