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

通过适配直接偏好优化在语言模型中进行知识编辑

Knowledge Editing in Language Models via Adapted Direct Preference Optimization

School of Computer Science, Tel Aviv University(特拉维夫大学计算机科学学院);Faculty of Engineering, Bar Ilan University(巴伊兰大学工程学院)

Amit Rozner, Barak Battash, Lior Wolf, Ofir Lindenbaum

AI总结:

提出将知识编辑视为LLM对齐问题,引入知识直接偏好优化(KDPO)方法,通过在线持续更新和teacher-forcing负样本生成实现局部化修改,在多种数据集和模型上实现了更精细且性能更优的知识编辑。

摘要:

大型语言模型(LLMs)随着时间推移可能会过时,因为它们可能缺乏更新的世界知识,从而导致事实性知识错误和知识空白。知识编辑(KE)旨在通过不需要昂贵重训练的权重更新来克服这一挑战。我们提出将KE视为一个LLM对齐问题。为此,我们引入了知识直接偏好优化(KDPO),这是直接偏好优化(DPO)的一种变体,对知识修改更为有效。我们的方法基于一种在线方法,持续更新模型中存储的知识。我们在称为DPO的过程中,将当前知识作为负样本,将我们想要引入的新知识作为正样本。我们还使用teacher-forcing进行负样本生成,并使用正样本进行优化,这有助于保持局部变化。我们在各种数据集和模型上测试了我们的KE方法,将其与几种前沿方法进行比较,进行了100和500次连续编辑。此外,我们进行了消融研究,将我们的方法与标准DPO方法进行比较。我们的实验结果表明,我们修改后的DPO方法允许更精细的KE,与以前的方法相比实现了相似或更好的性能。

英文摘要:

Large Language Models (LLMs) can become outdated over time as they may lack updated world knowledge, leading to factual knowledge errors and gaps. Knowledge Editing (KE) aims to overcome this challenge using weight updates that do not require expensive retraining. We propose treating KE as an LLM alignment problem. Toward this goal, we introduce Knowledge Direct Preference Optimization (KDPO), a variation of the Direct Preference Optimization (DPO) that is more effective for knowledge modifications. Our method is based on an online approach that continually updates the knowledge stored in the model. We use the current knowledge as a negative sample and the new knowledge we want to introduce as a positive sample in a process called DPO. We also use teacher-forcing for negative sample generation and optimize using the positive sample, which helps maintain localized changes. We tested our KE method on various datasets and models, comparing it to several cutting-edge methods, with 100 and 500 sequential edits. Additionally, we conducted an ablation study comparing our method to the standard DPO approach. Our experimental results show that our modified DPO method allows for more refined KE, achieving similar or better performance compared to previous methods.

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

↑