GUARD: Scalable Gradient-based Unlearning with Adversarial Robustness Defense

Xuechao Lan, Wenmin Li, Sujuan Qin, Zhengping Jin, Fei GaoNeurIPS 2026

TL;DR

When you ask an AI model to "unlearn" specific data—say, for user privacy—using fast, gradient-based methods, you inadvertently shatter its defenses against adversarial attacks on the data it is supposed to remember. GUARD is a lightweight, plug-and-play framework that lets deep neural networks cleanly forget target data while keeping their adversarial shields intact, boosting robust accuracy by up to $6.3\times$ without the crippling compute costs of retraining from scratch.

What Problem Does This Paper Address?

Suppose a user exercises their "right to be forgotten," or you discover poisoned samples in your training set. Retraining a massive neural network from scratch without that data (the "Retrain oracle") is prohibitively expensive. Enter Machine Unlearning (MU)—specifically Gradient-based Unlearning (GU), which tweaks model weights using fast, first-order gradients to erase the "forget set" while preserving accuracy on the "retain set."

Here’s the catch: standard GU only cares about clean accuracy. If your original model was adversarially trained (hardened against subtle, imperceptible pixel perturbations designed to fool it), standard unlearning quietly wrecks that robustness on the remaining data. The few existing methods that try to preserve robustness rely on heavy second-order math (Hessian matrices), which breaks down on highly non-linear deep networks, demands massive memory, and fails completely if privacy rules prevent you from accessing the original retain set.

Methods

By doing a Taylor expansion on the adversarial loss during unlearning, the authors diagnose why robustness collapses, pinpointing two culprits:

  1. Gradient Direction Conflict: The gradient direction that erases forgotten data points almost directly opposite to the direction that maintains adversarial robustness.
  2. Parameter Entanglement: The specific weights most sensitive to unlearning heavily overlap with the weights critical for adversarial defense.
Figure 1: Gradients cosine similarity with All- CNN on CIFAR-10.

To fix both without touching Hessians, GUARD wraps around existing GU algorithms using three novel components:

  • Adversarially Vulnerable Dataset ($\mathcal{D}_v$) Construction: Instead of defending the entire retain set, GUARD builds a tiny "anchor" set of boundary-hugging, vulnerable samples (as few as 32!). If retain data is available, it nudges samples toward decision boundaries via mild PGD perturbations. Crucially, if retain data is unavailable, it simulates these anchors using only the forget set—applying strong augmentations to strip away forget-class semantics and using targeted PGD to push them against retain-class boundaries.
  • Robustness-Aware Gradient Projection: Treating $\mathcal{D}_v$ as anchors, GUARD solves a quadratic projection problem to strip out components of the unlearning gradient that harm anchor robustness. To keep this fast across millions of parameters, it compresses the math using a streaming Johnson–Lindenstrauss (JL) random projection.
  • Importance-Guided Parameter Selection: GUARD calculates a sensitivity ratio for every parameter—forgetting gradient magnitude divided by robustness gradient magnitude—and applies a binary mask so updates only touch weights critical for forgetting but insensitive to robustness.

Datasets

The authors evaluate GUARD on standard image classification benchmarks: CIFAR-10, CIFAR-100, and Tiny ImageNet (testing across AllCNN, ResNet-18, and Vision Transformers). They also use SVHN as an out-of-distribution (OOD) baseline to verify the quality of their simulated vulnerable sets. No new public benchmark datasets are introduced.

Key Insights and Ideas

  • Unlearning and robustness fight over the exact same weights: If unlearning and robustness were independent, the top 1% of parameters important to each would barely overlap. Instead, the authors found a 26.2x lift over random chance—meaning naive unlearning inevitably bulldozes high-curvature, robustness-critical weights.
Figure 2: Top-k% Parameter Overlap with All- CNN on CIFAR-10.
  • You can map decision boundaries you aren't allowed to see: Even in class-wise unlearning—where you want to erase "Cats" and have zero images of the remaining nine classes—the model's weights still remember where the other classes live. Perturbing augmented "Cat" images toward random retain labels reliably lands them right on the vulnerable decision margins of the unseen retain data (achieving a 0.9964 Pearson correlation with true retain-set adversarial risk).
  • Retain-based unlearning can hurt robustness more than retain-free unlearning: Counterintuitively, standard baselines that actively fine-tune on clean retain data (like FT and UNSIR) often suffer worse adversarial drops than retain-free methods, because aggressive clean optimization overwrites robust features.

Key Results

Across 6 unlearning baselines and multiple attack types (FGSM, PGD, CW, AutoAttack), GUARD consistently brings models right up to the gold-standard Retrain oracle:

  • Massive Robustness Gains: When unlearning the "Cat" class on CIFAR-10 with ResNet-18, standard Fine-Tuning (FT) sees retain robust accuracy ($RA_r$) plummet from 99.96% to 11.80%. Adding GUARD boosts it to 74.30% (a 6.3$\times$ improvement). Paired with Gradient Ascent (GA) without retain data, GUARD recovers 99.96% $RA_r$ (vs. 81.68% for vanilla GA), virtually tying the Retrain oracle (100%).
  • Better Clean Utility Too: Stopping reckless parameter updates also helps standard accuracy—shrinking the overall average performance gap to the Retrain oracle by $16\times$ on ResNet-18 (from 7.14 down to 0.43).
  • Order-of-Magnitude Speedups: On CIFAR-10 (AllCNN), Retrain takes 302.4s and the Hessian-based baseline Muter takes 323.8s (while still failing on accuracy). GUARD-enhanced baselines finish in 26.4s to 53.2s using less than half a gigabyte of peak GPU memory.

Limitations and Future Work

  • Preservation, not creation: GUARD is a shield, not a forge—it can only preserve the adversarial robustness already baked into the original model, meaning performance still drops under attacks much stronger than what the original model was trained to handle.
  • Future Directions: The authors note that future work should explore defenses against adaptive or unlearning-specific adversarial attacks, as well as testing generative approaches (like GANs) to synthesize the vulnerable anchor datasets.

Summary updated

Abstract

Machine Unlearning (MU) is an emerging task to remove specified training data from a trained model while preserving its utility, with Gradient-based Unlearning (GU) standing out as a prevalent category due to high scalability. However, standard MU which solely optimizes for clean accuracy, inadvertently damages adversarial robustness on the retain data. Although a few studies extend MU to adversarially trained models, they rely on strong assumptions (e.g., well-conditioned Hessians, smoothness) and costly Hessian-based updates, limiting scalability and efficiency. In this paper, we propose **GUARD**, a scalable and efficient framework that achieves unlearning while preserving retain-data robustness. Having identified the two causes of robustness degradation, we accordingly design *Robustness-Aware Gradient Projection* and *Importance-Guided Parameter Selection*. Both modules rely on a compact adversarially vulnerable dataset that we construct with or without retain data, to enable scalability under varying data constraints. Validated by theoretical analysis and experiments across 6 settings, GUARD outperforms 6 baselines, boosting robust accuracy by up to 6.3$\times$, closely matching the Retrain oracle in both unlearning and robustness.
BibTeX
@inproceedings{lan2026guard,
  author = {Xuechao Lan and Wenmin Li and Sujuan Qin and Zhengping Jin and Fei Gao},
  title = {{GUARD: Scalable Gradient-based Unlearning with Adversarial Robustness Defense}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UnifcmHbFu},
}
Figure