Abstract
We introduce a novel machine unlearning framework founded upon the established principles of the min-max optimization paradigm. We capitalize on the capabilities of strong Membership Inference Attacks (MIA) to facilitate the unlearning of specific samples from a trained model. We consider the scenario of two networks, the attacker $\mathbf{A}$ and the trained defender $\mathbf{D}$ pitted against each other in an adversarial objective, wherein the attacker aims at teasing out the information of the data to be unlearned in order to infer membership, and the defender unlearns to defend the network against the attack, whilst preserving its general performance. The algorithm can be trained end-to-end using backpropagation, following the well known iterative min-max approach in updating the attacker and the defender. We additionally incorporate a self-supervised objective effectively addressing the feature space discrepancies between the forget set and the validation set, enhancing unlearning performance. Our proposed algorithm closely approximates the ideal benchmark of retraining from scratch for both random sample forgetting and class-wise forgetting schemes on standard machine-unlearning datasets. Specifically, on the class unlearning scheme, the method demonstrates near-optimal performance and comprehensively overcomes known methods over the random sample forgetting scheme across all metrics and multiple network pruning strategies.
Introduction
In the era of the "right to be forgotten" (mandated by regulations like GDPR), users can request that their personal data be deleted from a company's databases. However, simply deleting a row in a database is insufficient; machine learning models trained on that data often "memorize" patterns, creating a privacy leak. While the gold standard for addressing this is Exact Unlearning—retraining the model from scratch without the target data—this is prohibitively expensive for modern deep learning models.
Approximate Unlearning methods aim to "scrub" the model without full retraining, but they often face a difficult trade-off: they either fail to fully remove the data's influence (leaving it vulnerable to privacy attacks) or they accidentally degrade the model's overall performance on the data it is supposed to retain. This paper introduces a novel framework that treats "forgetting" as an adversarial game to achieve near-optimal unlearning performance at a fraction of the cost of retraining.
Methodology: Adversarial Forgetting
The proposed framework, Discriminative Adversarial Unlearning, frames unlearning as a min-max optimization problem involving two competing networks:
- The Attacker (A): A sophisticated Membership Inference Attack (MIA) model. Its role is to analyze the defender's outputs and determine if a specific sample was part of the original training set (the "forget set") or if it is an unseen sample (the "validation set").
- The Defender (D): The model being scrubbed. It aims to maintain high performance on the data it needs to keep (the "retain set") while simultaneously fooling the attacker into believing the "forget set" was never part of its training.
Feature-Level Alignment
Beyond the adversarial game, the authors incorporate a self-supervised objective based on the Barlow Twins approach. This is used to minimize the discrepancy in the feature space between the data being forgotten and the validation data. By ensuring the model's internal representations treat forgotten data like any other unseen data, the framework achieves more robust privacy than methods focusing solely on output layer masking. Unlike many previous methods, this approach is end-to-end trainable via backpropagation and avoids computationally heavy second-order derivative approximations.
Experimental Evaluation
The framework was evaluated on standard computer vision benchmarks (CIFAR-10 and CIFAR-100) under two specific scenarios: Random Sample Forgetting (removing a random 10% of training data) and Class-wise Forgetting (removing an entire category).
Key Results
- Near-Optimal Performance: In class-wise forgetting on CIFAR-10, the method achieved 100% Unlearning Accuracy and 100% MIA-Robustness, matching the performance of a model retrained from scratch.
- Efficiency: The process is significantly faster than retraining. For CIFAR-100 class-wise forgetting, the process is at least 5x faster than the retraining benchmark.
- Robustness to Sparsity: The method maintains efficacy even on sparse models (where 95% of the weights have been pruned), making it suitable for edge computing applications.
- Minimal Accuracy Loss: While scrubbing data, the model maintained high accuracy on the retain and test sets, showing very little "catastrophic forgetting" of useful information.
Conclusion and Future Work
Discriminative Adversarial Unlearning demonstrates that using Membership Inference Attacks as a training signal, rather than just an evaluation metric, can drive highly effective unlearning. While the method performs exceptionally well on class-wise forgetting, random sample forgetting remains a more challenging frontier. Future research directions include scaling this adversarial game to Large Language Models (LLMs) and refining hyperparameter stability for the min-max optimization process.
Summary updated