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

DTMM:利用剪枝在极弱物联网设备上部署 TinyML 模型

DTMM: Deploying TinyML Models on Extremely Weak IoT Devices with Pruning

City University of Hong Kong(香港城市大学)

Lixiang Han, Zhen Xiao, Zhenjiang Li

AI总结:

针对 MCU 等极弱 IoT 设备难以同时实现深度剪枝、保持精度与高效执行的问题,提出含剪枝单元选择、优化、加速和低成本存储的 DTMM 库并验证其收益。

摘要:

DTMM 是一个旨在微控制器单元(MCU)等弱性能物联网设备上高效部署和执行机器学习模型的库。设计 DTMM 的动机来自微型机器学习(TinyML)这一新兴领域,该领域探索将机器学习的覆盖范围扩展到大量低端物联网设备,以实现普适智能。由于嵌入式设备能力较弱,在部署前有必要通过剪枝足够多的权重来压缩模型。尽管剪枝已在许多计算平台上得到广泛研究,但剪枝方法的两个关键问题在 MCU 上被加剧:模型需要被深度压缩,同时不能显著损害精度,而且剪枝后还应高效执行。当前解决方案只能实现这些目标中的一个,而无法同时兼顾。本文发现,经过剪枝的模型在 MCU 上的高效部署与执行方面具有巨大潜力。因此,我们提出 DTMM,其包含剪枝单元选择、执行前剪枝优化、运行时加速以及执行后低成本存储,以填补剪枝模型高效部署和执行方面的空白。它可以集成到商用机器学习框架中用于实际部署,并且已经开发了原型系统。在多种模型上进行的大量实验表明,与最先进方法相比,其取得了可观收益。

英文摘要:

DTMM is a library designed for efficient deployment and execution of machine learning models on weak IoT devices such as microcontroller units (MCUs). The motivation for designing DTMM comes from the emerging field of tiny machine learning (TinyML), which explores extending the reach of machine learning to many low-end IoT devices to achieve ubiquitous intelligence. Due to the weak capability of embedded devices, it is necessary to compress models by pruning enough weights before deploying. Although pruning has been studied extensively on many computing platforms, two key issues with pruning methods are exacerbated on MCUs: models need to be deeply compressed without significantly compromising accuracy, and they should perform efficiently after pruning. Current solutions only achieve one of these objectives, but not both. In this paper, we find that pruned models have great potential for efficient deployment and execution on MCUs. Therefore, we propose DTMM with pruning unit selection, pre-execution pruning optimizations, runtime acceleration, and post-execution low-cost storage to fill the gap for efficient deployment and execution of pruned models. It can be integrated into commercial ML frameworks for practical deployment, and a prototype system has been developed. Extensive experiments on various models show promising gains compared to state-of-the-art methods.

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

↑