针对梯度上升式 LLM 遗忘中的梯度爆炸与灾难性遗忘问题,提出 MOLLM 多目标优化算法,在有效遗忘目标数据的同时保持模型效用,并优于现有 SOTA 方法。
摘要:
大语言模型(LLM)领域的机器遗忘近来受到广泛关注,其目标是在不从头进行完全重新训练的情况下,有效消除 LLM 中不良行为。本文探讨 LLM 遗忘中的 Gradient Ascent(GA,梯度上升)方法,这是一种主动降低模型在目标数据上预测概率以消除其影响的方式。我们分析了导致该过程不实用的两个挑战:梯度爆炸和灾难性遗忘。为解决这些问题,我们提出 Multi-Objective Large Language Model Unlearning(MOLLM,多目标大语言模型遗忘)算法。我们首先将 LLM 遗忘表述为一个多目标优化问题,其中交叉熵损失被修改为遗忘版本,以克服梯度爆炸问题。随后计算一个公共下降更新方向,使模型能够遗忘目标数据,同时保留 LLM 的效用。实验结果验证,MoLLM 在遗忘效果和模型效用保持方面优于基于 GA 的 SOTA LLM 遗忘方法。源代码可在 https://github.com/zibinpan/MOLLM 获取。
英文摘要:
Machine unlearning in the domain of large language models (LLMs) has attracted great attention recently, which aims to effectively eliminate undesirable behaviors from LLMs without full retraining from scratch. In this paper, we explore the Gradient Ascent (GA) approach in LLM unlearning, which is a proactive way to decrease the prediction probability of the model on the target data in order to remove their influence. We analyze two challenges that render the process impractical: gradient explosion and catastrophic forgetting. To address these issues, we propose Multi-Objective Large Language Model Unlearning (MOLLM) algorithm. We first formulate LLM unlearning as a multi-objective optimization problem, in which the cross-entropy loss is modified to the unlearning version to overcome the gradient explosion issue. A common descent update direction is then calculated, which enables the model to forget the target data while preserving the utility of the LLM. Our empirical results verify that MoLLM outperforms the SOTA GA-based LLM unlearning methods in terms of unlearning effect and model utility preservation. The source code is available at https://github.com/zibinpan/MOLLM.
Efficient Utility-Preserving Machine Unlearning with Implicit Gradient Surgery
Institute of Artificial Intelligence, Beihang University(北航人工智能研究院);Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing, Beihang University(北京未来区块链与隐私计算先进创新中心);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Amsterdam(阿姆斯特丹大学);Tsinghua University(清华大学);YanTron Technology Co.Ltd(燕tron技术有限公司)
Towards Reasoning-Preserving Unlearning in Multimodal Large Language Models
Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(Mohamed bin Zayed人工智能大学);University of Queensland(昆士兰大学);Provable Responsible AI and Data Analytics (PRADA) Lab(可证明责任人工智能与数据分析实验室);King Abdullah University of Science and Technology (KAUST)(卡塔尔科学与技术大学)
CURE:Circuit-Aware Unlearning for LLM-based Recommendation
University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校);Zhejiang University(浙江大学);The Chinese University of Hong Kong(香港中文大学);National University of Singapore(新加坡国立大学)
RWKU: Benchmarking Real-World Knowledge Unlearning for Large Language Models
School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)
Auditing Language Model Unlearning via Information Decomposition
Technical University of Darmstadt(达姆施塔特工业大学);National Research Center for Applied Cybersecurity ATHENE(ATHENE国家应用网络安全研究中心);Georgia Institute of Technology(佐治亚理工学院)
UniErase: Towards Balanced and Precise Unlearning in Language Models
University of Science and Technology of China(中国科学技术大学);University of the Chinese Academy of Sciences(中国科学院大学);National University of Singapore(新加坡国立大学);Nanyang Technological University(南洋理工大学);A*STAR(科技研究局);Zhejiang University(浙江大学)
Machine Unlearning of Pre-trained Large Language Models
University of Virginia(弗吉尼亚大学);Georgia Institute of Technology(佐治亚理工学院);The Hong Kong Polytechnic University(香港理工大学);University of Melbourne(墨尔本大学);Carnegie Mellon University(卡内基梅隆大学)
A Comprehensive Survey of Machine Unlearning Techniques for Large Language Models
Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(莫扎德大学人工智能学院);Fraunhofer Institute for Open Communication Systems (FOKUS)(弗劳恩霍夫开放通信系统研究所);Technical University of Munich(慕尼黑技术大学);Technical University of Darmstadt(达姆施塔特技术大学);University of Toronto(多伦多大学)
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(卡拉布里亚大学)
From Anchors to Supervision: Memory-Graph Guided Corpus-Free Unlearning for Large Language Models
College of Computer Science and Artificial Intelligence, Fudan University(复旦大学计算机科学与人工智能学院);Shanghai University of Electric Power(上海电力大学);School of Information Science and Engineering, East China University of Science and Technology(东华大学信息科学与工程学院)
Machine Unlearning via Information Theoretic Regularization
Department of Mathematics University of California Davis(加州大学戴维斯分校数学系);Center of Data Science and Artificial Intelligence Research University of California Davis(加州大学戴维斯分校数据科学与人工智能研究中心)
Dissecting Fine-Tuning Unlearning in Large Language Models
International Digital Economy Academy (IDEA)(国际数字经济学院(IDEA));South China University of Technology(华南理工大学);Columbia University(哥伦比亚大学);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学)
Rethinking Machine Unlearning for Large Language Models
Michigan State University(密歇根州立大学);IBM Research(IBM研究院);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);University of California, Santa Cruz(加州大学圣克鲁兹分校);ByteDance Research(字节跳动研究院);Stanford University(斯坦福大学)
Towards Robust Knowledge Unlearning: An Adversarial Framework for Assessing and Improving Unlearning Robustness in Large Language Models
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
Soft Token Attacks Cannot Reliably Audit Unlearning in Large Language Models
Ludwig Maximilian University of Munich(慕尼黑路德维希-马克西米利安大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Aalto University(艾尔沃斯大学);Intel Labs(英特尔实验室)
OFFSIDE: Benchmarking Unlearning Misinformation in Multimodal Large Language Models
Harbin Institute of Technology(哈尔滨工业大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));BIAI, ZJUT & D5Data.ai(BIAI、浙江工业大学及D5Data.ai);National University of Singapore(新加坡国立大学)