arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.11267cs.LG
收藏

MicroNets:用于在商用微控制器上部署TinyML应用的神经网络架构

MicroNets: Neural Network Architectures for Deploying TinyML Applications on Commodity Microcontrollers

Arm ML Research(Arm机器学习研究院);Harvard University(哈佛大学);SambaNova Systems

Colby Banbury, Chuteng Zhou, Igor Fedorov, Ramon Matas Navarro, Urmish Thakker, Dibakar Gope, Vijay Janapa Reddi, Matthew Mattina, Paul N. Whatmough

摘要:

在资源受限的微控制器(MCU)上本地执行机器学习工作负载有望大幅扩展物联网的应用空间。然而,所谓的TinyML提出了严峻的技术挑战,因为深度神经网络推理需要大量的计算和内存预算。为了应对这一挑战,神经架构搜索(NAS)有望帮助设计出精确的ML模型,以满足MCU内存、延迟和能量的严格限制。NAS算法的一个关键组成部分是它们的延迟/能量模型,即,从给定的神经网络架构到其在MCU上的推理延迟/能量的映射。在本文中,我们观察到一个有趣的性质NAS搜索空间的MCU模型设计:平均而言,模型延迟与模型操作(op)计数线性变化下,一个统一的先验模型在搜索空间。利用这一洞察力,我们采用可区分NAS(DNAS)来搜索具有低内存使用和低操作数的模型,其中操作数被视为延迟的可行代理。实验结果验证了我们的方法,产生了我们的MicroNet模型,我们使用Tensorflow Lite Micro(TinyML社区中广泛使用的标准开源NN推理运行时)将其部署在MCU上。MicroNets展示了所有三个TinyMLperf行业标准基准任务的最新结果:视觉唤醒词,音频关键字定位和异常检测。模型和培训脚本可以在github.com/ARM-software/ML-zoo上找到。

英文摘要:

Executing machine learning workloads locally on resource constrained microcontrollers (MCUs) promises to drastically expand the application space of IoT. However, so-called TinyML presents severe technical challenges, as deep neural network inference demands a large compute and memory budget. To address this challenge, neural architecture search (NAS) promises to help design accurate ML models that meet the tight MCU memory, latency and energy constraints. A key component of NAS algorithms is their latency/energy model, i.e., the mapping from a given neural network architecture to its inference latency/energy on an MCU. In this paper, we observe an intriguing property of NAS search spaces for MCU model design: on average, model latency varies linearly with model operation (op) count under a uniform prior over models in the search space. Exploiting this insight, we employ differentiable NAS (DNAS) to search for models with low memory usage and low op count, where op count is treated as a viable proxy to latency. Experimental results validate our methodology, yielding our MicroNet models, which we deploy on MCUs using Tensorflow Lite Micro, a standard open-source NN inference runtime widely used in the TinyML community. MicroNets demonstrate state-of-the-art results for all three TinyMLperf industry-standard benchmark tasks: visual wake words, audio keyword spotting, and anomaly detection. Models and training scripts can be found at github.com/ARM-software/ML-zoo.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