Gauss-Newton Unlearning for the LLM Era

Lev McKinney, Anvith Thudi, Juhan Bae, Tara Rezaei, Nicolas Papernot, Sheila A. McIlraith, Roger Grosse

TL;DR

Large Language Models (LLMs) often memorize hazardous or sensitive data during training, but removing this information without degrading general capabilities remains a major challenge. This paper introduces K-FADE, an unlearning method that uses a few second-order Gauss-Newton steps preconditioned with Kronecker-Factored Approximate Curvature (K-FAC). K-FADE achieves state-of-the-art data erasure while preserving the model's core utility significantly better than existing first-order methods.

What Problem Does This Paper Address?

LLMs are trained on massive, uncurated internet datasets, leading them to memorize sensitive personal data or dangerous information (such as instructions for building chemical or biological weapons). "Machine unlearning" aims to erase this specific knowledge (the forget set) after training.

However, existing unlearning techniques face a harsh trade-off: they either fail to fully suppress the bad data or accidentally damage the model's performance on safe, general tasks (the retain set). First-order gradient methods are notoriously unstable and require extensive hyperparameter tuning, while previous second-order methods rely on oversimplified diagonal Hessian approximations that ignore complex parameter interactions.

Methods

The authors reframe unlearning as a multi-objective optimization problem: maximize the loss on the forget set (output suppression) while minimizing the Kullback-Leibler (KL) divergence on the retain set (specificity). To solve this efficiently for LLMs, they introduce K-FADE (K-FAC for Distribution Erasure), which applies Gauss-Newton ascent steps:

  • Weight-Space Constraints: Instead of tracking output changes across millions of tokens iteratively, K-FADE uses a local quadratic approximation of the KL divergence to turn output-space constraints into a single constraint on the model's weights.
  • K-FAC & EK-FAC: To compute the necessary inverse-Hessian-vector products without exploding memory or compute requirements, the authors leverage Kronecker-Factored Approximate Curvature (K-FAC) and Eigenvalue-corrected K-FAC (EK-FAC). This captures parameter interactions compactly.
  • Targeted Layers: The updates are applied selectively to the up- and down-projection weights within the model's MLP blocks, which represent a large fraction of the parameters.
  • Task Arithmetic for Maintenance: Unlearning updates can be treated as a vector and cheaply reapplied to a model even after it undergoes subsequent fine-tuning.
Fig. 1. How Gauss-Newton ascent achieves output suppression while maintaining performance on a retain set. Here we show how Gauss-Newton ascent relaxes a constraint satisfaction problem for unlearning in the output space of a model (represented by the logits z) and converts it into a simple (though very high dimensional) linear algebra problem in weight space (represented by θ variables). Here ρ(·|z) denotes the distribution of tokens (i.e., labels) specified by the model output logits. This allows us to simultaneously satisfy a constraint on the model’s output across millions of tokens at every step of the algorithm. See Section II-C for more details.

Datasets

  • WMDP (Weapons of Mass Destruction Proxy): Used to evaluate the suppression of hazardous knowledge across Cyber, Bio, and Chem domains.
  • ToFU (Test of Fictitious Unlearning): A benchmark consisting of synthetic author biographies to measure how well an unlearned model mimics a model completely retrained from scratch without the forget data.
  • Wikitext: Used as the general retain set during WMDP unlearning.
  • Alpaca: A dataset of 30,000 instructions used for a fine-grained evaluation of specificity via KL divergence.
  • MMLU & MT-Bench: Standard benchmarks used to measure general knowledge retention and conversational fluency.

Key Insights and Ideas

  • Optimizer-Level Constraints: Rather than manually balancing competing gradient ascent (forgetting) and descent (retaining) steps, embedding the retain constraint directly into the optimizer via the Gauss-Newton Hessian yields a much more stable, single-direction update.
  • The Tail of Destruction: Fine-grained evaluation on Alpaca revealed that while some methods (like ELM) shift the entire model distribution slightly, others (like RMU) create a "fat tail" of completely broken, gibberish responses on specific sub-distributions. K-FADE minimizes this distributional shift.
  • Hessian Caching: Because the Hessian is computed entirely on the retain set, it can be pre-computed and cached. This makes hyperparameter tuning (adjusting step sizes or damping) incredibly cheap since you only need to collect gradients on the forget set for subsequent runs.

Key Results

  • State-of-the-Art Specificity: On the WMDP benchmark, K-FADE matched the output suppression of top baselines (reducing Bio accuracy from ~64% to ~30%) but achieved a 40% lower KL divergence on unrelated Alpaca instructions compared to the next best method (RMU).
  • ToFU Pareto Improvement: On the challenging ToFU 10% forget split, a single Gauss-Newton step achieved a state-of-the-art Forget Quality score of 0.85 while maintaining high model utility (0.57), outperforming recent baselines like simNPO and SOUL.
  • Scalability: Empirical scaling tests on the Qwen 2.5 suite (from 0.5B to 14B parameters) confirmed that K-FAC/EK-FAC memory and compute requirements scale close to linearly with model size, making it practical for frontier-class models.
KL Divergence distribution on Alpaca instructions, showing K-FADE's superior specificity.

Limitations and Future Work

  • No Formal Guarantees: K-FADE does not provide explicit differential-privacy-like mathematical guarantees for unlearning.
  • Vulnerability to Weight Access: If an adversary has full access to the open weights of the model, full-rank fine-tuning can easily reverse the unlearning effects and recover the forgotten knowledge.
  • Fluency Drop on Forget Distribution: While K-FADE suppresses correct answers, it can reduce the fluency of outputs when forced to respond to prompts from the forget set, indicating it doesn't perfectly match a cleanly retrained model.
  • Future Directions: The authors call for better standardized benchmarks that measure actual functional disruption rather than just driving models toward random guessing.

Summary updated

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