Manuscript Offprint

arXiv:2611.03392

TinyML Hits the Memory Wall: A Benchmark of Ten Sub-Watt Edge Devices

Pietro Bonazzi, Luigi Capogrosso, Ahmet Celik, Rosanna Manzo, Marco Giordano, Szymon Ruciński, Jonathan Hungerbuehler, Michele Magno

ABSTRACT

Neural network inference at the edge must fit tight energy budgets. However, existing benchmarks compare a small set of devices, do not report energy on a common basis, and do not include the newest microcontrollers with an NPU or the 1 GHz Cortex-M85 microcontrollers. In addition, hardware-aware model design ranks networks by MAC count, although no study has tested whether this proxy holds across accelerators. To fill these gaps, we benchmark sub-watt edge artificial intelligence (AI) hardware. Specifically, we evaluate four convolutional neural network models (MobileNetV3, MCUNetV1, EfficientNet, and SqueezeNet) and two tiny transformer networks (MobileViT-XXS and DeiT-tiny) across ten commercially available edge devices: an in-sensor digital signal processor (DSP) (Sony IMX500), four MCUs with an NPU (STMicroelectronics STM32N6, Alif Ensemble E7/E8 and GreenWaves GAP9), and five MCUs without an NPU (STMicroelectronics STM32U5, Ambiq Apollo510B, Espressif ESP32-S3 with its Xtensa LX7 core, Renesas RA8M2, and the recently released STMicroelectronics STM32V8). Four of them are novel devices: the Alif Ensemble E8, Ambiq Apollo510B, Renesas RA8M2 and STM32V8. Measured as energy above idle, the Sony IMX500 (0.13–0.35 mJ) uses 1.3–3× less energy than the STM32N6 (0.31–1.05 mJ) on every model, the GAP9 (0.11–1.23 mJ) uses the least on MobileNetV3, and the Alif E7 (0.12–0.45 mJ) uses the least on MCUNetV1 and SqueezeNet; all four use 6–34× less energy than the STM32V8 MCU (1.85–3.98 mJ), and the Alif E7 and IMX500 form the power–performance Pareto front. Moreover, correlating measured latency with each model's memory traffic shows that all four accelerators running the CNNs are memory-bound (latency scales with the bytes of weights and activations a model must read and write, r≥0.98r \ge 0.98, and not with its MACs), whereas no MCU without an NPU is; the NPU advantage scales with arithmetic intensity, from 1.4× over a 1 GHz Cortex-M85 on MCUNetV1 to 8.2× on the high-intensity SqueezeNet. Consequently, MAC count is a misleading cost proxy for sub-watt accelerators.

1 INTRODUCTION

Vision on sub-watt microcontroller units (MCUs) and smart sensors faces tight budgets: a camera node or wearable must classify an image in milliseconds, with millijoules of energy and megabytes of memory [2]. Meanwhile, three new classes of silicon target this regime: MCUs now integrate dedicated neural processing units (NPUs) (Arm Ethos-U55 and U85, ST Neural-ART), image sensors run networks next to the pixel array, and MCUs built around the Arm Cortex-M85 feature Helium vector extensions reaching 800 MHz to 1 GHz [3, 4] clock frequency. A designer choosing among them therefore faces one question: when is a dedicated accelerator worth the cost, and for which models? Answering this question requires a benchmark that existing studies do

Figure

Figure 1. Measured performance vs. power above idle during inference of the six devices with measured energy, each the geometric mean over the four CNNs (three on the STM32V8). Faded, indicative only and at total power: Apollo510B as vendor-reported on a different model (20.7 mW, FOMO [1]), STM32U5 and RA8M2 from their datasheets.

¹ETH Zürich, Zürich, Switzerland ²Interdisciplinary Transformation University of Austria ³University of Naples Federico II, Naples, Italy ⁴CSEM, Neuchâtel, Switzerland. Correspondence to: Pietro Bonazzi pbonazzi@ethz.ch.

