TOFU: A Task of Fictitious Unlearning for LLMs

Pratyush Maini, Zhili Feng, Avi Schwarzschild, Zachary Chase Lipton, J Zico Kolter

TL;DR

This paper introduces TOFU, a novel benchmark and dataset for evaluating "unlearning" in Large Language Models (LLMs). They demonstrate that current unlearning methods struggle to effectively remove specific data without significantly degrading model utility, highlighting the need for more robust techniques.

What Problem Does This Paper Address?

Large Language Models (LLMs) are trained on vast amounts of web data, which can inadvertently lead to memorization and regurgitation of sensitive or private information. "Unlearning" aims to remove specific data from a trained model post-hoc, offering a way to protect privacy without costly retraining. However, it's unclear how effectively current methods can make a model truly "forget" data, to the point where it behaves as if it was never trained on it. Existing benchmarks often focus on classification tasks or use limited evaluation metrics, making it difficult to assess unlearning in generative LLMs. This paper addresses this gap by proposing a new task, dataset, and evaluation framework specifically for unlearning in LLMs.

Methods

The core of this work is the TOFU (Task of Fictitious Unlearning) benchmark. This involves:

  • A synthetic dataset: 200 fictitious author profiles, each with 20 question-answer pairs, generated by GPT-4. This controlled environment ensures complete knowledge of the data to be forgotten.
  • A "forget set" and "retain set": A subset of author profiles is designated as the "forget set" (to be unlearned), while the rest form the "retain set" (to be remembered).
  • A suite of evaluation metrics: Combining "Model Utility" (performance on general tasks) and "Forget Quality" (how well the model has forgotten the target data). This includes metrics like probability, ROUGE, and a novel "Truth Ratio" to assess the model's confidence in correct vs. incorrect answers.
  • Baseline unlearning algorithms: The authors evaluate four existing unlearning algorithms (Gradient Ascent, Gradient Difference, KL Minimization, and Preference Optimization) on their proposed benchmark.

Datasets

  • TOFU Dataset: A newly created dataset consisting of 200 synthetic author biographies, each with 20 question-answer pairs. This dataset is entirely fictitious, ensuring no overlap with LLM pretraining data.
  • Evaluation Datasets:
    • Forget Set: The specific data intended to be unlearned.
  • Retain Set: Data the model should still remember.
  • Real Authors: Questions about real-world authors to test generalization.
  • World Facts: General knowledge questions to assess broader model capabilities.

Key Insights and Ideas

  • Unlearning is Hard: Even with a controlled, synthetic dataset, current unlearning methods struggle to achieve both high forget quality and high model utility simultaneously.
  • Trade-off is Pronounced: There's a clear trade-off: methods that improve forget quality often significantly degrade model utility, leading to models that generate nonsensical outputs.
  • Evaluation is Crucial: Simple metrics like ROUGE or perplexity are insufficient. A multi-faceted evaluation combining model utility and forget quality, using diverse datasets, is essential for a holistic understanding of unlearning efficacy.
  • Fictitious Data is Key: Using synthetic data like TOFU is vital for creating a "clean" unlearning setup where the source of information to be forgotten is precisely known, avoiding confounders from real-world pretraining data.

Key Results

  • Baseline Failure: None of the four baseline unlearning algorithms tested achieved effective unlearning. They either failed to forget the data sufficiently or severely impacted the model's general performance.
  • 1% Forget Set: Even when unlearning a very small portion (1%) of the data, models often failed to reach a statistically significant level of forget quality (p-value > 0.05).
  • Larger Forget Sets: Forgetting larger portions of data (5% or 10%) led to severe drops in model utility, making the models unusable.
  • Knowledge Entanglement: The experiments suggest that unlearning specific information can lead to the model forgetting related, but unlearned, information (e.g., forgetting author data might impact performance on general literary knowledge).

Limitations and Future Work

  • Entity-Level Unlearning: TOFU focuses on entity-level forgetting (forgetting all information about an author). The paper acknowledges that instance-level unlearning (forgetting a specific fact about a person) is another important variation for future work.
  • Behavioral Unlearning: The benchmark does not directly address "behavioral unlearning," which aims to make models forget undesirable behaviors (like generating toxic content). This is framed as a separate, though related, problem.
  • Retain Set Availability: TOFU provides an exact retain set. In real-world scenarios, finding a suitable retain set might be challenging.
  • Computational Constraints: While the paper aims for unlearning algorithms that scale linearly with the forget set size, it notes that this might not be optimal for very large models and tiny forget sets.
  • Future Work: The authors hope TOFU will motivate the development of more effective unlearning algorithms, particularly those that can balance forget quality and model utility without significant degradation. They also suggest exploring neural tangent kernel (NTK) based unlearning for LLMs.

Summary updated

BibTeX
@inproceedings{maini2024tofu,
  author = {Pratyush Maini and Zhili Feng and Avi Schwarzschild and Zachary Chase Lipton and J Zico Kolter},
  title = {{TOFU: A Task of Fictitious Unlearning for LLMs}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=B41hNBoWLo},
}
Figure