Introduction
Continual Learning (CL) enables models to learn from a non-stop stream of data. However, it faces the challenge of catastrophic forgetting, where learning new tasks causes the model to overwrite knowledge from previous ones. To combat this, researchers use Episodic Memory (EM)—a small RAM buffer that stores past samples for "replay." On resource-constrained devices, this buffer is often too small, leading to permanent data loss once it reaches capacity.
Carousel Memory (CarM) proposes a hierarchical memory management strategy that utilizes abundant on-device storage (SSD/HDD) as an extension of limited RAM. By treating the memory hierarchy as a revolving door for data, CarM significantly reduces forgetting without requiring additional high-cost memory.
Methodology: The CarM Architecture
CarM introduces a "plug-and-play" framework that sits beneath existing CL algorithms. It manages data flow through three core mechanisms:
- Hierarchical Storage: CarM maintains a large pool of past experiences in internal storage and a smaller, high-speed subset in RAM for active training.
- Scoring and Gating: A "gate function" decides which samples to swap. Using an Entropy-based policy, the system prioritizes keeping samples the model is currently "confused" about (high entropy) in RAM, while swapping out mastered samples to storage.
- Asynchronous Retrieval: To prevent slow storage I/O from bottlenecking training, CarM employs an asynchronous "swap worker." This worker fetches the next bundle of samples from storage in the background while the model trains on the current set.
Efficiency and Performance
A primary obstacle to using disk storage for training is latency. CarM addresses this by overlapping I/O operations with computation. As shown in the comparison of training modes, the asynchronous approach effectively hides latency, resulting in negligible training time overhead (typically 1-3%) compared to the significant delays of a synchronous approach.
Evaluations across benchmarks like CIFAR-100 and ImageNet-1000 show that CarM delivers massive accuracy gains. For example, when added to the DER++ algorithm on Tiny-ImageNet, CarM improved final accuracy by 28.4%. Notably, a model using CarM with a tiny RAM buffer can outperform standard models with much larger buffers because it can "carousel" through a far greater variety of historical data.
Key Insights: The Distillation Conflict
The authors also identified a "distillation conflict." While many CL methods rely on knowledge distillation (learning from the model's own past predictions), CarM reveals that having access to a large volume of real past data in storage makes heavy distillation less necessary and sometimes even harmful. Access to ground-truth historical data is almost always superior to relying on "soft" guesses from previous model versions.
Conclusion
Carousel Memory demonstrates that the "RAM bottleneck" in continual learning can be overcome by rethinking memory hierarchy. By leveraging existing storage and hiding latency through asynchrony, CarM provides a practical path for deploying robust, long-term learning systems on edge and IoT hardware.
Summary updated