Adversarial Machine Unlearning

Zonglin Di, Sixie Yu, Yevgeniy Vorobeychik, Yang Liu

Introduction

Machine unlearning—the process of removing a specific data point's influence from a trained model—is notoriously difficult to verify. As privacy regulations like the GDPR enforce the "right to be forgotten," the ability to genuinely erase data from machine learning systems has become critical. While deleting a row from a database is trivial, erasing the "imprint" of a data point from a complex neural network is not.

Simply fine-tuning a model without the forgotten data often leaves behind residual traces. These traces can be detected by Membership Inference Attacks (MIA), which are techniques used by adversaries to guess whether a specific instance was part of a model's training set. This paper introduces a game-theoretic framework that treats unlearning as a Stackelberg game, where an "unlearner" proactively optimizes a model to defeat a simulated "auditor" using MIAs, ensuring the forgotten data becomes indistinguishable from unseen data.

The Core Challenge

The fundamental challenge of machine unlearning is two-fold:

  1. Verification: How do we mathematically or empirically prove a model has actually "forgotten" a specific data point?
  2. Robustness: How do we design unlearning algorithms that cannot be easily bypassed by sophisticated new privacy attacks?

SG-Unlearn: A Game-Theoretic Approach

To address these challenges, the authors propose SG-Unlearn, a framework that models unlearning as a bi-level optimization problem (a Stackelberg game) between two players:

  • The Auditor (Follower): This player attempts to launch the strongest possible MIA to distinguish between the "forget set" (data requested to be removed) and a "test set" (unseen data).
  • The Unlearner (Leader): This player adjusts the model weights to achieve two simultaneous goals: maintain high accuracy on the remaining data (the "retain set") and minimize the Auditor's success rate.

Because the Unlearner moves first in this game-theoretic setup, it can anticipate the Auditor’s "best response." To make this mathematically tractable, the authors utilize implicit differentiation (via the Implicit Function Theorem) to calculate how changes in the model's weights will affect the Auditor's future success. This allows the unlearning process to be integrated directly into standard gradient-based training pipelines using differentiable solvers like cvxpylayers and qpth.

Experimental Setup

The researchers evaluated their framework across diverse domains, architectures, and unlearning scenarios:

  • Computer Vision: CIFAR-10, CIFAR-100, and SVHN (using ResNet-18), alongside TinyImageNet and CelebA. They also validated the approach on Vision Transformers (ViT).
  • Natural Language Processing: The 20 Newsgroups dataset (using BERT).
  • Scenarios: The framework was tested on both random forgetting (removing a random subset of data) and class-wise forgetting (removing an entire category of data).

Key Insights and Results

SG-Unlearn consistently outperformed baseline methods like Fine-Tuning (FT), Gradient Ascent (GA), and Influence Unlearning (IU).

  • MIA Resistance: In numerous tests, SG-Unlearn pushed MIA accuracy and AUC down to approximately 0.5. This represents random guessing, which is the gold standard for successful unlearning.
  • Distributional Similarity: The framework significantly reduced the Kolmogorov-Smirnov (KS) statistic and Wasserstein distance between the loss distributions of the "forget" and "test" sets. This statistically proves that the model's behavior on forgotten data is indistinguishable from its behavior on completely unseen data.
  • Utility Preservation: Despite the aggressive unlearning mechanisms, the models maintained high accuracy on the "retain set," often matching or nearly matching the performance of a model painstakingly retrained from scratch.
  • The Regularization Effect: Interestingly, optimizing against the auditor acts as a form of regularization, sometimes even improving the model's generalizability on unseen data.
Experimental results across CIFAR-10, CIFAR-100, and 20 NewsGroup

By proactively incorporating the attack into the design phase rather than reacting to it afterward, SG-Unlearn makes the unlearning process inherently more robust. Furthermore, while bi-level optimization is usually computationally expensive, using specialized differentiable solvers makes SG-Unlearn significantly faster than retraining the model from scratch.

Limitations and Future Work

While highly effective, the framework does have limitations:

  • Computational Overhead: Although faster than full retraining, SG-Unlearn is still more computationally demanding than simple fine-tuning due to the bi-level optimization steps.
  • Differentiable Proxies: The framework requires the auditor's attack to be differentiable. Adapting the framework for non-differentiable or highly complex "black-box" attacks remains an open challenge.
  • Scaling: While successfully tested on ResNet and BERT, scaling this exact method to massive Large Language Models (LLMs) will likely require further optimizations in how implicit gradients are calculated and applied.

Summary updated

BibTeX
@inproceedings{di2025adversarial,
  author = {Zonglin Di and Sixie Yu and Yevgeniy Vorobeychik and Yang Liu},
  title = {{Adversarial Machine Unlearning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=swWF948IiC},
}
Figure