Not All Wrong is Bad: Using Adversarial Examples for Unlearning

Ali Ebrahimpour-Boroojeny, Hari Sundaram, Varun Chandrasekaran

TL;DR

Machine unlearning typically forces a choice between computationally expensive retraining or unstable fine-tuning that degrades model accuracy. This paper introduces AMUN (Adversarial Machine UNlearning), a novel method that uses adversarial examples to "erase" specific data points. By lowering the model's confidence on these points, AMUN effectively mimics a model that never saw the data in the first place—all without sacrificing overall performance.

The Challenge of Machine Unlearning

As privacy regulations like GDPR and CCPA grant users the "right to be forgotten," AI developers face a technical nightmare: how do you remove the influence of specific data points from a pre-trained neural network?

The gold standard is exact unlearning—deleting the data and retraining the model from scratch. However, for modern deep learning models, this is computationally ruinous. The alternative, approximate unlearning, usually involves fine-tuning the model to "forget" specific samples. The challenge is that existing approximate methods are often unstable. They frequently suffer from catastrophic forgetting (where the model loses accuracy on the data it’s supposed to keep) or fail to truly hide the data, leaving it vulnerable to Membership Inference Attacks (MIAs) that can prove a specific sample was once part of the training set.

The AMUN Approach

The authors propose Adversarial Machine UNlearning (AMUN). The core intuition is that the primary difference between a model's behavior on "seen" training data versus "unseen" test data is prediction confidence. Models are naturally overconfident about their training samples.

Instead of using random labels or breaking the model with gradient ascent, AMUN follows a clever three-step process:

  1. Find Adversarial Examples: For every sample in the "forget set," the algorithm finds the closest possible adversarial example that the model naturally mispredicts.
  2. Localized Fine-Tuning: The model is fine-tuned on these adversarial examples using the labels it already incorrectly assigned to them.
  3. Boundary Shifting: Because these adversarial examples are nearly identical to the original samples in the input space but have different labels, the fine-tuning process "localizes" changes to the decision boundary. This lowers the model's confidence on the forget samples to match the levels seen in unseen test data, without distorting the global behavior of the model.

Key Insights

  • "Not All Wrong is Bad": Traditional unlearning tries to force the model to be "wrong" in arbitrary ways. AMUN realizes that the model's existing mistakes (adversarial examples) are a more natural way to shift decision boundaries without causing the model to collapse.
  • Confidence as a Proxy for Privacy: Successful unlearning shouldn't just change the predicted class; it should make the model's confidence on a forgotten sample indistinguishable from its confidence on a sample it has never seen.
  • Stability through Proximity: Because adversarial examples are mathematically "close" to the original samples, the updates to the model's weights are surgically precise, preventing catastrophic forgetting.

Experimental Results

The researchers evaluated AMUN using standard image classification benchmarks (CIFAR-10 with ResNet-18 and Tiny ImageNet with VGG19), testing on random forget sets of 10% and 50% of the original training data.

  • MIA Resistance: In tests on CIFAR-10, AMUN reduced the success of State-of-the-Art Membership Inference Attacks (specifically RMIA) to near-random guessing (AUC ~50%). This effectively makes the forgotten data "invisible" to attackers.
  • Accuracy Preservation: AMUN significantly outperformed prior methods (like SalUn and GA) in maintaining "Retain Accuracy." Even when the model had no access to the remaining training data during unlearning, it kept its performance on the test set remarkably stable.
  • Robustness: The method proved effective even on models specifically trained to be adversarially robust, a scenario where many other unlearning techniques fail.
  • Continuous Unlearning: The authors demonstrated an adaptive version (AMUN-A) that handles multiple sequential unlearning requests. As shown below, AMUN and AMUN-A maintain significantly higher stability over successive unlearning requests compared to prior state-of-the-art methods.
Performance of AMUN and AMUN-A over sequential unlearning requests compared to baselines.

Limitations and Future Work

While much faster than retraining, generating high-quality adversarial examples for every sample in a large forget set still carries a computational cost (roughly equivalent to less than three full training runs). Furthermore, the current study focuses on image classification; whether these adversarial techniques translate effectively to Generative AI or Large Language Models (LLMs) remains an open question. Finally, deriving tighter theoretical bounds on utility loss is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{ebrahimpourboroojeny2025not,
  author = {Ali Ebrahimpour-Boroojeny and Hari Sundaram and Varun Chandrasekaran},
  title = {{Not All Wrong is Bad: Using Adversarial Examples for Unlearning}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=BkrIQPREkn},
}
Figure