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

我们真的应该编辑语言模型吗?论已编辑语言模型的评估

Should We Really Edit Language Models? On the Evaluation of Edited Language Models

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Hong Kong Baptist University(香港浸会大学)

Qi Li, Xiang Liu, Zhenheng Tang, Peijie Dong, Zeyu Li, Xinglin Pan, Xiaowen Chu

AI总结:

本文系统评估多种模型编辑方法,发现编辑会损害语言模型通用能力与安全性,现有方法仅适合小规模知识更新。

摘要:

模型编辑已成为一种日益流行的替代方案,用于高效更新语言模型中的知识。当前方法主要关注可靠性、泛化性和局部性,许多方法在这些标准上表现优异。近期一些工作揭示了这些编辑方法的隐患,例如知识扭曲或冲突。然而,编辑后语言模型的通用能力仍未得到探索。本文对多种编辑方法和不同语言模型进行了全面评估,并得到以下发现。(1)现有编辑方法会在通用基准上造成不可避免的性能退化,表明现有编辑方法只能在几十次编辑内维持模型的通用能力。当编辑数量稍大时,模型的内在知识结构会受到扰乱,甚至被完全破坏。(2)指令微调模型对编辑更具鲁棒性,编辑后在通用知识上表现出更小的性能下降。(3)与小规模模型相比,大规模语言模型对编辑的抵抗力更强。(4)被编辑模型的安全性显著削弱,即使对于那些经过安全对齐的模型也是如此。我们的发现表明,当前编辑方法只适合语言模型内的小规模知识更新,这促使进一步研究更实用、更可靠的编辑方法。代码和复现细节可参见 https://github.com/lqinfdim/EditingEvaluation。

英文摘要:

Model editing has become an increasingly popular alternative for efficiently updating knowledge within language models. Current methods mainly focus on reliability, generalization, and locality, with many methods excelling across these criteria. Some recent works disclose the pitfalls of these editing methods such as knowledge distortion or conflict. However, the general abilities of post-edited language models remain unexplored. In this paper, we perform a comprehensive evaluation on various editing methods and different language models, and have following findings. (1) Existing editing methods lead to inevitable performance deterioration on general benchmarks, indicating that existing editing methods maintain the general abilities of the model within only a few dozen edits. When the number of edits is slightly large, the intrinsic knowledge structure of the model is disrupted or even completely damaged. (2) Instruction-tuned models are more robust to editing, showing less performance drop on general knowledge after editing. (3) Language model with large scale is more resistant to editing compared to small model. (4) The safety of the edited model, is significantly weakened, even for those safety-aligned models. Our findings indicate that current editing methods are only suitable for small-scale knowledge updates within language models, which motivates further research on more practical and reliable editing methods. The details of code and reproduction can be found in https://github.com/lqinfdim/EditingEvaluation.

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

↑