[论文解读] Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescue
本文指出,尽管模型编辑方法在纠正大语言模型(LLMs)的事实性幻觉方面有效,但往往严重损害其通用能力,如推理、问答和情感分析。通过对三种LLM在八个任务类别中系统评估四种编辑方法,作者发现即使单次编辑也会使通用任务性能降至接近零,因此主张采用正则化技术以在编辑过程中保持通用能力。
Model editing is a technique that edits the large language models (LLMs) with updated knowledge to alleviate hallucinations without resource-intensive retraining. While current model editing methods can effectively modify a model's behavior within a specific area of interest, they often overlook the potential unintended side effects on the general abilities of LLMs such as reasoning, natural language inference, and question answering. In this paper, we raise concerns that model editing's improvements on factuality may come at the cost of a significant degradation of the model's general abilities. We systematically analyze the side effects by evaluating four popular editing methods on three LLMs across eight representative tasks. Our extensive empirical experiments show that it is challenging for current editing methods to simultaneously improve factuality of LLMs and maintain their general abilities. Our analysis reveals that the side effects are caused by model editing altering the original model weights excessively, leading to overfitting to the edited facts. To mitigate this, a method named RECT is proposed to regularize the edit update weights by imposing constraints on their complexity based on the RElative Change in weighT. Evaluation results show that RECT can significantly mitigate the side effects of editing while still maintaining over 94% editing performance.
研究动机与目标
- 调查模型编辑是否会影响大语言模型(LLMs)的通用能力,如推理、问答和情感分析。
- 评估主流编辑方法在多样化下游任务中对泛化能力的副作用。
- 揭示事实性提升与通用性能下降之间的权衡,呼吁向更稳健的编辑范式转变。
- 倡导在知识编辑过程中采用正则化技术以保留预训练的通用能力。
- 呼吁建立全面的评估框架,以在编辑后同时评估事实准确性与通用任务性能。
提出的方法
- 在三种LLM(GPT-2 XL(1.5B)、LLaMA-1(7B)和LLaMA-2(7B))上系统评估四种最先进编辑方法——KN、MEND、ROME和MEMIT。
- 在八个代表性任务类别上评估性能:推理、自然语言蕴涵、开放域与封闭域问答、对话、摘要、命名实体识别和情感分析。
- 在实例编辑和批量编辑设置下,以及单次编辑和序列编辑场景中开展实验,以分析累积效应。
- 使用各任务类别的标准基准,在编辑前后测量性能下降情况。
- 分析编辑次数增加对模型鲁棒性和泛化能力的影响,特别关注LLaMA-1(7B)在MEND和MEMIT下的表现。
- 提出正则化作为解决方案,以在保持事实准确性的同时缓解通用能力的性能下降。
实验结果
研究问题
- RQ1模型编辑是否会在多样化下游任务中损害LLMs的通用能力?
- RQ2不同编辑方法(KN、MEND、ROME、MEMIT)对LLMs在推理和问答等通用任务上的性能有何影响?
- RQ3序列编辑或批量编辑对编辑后LLMs的泛化能力和鲁棒性有何影响?
- RQ4正则化技术能否在不损害事实准确性的情况下有效保留编辑过程中的通用能力?
- RQ5单次编辑在LLaMA-1(7B)上导致通用任务性能崩溃的程度如何?
主要发现
- 使用特定方法对LLaMA-1(7B)进行单次编辑,导致其在所有八个通用任务类别中的性能下降至接近零。
- 所有四种编辑方法——KN、MEND、ROME和MEMIT——在所评估的LLM和任务类别中均造成显著且一致的通用能力下降。
- 无论编辑设置如何(实例编辑、批量编辑、单次编辑或序列编辑),性能下降均被观察到。
- 推理和问答任务中的性能下降最为严重,表明编辑损害了LLMs的核心认知能力。
- 研究结果表明事实性提升与通用能力保持之间存在强烈负相关性,凸显了当前编辑实践中存在的关键权衡。
- 本研究呼吁采用基于正则化的方案,以实现事实校正与通用能力下降的解耦,强调需要开发更稳健、更具泛化能力的编辑方法。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。