TL;DR
Miro is a novel system runtime designed to make continual learning (CL) practical on energy-constrained edge devices. By dynamically managing a memory hierarchy—combining fast RAM with cheap, high-capacity storage—Miro achieves up to 66% energy savings and significantly higher accuracy compared to state-of-the-art static configurations.
What Problem Does This Paper Address?
Continual learning allows neural networks to learn from a stream of data without needing to store everything or retrain from scratch. However, it faces two major hurdles on the edge: catastrophic forgetting (where the model loses old knowledge while learning new tasks) and resource constraints (limited RAM and battery life).
While researchers use "Episodic Memory" (EM)—storing a subset of old samples to replay during new training—edge devices lack the RAM to store enough samples for high accuracy. Recent work like CarM introduced Hierarchical Episodic Memory (HEM), which offloads samples to storage (like SD cards). However, these systems were never optimized for the most critical edge metric: energy efficiency. The authors of this paper found that simply using more memory or more training epochs often leads to diminishing returns in accuracy while rapidly draining the battery.
Methods
The authors introduce Miro, a runtime that treats the configuration of a CL system as a dynamic optimization problem. Miro manages a Hierarchical Episodic Memory (HEM) system, illustrated in the architecture below:
Miro’s core innovation is a four-phase state machine:
- Profile: When a new task arrives, Miro performs a lightweight search across different memory configurations (splitting a budget between the new task's buffer and the old task's memory).
- Probe: It continuously monitors system resources, such as I/O congestion and memory availability.
- Estimate: It calculates the "Utility" of configurations—a metric defined as Accuracy Gain / Energy Usage.
- Adapt: It reconfigures the system on the fly to maintain the best cost-effectiveness.
To make online profiling feasible, Miro uses several "cost-reduction" tricks: it only profiles a small subset of configurations, uses sub-sampled data, and employs model checkpoints to skip the noisy, energy-intensive early stages of training. This makes Miro's profiler 346x faster than an exhaustive search.
Datasets
The researchers evaluated Miro across five datasets spanning three distinct domains to ensure robustness:
- Image Classification: CIFAR100, Tiny-ImageNet, and the large-scale ImageNet1k.
- Audio Classification: UrbanSound8K.
- Human Activity Recognition (HAR): DSADS (Daily and Sports Activities dataset).
Key Insights and Ideas
- The GPU is the Power Hog: Profiling showed that GPU activity dominates dynamic power consumption, while I/O operations for swapping data between RAM and storage are virtually "free" in terms of energy (less than 0.1W).
- More Memory $\neq$ More Accuracy: Counter-intuitively, blindly increasing the memory budget often harms cost-effectiveness. There is no "silver bullet" static allocation; the optimal split between new and old data changes with every task.
- The "Cutline" Strategy: To avoid picking energy-efficient but low-accuracy models, Miro uses a "cutline" to filter out the bottom 50-80% of configurations by accuracy before selecting the one with the highest utility.
- Hierarchical Diversity: HEM provides much better data diversity than single-level EM. By constantly swapping samples from storage, the model "sees" a wider variety of past data over time without needing a massive RAM footprint.
Key Results
Miro consistently outperformed baseline systems (like CarM and various heuristic-based methods) across all benchmarks:
- Energy Efficiency: Miro consumed 7–66% less energy than baselines in small-to-medium experiments.
- Accuracy: It achieved 1.35–15.37% higher accuracy across various memory budgets.
- Large-Scale Performance: On the demanding ImageNet1k dataset (50 tasks), Miro achieved 46.05% energy savings and 23.37% higher accuracy compared to CarM.
- Overhead: The sophisticated profiling and monitoring add only a 7–10% overhead, which is easily offset by the massive energy savings during the actual training phase.
Limitations and Future Work
- Storage Lifespan: While Miro minimizes writes (writing only once per task), the long-term impact of constant reads on SD card endurance in multi-year deployments remains a point for further study.
- Scaling to Infinite Tasks: As the number of tasks grows, even external storage may fill up. The authors suggest that future work will need smarter data eviction strategies for the storage layer itself.
- Temporal Locality: The current version of Miro treats all past tasks with similar importance. In scenarios like video analytics, where recent objects are more relevant, the system could be improved with task-level resource allocation policies.
Summary updated