not provide, for three reasons. First, they cover a small set of devices, each from one architecture class or an earlier device generation [5, 6, 7]. For example, MLPerf Tiny [8, 9] spans many vendors, however includes none of our ten devices except the STM32U5; in fact to the best of our knowledge, four of the ten devices we study have no published inference benchmark at all. Second, energy is not reported on a common basis: some benchmarks omit it [5], and the others measure it on device sets that do not span MCUs, MCUs with an NPU and in-sensor DSPs [10, 6, 7], so no study compares the energy of these classes on the same models. Third, hardware-aware model design ranks networks by MAC count, or by latency on one target, and assumes that this ranking transfers across devices [11, 12]. No study has measured whether on current accelerators execution is limited by arithmetic or by data movement [13].

To provide this benchmark, we measure ten commercial edge devices spanning five architecture classes: an in-sensor digital signal processor (DSP) (Sony IMX500), MCU-integrated NPUs (STM32N6, Alif Ensemble E7 and E8), a RISC-V cluster with a convolution accelerator (GreenWaves GAP9), high-clock Cortex-M85 CPUs (STM32V8, Renesas RA8M2), and low-power Cortex-M and Xtensa cores (STM32U5, Ambiq Apollo510B, Espressif ESP32-S3). Four CNNs run on the nine devices other than the Alif E8, wherever memory and toolchain allow, and two vision transformers run on the devices built for attention. Every model is deployed with the vendor's toolchain and measured on the device with one protocol. The models are chosen so that their MACs and memory traffic vary independently (Section 3.2). To make energy comparable, we report the energy above idle, which removes the static power of everything outside the computation.

What we find. All four accelerators that run the CNNs (the IMX500 and three NPUs) are memory-bound: their latency grows with the total memory traffic QQ, the bytes of weights and activations that the model's layers must read and write (rQ≥0.98r_Q \geq 0.98), and not with its MACs (Fig. 5 and Table 4), whereas no MCU without an NPU is. MAC count therefore misranks models on these accelerators: SqueezeNet performs 8.5×8.5\times the MACs of MobileNetV3 yet runs 1.8×1.8\times faster on the Alif Ensemble E7, because it requires less memory (1.22 versus 1.76 MB). For the same reason, the NPU advantage over a 1 GHz Cortex-M85 depends on arithmetic intensity, from 1.4×1.4\times on MCUNetV1 to 8.2×8.2\times on the high-intensity SqueezeNet. Finally, measured as energy above idle, the IMX500, GAP9, Alif E7 and STM32N6 use 6−34×6-34\times less energy per inference than the STM32V8 MCU. Averaged over the CNNs suite and on power above idle, the Alif E7 (8.0 GOPS at 34 mW) and the IMX500 (31 GOPS at 162 mW) form the power-throughput Pareto front (Fig. 1), with the GAP9 (7.2 GOPS at 44 mW) just behind; the STM32N6 matches the GAP9's throughput at

1.9×1.9\times its power.

In summary, our contributions are as follows.

  1. A bound analysis: by checking whether each device's latency follows a model's compute (MACs) or its data movement (the bytes of weights and activations it reads and writes), we show that sub-watt accelerators are memory-bound while MCUs without an NPU are not, and turn this into guidance on when an NPU is worth it and what hardware-aware design should optimize.

  2. The broadest measured comparison of sub-watt vision hardware to date: ten devices and five architecture classes on identical models and inputs, reporting latency, energy, MAC/cycle, B/cycle and MMAC/J.

  3. Measurements on novel devices: the Alif Ensemble E8, Ambiq Apollo510B, Renesas RA8M2 and STM32V8, including vision transformers on the Ethos-U85 of the Alif E8.

