Abstract
Deep learning models are prone to catastrophic forgetting, where learning new tasks leads to the erasure of previously acquired knowledge. We present the CLEER (Continual Learning using Encoded Experience Replay) framework, which addresses this issue by mimicking biological memory consolidation. CLEER utilizes a generative autoencoder to align sequential tasks within a task-invariant embedding space. By modeling this space with a Gaussian Mixture Model (GMM) and employing Sliced Wasserstein Distance (SWD) for distribution alignment, the model can generate pseudo-data for experience replay. Our results on Permuted MNIST and cross-domain digit datasets demonstrate that CLEER effectively preserves past knowledge while maintaining the capacity for new learning, outperforming traditional regularization methods like Elastic Weight Consolidation (EWC).
Introduction
The challenge of lifelong learning in artificial intelligence is characterized by the need to acquire new skills without degrading performance on old ones. Standard gradient-based optimization often fails in this regard, as weight updates for a current task are not constrained by the requirements of previous tasks. This "catastrophic forgetting" remains a primary hurdle for deploying AI in dynamic, real-world environments.
The CLEER Framework
CLEER approaches continual learning through the lens of Complementary Learning Systems (CLS) theory. It integrates a generative component into a standard classification pipeline, creating a dual-purpose architecture that both classifies and reconstructs data.
The core of the framework is the Discriminative Embedding Space. Unlike standard models that may learn task-specific features, CLEER forces the encoder to map inputs from different tasks into a shared latent distribution. This is achieved using Sliced Wasserstein Distance (SWD), which provides a computationally efficient way to align high-dimensional distributions. A Gaussian Mixture Model (GMM) is then fitted to these latent representations, serving as a compact, generative memory of the model's experiences. When a new task is introduced, the model samples from the GMM and passes these samples through the decoder to create "pseudo-data," which is replayed alongside new training samples to prevent forgetting.
Experimental Evaluation
The framework was tested on the Permuted MNIST benchmark, where each task consists of a different random permutation of image pixels. This setup is particularly challenging as it removes spatial correlations that models typically rely on.
As shown in the performance curves, CLEER (dashed lines in Figure 3b) maintains near-peak accuracy across five sequential tasks, significantly outperforming EWC. While EWC attempts to preserve knowledge by slowing down weight changes, it eventually exhausts the network's plasticity. In contrast, CLEER’s generative replay mechanism allows the model to stay flexible. Furthermore, in "Related Domain" tests (MNIST to USPS), the model demonstrated positive transfer, leveraging knowledge from the first task to accelerate learning on the second.
Key Insights
- Task Invariance: The success of CLEER hinges on its ability to find universal representations. UMAP visualizations confirm that CLEER successfully overlaps task distributions in the latent space, whereas standard replay often results in disjoint clusters.
- Optimization Stability: The use of SWD avoids common pitfalls of generative models like GANs, such as mode collapse, ensuring that the generated pseudo-data remains a faithful representation of past tasks.
Conclusion
CLEER provides a robust and scalable alternative to traditional experience replay and regularization methods. By combining generative modeling with efficient distribution alignment, it offers a path toward true lifelong learning in deep neural networks. Future research will focus on scaling the architecture to high-resolution image datasets and exploring its utility in semi-supervised learning contexts.
Summary updated