导航的双重方面:在大语言模型中顺序记忆编辑的综合评价
Navigating the Dual Facets: A Comprehensive Evaluation of Sequential Memory Editing in Large Language Models
摘要:
内存编辑(ME)已经成为一种有效的方法来修改错误的事实或注入新的事实到大语言模型(LLM)。存在两种主流ME方法:参数修改ME和参数保留ME(在保留原始参数的同时集成额外的模块)。令人遗憾的是,以前的研究ME评价有两个关键的局限性:(一)评价LLM与单一的编辑,忽略了需要连续编辑,(二)评价只关注基本的事实三元组,忽视了更广泛的LLM能力,如逻辑推理和阅读理解。这项研究解决了这些限制与贡献三倍:(一)我们探讨了ME如何影响范围广泛的基本功能的LLM下顺序编辑。实验结果揭示了一个有趣的现象:大多数修改参数的ME在几次连续编辑后会持续降低所有任务的性能。相比之下,保留参数的ME有效地保持了LLM的基本功能,但很难准确地回忆以不同格式呈现的编辑过的知识。(ii)我们扩展我们的评估,以不同的编辑设置,如层编辑,模型大小,指令微调等。实验结果表明,几种策略,可以潜在地减轻ME的不利影响。(iii)我们进一步解释为什么参数修改ME损害LLM从三个维度:编辑后的参数变化,语言建模能力,和上下文学习能力。我们的深入研究提倡在现实世界中更谨慎地使用ME。
英文摘要:
Memory Editing (ME) has emerged as an efficient method to modify erroneous facts or inject new facts into Large Language Models (LLMs). Two mainstream ME methods exist: parameter-modifying ME and parameter-preserving ME (integrating extra modules while preserving original parameters). Regrettably, previous studies on ME evaluation have two critical limitations: (i) evaluating LLMs with single edit only, neglecting the need for continuous editing, and (ii) evaluations focusing solely on basic factual triples, overlooking broader LLM capabilities like logical reasoning and reading understanding. This study addresses these limitations with contributions threefold: (i) We explore how ME affects a wide range of fundamental capabilities of LLMs under sequential editing. Experimental results reveal an intriguing phenomenon: Most parameter-modifying ME consistently degrade performance across all tasks after a few sequential edits. In contrast, parameter-preserving ME effectively maintains LLMs' fundamental capabilities but struggles to accurately recall edited knowledge presented in a different format. (ii) We extend our evaluation to different editing settings, such as layers to edit, model size, instruction tuning, etc. Experimental findings indicate several strategies that can potentially mitigate the adverse effects of ME. (iii) We further explain why parameter-modifying ME damages LLMs from three dimensions: parameter changes after editing, language modeling capability, and the in-context learning capability. Our in-depth study advocates more careful use of ME in real-world scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。