Fast Exact Unlearning for In-Context Learning Data for LLMs

Andrei I. Muresanu, Anvith Thudi, Michael R. Zhang, Nicolas Papernot
2/1/2024
cs.LGcs.AIcs.CR

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Modern machine learning models are expensive to train, and there is a growing concern about the challenge of retroactively removing specific training data. Achieving exact unlearning in deep learning pipelines--producing models as if certain data had never been included in training--remains an open problem. In this paper, we revisit exact unlearning in deep learning and show that for large language models (LLMs) we can efficiently exactly unlearn "fine-tuning data" (the data used to adapt a pre-trained model). This follows from two observations. First, we can use in-context learning to adapt the LLM to the fine-tuning dataset instead of SGD based algorithms. Second, we show that accurate in-context learning can be done with quantized k-means, which allows for effectively constant time unlearning operations. Our evaluation shows that this unlearning recipe has similar performance to fine-tuning alternatives, but vastly reduces the unlearning costs. Our study also highlights the need for new measures of unlearning cost when adapting the learning algorithm to have faster unlearn operations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{muresanu2024fast,
  title  = {Fast Exact Unlearning for In-Context Learning Data for LLMs},
  author = {Andrei I. Muresanu and Anvith Thudi and Michael R. Zhang and Nicolas Papernot},
  year   = {2024},
  eprint = {2402.00751},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.00751v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.00751.svg)](https://codeofpaper.com/paper/2402.00751)

Discussion