Not All Data Are Unlearned Equally

Aravind Krishnan, Siva Reddy, Marius Mosbach

TL;DR

This paper challenges the assumption that all data points are equally "unlearnable" in large language models (LLMs). They demonstrate that knowledge encountered more frequently during pre-training is significantly harder to remove, and that current evaluation methods for unlearning can be misleading, especially for larger models.

What Problem Does This Paper Address?

Machine unlearning aims to remove specific knowledge from a trained model, often for privacy or safety reasons. A key challenge in LLMs is that they can memorize vast amounts of their training data, including sensitive information. Existing unlearning methods typically treat all data points slated for removal identically. However, this paper questions whether this "one-size-fits-all" approach is effective, hypothesizing that the frequency with which information appears in the pre-training data might fundamentally affect how difficult it is to unlearn. This is crucial because if frequent knowledge is resistant to unlearning, it could leave models vulnerable to retaining sensitive information that was seen many times.

Methods

The authors investigate optimization-based unlearning methods. Their core approach involves training language models (specifically GPT-2 and OLMo-7B) and then applying unlearning techniques to specific data points. They compare different unlearning loss functions, including Gradient Ascent, SIMNPO, and refusal training. A key methodological contribution is their focus on analyzing the frequency of data points during pre-training and its impact on unlearning success. They also explore potential misalignments in evaluation metrics, comparing generative (e.g., question answering) and probabilistic (e.g., likelihood) assessments of unlearning.

Datasets

  • Synthetic Datasets: The authors create custom datasets for controlled experiments. These involve generating fictitious biographies and associated question-answer (QA) pairs. They specifically construct "high-count" and "low-count" subsets by upsampling biographies to simulate varying exposure frequencies during pre-training.
  • Real-world Datasets: For experiments with larger models, they use real-world QA datasets derived from the OLMo pre-training data. These include:
  • Country-Capital QA
    • Book-Author QA
    • ZSRE QA (from the Wikipedia benchmark) These datasets are annotated with co-occurrence frequencies from the Dolma corpus to categorize data points into "low-count," "medium-count," and "high-count" buckets.

Key Insights and Ideas

  • Frequency is Key: The most significant finding is that knowledge encountered more frequently during pre-training is demonstrably harder to unlearn. This suggests that models develop stronger "beliefs" about high-frequency data, making it more resistant to removal.
  • Evaluation Mismatch: There's a concerning disconnect between generative and probabilistic evaluations of unlearning. Models might appear to have "forgotten" information based on probabilistic metrics (like perplexity), but can still readily generate that information when prompted generatively. This discrepancy widens with larger models.
  • Unlearning Harms Utility Unevenly: Unlearning disproportionately degrades task-specific knowledge (like QA) compared to more general language modeling capabilities (like biography completion). This implies that unlearning can be a blunt instrument, impacting broader model performance.
  • Scale Matters for Retention: Larger models are not only harder to unlearn from but also become better at appearing to have unlearned while retaining the underlying information, particularly in generative tasks.

Key Results

  • In controlled experiments, unlearning infrequent data points was significantly more effective than unlearning frequent ones. For instance, when unlearning the "employer" attribute, the low-count split showed a much larger drop in QA accuracy compared to the high-count split, even though BIO accuracy also dropped.
  • For the OLMo-7B model, unlearning efficacy varied across datasets and methods. For example, with SIMNPO, infrequent instances were forgotten faster and more efficiently across both generative and probabilistic evaluations.
  • The paper demonstrates that while generative evaluations (like zero-shot QA) show a noticeable drop after unlearning, probabilistic evaluations (like tinyMMLU) often show minimal deterioration, highlighting the evaluation mismatch.

Limitations and Future Work

  • Hyperparameter Sensitivity: The authors note that finding appropriate hyperparameters for unlearning, especially for larger models like OLMo-7B, was challenging and that model collapse was a frequent issue.
  • Evaluation Practices: They call for more comprehensive utility evaluations and advocate for greater emphasis on generative evaluations over likelihood-based ones, as generative tasks appear more sensitive to unlearning-induced degradation.
  • Data-Dependent Methods: The work strongly suggests the need for novel unlearning methods that are aware of and adapt to the frequency of data in the training set, rather than treating all data points equally.
  • Benchmark Development: The authors suggest the need for better benchmarks that provide known training data and allow for carefully designed unlearning splits to foster research in this area.

Summary updated

BibTeX
@inproceedings{krishnan2025not,
  author = {Aravind Krishnan and Siva Reddy and Marius Mosbach},
  title = {{Not All Data Are Unlearned Equally}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=Kd97lfFfTu},
}
Figure