本文提出Decouple to Forget(D2F)方法,通过语义中介分离敏感与非敏感内容,针对性移除大语言模型中的敏感事实,在多基准数据集上实现了更优的遗忘-保留平衡。
摘要:
大语言模型的机器遗忘旨在移除指定知识同时保留通用能力,但现有方法常将整个响应作为遗忘单元。当遗忘目标仅是嵌入在其他良性解释中的一小部分敏感事实时,这种粗粒度处理会造成不必要的效用损失。本文提出Decouple to Forget(D2F),一种受语义中介启发的针对性遗忘方法,它将敏感事实内容与非敏感含义及表层表达分离。对于每个待遗忘样本,D2F从答案中提取事实级别的“中介”表示,识别敏感部分并仅移除这些部分,同时保留其余结构完整。随后,基于该中介生成反事实答案,保留非敏感内容但排除敏感事实,采用基于偏好的对比优化以降低信息泄露风险,同时保持有用性和流畅性。在多个基准数据集上的实验表明,D2F相比强基线方法在遗忘与保留之间实现了更好的平衡。我们的代码可在该https URL获取。
英文摘要:
Machine unlearning for large language models seeks to remove specified knowledge while preserving general capability, yet current methods often treat an entire response as the unit of forgetting. This coarse granularity causes unnecessary utility loss when the forget target is only a small set of sensitive facts embedded within otherwise benign explanations. In this paper, we introduce Decouple to Forget (D2F), a targeted unlearning method inspired by semantic mediation that separates sensitive factual content from non-sensitive meaning and surface expression. For each example to be forgotten, D2F extracts a fact-level "mediator" representation from the answer, identifies which parts are sensitive, and removes only those parts while leaving the rest of the structure intact. We then generate counterfactual answers grounded in this mediator that preserve non-sensitive content but exclude sensitive facts, employing preference-based contrastive optimization to reduce the likelihood of information leakage while maintaining helpfulness and fluency. Experiments across various benchmark datasets show that D2F achieves a better balance between forgetting and retention than strong baseline methods. Our code is available at https://github.com/JingyueCong/D2F.
Improving LLM Unlearning Robustness via Random Perturbations
Japan Advanced Institute of Science and Technology(日本科学技术先进研究院);VNU University of Engineering and Technology(越南工程与技术大学);Monash University(莫纳什大学);RIKEN(日本研究机构)
GUARD: Generation-time LLM Unlearning via Adaptive Restriction and Detection
The Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));UC Santa Cruz(加州大学圣克鲁兹分校);UIUC(伊利诺伊大学香槟分校);Southeast University(东南大学);BIAI, ZJUT(脑科学与类脑智能研究院,浙江大学);D5Data.ai
Selective Forgetting: Advancing Machine Unlearning Techniques and Evaluation in Language Models
Harbin Institute of Technology(哈尔滨工业大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Unlimidata Ltd(Unlimidata有限公司);The Chinese University of Hong Kong(香港中文大学);University of Calabria(卡拉布里亚大学)
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Attention Smoothing Is All You Need For Unlearning
Department of Computer Science, Wayne State University(韦恩州立大学计算机科学系);Department of Computer Science and Engineering, Michigan State University(密歇根州立大学计算机科学与工程系);Institute for AI and Data Science, Wayne State University(韦恩州立大学人工智能与数据科学研究所)
Forgetting-MarI: LLM Unlearning via Marginal Information Regularization
Department of Mathematics, University of California Davis, USA(加州大学戴维斯分校数学系);SLAC National Accelerator Laboratory, Stanford University, USA(斯坦福大学SLAC国家加速器实验室);Department of Computer Science, University of California Davis, USA(加州大学戴维斯分校计算机科学系)
Unlearning Isn't Deletion: Investigating Reversibility of Machine Unlearning in LLMs
The Hong Kong Polytechnic University(香港理工大学);Carnegie Mellon University(卡内基梅隆大学);University of California, Santa Cruz(加州大学圣克ruz分校);Huawei Technologies(华为技术有限公司);Research Centre for Privacy and Security Technologies in Future Smart Systems, PolyU(未来智能系统中的隐私与安全技术研究中心,PolyU)