arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.12456cs.CL
收藏

在大语言模型编辑中通过知识擦除增强多跳推理

Enhancing Multi-hop Reasoning through Knowledge Erasure in Large Language Model Editing

Shandong University(山东大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)

Mengqi Zhang, Bowen Fang, Qiang Liu, Pengjie Ren, Shu Wu, Zhumin Chen, Liang Wang

AI总结:

针对知识编辑在多跳推理中的局限性,研究验证了残留单跳知识导致模型恢复旧答案的假设,并提出包含知识擦除与注入联合优化的KELE方法,显著提升了GPT-J和GPT-2 XL的多跳推理能力。

摘要:

大型语言模型(LLMs)面临内部知识不准确和过时信息的挑战。知识编辑已成为缓解这些问题的关键方法。尽管当前的知识编辑技术在单跳推理任务中表现出良好的性能,但在应用于多跳推理时仍显示出局限性。借鉴认知神经科学和LLMs的运行机制,我们假设编辑后残留的单跳知识会导致已编辑模型在处理多跳问题时恢复其原始答案,从而削弱其在多跳推理任务中的表现。为了验证这一假设,我们进行了一系列实验并从经验上证实了我们的设想。基于已验证的假设,我们提出了一种新颖的知识编辑方法,该方法为大型语言模型编辑引入了知识擦除机制(KELE)。具体而言,我们设计了针对残留知识的擦除函数和针对新知识的注入函数。通过联合优化,我们推导出最优召回向量,随后在秩一编辑框架内利用该向量来更新目标模型层的参数。在GPT-J和GPT-2 XL上的大量实验表明,KELE显著增强了已编辑LLMs的多跳推理能力。

英文摘要:

Large language models (LLMs) face challenges with internal knowledge inaccuracies and outdated information. Knowledge editing has emerged as a pivotal approach to mitigate these issues. Although current knowledge editing techniques exhibit promising performance in single-hop reasoning tasks, they show limitations when applied to multi-hop reasoning. Drawing on cognitive neuroscience and the operational mechanisms of LLMs, we hypothesize that the residual single-hop knowledge after editing causes edited models to revert to their original answers when processing multi-hop questions, thereby undermining their performance in multihop reasoning tasks. To validate this hypothesis, we conduct a series of experiments that empirically confirm our assumptions. Building on the validated hypothesis, we propose a novel knowledge editing method that incorporates a Knowledge Erasure mechanism for Large language model Editing (KELE). Specifically, we design an erasure function for residual knowledge and an injection function for new knowledge. Through joint optimization, we derive the optimal recall vector, which is subsequently utilized within a rank-one editing framework to update the parameters of targeted model layers. Extensive experiments on GPT-J and GPT-2 XL demonstrate that KELE substantially enhances the multi-hop reasoning capability of edited LLMs.

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

↑