Abstract
Catastrophic forgetting remains a primary hurdle in enabling deep neural networks to learn sequences of tasks. This paper introduces IRCL (Learning Invariant Representation for Continual Learning), a pseudo-rehearsal framework designed for class-incremental learning. By disentangling class-invariant features from class-specific ones using a conditional generative model, IRCL maintains a stable foundation of knowledge across tasks. Our results on Split MNIST and Split Fashion MNIST demonstrate that IRCL achieves state-of-the-art performance in both accuracy and backward transfer without the need to store original data.
The Challenge of Continual Learning
Deep neural networks typically suffer from catastrophic forgetting: when trained on a new task, the weights optimized for previous tasks are overwritten, leading to a total loss of prior knowledge. This is particularly acute in class-incremental learning, where a model must distinguish between all classes encountered across a sequence of tasks without being provided with a task identifier during inference.
Existing approaches generally fall into three categories:
- Regularization: Penalizing changes to weights important for old tasks.
- Architecture-based: Expanding the model or using task-specific sub-networks.
- Rehearsal: Storing and replaying a subset of real data from previous tasks.
While rehearsal is effective, it poses significant privacy and storage concerns. IRCL addresses these by utilizing generative pseudo-rehearsal.
Methods: The IRCL Architecture
The core innovation of IRCL is the separation of shared, "invariant" features from unique, "class-specific" features. This is achieved through a specialized architecture based on a Conditional Variational Autoencoder (cVAE).
Core Components
- Encoder (E): Maps input images to a latent representation ($z$). By conditioning the decoder on class labels, the encoder is encouraged to extract features that are invariant across classes.
- Specific Module (S): Extracts discriminative features unique to the current input.
- Classifier (C): Integrates the invariant latent $z$ and the specific features to predict the class label ($ŷ$).
- Decoder (D): Reconstructs the input image from the latent $z$ and a class label ($y$).
Pseudo-Rehearsal and Disentanglement
Instead of storing real images, IRCL uses its Decoder to generate synthetic (pseudo) samples of previously learned classes. These samples are interleaved with real data from the current task during training. Because the latent space $z$ is designed to be class-invariant, it remains more stable as new tasks are introduced, acting as a "shield" against forgetting.
Key Results
IRCL was evaluated against standard baselines including Elastic Weight Consolidation (EWC), Synaptic Intelligence (SI), Memory Aware Synapses (MAS), and Deep Generative Replay (DGR) on the Split MNIST and Split Fashion MNIST benchmarks.
- Accuracy (ACC): On Split MNIST, IRCL achieved approximately 83% accuracy, outperforming the previous state-of-the-art generative method (DGR) by 3.5%. Similar gains were observed on Fashion MNIST.
- Backward Transfer (BWT): IRCL demonstrated significantly reduced negative BWT compared to regularization methods. While methods like EWC often see near-total forgetting in class-incremental settings (BWT near -100%), IRCL maintains old task performance much more effectively.
- Efficiency: IRCL utilizes a unified network, avoiding the parameter explosion common in architecture-based methods while requiring no storage of sensitive user data.
Key Insights
- Invariance as Stability: Shared representations are naturally more robust to the weight shifts required by new tasks. By forcing the model to rely on these invariant features, the "foundation" of the model's knowledge is preserved.
- Conditional Advantage: Unlike standard generative replay, which may produce ambiguous samples, IRCL's conditional generation ensures that replayed data is correctly labeled, preventing the error-compounding issues that often plague pseudo-rehearsal.
Limitations and Future Work
While IRCL shows promise, the authors note that ensuring perfect disentanglement remains a challenge; class-specific information can sometimes "leak" into the invariant latent space. Future research may explore adversarial losses to enforce stricter separation. Additionally, scaling generative replay to high-resolution, complex datasets like ImageNet remains a significant computational and architectural hurdle for the field.
Summary updated