Introduction
The rapid advancement of machine learning has been accompanied by increasingly stringent data protection regulations, such as the General Data Protection Regulation (GDPR). Central to these regulations is the "Right to be Forgotten," which mandates that individuals can request the deletion of their personal data. In the context of AI, this presents a significant technical hurdle: simply removing a record from a database is insufficient if a model has already internalized that information during training. "Machine unlearning" has emerged as a field dedicated to removing the influence of specific data points from pre-trained models without the prohibitive cost of retraining from scratch.
The Challenge of Instance-Wise Unlearning
Current unlearning techniques often fall short in real-world scenarios due to three primary limitations. First, many methods focus on "class-wise" unlearning—deleting an entire category of data. However, privacy requests are typically "instance-wise," involving specific images or records. Second, many approaches require access to the original training dataset to "repair" the model's performance after deletion, which is often impossible due to storage constraints or privacy policies. Finally, naive deletion often leads to "catastrophic forgetting," where the model's accuracy on the remaining, non-sensitive data degrades significantly.
Methodology: Surgical Deletion
To address these challenges, we propose a framework for instance-wise unlearning that requires only the pre-trained model and the specific instances to be forgotten ($D_f$). The goal is to surgically remove the target information while preserving the model's general knowledge.
The framework employs two key regularization techniques:
- Regularization via Adversarial Examples (ADV): Using Projected Gradient Descent (PGD), we generate adversarial versions of the target instances. These examples contain features that the model should still associate with other, non-target classes. By training the model to maintain its original predictions for these "nearby" adversarial points, we "pin" the existing decision boundaries, ensuring that only the specific target point is moved.
- Weight Importance (IMP): We utilize Memory Aware Synapses (MAS) to identify which parameters are most critical for the instances being deleted. During unlearning, we penalize changes to weights that are not responsible for the target images. This ensures the "surgery" is localized to the relevant parts of the network, preventing widespread degradation of the model's performance.
Experimental Setup
The proposed ADV+IMP method was evaluated across diverse benchmarks, including general image classification (CIFAR-10, CIFAR-100, ImageNet-1K) and privacy-centric facial data (UTKFace). We also tested the method's ability to "correct" natural adversarial examples using ImageNet-A, simulating a scenario where a model must unlearn its own high-confidence errors.
Key Insights and Discussion
A critical risk in unlearning is the "Streisand Effect," where the process of deletion makes the forgotten data more conspicuous. For instance, if a model consistently predicts "Unknown" only for deleted images, it inadvertently reveals which data was removed.
As shown in the confusion matrix analysis, our ADV+IMP method produces no discernible pattern in misclassification, effectively masking the unlearning process. Furthermore, Centered Kernel Alignment (CKA) analysis revealed that the model primarily forgets "high-level" semantic features of the deleted images while retaining "low-level" features like edges and textures. This suggests the model remains a robust feature extractor even after targeted deletion.
In complex scenarios, such as forgetting 256 instances in CIFAR-10, our method maintained higher accuracy on the remaining data than an "Oracle" model retrained from scratch. This underscores the efficiency and effectiveness of our surgical approach compared to traditional retraining.
Results
The ADV+IMP method consistently achieved near 0% accuracy on the target "to-be-forgotten" images across all datasets, indicating complete unlearning. Crucially, it maintained high knowledge retention. For example, on CIFAR-100, while a baseline negative gradient (NEGGRAD) approach caused accuracy on remaining data to collapse, ADV+IMP maintained ~67% accuracy. The method also proved robust in "continual unlearning" scenarios, where deletion requests arrive sequentially.
Conclusion and Limitations
While highly effective, the weight importance (IMP) regularization can become overly restrictive when attempting to correct a large number of instances, as seen in ImageNet-A experiments. In such cases, the model may struggle to adopt new, correct labels. Future research will focus on finding a dynamic balance between unlearning strength and regularization to support large-scale model editing and bias correction.
Summary updated