MicroFlow:一种基于 Rust 的高效 TinyML 推理引擎
MicroFlow: An Efficient Rust-Based Inference Engine for TinyML
AI总结:
本文提出基于 Rust 的开源 TinyML 推理框架 MicroFlow,借助编译器与内存安全机制,在极低资源裸机 MCU 上实现更省内存、更快或同等性能的神经网络部署。
摘要:
近年来,在嵌入式系统上开发机器学习算法受到了广泛关注。这对于物联网、机器人和工业应用中的裸机设备尤其重要,这些设备面临有限的内存、处理能力和存储,并且要求极高的鲁棒性。为应对这些约束,我们提出 MicroFlow,这是一个使用 Rust 编程语言在嵌入式系统上部署神经网络(NN)的开源 TinyML 框架。MicroFlow 基于编译器的推理引擎,结合 Rust 的内存安全性,使其适用于关键环境中的 TinyML 应用。所提出的框架能够在资源高度受限的设备上成功部署 NN,包括仅有 2kB RAM 的裸机 8 位微控制器。此外,在部署 NN 参考模型(即唤醒词检测和人员检测)时,MicroFlow 能够比其他最先进解决方案使用更少的 Flash 和 RAM;在中型 NN 上,与现有引擎相比,它实现了同等准确但更快的推理,在较大型 NN 上则具有相似性能。实验结果证明了 MicroFlow 在资源尤其有限的关键环境中部署 TinyML 模型的效率和适用性。
英文摘要:
In recent years, there has been a significant interest in developing machine learning algorithms on embedded systems. This is particularly relevant for bare metal devices in Internet of Things, Robotics, and Industrial applications that face limited memory, processing power, and storage, and which require extreme robustness. To address these constraints, we present MicroFlow, an open-source TinyML framework for the deployment of Neural Networks (NNs) on embedded systems using the Rust programming language. The compiler-based inference engine of MicroFlow, coupled with Rust's memory safety, makes it suitable for TinyML applications in critical environments. The proposed framework enables the successful deployment of NNs on highly resource-constrained devices, including bare-metal 8-bit microcontrollers with only 2kB of RAM. Furthermore, MicroFlow is able to use less Flash and RAM memory than other state-of-the-art solutions for deploying NN reference models (i.e. wake-word and person detection), achieving equally accurate but faster inference compared to existing engines on medium-size NNs, and similar performance on bigger ones. The experimental results prove the efficiency and suitability of MicroFlow for the deployment of TinyML models in critical environments where resources are particularly limited.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。