Introduction
Continual Learning (CL) aims to enable AI models to acquire new knowledge sequentially. However, these models frequently encounter "catastrophic forgetting," where new information overwrites previously learned data. Most existing CL methods rely on explicit "task boundaries" to signal shifts in data distribution. In contrast, real-world scenarios often involve unlabeled, continuous data streams. This paper introduces Dynamic Expanding Memory Distribution (DEMD), a framework designed for Task-Free Continual Learning (TFCL). DEMD mimics biological dual-memory systems to stabilize generative models in environments where task labels are absent.
Methodology: The DEMD Framework
The DEMD framework utilizes a dual-memory architecture inspired by the brain's fast and slow memory mechanisms. It consists of two primary components:
- Dynamic Memory System (DMS): A short-term buffer employing a Last-In-First-Out (LIFO) strategy to capture recent data samples.
- Dynamic Scalable Memory System (DSMS): A long-term system that manages probabilistic memory distributions in a low-dimensional latent space, modeling data as Gaussian distributions rather than raw pixels.
The system optimizes memory through a three-step process:
- Expansion: Automatically initializes a new sub-memory buffer when incoming data significantly differs from existing distributions (measured via cosine similarity).
- Augmentation: Refines existing distributions by adding similar new samples, enhancing statistical robustness.
- Reduction: Identifies and removes redundant or overlapping distributions using symmetrical KL divergence to prevent memory saturation.
Theoretical support is provided by deriving a lower bound for the Evidence Lower Bound (ELBO), demonstrating that maximizing discrepancy between memory distributions minimizes forgetting.
Experimental Evaluation
The authors evaluated DEMD on diverse benchmarks, including Split MNIST, Fashion-MNIST, SVHN, and CIFAR10, as well as high-resolution datasets like FFHQ (up to 256x256). Performance was measured using the Frechet Inception Distance (FID) score, where lower values signify higher image quality and better knowledge retention.
Key Results
DEMD consistently established new state-of-the-art performance across all tested benchmarks. For instance, on Split MNIST, DEMD achieved an FID of 23.62, significantly outperforming the strongest baseline, CGKD-WAE (47.98).
Beyond standard benchmarks, the model showed remarkable robustness to class imbalance and successfully scaled to high-resolution generative tasks, a common failure point for previous TFCL methods.
Discussion and Insights
A critical finding was the utility of the "expansion signal" (the distance between new data and existing memory). Spikes in this signal accurately correspond to the introduction of new data categories, allowing the model to autonomously "discover" task boundaries. By storing probabilistic distributions instead of raw image buffers, DEMD represents categories more compactly and accurately.
Limitations and Future Work
While effective, DEMD depends on the quality of the initial latent mapping function. Poor mapping can lead to inaccurate memory distributions. Additionally, calculating KL divergences between numerous distributions introduces computational overhead. Future research may explore integrating this framework with large-scale foundation models to provide them with persistent long-term memory capabilities.
Summary updated