Gauss-Newton Unlearning for the LLM Era

Lev E McKinney, Anvith Thudi, Juhan Bae, Tara Rezaei Kheirkhah, Nicolas Papernot, Sheila A. McIlraith, Roger Baker Grosse · DOI

TL;DR

This paper introduces K-FADE, a novel LLM unlearning method that uses a few Gauss-Newton steps to efficiently remove unwanted model behaviors (like generating harmful content) while preserving performance on desired tasks. K-FADE achieves state-of-the-art results in both suppressing unwanted outputs and maintaining model utility, offering a more stable and effective alternative to existing unlearning techniques.

What Problem Does This Paper Address?

Large Language Models (LLMs) are trained on vast amounts of data, which can lead them to generate undesirable outputs. These might include sensitive information, harmful content, or even outputs that violate a model deployer's intended use case. "Unlearning" aims to remove these unwanted behaviors from a trained model. However, existing unlearning methods often struggle with a critical trade-off: reducing unwanted outputs can degrade the model's performance on other, desirable tasks. This paper addresses this challenge by proposing a method that effectively balances output suppression with maintaining model utility and specificity.

Methods

The core of K-FADE lies in using a few Gauss-Newton steps to update the LLM's parameters. This approach is inspired by Newton's method but adapted for non-linear models like LLMs. The key innovation is how K-FADE efficiently computes these steps. It leverages parametric Hessian approximations, specifically Kronecker-Factored Approximate Curvature (K-FAC), to estimate the necessary second-order information. This allows for accurate and efficient computation of the Gauss-Newton update, which simultaneously optimizes for reducing unwanted outputs (output suppression) and minimizing changes to desired behaviors (specificity). The method is designed to be more stable than previous iterative approaches and can even approximate the behavior of a model retrained without the unwanted data.

Datasets

The paper evaluates K-FADE on several benchmarks:

  • WMDP (Weapons of Mass Destruction Proxy) benchmark: Used to assess the model's ability to suppress proxies for "hazardous" content (cybersecurity, bio-weapons, chemical weapons) while maintaining broad knowledge and fluency.
  • ToFU (Test of Fictitious Unlearning) benchmark: Used to evaluate an unlearning method's ability to remove sensitive information about individuals while preserving non-sensitive information and mimicking the output distribution of a model trained without that data.
  • Alpaca dataset: Used for a more fine-grained analysis of specificity on instruction-following data.
  • Wikitext: Used as a retain set in some experiments.

Key Insights and Ideas

  • Gauss-Newton steps offer a stable path to unlearning: By framing unlearning as a constrained optimization problem and using Gauss-Newton steps, K-FADE achieves a more stable and direct optimization path compared to purely first-order methods.
  • K-FAC is crucial for efficient second-order unlearning: The paper highlights that while second-order methods are powerful, their practical application to LLMs hinges on efficient Hessian approximations like K-FAC. This allows for manageable computational costs.
  • Specificity is key for practical LLM unlearning: The authors emphasize that unlearning shouldn't just remove bad behavior but also minimally impact good behavior. K-FADE's approach of transforming output constraints into weight constraints helps achieve this.
  • Unlearning updates can be "transferred": K-FADE's updates can be reapplied to a fine-tuned model, allowing for cheap maintenance of unlearning even after the model has undergone further training.

Key Results

  • State-of-the-art performance: K-FADE achieves competitive or superior results on both output suppression (WMDP) and approximate retraining (ToFU) benchmarks compared to existing methods.
  • Improved Specificity: K-FADE demonstrates better specificity, meaning it causes less change to the model's behavior on non-targeted data, as measured by KL divergence on the Alpaca dataset.
  • Pareto Improvement on ToFU: K-FADE offers a Pareto improvement on the ToFU benchmark, achieving high "Forget Quality" (similarity to a retrained model) while maintaining high "Model Utility" (performance on general knowledge tasks).
  • Efficiency: K-FADE's runtime is comparable to first-order methods, making it practical for large LLMs.
  • Transferability: K-FADE updates can be effectively reapplied to fine-tuned models, enabling cost-effective unlearning maintenance.

Limitations and Future Work

  • No Differential Privacy Guarantees: The paper acknowledges that K-FADE does not provide explicit differential-privacy-like unlearning guarantees.
  • Robustness to Full-Rank Fine-Tuning: While K-FADE shows some resilience, it is not fully robust to adversarial fine-tuning attacks that can reverse unlearning effects. However, reapplying the K-FADE update can recover some of the unlearning effect.
  • Future Work: The authors suggest developing better standardized benchmarks for LLM unlearning that focus on measuring disruption of model functionality and robustness against limited fine-tuning attacks. They also highlight the potential for further scaling and optimization of their method.

Summary updated

BibTeX
@inproceedings{mckinney2025gauss,
  author = {Lev E McKinney and Anvith Thudi and Juhan Bae and Tara Rezaei Kheirkhah and Nicolas Papernot and Sheila A. McIlraith and Roger Baker Grosse},
  title = {{Gauss-Newton Unlearning for the LLM Era}},
  booktitle = {MUGen @ ICML},
  year = {2025},
  doi = {10.48550/arxiv.2602.10568},
}
Figure