提出让大模型忘记数据更抗重学攻击的新方法
Towards LLM Unlearning Resilient to Relearning Attacks: A Sharpness-Aware Minimization Perspective and Beyond
- 用平滑优化思路提升遗忘模型的鲁棒性
- 在WMDP和MUSE数据集上显著降低重学攻击成功率
- 适合关注大模型安全与合规的研究者
大语言模型遗忘技术旨在满足数据合规要求并解决模型的安全与伦理问题,通过消除模型中不良的数据影响。然而,现有遗忘方法存在严重缺陷:仅需少量遗忘数据点即可引发信息重学,即重学攻击。本文首次通过统一的鲁棒优化框架,建立遗忘鲁棒性与平滑感知最小化(SAM)之间的联系,类比对抗训练防御对抗攻击。分析表明,平滑优化在缓解重学攻击中起关键作用。为此,我们探索多种平滑策略以增强遗忘鲁棒性。在基准数据集WMDP和MUSE上的大量实验表明,采用SAM及其他平滑优化方法能持续提升遗忘模型对重学攻击的抵抗能力。值得注意的是,增强平滑性的遗忘方法还能有效防御(输入级)越狱攻击,进一步拓展了本方案在强化大模型遗忘鲁棒性方面的影响。代码已公开于https://github.com/OPTML-Group/Unlearn-Smooth。
原文摘要 · Abstract (English)
The LLM unlearning technique has recently been introduced to comply with data regulations and address the safety and ethical concerns of LLMs by removing the undesired data-model influence. However, state-of-the-art unlearning methods face a critical vulnerability: they are susceptible to ``relearning'' the removed information from a small number of forget data points, known as relearning attacks. In this paper, we systematically investigate how to make unlearned models robust against such attacks. For the first time, we establish a connection between robust unlearning and sharpness-aware minimization (SAM) through a unified robust optimization framework, in an analogy to adversarial training designed to defend against adversarial attacks. Our analysis for SAM reveals that smoothness optimization plays a pivotal role in mitigating relearning attacks. Thus, we further explore diverse smoothing strategies to enhance unlearning robustness. Extensive experiments on benchmark datasets, including WMDP and MUSE, demonstrate that SAM and other smoothness optimization approaches consistently improve the resistance of LLM unlearning to relearning attacks. Notably, smoothness-enhanced unlearning also helps defend against (input-level) jailbreaking attacks, broadening our proposal's impact in robustifying LLM unlearning. Codes are available at https://github.com/OPTML-Group/Unlearn-Smooth.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。