大语言模型(LLM)的广泛普及,部分源于其执行上下文学习的独特能力,但这也揭示了在部署这些预训练模型时伦理与安全考量的重要性。在本研究中,受数据保护法规推动,我们专注于研究面向LLM的机器遗忘。与日益增多的通过微调方法实现遗忘的文献不同,我们聚焦于一种相对轻量的替代方案,即软提示,用以实现对训练数据子集的遗忘。借助旨在强制遗忘并保留效用的损失函数,我们的框架SPUL(Soft Prompting for Unlearning,面向遗忘的软提示)学习可附加到任意查询之后的提示令牌,从而在推理时诱导模型遗忘特定样本,而无需更新LLM参数。我们对所提方法进行了严格评估,结果表明,在使用LLM进行文本分类和问答的场景中,SPUL能够显著改善效用与遗忘之间的权衡。我们进一步使用多个LLM验证了该方法,以凸显框架的可扩展性,并就超参数选择以及遗忘数据规模的影响提供了详细洞见。我们的实现可在https://github.com/karuna-bhaila/llm_unlearning获取。
英文摘要:
The widespread popularity of Large Language Models (LLMs), partly due to their unique ability to perform in-context learning, has also brought to light the importance of ethical and safety considerations when deploying these pre-trained models. In this work, we focus on investigating machine unlearning for LLMs motivated by data protection regulations. In contrast to the growing literature on fine-tuning methods to achieve unlearning, we focus on a comparatively lightweight alternative called soft prompting to realize the unlearning of a subset of training data. With losses designed to enforce forgetting as well as utility preservation, our framework \textbf{S}oft \textbf{P}rompting for \textbf{U}n\textbf{l}earning (SPUL) learns prompt tokens that can be appended to an arbitrary query to induce unlearning of specific examples at inference time without updating LLM parameters. We conduct a rigorous evaluation of the proposed method and our results indicate that SPUL can significantly improve the trade-off between utility and forgetting in the context of text classification and question answering with LLMs. We further validate our method using multiple LLMs to highlight the scalability of our framework and provide detailed insights into the choice of hyperparameters and the influence of the size of unlearning data. Our implementation is available at \url{https://github.com/karuna-bhaila/llm_unlearning}.
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(英特尔实验室)
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(韦恩州立大学人工智能与数据科学研究所)
PromptEmbedder: Efficient and Transferable Text Embedding via Dual-LLM Soft Prompting
Department of Computer Science and Information Engineering, National Taiwan University(国立台湾大学计算机科学与资讯工程系);National Taiwan University AI Center of Research Excellence(国立台湾大学人工智能研究中心)
Wisdom is Knowing What not to Say: Hallucination-Free LLMs Unlearning via Attention Shifting
Faculty of Information Technology, Monash University(墨尔本大学信息科技学院);Key Laboratory of Computing Power Network and Information Security, Ministry of Education, Shandong Computer Science Center, Qilu University of Technology (Shandong Academy of Sciences)(教育部计算能力网络与信息安全重点实验室,山东计算机科学中心,齐鲁大学(山东科学院));Shandong Provincial Key Laboratory of Computing Power Internet and Service Computing, Shandong Fundamental Research Center for Computer Science(山东省计算能力互联网与服务计算重点实验室,山东省计算机科学基础研究中心);School of Computer Science and Technology, Anhui University(安徽大学计算机科学与技术学院)
Topology-Aware Reasoning over Incomplete Knowledge Graph with Graph-Based Soft Prompting
Chalmers University of Technology and University of Gothenburg, Sweden(楚姆勒大学技术学院和哥德堡大学,瑞典);Technical University of Denmark, Kgs. Lyngby, Denmark(丹麦技术大学,基斯勒吕辛,丹麦)
Soft-Prompting with Graph-of-Thought for Multi-modal Representation Learning
School of Computer Science, Wuhan University(武汉大学计算机学院);National Engineering Research Center for Multimedia Software(国家多媒体软件工程技术研究中心);School of Electronic Information Engineering, Henan Polytechnic Institute(河南工业职业技术学院电子信息工程学院);JD Explore Academy(京东探索研究院)
Ethicist: Targeted Training Data Extraction Through Loss Smoothed Soft Prompting and Calibrated Confidence Estimation
Institute for Artificial Intelligence(人工智能研究院);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Tsinghua University(清华大学)
Unlocking Memorization in Large Language Models with Dynamic Soft Prompting
George Mason University(乔治梅森大学);GE Healthcare(GE医疗);University of Pittsburgh(匹兹堡大学);William and Mary(威廉玛丽学院);Southern University of Science and Technology(南方科技大学);Florida State University(佛罗里达州立大学)
Classification-Head Bias in Class-Level Machine Unlearning: Diagnosis, Mitigation, and Evaluation
School of Computer Science and Cyber Engineering, Guangzhou University(计算机科学与电子工程学院,广州大学);School of Artificial Intelligence, Guangzhou University(人工智能学院,广州大学);Guangzhou Institute of Internet of Things(广州物联网研究院)
FiCABU: A Fisher-Based, Context-Adaptive Machine Unlearning Processor for Edge AI
School of Intelligent Semiconductor Engineering, Chung-Ang University(智能半导体工程学院, Chung-Ang 大学);AI Edge SoC Research Section, the Electronics and Telecommunications Research Institute(AI 边缘 SoC 研究部门,电子电信研究所)
BvSP: Broad-view Soft Prompting for Few-Shot Aspect Sentiment Quad Prediction
College of Software, Nankai University(南开大学软件学院);College of Computer Science, Nankai University(南开大学计算机学院);College of Artificial Intelligence, Tianjin University of Science and Technology(天津科技大学人工智能学院)
U-CAN: Utility-Aware Contrastive Attenuation for Efficient Unlearning in Generative Recommendation
Guilin University of Electronic Technology(桂林电子科技大学);University of Southampton(南安普顿大学);Jinan University(暨南大学);Nanjing University of Science and Technology(南京理工大学)