Eight Methods to Evaluate Robust Unlearning in LLMs

Aengus Lynch, Phillip Guo, Aidan Ewart, Stephen Casper, Dylan Hadfield-MenellarXiv 2024 · DOI

Introduction

As Large Language Models (LLMs) are increasingly trained on vast, unfiltered datasets, they inevitably ingest copyrighted material, private information, and potentially harmful content. "Machine unlearning" has been proposed as a surgical alternative to retraining, aiming to remove specific knowledge from a model's weights. However, current evaluation metrics for unlearning are often superficial, focusing on behavioral alignment rather than the actual removal of information. This paper introduces a comprehensive suite of eight robust evaluation methods to "red-team" unlearning techniques, revealing that many current methods only provide a "skin-deep" solution.

A Comprehensive Evaluation Framework

To move beyond simple text-completion metrics, we propose eight distinct dimensions for testing the robustness of unlearned models:

  1. Cross-lingual Transfer: Does unlearning in one language (e.g., English) persist in others (e.g., Spanish)?
  2. Adversarial Jailbreaks: Can clever prompting bypass the unlearning guardrails?
  3. In-Context Extraction: Can providing related snippets or summaries trigger the "forgotten" memory?
  4. Relearning Efficiency: How quickly can the model regain the knowledge through minimal fine-tuning?
  5. Downstream Task Performance: Does the model still possess the knowledge when tested via trivia or Q&A?
  6. Latent Knowledge Probing: Can internal activations still reveal the "forgotten" facts?
  7. Prompting Baselines: Is the unlearning method more effective than a simple system prompt?
  8. Side Effects: Does unlearning a specific topic cause collateral damage to related domains?
Comparison of unlearning evaluation methods across recent literature.

Experimental Methodology

We applied this framework to the "Who’s Harry Potter" (WHP) model, a Llama-2-7B-Chat variant specifically fine-tuned to forget the Harry Potter universe. To support these tests, we developed a new benchmark of 1,239 Harry Potter trivia questions (categorized by difficulty) and five themed datasets to measure side effects in related domains like British Mythology and the Wizard of Oz.

Key Findings: The Persistence of Knowledge

Our evaluation reveals that the WHP model's unlearning is largely behavioral. While the model may avoid specific vocabulary, the underlying knowledge remains accessible.

Fragility Against Extraction

Adversarial jailbreaks and in-context examples significantly narrowed the gap between the unlearned model and the base Llama-2 model. For instance, providing a short summary of a Harry Potter plot point allowed the model to "remember" details it was supposedly trained to forget.

Robustness tests showing the persistence of knowledge in the WHP model across various extraction methods compared to the Llama-2 baseline.

Latent Knowledge and Rapid Relearning

Internal probing experiments showed that the model's hidden layers still represent the "forgotten" facts with high accuracy. Furthermore, fine-tuning on a small fraction of the original corpus (approx. 8,000 sentences) restored the model's performance to near-baseline levels, suggesting the knowledge was never truly purged from the weights.

Collateral Damage

Unlearning proved to be an imprecise tool. The WHP model showed a ~58% drop in familiarity with British Mythology, a topic it was never intended to forget. This "collateral unlearning" highlights the difficulty of isolating specific knowledge clusters within an LLM's dense representation space.

Conclusion

Current LLM unlearning techniques often fail to achieve robust removal of information, instead creating a thin layer of behavioral alignment that is easily bypassed. Future work must focus on methods that modify the latent capabilities of models rather than just their output behavior. Our eight-method framework provides a necessary "gold standard" for evaluating the true efficacy of these techniques.

Summary updated

BibTeX
@misc{lynch2024eight,
  author = {Aengus Lynch and Phillip Guo and Aidan Ewart and Stephen Casper and Dylan Hadfield-Menell},
  title = {{Eight Methods to Evaluate Robust Unlearning in LLMs}},
  year = {2024},
  eprint = {2402.16835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.16835},
}
Figure