Abstract
Machine unlearning has become a critical requirement under privacy regulations like GDPR, yet retraining large-scale models from scratch is computationally prohibitive. This paper presents Layer Attack Unlearning (LAU), a novel framework designed for rapid and accurate class-wise unlearning. By focusing updates on the final classification layer and employing a "Partial-PGD" adversarial attack to perturb latent features, LAU achieves near-perfect forgetting in seconds. Experimental results across multiple datasets and architectures demonstrate that LAU matches the accuracy of retraining while being orders of magnitude faster than existing state-of-the-art methods.
Introduction
As privacy laws grant individuals the "right to be forgotten," machine learning providers must find efficient ways to remove specific data from trained models. Standard retraining is too slow for modern architectures. Existing unlearning methods often face a trade-off between speed and the preservation of performance on the "retain set" (data the model should keep). This research specifically addresses class-wise unlearning—the complete removal of knowledge regarding an entire category, such as a specific person's identity in a facial recognition system.
Methodology
The Layer Attack Unlearning (LAU) framework is built upon three core technical pillars:
- Partial-PGD: Unlike standard Projected Gradient Descent (PGD) which backpropagates through the entire model to modify input pixels, Partial-PGD only backpropagates through the final classification layer to perturb latent features. This significantly accelerates the identification of the "neighboring space" where forgotten data should be remapped.
- Layer-Level Unlearning: Inspired by the Forward-Forward algorithm, LAU freezes the feature extraction layers and only modifies the weights of the final classification layer. This drastically reduces the parameter space for optimization.
- Knowledge Distillation (KD) with Double Softmax: To maintain performance on retained classes, LAU employs a teacher-student framework. A copy of the original model (teacher) provides soft labels to the model being updated (student). A "Double Softmax" technique is used to stabilize decision boundaries for the retain set.
Key Insights and Ideas
A central insight of this work is that the latent space provided by a pre-trained model is often sufficient for unlearning. By shifting how the final layer interprets existing features, the model can "lose" its ability to recognize a specific class without damaging its general visual representation.
Furthermore, LAU does not simply "break" the model's performance on the target class. Instead, it uses adversarial mapping to purposefully shift the forgotten data into the decision space of other classes, effectively "absorbing" the forgotten class into the surrounding landscape.
Experimental Evaluation
The authors evaluated LAU on CIFAR-10, Fashion-MNIST, and VGGFace2 datasets across various architectures, including VGG16, ResNet, and Vision Transformers (ViT).
Key Results
- Efficiency: On CIFAR-10 with VGG16, LAU completed unlearning in 3.76 seconds, compared to 3,683 seconds for retraining from scratch—a speedup of nearly 1000x.
- Effectiveness: LAU achieved 0% accuracy on forgotten classes while maintaining retain-set accuracy nearly identical to the retrained baseline.
- Robustness: The method outperformed state-of-the-art techniques like Boundary Shrink and Fisher Forgetting in both unlearning quality and computational efficiency. It also proved effective on Vision Transformers, which are typically more difficult to fine-tune rapidly.
Conclusion and Future Work
LAU demonstrates that focusing on the final classification layer and utilizing efficient adversarial attacks can provide a scalable solution for machine unlearning. However, some limitations remain. The current focus is primarily on class-wise unlearning; adapting this approach to instance-wise unlearning presents a different set of challenges. Additionally, the method's success relies on the quality of the frozen feature layers. Future work may explore automated hyperparameter tuning for the knowledge distillation loss to further streamline the process.
Summary updated