警惕 LLM 机器遗忘:隐藏风险与补救措施
Keeping an Eye on LLM Unlearning: The Hidden Risk and Remedy
AI总结:
本文揭示了基于微调的LLM机器遗忘存在被恶意构造遗忘请求隐蔽降低模型效用的漏洞,并提出轻量级范围感知遗忘(SU)方法,通过引入范围项局部化遗忘效果,有效提升了模型鲁棒性。
摘要:
尽管大型语言模型(LLMs)在广泛任务中展现出卓越能力,但人们对训练期间滥用敏感、受版权保护或有害数据日益担忧。为应对此问题,人们开发了机器遗忘技术,旨在无需从头重训的情况下消除特定数据的影响。然而,本文揭示了基于微调的机器遗忘中的一个关键漏洞:恶意用户可构造操纵性遗忘请求,隐蔽地降低模型对良性用户的效用。我们通过红队测试 Stealthy Attack(SA,隐蔽攻击)展示了这一风险,其灵感源于现有机器遗忘的两个关键局限(无法约束遗忘效果的作用范围,以及无法区分良性 token 与遗忘信号)。先前研究表明,被遗忘模型倾向于将遗忘数据记忆为遗忘信号,并在输入中出现遗忘信号时以幻觉或佯装无知作答。通过微妙地增加遗忘数据中常见良性 token 的出现频率,SA 增强了良性 token 与遗忘信号间的联系。因此,当正常用户在提示词中包含此类 token 时,模型会表现出遗忘行为,导致非预期的效用下降。为解决该漏洞,我们提出了 Scope-aware Unlearning(SU,范围感知遗忘),这是一种轻量级增强方法,它在遗忘目标中引入范围项,鼓励模型局部化遗忘效果。该方法无需额外数据处理,可与现有微调框架无缝集成,并显著提升了对 SA 的鲁棒性。大量实验验证了 SA 与 SU 的有效性。
英文摘要:
Although Large Language Models (LLMs) have demonstrated impressive capabilities across a wide range of tasks, growing concerns have emerged over the misuse of sensitive, copyrighted, or harmful data during training. To address these concerns, unlearning techniques have been developed to remove the influence of specific data without retraining from scratch. However, this paper reveals a critical vulnerability in fine-tuning-based unlearning: a malicious user can craft a manipulated forgetting request that stealthily degrades the model's utility for benign users. We demonstrate this risk through a red-teaming Stealthy Attack (SA), which is inspired by two key limitations of existing unlearning (the inability to constrain the scope of unlearning effect and the failure to distinguish benign tokens from unlearning signals). Prior work has shown that unlearned models tend to memorize forgetting data as unlearning signals, and respond with hallucinations or feigned ignorance when unlearning signals appear in the input. By subtly increasing the presence of common benign tokens in the forgetting data, SA enhances the connection between benign tokens and unlearning signals. As a result, when normal users include such tokens in their prompts, the model exhibits unlearning behaviors, leading to unintended utility degradation. To address this vulnerability, we propose Scope-aware Unlearning (SU), a lightweight enhancement that introduces a scope term into the unlearning objective, encouraging the model to localize the forgetting effect. Our method requires no additional data processing, integrates seamlessly with existing fine-tuning frameworks, and significantly improves robustness against SA. Extensive experiments validate the effectiveness of both SA and SU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。