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

基于自适应随机森林的微控制器节能推理

Adaptive Random Forests for Energy-Efficient Inference on Microcontrollers

Politecnico di Torino(都灵理工大学);University of Bologna(博洛尼亚大学)

Francesco Daghero, Alessio Burrello, Chen Xie, Luca Benini, Andrea Calimera, Enrico Macii, Massimo Poncino, Daniele Jahier Pagliari

摘要:

随机森林(Random Forests,RF)是低功耗嵌入式设备中广泛使用的机器学习模型,由于其硬件友好的操作和实际相关任务的高精度。RF的准确性通常随着内部弱学习器(决策树)的数量而增加,但代价是推理延迟和能耗成比例地增加。考虑到在大多数应用中,输入并非同样难以分类,因此可以降低此类成本。因此,大的RF通常只对(少数)硬输入是必要的,而对更容易的输入是浪费的。在这项工作中,我们提出了一个早期停止机制的RF,一旦达到足够高的分类置信度,终止推理,减少执行简单的输入弱学习器的数量。提前停止置信度阈值可以在运行时控制,以便有利于节能或准确性。我们将我们的方法应用于三种不同的嵌入式分类任务,在单核RISC-V微控制器上,实现了从38%到90%以上的能量降低,准确度下降不到0.5%。我们还表明,我们的方法优于以前的自适应ML方法的RF。

英文摘要:

Random Forests (RFs) are widely used Machine Learning models in low-power embedded devices, due to their hardware friendly operation and high accuracy on practically relevant tasks. The accuracy of a RF often increases with the number of internal weak learners (decision trees), but at the cost of a proportional increase in inference latency and energy consumption. Such costs can be mitigated considering that, in most applications, inputs are not all equally difficult to classify. Therefore, a large RF is often necessary only for (few) hard inputs, and wasteful for easier ones. In this work, we propose an early-stopping mechanism for RFs, which terminates the inference as soon as a high-enough classification confidence is reached, reducing the number of weak learners executed for easy inputs. The early-stopping confidence threshold can be controlled at runtime, in order to favor either energy saving or accuracy. We apply our method to three different embedded classification tasks, on a single-core RISC-V microcontroller, achieving an energy reduction from 38% to more than 90% with a drop of less than 0.5% in accuracy. We also show that our approach outperforms previous adaptive ML methods for RFs.

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

↑