arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12949cs.LGcs.CL
收藏

机制性反学习:通过机制定位实现鲁棒的知识反学习与编辑

Mechanistic Unlearning: Robust Knowledge Unlearning and Editing via Mechanistic Localization

University of Maryland(马里兰大学);Georgia Institute of Technology(佐治亚理工学院);University of Bristol(布里斯托大学);Google DeepMind(谷歌DeepMind)

Phillip Guo, Aaquib Syed, Abhay Sheshadri, Aidan Ewart, Gintare Karolina Dziugaite

AI总结:

本文利用机制可解释性定位事实回忆的查找表机制组件,将知识编辑与反学习限制在该电路内,从而提升跨格式鲁棒性、抗重学习与抗攻击能力并减少副作用。

摘要:

大型语言模型中的知识编辑和反学习方法旨在编辑或移除不良知识或能力,同时不损害通用语言建模性能。本研究考察机制可解释性如何提升编辑与反学习的精确性和有效性;机制可解释性的部分目标是识别与构成模型能力的特定可解释机制相关联的模型组件(电路)。我们发现,在训练由不同方法定位的组件时,反学习和编辑的鲁棒性存在显著差异。我们强调了两类方法之间的重要区别:一类主要基于保持输出来定位组件,另一类则寻找具有可预测中间状态的高层机制。特别是,将编辑/反学习定位于与事实回忆的查找表机制相关的组件:1)可在不同输入/输出格式下带来更鲁棒的编辑/反学习;2)可抵抗重新学习不良信息的尝试,同时在多个模型上的体育事实数据集和 CounterFact 数据集中,相较基线减少非预期副作用。我们还发现,某些局部化编辑比任何其他基线都更能破坏模型中的潜在知识,使反学习对各种攻击更具鲁棒性。

英文摘要:

Methods for knowledge editing and unlearning in large language models seek to edit or remove undesirable knowledge or capabilities without compromising general language modeling performance. This work investigates how mechanistic interpretability -- which, in part, aims to identify model components (circuits) associated to specific interpretable mechanisms that make up a model capability -- can improve the precision and effectiveness of editing and unlearning. We find a stark difference in unlearning and edit robustness when training components localized by different methods. We highlight an important distinction between methods that localize components based primarily on preserving outputs, and those finding high level mechanisms with predictable intermediate states. In particular, localizing edits/unlearning to components associated with the lookup-table mechanism for factual recall 1) leads to more robust edits/unlearning across different input/output formats, and 2) resists attempts to relearn the unwanted information, while also reducing unintended side effects compared to baselines, on both a sports facts dataset and the CounterFact dataset across multiple models. We also find that certain localized edits disrupt the latent knowledge in the model more than any other baselines, making unlearning more robust to various attacks.

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

↑