Lune

ICML2024顶会

In-Context Unlearning: Language Models as Few-Shot Unlearners

Martin Pawelczyk, Seth Neel, Himabindu Lakkaraju

摘要

Machine unlearning, the study of efficiently removing the impact of specific training instances on a model, has garnered increased attention in recent years due to regulatory guidelines such as the Right to be Forgotten. Achieving precise unlearning typically involves fully retraining the model and is computationally infeasible in case of very large models such as Large Language Models (LLMs). To this end, recent work has proposed several algorithms which approximate the removal of training data without retraining the model. These algorithms crucially rely on access to the model parameters in order to update them, an assumption that may not hold in practice due to computational constraints or having only query access to the LLMs. In this work, we propose a new class of unlearning methods for LLMs called ``In-Context Unlearning.'' This method unlearns instances from the model by simply providing specific kinds of inputs in context, without the need to update model parameters. To unlearn specific training instances, we present these instances to the LLMs at inference time along with labels that differ from their ground truth. Our experimental results demonstrate that in-context unlearning performs on par with, or in some cases outperforms other state-of-the-art methods that require access to model parameters, effectively removing the influence of specific instances on the model while preserving test accuracy.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 75 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Large Language Model Unlearning via Embedding-Corrupted Prompts 引用了 Large Language Model Unlearning
  • Large Language Model Unlearning via Embedding-Corrupted Prompts 引用了 The WMDP Benchmark: Measuring and Reducing Malicious Use with Unlearning
  • Large Language Model Unlearning via Embedding-Corrupted Prompts 引用了 Membership Inference Attacks From First Principles
  • Large Language Model Unlearning via Embedding-Corrupted Prompts 引用了 Language Models are Few-Shot Learners
  • Large Language Model Unlearning 引用了 Membership Inference Attacks Against Machine Learning Models
  • Rethinking LLM Memorization through the Lens of Adversarial Compression 引用了 Membership Inference Attacks Against Machine Learning Models
  • Rethinking LLM Memorization through the Lens of Adversarial Compression 引用了 Membership Inference Attacks From First Principles
  • Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning 引用了 Large Language Model Unlearning via Embedding-Corrupted Prompts
  • Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning 引用了 Large Language Model Unlearning
  • Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning 引用了 Rethinking LLM Memorization through the Lens of Adversarial Compression
  • Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning 引用了 The WMDP Benchmark: Measuring and Reducing Malicious Use with Unlearning
  • The WMDP Benchmark: Measuring and Reducing Malicious Use with Unlearning 引用了 Large Language Model Unlearning
  • Membership Inference Attacks From First Principles 引用了 Membership Inference Attacks Against Machine Learning Models
  • Rethinking the Role of Demonstrations: What Makes In-Context Learning Work? 引用了 Language Models are Few-Shot Learners
  • What Can Transformers Learn In-Context? A Case Study of Simple Function Classes 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper75

  1. The WMDP Benchmark: Measuring and Reducing Malicious Use with UnlearningNathaniel Li, Alexander Pan, Anjali Gopal, Summer Yue 等ICML 2024 · 390 次引用
  2. Large Language Model UnlearningYuanshun Yao, Xiaojun Xu, Yang LiuNeurIPS 2024 · 365 次引用
  3. Simplicity Prevails: Rethinking Negative Preference Optimization for LLM UnlearningChongyu Fan, Jiancheng Liu, Licong Lin, Jinghan Jia 等NeurIPS 2025 · 182 次引用
  4. Large Language Model Unlearning via Embedding-Corrupted PromptsChris Yuhao Liu, Yaxuan Wang, Jeffrey Flanigan, Yang LiuNeurIPS 2024 · 138 次引用
  5. Rethinking LLM Memorization through the Lens of Adversarial CompressionAvi Schwarzschild, Zhili Feng, Pratyush Maini, Zachary C. Lipton 等NeurIPS 2024 · 120 次引用

它引用的 Paper24

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 次引用
  3. Membership Inference Attacks From First PrinciplesNicholas Carlini, Steve Chien, Milad Nasr, Shuang Song 等S&P 2022 · 1,049 次引用
  4. What Can Transformers Learn In-Context? A Case Study of Simple Function ClassesShivam Garg, Dimitris Tsipras, Percy Liang, Gregory ValiantNeurIPS 2022 · 883 次引用
  5. Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe 等EMNLP 2022 · 634 次引用

相关 Paper

  1. Fast Exact Unlearning for In-Context Learning Data for LLMsAndrei Ioan Muresanu, Anvith Thudi, Michael R. Zhang, Nicolas PapernotICML 2025
  2. Towards Safe Machine Unlearning: A Paradigm that Mitigates Performance DegradationShanshan Ye, Jie Lu, Guangquan ZhangWWW 2025 · 13 次引用
  3. Answer When Needed, Forget When Not: Language Models Pretend to Forget via In-Context Knowledge UnlearningShota Takashiro, Takeshi Kojima, Andrew Gambardella, Qi Cao 等ACL Findings 2025 · 2 次引用
  4. On the Necessity of Auditable Algorithmic Definitions for Machine UnlearningAnvith Thudi, Hengrui Jia, Ilia Shumailov, Nicolas PapernotUSENIX Security 2022
  5. Machine Unlearning of Pre-trained Large Language ModelsJin Yao, Eli Chien, Minxin Du, Xinyao Niu 等ACL 2024
黄昏的海面,两侧是细线勾勒的悬崖