Abstract
Given the recent success of Deep Learning applied to a variety of single tasks, it is natural to consider more human-realistic settings. Perhaps the most difficult of these settings is that of continual lifelong learning, where the model must learn online over a continuous stream of non-stationary data. A successful continual lifelong learning system must have three key capabilities: it must learn and adapt over time, it must not forget what it has learned, and it must be efficient in both training time and memory. Recent techniques have focused their efforts primarily on the first two capabilities while questions of efficiency remain largely unexplored. In this paper, we consider the problem of efficient and effective storage of experiences over very large time-frames. In particular we consider the case where typical experiences are O(n) bits and memories are limited to O(k) bits for k << n. We present a novel scalable architecture and training algorithm in this challenging domain and provide an extensive evaluation of its performance. Our results show that we can achieve considerable gains on top of state-of-the-art methods such as GEM.
Introduction
Artificial intelligence systems often struggle with continual lifelong learning: the ability to learn from a continuous stream of non-stationary data without forgetting previous tasks—a phenomenon known as catastrophic forgetting. While "experience replay" (storing and re-training on old data) is a powerful solution, it suffers from a major scalability flaw. Storing raw, high-dimensional experiences causes storage costs to grow linearly with the number of experiences. For an agent operating autonomously for years, this becomes prohibitively expensive. This work introduces a method to make experience storage both efficient (sub-linear scaling) and effective for stabilizing learning over very long timeframes.
The Scalable Recollection Module (SRM)
The core contribution is the Scalable Recollection Module (SRM), which acts as a compressed episodic memory. The SRM consists of three primary components: an Encoder that compresses new experiences into discrete latent codes (one-hot vectors), an Index Buffer that stores these compact binary indexes, and a Decoder that reconstructs approximate "recollections" of the original experiences.
The system utilizes a discrete variational autoencoder (VAE) with a Gumbel-Softmax estimator to ensure differentiability. During training, the model interleaves new data with recollections sampled from the index buffer. A key innovation is the self-stabilization of the SRM: it uses its own stored recollections to prevent its encoder and decoder from forgetting how to compress and reconstruct older data.
Experimental Evaluation
The SRM was evaluated on standard lifelong learning benchmarks, including MNIST-Rotations, Incremental CIFAR-100, and Omniglot.
Performance and Retention
On MNIST-Rotations, the SRM achieved 81.5% retention compared to 67.4% for standard real-experience storage (GEM) under the same storage budget. The efficiency gains are substantial: the SRM can store up to 5,000 items in the same memory footprint required for just 200 raw images. Furthermore, the authors demonstrate that categorical (discrete) latent variables achieve significantly higher compression ratios than continuous ones for the same level of reconstruction distortion.
Long-term Stability
In a large-scale experiment involving 1 million training episodes on CIFAR-100, the SRM maintained significantly higher accuracy on old tasks compared to both online learning and raw storage methods. This demonstrates the module's ability to consolidate knowledge over extremely long horizons.
Conclusion
The Scalable Recollection Module addresses the critical bottleneck of memory efficiency in lifelong learning. By storing compressed discrete codes instead of raw data, the system achieves sub-linear memory scaling while improving long-term knowledge retention. Future work will explore online clustering strategies for the index buffer and more advanced generative models to improve the fidelity of reconstructed recollections.
Summary updated