References (90)

  • Ambiq’s VP of AI Demos FOMO AI Model on the Apollo510 EVB
  • TinyML: Machine Learning with TensorFlow Lite on Arduino and Ultra-Low-Power Microcontrollers
  • STM32V8 Series: High-Performance Arm Cortex-M85 MCUs
  • RA8M2 Group: 1GHz Arm Cortex-M85 and Cortex-M33 Dual-Core High-Performance MCU
  • CMSIS-NN: Efficient Neural Network Kernels for Arm Cortex-M CPUs (opens arXiv in a new tab)
  • Benchmarking Ultra-Low-Power μNPUs
  • Performance Analysis of Edge and In-Sensor AI Processors: A Comparative Review (opens arXiv in a new tab)
  • MLPerf Tiny v1.4 Benchmark Results
  • MLPerf Tiny Results, Rounds v1.1–v1.4
  • MLPerf Tiny Benchmark
  • Searching for MobileNetV3
  • MCUNet: Tiny Deep Learning on IoT Devices
  • Roofline: An Insightful Visual Performance Model for Multicore Architectures
  • MLPerf Inference Benchmark
  • Machine Learning for Microcontroller-Class Hardware: A Review
  • A Brief Review of Deep Neural Network Implementations for ARM Cortex-M Processor
  • A Survey on Deep Learning Hardware Accelerators for Heterogeneous HPC Platforms
  • A Review of CNN Accelerators for Embedded Systems Based on RISC-V
  • A Survey on RISC-V-Based Machine Learning Ecosystem
  • Deep Learning on RISC-V Platforms at the Edge: A Perspective on the Hardware and Software Support
  • GAP-8: A RISC-V SoC for AI at the Edge of the IoT
  • WIP: Automatic DNN Deployment on Heterogeneous Platforms: the GAP9 Case Study
  • StreamEase: Enabling Real-Time Inference of Temporal Convolution Networks on Low-Power MCUs with Stream-Oriented Automatic Transformation
  • Balancing Accuracy and Energy Efficiency on Ultra-Low-Power Platforms for ECG Analysis
  • MATCH: Model-Aware TVM-Based Compilation for Heterogeneous Edge Devices
  • Optimizing the Deployment of Tiny Transformers on Low-Power MCUs
  • Enabling Real-Time Streaming Temporal Convolution Network Inference on Ultra-Low-Power Microcontrollers
  • MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
  • A Machine Learning-Oriented Survey on Tiny Machine Learning
  • Training Data-Efficient Image Transformers & Distillation Through Attention
  • MobileViT: Light-Weight, General-Purpose, and Mobile-Friendly Vision Transformer
  • STM32U5F7xx Ultra-Low-Power Arm Cortex-M33 MCU
  • ESP32-S3 Series Datasheet
  • Apollo510B SoC Datasheet
  • 17.2 the STM32N6 Microcontroller: Enabling Intelligent Edge AI for IoT and Beyond
  • Ensemble Family E7 Series Embedded Fusion Processors
  • Ensemble Family E8 Series Embedded Fusion Processors
  • Evaluating the Energy Efficiency of NPU-Accelerated Machine Learning Inference on Embedded Microcontrollers (opens arXiv in a new tab)
  • Embedded Real-Time Human Activity Recognition on an ESP32-S3 Microcontroller Using Ambient Audio Data
  • ‘It os Okay to be Uncommon’: Quantizing Sound Event Detection Networks on Hardware Accelerators with Uncommon Sub-Byte Support
  • Optimizing Emergency Vehicle Siren Detection: Feature Engineering and Neural Network Quantization on ESP32 Edge Platforms
  • Efficient Sound Classification Model using Raw Audio Waveforms in Resource Constrained Devices: Design, Implementation, and Evaluation
  • On-Device Edge AI for Monthly Energy Forecasting on ESP32-S3 Using 3-Day Windows: Hardware-Constrained Feasibility With Harmonics and Offline Interharmonic Benchmarking
  • Distilling Privileged Knowledge From Transformers to Lightweight CNNs for On-Device Time Series Forecasting
  • Optimizing Edge-AI on the ESP32-S3 Using SIMD
  • Feasibility of Serial Split Inference with MobileNetV2 on ESP32-S3 for Real-Time Object Recognition
  • Evaluation of Machine Learning Models in a Smart Water Metering System
  • Secure IoT: Behavioral Analysis on a Smart Energy Meter System
  • A Low-Cost IoT Framework for Device-Free Human Counting and Lighting Energy Control in Commercial Spaces
  • TrustEdge: SAINT-Driven Intrusion Detection for Resource-Constrained IoT Devices
  • iAirGuard: A Modular IoT Architecture with Dynamic Sampling and TinyML-Based Fault Detection for Air Quality Monitoring
  • WLARR: A Robust Two-Stage Wi-Fi Sensing Framework for Joint Indoor Localization, Activity, and Respiration Pattern Recognition
  • Experimental Evaluation of Scheduling Effects on TinyML Inference on ESP32 Using FreeRTOS
  • MPS Tensor Compression for Foundation Model Deployment on TinyIoT Edge Devices
  • Real-Time Performance Prediction Using Tiny Machine Learning in Advanced Catalytic Systems
  • GreenWaves Technologies (SIREN 808 076 582): Liquidation judiciaire, Tribunal de commerce de Grenoble, 14 January 2025
  • EpiDeNet: An Energy-Efficient Approach to Seizure Detection for Embedded Systems
  • Reducing False Alarms in Wearable Seizure Detection With EEGformer: A Compact Transformer Model for MCUs
  • BrainFuseNet: Enhancing Wearable Seizure Detection Through EEG-PPG-Accelerometer Sensor Fusion and Efficient Edge Deployment
  • A Wearable Ultra-Low-Power System for EEG-Based Speech-Imagery Interfaces
  • Online Unsupervised Arm Posture Adaptation for sEMG-based Gesture Recognition on a Parallel Ultra-Low-Power Microcontroller
  • sEMG-Driven Hand Dynamics Estimation With Incremental Online Learning on a Parallel Ultra-Low-Power Microcontroller
  • Wearable High-Density sEMG Processing with Class Activation Maps with an Embedded Temporal Convolutional Network
  • Wearable, Real-time Drowsiness Detection based on EEG-PPG Sensor Fusion at the Edge
  • Flexible and Fully Quantized Lightweight TinyissimoYOLO for Ultra-Low-Power Edge Systems
  • DSORT-MCU: Detecting Small Objects in Real Time on Microcontroller Units
  • Multi-resolution Rescored ByteTrack for Video Object Detection on Ultra-low-power Embedded Systems
  • Accelerating Image-based Pest Detection on a Heterogeneous Multicore Microcontroller
  • MR2-ByteTrack: CNN and Transformer-Based Video Object Detection for AI-Augmented Embedded Vision Sensor Nodes
  • On-device Self-supervised Learning of Visual Perception Tasks aboard Hardware-limited Nano-quadrotors
  • Training on the Fly: On-Device Self-Supervised Learning Aboard Nano-Drones Within 20 mW
  • 12 mJ Per Class On-Device Online Few-Shot Class-Incremental Learning
  • Train-On-Request: An On-Device Continual Learning Workflow for Adaptive Real-World Brain Machine Interfaces
  • An Ultra-Low Power Wearable BMI System With Continual Learning Capabilities
  • Multimodal On-Device Learning for Monocular Depth Estimation on Ultralow-Power MCUs
  • TinyTracker: Ultra-Fast and Ultra-Low-Power Edge Vision In-Sensor for Gaze Estimation
  • PicoSAM2: Low-Latency Segmentation In-Sensor for Edge Vision Applications
  • PicoSAM3: Real-Time In-Sensor Region-of-Interest Segmentation
  • TinyGLASS: Real-Time Self-Supervised In-Sensor Anomaly Detection
  • Tiny-PMDet: A Knowledge-Distilled Lightweight Edge-AI Detector for Grapevine Powdery Mildew Detection on CMOS Sensor Based AIoT Systems
  • Exploiting In-Sensor Computing for Energy-Efficient Earth Observation
  • Implementation of a Vision AI-based Smart Checkout System using Edge Processing and Real-Time Product Recognition
  • Benchmarking Energy and Latency in TinyML: A Novel Method for Resource-Constrained AI
  • TinyML Enhances CubeSat Mission Capabilities
  • Sub-Millisecond Event-Based Eye Tracking on a Resource-Constrained Microcontroller
  • From Landmarks to Gestures: Real-Time Lightweight Gesture Recognition at the Edge
  • Detecting Mice Depth Shapes with Deployable Tiny Neural Networks in Small Cages
  • EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
  • SqueezeNet: AlexNet-Level Accuracy with 50× Fewer Parameters and <0.5 MB Model Size (opens arXiv in a new tab)
  • EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classification