Sharpness-Aware Machine Unlearning

Haoran Tang, Rajiv Khanna
6/16/2025
cs.LG

No official code found. Best implementation: HaoranTang/sharp-unlearn (1 star, MIT, last commit 2026-02-02).

Abstract

We characterize the effectiveness of Sharpness-aware minimization (SAM) under machine unlearning scheme, where unlearning forget signals interferes with learning retain signals. While previous work prove that SAM improves generalization with noise memorization prevention, we show that SAM abandons such denoising property when fitting the forget set, leading to various test error bounds depending on signal strength. We further characterize the signal surplus of SAM in the order of signal strength, which enables learning from less retain signals to maintain model performance and putting more weight on unlearning the forget set. Empirical studies show that SAM outperforms SGD with relaxed requirement for retain signals and can enhance various unlearning methods either as pretrain or unlearn algorithm. Observing that overfitting can benefit more stringent sample-specific unlearning, we propose Sharp MinMax, which splits the model into two to learn retain signals with SAM and unlearn forget signals with sharpness maximization, achieving best performance. Extensive experiments show that SAM enhances unlearning across varying difficulties measured by data memorization, yielding decreased feature entanglement between retain and forget sets, stronger resistance to membership inference attacks, and a flatter loss landscape.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR 2026] Official code of Sharpness-Aware Machine Unlearning. https://arxiv.org/abs/2506.13715

10PythonAug 18, 20258 months agoMIT

Similar Papers

Cite this paper

@article{tang2025sharpnessaware,
  title  = {Sharpness-Aware Machine Unlearning},
  author = {Haoran Tang and Rajiv Khanna},
  year   = {2025},
  eprint = {2506.13715},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.13715v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.13715.svg)](https://codeofpaper.com/paper/2506.13715)

Discussion