YONO:在微控制器上建模多个异构神经网络
YONO: Modeling Multiple Heterogeneous Neural Networks on Microcontrollers
摘要:
随着深度神经网络(DNN)的发展和物联网(IoT)系统的大量传感器数据,研究界一直致力于降低DNN的计算和资源需求,以便在低资源微控制器(MCU)上进行计算。然而,目前嵌入式深度学习的大部分工作都集中在有效地解决单个任务上,而物联网设备的多任务性质和应用要求系统能够同时处理来自各种传感器的输入的各种任务(活动,语音和上下文识别)。在本文中,我们提出了YONO,一种基于乘积量化(PQ)的方法,它压缩了多个异构模型,并支持内存中的模型执行和切换,以实现MCU上的不同多任务学习。我们首先采用PQ来学习存储不同模型的权重的码本。此外,我们提出了一种新的网络优化和算法,以最大限度地提高压缩率和减少准确性损失。然后,我们开发了一个在线组件的YONO有效的模型执行和多个任务之间的切换在MCU上的运行时间,而不依赖于外部存储设备。YONO表现出卓越的性能,因为它可以压缩多个异构模型,精度损失可忽略不计或没有高达12.37 $\times$。此外,与外部存储访问相比,YONO的在线组件可以实现高效执行(每次操作的延迟为16-159 ms),并将模型加载/切换延迟和能耗分别降低93.3-94.5%和93.9- 95.0%。有趣的是,YONO可以压缩使用数据集训练的各种架构,这些数据集在YONO的离线码本学习阶段没有显示,这表明了我们方法的普遍性。总之,YONO显示出巨大的潜力,并为在资源极其有限的设备上实现多任务学习系统打开了更多的大门。
英文摘要:
With the advancement of Deep Neural Networks (DNN) and large amounts of sensor data from Internet of Things (IoT) systems, the research community has worked to reduce the computational and resource demands of DNN to compute on low-resourced microcontrollers (MCUs). However, most of the current work in embedded deep learning focuses on solving a single task efficiently, while the multi-tasking nature and applications of IoT devices demand systems that can handle a diverse range of tasks (activity, voice, and context recognition) with input from a variety of sensors, simultaneously. In this paper, we propose YONO, a product quantization (PQ) based approach that compresses multiple heterogeneous models and enables in-memory model execution and switching for dissimilar multi-task learning on MCUs. We first adopt PQ to learn codebooks that store weights of different models. Also, we propose a novel network optimization and heuristics to maximize the compression rate and minimize the accuracy loss. Then, we develop an online component of YONO for efficient model execution and switching between multiple tasks on an MCU at run time without relying on an external storage device. YONO shows remarkable performance as it can compress multiple heterogeneous models with negligible or no loss of accuracy up to 12.37$\times$. Besides, YONO's online component enables an efficient execution (latency of 16-159 ms per operation) and reduces model loading/switching latency and energy consumption by 93.3-94.5% and 93.9-95.0%, respectively, compared to external storage access. Interestingly, YONO can compress various architectures trained with datasets that were not shown during YONO's offline codebook learning phase showing the generalizability of our method. To summarize, YONO shows great potential and opens further doors to enable multi-task learning systems on extremely resource-constrained devices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。