Abstract
Lifelong learning research typically focuses on mitigating "catastrophic forgetting"—the loss of previously acquired knowledge when learning new tasks. This paper introduces Learning with Selective Forgetting (LSF), a framework designed to allow models to intentionally "unlearn" specific classes for privacy or utility reasons while shielding the rest of their knowledge base. Crucially, LSF operates without requiring access to the original training data of the classes to be forgotten.
Introduction
In modern machine learning, the ability to forget can be as critical as the ability to remember. Ethical mandates and privacy regulations, such as the General Data Protection Regulation (GDPR), often necessitate the removal of specific data from trained models (e.g., removing a former employee's face from a recognition system). While standard Lifelong Learning aims to retain all knowledge and Machine Unlearning typically addresses static models, a gap exists for systems that need to learn new tasks while selectively forgetting specific classes from previous ones. LSF addresses this by providing a mechanism for surgical unlearning in a task-incremental setting.
Methodology
The core of the LSF framework is the use of Mnemonic Codes, which function as class-specific "digital watermarks."
- Mnemonic Code Generation: A unique, random color grid is generated for every new class.
- Data Augmentation: These codes are blended into training images, effectively anchoring a class's identity to its specific code in the model's feature space.
- Selective Retention and Deletion: After training, original images are discarded. To preserve a class during future task updates, the model is retrained using only its mnemonic code. To forget a class, its code is simply omitted, triggering intentional catastrophic forgetting for that specific class.
The model is optimized using a composite loss function:
- Classification Loss ($L_C$): For learning the current task.
- Mnemonic Loss ($L_M$): To link new classes to their codes.
- Selective Forgetting Loss ($L_{SF}$): To replay and maintain preserved classes using stored codes.
- Regularization ($L_R$): Adapts methods like EWC to stabilize weights for preserved knowledge.
Experimental Setup
The authors evaluated LSF on several computer vision benchmarks, including CIFAR-100, CUB-200-2011 (birds), and Stanford Cars. Preliminary analysis and feature visualization were conducted using Permuted MNIST.
Results and Analysis
The proposed method, particularly the Ours_E variant (combining LSF with EWC-based regularization), significantly outperformed baselines. The authors introduced the Learning with Selective Forgetting Measure (LSFM)—a harmonic mean of preservation and deletion effectiveness—to quantify performance.
Key findings include:
- Superior Selectivity: On CIFAR-100, Ours_E achieved an LSFM of 79.60, vastly exceeding the vanilla model (51.79) and standard LwF (17.23).
- Precision Unlearning: t-SNE visualizations (as seen in Figure 5) show that while baseline methods leave "ghost" clusters of deleted classes, LSF successfully scatters these features while keeping preserved classes tightly clustered.
- Code Robustness: Simple random color grids were found to be as effective as content-based codes, enhancing privacy as the codes do not resemble raw sensitive data.
Conclusion
LSF provides a robust framework for selective unlearning in lifelong learning scenarios. While currently optimized for image data and task-incremental learning, future work will focus on extending mnemonic codes to other modalities (text, audio) and adapting the framework for more challenging class-incremental learning environments.
Summary updated