Abstract
In this paper, we introduce Selective-distillation for Class and Architecture-agnostic unleaRning (SCAR), a novel approximate unlearning method. SCAR efficiently eliminates specific information while preserving the model's test accuracy without using a retain set, which is a key component in state-of-the-art approximate unlearning algorithms. Our approach utilizes a modified Mahalanobis distance to guide the unlearning of the feature vectors of the instances to be forgotten, aligning them to the nearest wrong class distribution. Moreover, we propose a distillation-trick mechanism that distills the knowledge of the original model into the unlearning model with out-of-distribution images for retaining the original model's test performance without using any retain set. Importantly, we propose a self-forget version of SCAR that unlearns without having access to the forget set. We experimentally verified the effectiveness of our method, on three public datasets, comparing it with state-of-the-art methods. Our method obtains performance higher than methods that operate without the retain set and comparable w.r.t the best methods that rely on the retain set.
Introduction
Machine unlearning is the process of removing the influence of specific training data from a pre-trained model—essential for complying with "right to be forgotten" regulations (like GDPR) or removing biased/sensitive information. The standard approach to unlearning usually requires a retain set—the portion of the training data the model is supposed to keep. However, in real-world scenarios, the retain set is often massive or entirely inaccessible due to privacy constraints. Most existing "retain-free" methods struggle to maintain the model's original accuracy on the remaining data. This paper introduces SCAR, a method that restores a model's performance after unlearning without ever looking at the retain set.
Methodology: The SCAR Framework
SCAR (Selective-distillation for Class and Architecture-agnostic unleaRning) relies on two synergistic mechanisms to achieve effective unlearning while maintaining performance on the remaining data.
Metric Learning with Mahalanobis Distance
To "forget" a sample, SCAR doesn't just push its feature vector away from its original class. Instead, it uses a modified Mahalanobis distance to shift the feature vector toward the distribution of the nearest incorrect class. This accounts for the "shape" and covariance of class distributions in the model's feature space, making the unlearning more precise than simple centroid-based methods.
The Distillation-Trick
To preserve performance on the retain set without actually having it, SCAR uses Out-Of-Distribution (OOD) images (e.g., random photos from the internet). It treats the original model as a "teacher" and the unlearning model as a "student." By forcing the student to match the teacher's predictions on these random OOD images, the model "remembers" its general knowledge and decision boundaries for the retain classes.
Self-Forget Mechanism
The authors also introduce SCAR Self-forget, a variant for "Class Removal" scenarios where even the forget set (the data to be deleted) is unavailable. In this mode, the model uses OOD data to identify samples it thinks belong to the target class and then unlearns those internal representations.
Key Insights
The effectiveness of SCAR stems from several key observations regarding the internal representations of deep neural networks.
- OOD Data as a Knowledge Anchor: Random images can act as a "proxy" for the original retain set during distillation because deep neural networks cluster OOD data in predictable ways within their feature space.
- Distribution over Centroids: Shifting toward a distribution (using Mahalanobis distance) is far more effective than shifting toward a single centroid because it respects the underlying geometry of the model's learned features.
- Unlearning without Forget Data: The "Self-forget" mechanism demonstrates that a model's own "hallucinations" or high-confidence errors on OOD data are enough to guide the unlearning process if the original images are missing.
Experimental Results
The researchers evaluated SCAR on CIFAR-10, CIFAR-100, and TinyImageNet using various architectures including ResNet-18/34/50, AllCNN, and Vision Transformers (ViT).
- Superiority over Retain-Free Methods: SCAR significantly outperformed existing methods that operate without a retain set (like Negative Gradient or Random Labels) across all metrics.
- Competitive with Retain-Based Methods: SCAR achieved results on par with SCRUB, a top-tier method that does require the retain set.
- Efficiency: In a CIFAR-100 scenario, SCAR required only ~30MB of surrogate data storage, compared to the ~145MB required by methods needing the full retain set.
Conclusion and Limitations
While SCAR is highly effective and architecture-agnostic, there is still a marginal decrease in overall test accuracy compared to the original model. Furthermore, the "distillation-trick" works best with real-world images; when using pure Gaussian noise as the surrogate dataset, performance dropped significantly, suggesting the surrogate data needs some level of spatial patterns to trigger the model's filters. Future work will involve a mathematical exploration of "certifiability" to provide formal proof that the forgotten data is truly irrecoverable.
Summary updated