NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unlearning-Aware Minimization

Hoki Kim, Keonwoo Kim, Sungwon Chae, Sangwon YoonNeurIPS 2025

Machine unlearning aims to delete specific data from a trained model without the massive computational cost of retraining from scratch. This capability has become critical due to privacy regulations like the GDPR enforcing the "right to be forgotten," as well as the growing need to remove hazardous knowledge (such as bioweapon instructions) from Large Language Models (LLMs).

The gold standard is exact unlearning: throwing away the bad data and retraining the model entirely. However, for modern deep learning models, this is computationally prohibitive. Researchers use approximate unlearning instead, but current methods struggle to find a balance. "Fine-tuning" (FT) on the remaining data often fails to actually forget the target data. Conversely, "Negative Gradient" (NG)—which actively maximizes the error on the forget data—often destroys the model's performance on the data it is supposed to keep.

To bridge this gap, this paper introduces Unlearning-Aware Minimization (UAM), a novel min-max optimization framework that successfully scrubs targeted data while maintaining high overall model performance.

The UAM Framework

The authors frame unlearning as a two-stage min-max optimization problem designed to reliably navigate the loss landscape:

  1. Inner Maximization: The algorithm looks at the local neighborhood of the current model weights and finds a "surrogate" weight that maximizes the forget loss. This ensures the model actively forgets the target data.
  2. Outer Minimization: It then updates the actual model parameters to minimize the retain loss, utilizing the gradients calculated from that high-forget-loss surrogate state.
Optimization trajectories and loss curves comparing Fine-Tuning (FT), Negative Gradient (NG), and Unlearning-Aware Minimization (UAM).

Geometrically, UAM works by explicitly minimizing the cosine similarity between the gradient of the retain loss and the gradient of the forget loss. This forces the gradients to point away from each other. Therefore, taking a step to improve the model on the retain data inherently damages its memory of the forget data.

The Efficiency Trick

Solving exact min-max problems with second-order derivatives (Hessian matrices) is incredibly slow and memory-intensive. To make UAM practical, the authors use a first-order Taylor expansion. Furthermore, they approximate the computationally heavy Hessian matrix with a simple identity matrix scaled by a hyperparameter ($\gamma$).

Forget accuracy over iterations demonstrating the effectiveness of UAM's Hessian approximation.

This approximation allows UAM to be implemented efficiently in standard frameworks like PyTorch, proving that pushing the model into a local neighborhood where forget loss is high is a highly effective proxy for unlearning.

Key Results across Domains

The authors evaluated UAM across two distinct domains, demonstrating its superiority over existing baselines:

  • Vision Tasks (CIFAR-10, CIFAR-100, TinyImageNet): On CIFAR-10 for class-wise forgetting, UAM achieved 0.00% forget accuracy—perfectly matching a model retrained from scratch. Meanwhile, it maintained a test accuracy of 94.51% (only a 0.81% drop compared to the retrained oracle). By contrast, the Negative Gradient method dropped test accuracy by over 12%.
  • LLM Safety (Zephyr-7B-$\beta$): The authors used the WMDP benchmark (WMDP-Bio and WMDP-Cyber) as "forget data" and WikiText as "retain data." UAM successfully scrubbed hazardous knowledge better than all baselines, achieving the lowest scores on WMDP-Bio (0.2930) and WMDP-Cyber (0.2330)—where lower means safer/forgotten. Crucially, it only suffered a negligible 0.0166 drop in general MMLU accuracy. Previous state-of-the-art LLM unlearning methods relied on clunky manual tuning to push representations toward random vectors; UAM achieves better results simply by unifying the loss functions.

Qualitatively, when the base model was prompted with "how to engineer influenza A to become more virulent," it provided a step-by-step guide. The UAM-unlearned model outputted safe, masked gibberish, successfully refusing the prompt.

Limitations and Future Work

While highly effective, UAM has a few limitations:

  • Computational Overhead: While much faster than exact Hessian computation, UAM still requires two forward and backward passes per iteration (one for the inner max, one for the outer min), making it slightly slower than basic fine-tuning.
  • Theoretical Gap: A formal theoretical proof explaining why the identity matrix approximation holds up so well in the context of machine unlearning remains an open question.
  • Unintended Leakage: In qualitative LLM tests, unlearned models sometimes respond to forgotten prompts with hallucinated text (e.g., repeating random names or quotes). The authors flag this as a potential vector for unintended information leakage, marking "safe machine unlearning" as a vital future research direction.

Summary updated

BibTeX
@inproceedings{kim2025unlearning,
  author = {Hoki Kim and Keonwoo Kim and Sungwon Chae and Sangwon Yoon},
  title = {{Unlearning-Aware Minimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=kAuckbcMvi},
}
Figure