RISC-V极端边缘节点上持续学习的存储器-延迟-准确性权衡
Memory-Latency-Accuracy Trade-offs for Continual Learning on a RISC-V Extreme-Edge Node
摘要:
AI驱动的边缘设备目前缺乏使其嵌入式推理模型适应不断变化的环境的能力。为了解决这个问题,持续学习(CL)策略旨在基于新获取的数据逐步提高决策能力。在这项工作中,在量化CL算法的内存和计算需求后,我们定义了一个新的硬件/软件极端边缘平台,该平台具有低功耗RISC-V八核集群,专为本地感知数据的按需增量学习而定制。当运行梯度下降的向前和向后步骤时,所提出的多核硬件/软件架构分别实现了2.21和1.70 MAC/周期的峰值性能。我们报告了在CORe 50数据集上针对图像分类任务时,使用Latent Replay CL学习新类的内存占用、延迟和准确性之间的权衡。对于重新训练所有层的CL设置,需要5小时学习一个新类并实现高达77.3%的精度,更有效的解决方案只重新训练网络的一部分,达到72.5%的精度,内存需求为300 MB,计算延迟为1.5小时。另一方面,仅对最后一层进行再训练会产生最快(867 ms)和更少内存占用(20 MB)的解决方案,但在CORe 50数据集上得分为58%。由于低功耗集群引擎的并行性,我们的硬件/软件平台比典型的MCU设备快25倍,CL仍然是不切实际的,并且在移动级解决方案的能耗方面表现出11倍的增益。
英文摘要:
AI-powered edge devices currently lack the ability to adapt their embedded inference models to the ever-changing environment. To tackle this issue, Continual Learning (CL) strategies aim at incrementally improving the decision capabilities based on newly acquired data. In this work, after quantifying memory and computational requirements of CL algorithms, we define a novel HW/SW extreme-edge platform featuring a low power RISC-V octa-core cluster tailored for on-demand incremental learning over locally sensed data. The presented multi-core HW/SW architecture achieves a peak performance of 2.21 and 1.70 MAC/cycle, respectively, when running forward and backward steps of the gradient descent. We report the trade-off between memory footprint, latency, and accuracy for learning a new class with Latent Replay CL when targeting an image classification task on the CORe50 dataset. For a CL setting that retrains all the layers, taking 5h to learn a new class and achieving up to 77.3% of precision, a more efficient solution retrains only part of the network, reaching an accuracy of 72.5% with a memory requirement of 300 MB and a computation latency of 1.5 hours. On the other side, retraining only the last layer results in the fastest (867 ms) and less memory hungry (20 MB) solution but scoring 58% on the CORe50 dataset. Thanks to the parallelism of the low-power cluster engine, our HW/SW platform results 25x faster than typical MCU device, on which CL is still impractical, and demonstrates an 11x gain in terms of energy consumption with respect to mobile-class solutions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。