Introduction
Traditional edge AI deployment follows a static "train-on-cloud, deploy-at-edge" paradigm. However, real-world applications often require devices to adapt to new environments or learn novel classes post-deployment. This "continual learning" is particularly challenging for extreme-edge devices, such as microcontrollers (MCUs), due to two primary hurdles: catastrophic forgetting—where new learning erases previous knowledge—and severe resource constraints in memory and computational power.
This paper presents a co-designed hardware/software platform that enables on-device continual learning on a low-power RISC-V cluster, achieving significant improvements in speed and energy efficiency compared to state-of-the-art mobile and MCU solutions.
System Architecture and Software Optimization
The proposed system leverages the Parallel Ultra-Low-Power (PULP) architecture. The hardware consists of a single "Fabric Controller" core for system management and an 8-core RISC-V cluster dedicated to intensive computation. Each core in the cluster is equipped with a Floating-Point Unit (FPU) to support the high-precision arithmetic required for neural network training.
To overcome the memory limitations of MCUs, the authors implemented a sophisticated software stack centered on:
- Parallel GEMM: General Matrix Multiplication (GEMM) kernels for both forward and backward passes were parallelized across the 8-core cluster, yielding a 7.79x speedup over single-core execution.
- Memory Tiling: Given the small on-chip L1 and L2 memories, a tiling strategy moves data in chunks from external L3 RAM or FLASH. This process uses a background Direct Memory Access (DMA) engine to overlap data movement with computation, effectively hiding latency.
Continual Learning via Latent Replay
To mitigate catastrophic forgetting without the massive memory overhead of storing raw images, the system employs Latent Replay (LR). Instead of re-processing old input data, the model stores "latent" feature maps—compressed representations extracted from an intermediate layer. During retraining, these saved latents are "replayed" alongside new data to maintain the model's performance on previously learned tasks.
Performance and Trade-off Analysis
The system was evaluated using the CORe50 NICv2-391 benchmark, a standard for sequential learning of 50 object classes, using a MobileNetV1 backbone. The research highlights a critical design space where accuracy, memory, and latency must be balanced.
Key findings from the trade-off analysis include:
- Strategic Retraining: Retraining the entire network yields the highest accuracy (77.3%) but requires approximately 5 hours. Conversely, retraining only from the
conv5_4layer provides a "sweet spot," achieving 72.5% accuracy in just 1.5 hours while utilizing 70MB of RAM. - Efficiency Gains: The platform is 25x faster than standard low-power MCUs (e.g., STM32L4) and 11x more energy-efficient than mobile-class processors like the Snapdragon 845.
- Extreme Speed: For applications requiring near-instant adaptation, retraining only the final fully-connected layer takes a mere 867 milliseconds, though accuracy drops to 58%.
Conclusion
By combining a parallel RISC-V architecture with optimized memory management and Latent Replay, this work demonstrates that training—not just inference—is viable at the extreme edge. While external memory remains a bottleneck for the highest accuracy tiers, the system provides a flexible framework for developers to navigate the trade-offs between learning speed, memory footprint, and model precision in real-time, autonomous applications.
Summary updated