paper-with-me

홈 › Papers

In-Context Unlearning: Language Models as Few Shot Unlearners

2023-10-11 · 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 \emph{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.

📄 PDF Abstract BibTeX arXiv:2310.07579

Code (2)

MartinPawel/In-Context-Unlearning 공식 구현 pytorch
martinpawel/openunlearn pytorch

Tasks

Machine Unlearning

Similar Papers 제목 키워드 기반

Unlearners Can Lie: Evaluating and Improving Honesty in LLM Unlearning

2026-05-09 · Renjie Gu, Jiazhen Du, Yihua Zhang, Sijia Liu arxiv

Unlearning in large language models (LLMs) aims to remove harmful training data while preserving overall utility. However, we find that existing methods often hallucinate, generate abnormal token sequences, or behave inc…

Grokked Models are Better Unlearners

2025-12-03 · Yuanbang Liang, Yang Li arxiv

Grokking-delayed generalization that emerges well after a model has fit the training data-has been linked to robustness and representation quality. We ask whether this training regime also helps with machine unlearning, …

Alignment Calibration: Machine Unlearning for Contrastive Learning under Auditing

2024-06-05 · Yihan Wang, Yiwei Lu, Guojun Zhang, Franziska Boenisch 외

Machine unlearning provides viable solutions to revoke the effect of certain training data on pre-trained model parameters. Existing approaches provide unlearning recipes for classification and generative models. However…

Contrastive LearningMachine Unlearning

Few-Shot Unlearning by Model Inversion

2022-05-31 · Youngsik Yoon, Jinhwan Nam, Hyojeong Yun, Jaeho Lee 외

We consider a practical scenario of machine unlearning to erase a target dataset, which causes unexpected behavior from the trained model. The target dataset is often assumed to be fully identifiable in a standard unlear…

Machine Unlearningmodel

Unlearnable Algorithms for In-context Learning

2024-02-01 · Andrei Muresanu, Anvith Thudi, Michael R. Zhang, Nicolas Papernot

Machine unlearning is a desirable operation as models get increasingly deployed on data with unknown provenance. However, achieving exact unlearning -- obtaining a model that matches the model distribution when the data …

In-Context LearningLanguage ModelingLanguage ModellingLarge Language Model+1