Abstract
This paper introduces "Pre-Forgettable Models," a framework that integrates machine unlearning as a native architectural feature. By binding class-specific knowledge to learnable prompt tokens while maintaining a frozen backbone, the authors enable instant, verifiable unlearning. This approach eliminates the need for costly retraining or access to original training data, offering a robust solution for regulatory compliance such as the GDPR's "right to be forgotten."
Introduction
As AI systems become more pervasive, regulatory frameworks have established the "right to be forgotten," requiring models to remove specific data upon request. However, unlearning in deep learning is traditionally difficult. Conventional methods—such as retraining from scratch, complex distillation, or post-hoc weight patching—are often computationally prohibitive, degrade performance, or leave "digital traces" of the forgotten data. This research proposes a paradigm shift: designing unlearning as a native capability from the outset.
Methodology
The proposed framework treats prompts as modular "containers" for class-specific knowledge. The architecture consists of three primary components:
- Frozen Backbone: A large, pre-trained foundation model (e.g., a Vision Transformer) is used with its weights frozen to ensure core feature stability.
- Class-Specific Prompts: Each category is assigned a unique, learnable prompt token. The model learns to recognize a class only when its corresponding prompt "key" is present.
- Dual-Objective Training: The model is optimized for a Learning Objective (correct classification with the right prompt) and an Unlearning Objective (producing high-entropy, uncertain outputs if the prompt is missing).
To unlearn a class, the system simply deletes its associated prompt token. Because knowledge is localized to that token, the model immediately loses the ability to recognize the class without any additional fine-tuning.
Experimental Setup
The researchers evaluated the framework across diverse modalities:
- Medical Imaging (MedMNIST v2): Including BloodMNIST, DermaMNIST, and OrganSMNIST, representing high-stakes privacy environments.
- Audio Classification (UrbanSound8K): Demonstrating the method's versatility beyond computer vision.
Results and Discussion
The framework achieves "zero-epoch" unlearning. As shown in sequential inference tests, accuracy on a forgotten class drops to near-zero the moment its prompt is removed, while accuracy for retained classes remains stable.
Key Performance Metrics
- Effectiveness: In scenarios where half the classes were forgotten ($f = C/2$), the model maintained high retain accuracy (e.g., 98.43% on BloodMNIST) while reducing forget accuracy to near-random levels (12.74%).
- Privacy Guarantees: The method demonstrated near-perfect resistance to Membership Inference Attacks (MIA), preventing adversaries from determining if specific data was used in training once its prompt was removed.
- Efficiency: Unlike competitors like LMEraser, which may require 10 epochs of retraining, this method achieves unlearning instantly with zero additional training cycles.
Conclusion and Future Work
Pre-Forgettable Models offer a modular, interpretable, and efficient approach to machine unlearning. By decoupling class semantics from model weights, the system allows for the seamless addition or removal of knowledge modules.
Future work will address the transition from class-level to sample-level unlearning and explore the scalability of managing thousands of individual prompts in large-scale classification tasks. Additionally, the authors aim to investigate the framework's robustness against adversarial attempts to reconstruct removed prompts.
Summary updated