TinyML遭遇内存墙:十款亚瓦级边缘设备的基准测试
TinyML Hits the Memory Wall: A Benchmark of Ten Sub-Watt Edge Devices
AI总结:
该研究针对十款亚瓦级边缘设备开展基准测试,发现带NPU的加速器为内存受限型,MAC计数不适用于其成本评估,且Alif E7与IMX500构成功率-性能帕累托前沿。
摘要:
边缘端的神经网络推理必须适配严格的能量预算。现有基准测试仅对比少量设备,未在统一基准上报告能耗,且遗漏了带NPU或1 GHz Cortex-M85的最新微控制器。硬件感知设计还通过MAC计数对网络排序,但尚无研究验证该代理指标在不同加速器间是否有效。我们通过在十款商用设备上评估四款CNN(MobileNetV3、MCUNetV1、EfficientNet、SqueezeNet)和两款微型Transformer(MobileViT-XXS、DeiT-tiny),对亚瓦级边缘AI硬件进行基准测试,设备包括:一款传感器内DSP(Sony IMX500)、四款带NPU的MCU(STM32N6、Alif Ensemble E7/E8、GreenWaves GAP9)、五款不带NPU的MCU(STM32U5、Apollo510B、ESP32-S3 Xtensa LX7、RA8M2、STM32V8),其中四款为新型设备(Alif E8、Apollo510B、RA8M2、STM32V8)。以空闲状态以上的能耗计算,IMX500(0.13-0.35 mJ)在所有模型上比STM32N6(0.31-1.05 mJ)少用1.3-3倍能耗;GAP9在MobileNetV3上能耗最低,Alif E7在MCUNetV1和SqueezeNet上能耗最低。这四款设备均比STM32V8(1.85-3.98 mJ)少用6-34倍能耗,且Alif E7与IMX500构成功率-性能帕累托前沿。四款加速器的延迟均与内存流量(权重和激活的字节数,r≥0.98)相关,而非与MAC数相关,因此它们是内存受限的,而不带NPU的MCU均非如此。NPU的优势随计算强度提升而增大,在MCUNetV1上比1 GHz Cortex-M85高1.4倍,在SqueezeNet上高8.2倍。因此,MAC计数是亚瓦级加速器的误导性成本代理指标。
英文摘要:
Neural network inference at the edge must fit tight energy budgets. Existing benchmarks compare few devices, do not report energy on a common basis, and omit the newest microcontrollers with an NPU or the 1 GHz Cortex-M85. Hardware-aware design also ranks networks by MAC count, yet no study has tested whether this proxy holds across accelerators. We benchmark sub-watt edge AI hardware by evaluating four CNNs (MobileNetV3, MCUNetV1, EfficientNet, SqueezeNet) and two tiny transformers (MobileViT-XXS, DeiT-tiny) on ten commercial devices: an in-sensor DSP (Sony IMX500), four MCUs with an NPU (STM32N6, Alif Ensemble E7/E8, GreenWaves GAP9), and five MCUs without an NPU (STM32U5, Apollo510B, ESP32-S3 Xtensa LX7, RA8M2, STM32V8). Four devices are novel (Alif E8, Apollo510B, RA8M2, STM32V8). Measured as energy above idle, the IMX500 (0.13-0.35 mJ) uses 1.3-3x less energy than the STM32N6 (0.31-1.05 mJ) on every model; the GAP9 uses the least on MobileNetV3 and the Alif E7 the least on MCUNetV1 and SqueezeNet. All four use 6-34x less energy than the STM32V8 (1.85-3.98 mJ), and the Alif E7 and IMX500 form the power-performance Pareto front. Latency on all four accelerators scales with memory traffic (bytes of weights and activations, r >= 0.98) and not with MACs, so they are memory-bound, while no MCU without an NPU is. The NPU advantage grows with intensity from 1.4x over a 1 GHz Cortex-M85 on MCUNetV1 to 8.2x on SqueezeNet. MAC count is therefore a misleading cost proxy for sub-watt accelerators.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。