[Paper Review] Carousel Memory: Rethinking the Design of Episodic Memory for Continual Learning
This paper proposes Carousel Memory (CarM), a hierarchical episodic memory system that dynamically swaps data between fast on-device RAM and slower, high-capacity storage to mitigate catastrophic forgetting in continual learning. By intelligently managing data migration, CarM boosts model accuracy by up to 28.4% across seven CL methods without sacrificing training efficiency, even with limited RAM and low-bandwidth storage.
Continual Learning (CL) is an emerging machine learning paradigm that aims to learn from a continuous stream of tasks without forgetting knowledge learned from the previous tasks. To avoid performance decrease caused by forgetting, prior studies exploit episodic memory (EM), which stores a subset of the past observed samples while learning from new non-i.i.d. data. Despite the promising results, since CL is often assumed to execute on mobile or IoT devices, the EM size is bounded by the small hardware memory capacity and makes it infeasible to meet the accuracy requirements for real-world applications. Specifically, all prior CL methods discard samples overflowed from the EM and can never retrieve them back for subsequent training steps, incurring loss of information that would exacerbate catastrophic forgetting. We explore a novel hierarchical EM management strategy to address the forgetting issue. In particular, in mobile and IoT devices, real-time data can be stored not just in high-speed RAMs but in internal storage devices as well, which offer significantly larger capacity than the RAMs. Based on this insight, we propose to exploit the abundant storage to preserve past experiences and alleviate the forgetting by allowing CL to efficiently migrate samples between memory and storage without being interfered by the slow access speed of the storage. We call it Carousel Memory (CarM). As CarM is complementary to existing CL methods, we conduct extensive evaluations of our method with seven popular CL methods and show that CarM significantly improves the accuracy of the methods across different settings by large margins in final average accuracy (up to 28.4%) while retaining the same training efficiency.
Motivation & Objective
- Address catastrophic forgetting in continual learning (CL) on mobile and IoT devices with limited on-device memory capacity.
- Overcome the limitation of traditional episodic memory (EM) that discards overflowed samples, leading to permanent information loss.
- Leverage abundant on-device storage to preserve past experiences and improve model accuracy without degrading training speed.
- Design a system that maintains high training efficiency despite slow storage access by hiding I/O latency through asynchronous data swapping.
- Demonstrate that hierarchical memory management significantly enhances the effectiveness of existing CL methods under realistic hardware constraints.
Proposed method
- Introduce a hierarchical memory architecture that uses fast RAM for active training and large internal storage for long-term retention of past data.
- Implement an online, asynchronous data swapping mechanism that hides I/O latency by overlapping data transfer with model training computations.
- Design a gating policy based on a learned model to determine which samples to swap between RAM and storage, optimizing for both system efficiency and model accuracy.
- Use a dynamic swapping policy that prioritizes samples based on their estimated contribution to reducing forgetting, balancing I/O overhead and accuracy gains.
- Integrate CarM as a plug-in module with existing CL methods, enabling it to work with both single-pass and multi-pass training strategies.
- Apply a hierarchical memory management strategy where samples are retained in storage beyond EM capacity, avoiding permanent data loss.
Experimental results
Research questions
- RQ1Can leveraging on-device storage to preserve overflowed episodic memory samples significantly reduce catastrophic forgetting in continual learning?
- RQ2How can data swapping between RAM and storage be designed to maintain training efficiency despite the slow access speed of storage?
- RQ3To what extent does the proposed hierarchical memory management improve model accuracy compared to traditional memory-only episodic memory approaches?
- RQ4How does the performance of CarM scale with varying EM sizes, storage capacities, and data swapping ratios?
- RQ5Can CarM effectively support long-term continual learning over a large number of tasks, even when storage is limited?
Key findings
- CarM improves final average accuracy by up to 28.4% compared to baseline CL methods across seven different algorithms on CIFAR-100.
- CarM-50 with DER++ on an EM size of 300 achieves higher accuracy than pure DER++ with an EM size of 1000, demonstrating that data swapping enables smaller EMs to outperform larger ones.
- Even at a low swapping ratio of 20%, CarM maintains high accuracy, indicating effectiveness on systems with limited I/O bandwidth.
- With storage capacity as low as 1.5× the EM size, CarM still outperforms traditional methods, showing robustness to storage constraints.
- On a 50-task split of CIFAR-100, CarM significantly outperforms baselines, confirming its scalability for long-term continual learning.
- The asynchronous swapping mechanism successfully hides I/O latency, preserving training efficiency despite frequent data transfers between memory and storage.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.