现有编辑方法会破坏模型通用能力,仅适合小规模更新。
Should We Really Edit Language Models? On the Evaluation of Edited Language Models
- 评估多种编辑方法对模型通用性能的影响。
- 超过几十次编辑后模型知识结构被破坏,性能显著下降。
- 指令微调和大模型更抗编辑,但安全性和可靠性仍不足。
模型编辑已成为高效更新语言模型知识的热门替代方案。现有方法在可靠性、泛化性和局部性方面表现良好,但近期研究揭示了知识扭曲与冲突等缺陷。本文对多种编辑方法及不同语言模型进行全面评估,发现:(1)现有编辑方法导致通用基准性能不可避免下降,仅在数十次编辑内可维持模型通用能力;当编辑次数略多时,模型内在知识结构会被破坏甚至完全损毁。(2)指令微调模型对编辑更具鲁棒性,编辑后通用知识保持较好。(3)大规模语言模型比小模型更抗编辑。(4)编辑后模型安全性显著削弱,即使原本经过安全对齐。结果表明当前编辑方法仅适用于小规模知识更新,亟需更实用可靠的编辑技术。代码与复现细节见 https://github.com/lqinfdim/EditingEvaluation。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。