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

低功耗MCU上Transformer的最小片外流量分布式推理

Distributed Inference with Minimal Off-Chip Traffic for Transformers on Low-Power MCUs

Severin Bochem, Victor J. B. Jung, Arpan Prasad, Francesco Conti, Luca Benini

AI总结:

本文提出一种在低功耗MCU分布式系统上部署Transformer的方法,通过划分推理并保持片上权重驻留来最小化片外流量,在TinyLlama-42M和MobileBERT上分别实现了26.1倍和4.7倍的超线性加速及显著能耗降低。

摘要:

基于新兴Transformer模型的上下文人工智能(AI)预计将推动交互式可穿戴设备(如新一代智能眼镜)的下一次技术革命。通过将众多传感器与小型、低功耗微控制器单元(MCU)耦合,这些设备将实现设备端智能和传感器控制。这类系统的一个主要瓶颈是MCU中可用的片上内存量很小。在本文中,我们提出了一种方法,利用MCU的分布式系统,将推理划分到多个设备上,并实现片上权重驻留的执行,从而以最小的片外流量在低功耗可穿戴设备上部署真实的Transformer。我们通过将TinyLlama-42M仅解码器模型部署在8个并行超低功耗MCU系统上来验证该方案。与单芯片系统相比,该分布式系统实现了0.64 mJ的能量消耗,每次推理0.54 ms的延迟,26.1倍的超线性加速,以及27.2倍的能量延迟乘积(EDP)改进。在MobileBERT上,分布式系统的运行时间为38.8 ms,使用4个MCU时相比单芯片系统实现了4.7倍的超线性加速。

英文摘要:

Contextual Artificial Intelligence (AI) based on emerging Transformer models is predicted to drive the next technology revolution in interactive wearable devices such as new-generation smart glasses. By coupling numerous sensors with small, low-power Micro-Controller Units (MCUs), these devices will enable on-device intelligence and sensor control. A major bottleneck in this class of systems is the small amount of on-chip memory available in the MCUs. In this paper, we propose a methodology to deploy real-world Transformers on low-power wearable devices with minimal off-chip traffic exploiting a distributed system of MCUs, partitioning inference across multiple devices and enabling execution with stationary on-chip weights. We validate the scheme by deploying the TinyLlama-42M decoder-only model on a system of 8 parallel ultra-low-power MCUs. The distributed system achieves an energy consumption of 0.64 mJ, a latency of 0.54 ms per inference, a super-linear speedup of 26.1 x, and an Energy Delay Product (EDP) improvement of 27.2 x, compared to a single-chip system. On MobileBERT, the distributed system's runtime is 38.8 ms, with a super-linear 4.7 x speedup when using 4 MCUs compared to a single-chip system.

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

↑