arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.08678cs.LGcs.AI
收藏

TensorFlow Lite Micro:TinyML系统上的嵌入式机器学习

TensorFlow Lite Micro: Embedded Machine Learning on TinyML Systems

Google(谷歌);Harvard University(哈佛大学)

Robert David, Jared Duke, Advait Jain, Vijay Janapa Reddi, Nat Jeffries, Jian Li, Nick Kreeger, Ian Nappier, Meghna Natraj, Shlomi Regev, Rocky Rhodes, Tiezhen Wang, Pete Warden

摘要:

嵌入式设备上的深度学习推理是一个新兴的领域,有着无数的应用,因为微型嵌入式设备无处不在。但我们必须克服重大挑战,才能从这一机会中获益。嵌入式处理器是严重的资源约束。它们最接近的移动对手在计算能力、内存可用性和功耗方面表现出至少100 - 1,000倍的差异。因此,机器学习(ML)模型和相关的ML推理框架不仅必须有效地执行,而且还必须在几个字节的内存中运行。此外,嵌入式设备的生态系统非常分散。为了最大限度地提高效率,系统供应商通常会省略许多主流系统中常见的功能,包括动态内存分配和虚拟内存,这些功能允许跨平台的互操作性。硬件有多种风格(例如,指令集架构和FPU支持,或缺乏支持)。我们介绍TensorFlow Lite Micro(TF Micro),这是一个开源ML推理框架,用于在嵌入式系统上运行深度学习模型。TF Micro解决了嵌入式系统资源限制和碎片化挑战带来的效率要求,这些挑战使得跨平台互操作性几乎不可能实现。该框架采用了独特的基于解释器的方法,在克服这些挑战的同时提供了灵活性。本文解释了TF Micro背后的设计决策,并描述了其实施细节。此外,我们提出了一个评估,以证明其低资源需求和最小的运行时性能开销。

英文摘要:

Deep learning inference on embedded devices is a burgeoning field with myriad applications because tiny embedded devices are omnipresent. But we must overcome major challenges before we can benefit from this opportunity. Embedded processors are severely resource constrained. Their nearest mobile counterparts exhibit at least a 100 -- 1,000x difference in compute capability, memory availability, and power consumption. As a result, the machine-learning (ML) models and associated ML inference framework must not only execute efficiently but also operate in a few kilobytes of memory. Also, the embedded devices' ecosystem is heavily fragmented. To maximize efficiency, system vendors often omit many features that commonly appear in mainstream systems, including dynamic memory allocation and virtual memory, that allow for cross-platform interoperability. The hardware comes in many flavors (e.g., instruction-set architecture and FPU support, or lack thereof). We introduce TensorFlow Lite Micro (TF Micro), an open-source ML inference framework for running deep-learning models on embedded systems. TF Micro tackles the efficiency requirements imposed by embedded-system resource constraints and the fragmentation challenges that make cross-platform interoperability nearly impossible. The framework adopts a unique interpreter-based approach that provides flexibility while overcoming these challenges. This paper explains the design decisions behind TF Micro and describes its implementation details. Also, we present an evaluation to demonstrate its low resource requirement and minimal run-time performance overhead.

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

↑