cs.LGMar 4, 2026

InstMeter: An Instruction-Level Method to Predict Energy and Latency of DL Model Inference on MCUs

Authors: Hao Liu, Qing Wang, Marco Zuniga

Organizations: Delft University of Technology, Delft, The Netherlands

Abstract

Deep learning (DL) models can now run on microcontrollers (MCUs). Through neural architecture search (NAS), we can search DL models that meet the constraints of MCUs. Among various constraints, energy and latency costs of the model inference are critical metrics. To predict them, existing research relies on coarse proxies such as multiply-accumulations (MACs) and model's input parameters, often resulting in inaccurate predictions or requiring extensive data collection. In this paper, we propose InstMeter, a predictor leveraging MCUs' clock cycles to accurately estimate the energy and latency of DL models. Clock cycles are fundamental metrics reflecting MCU operations, directly determining energy and latency costs. Furthermore, a unique property of our predictor is its strong linearity, allowing it to be simple and accurate. We thoroughly evaluate InstMeter under different scenarios, MCUs, and software settings. Compared with state-of-the-art studies, InstMeter can reduce the energy and latency prediction errors by 3×3\times and 6.5×6.5\times, respectively, while requiring 100×100\times and 10×10\times less training data. In the NAS scenario, InstMeter can fully exploit the energy budget, identifying optimal DL models with higher inference accuracy. We also evaluate InstMeter's generalization performance through various experiments on three ARM MCUs (Cortex-M4, M7, M33) and one RISC-V-based MCU (ESP32-C3), different compilation options (-Os, -O2), GCC versions (v7.3, v10.3), application scenarios (keyword spotting, image recognition), dynamic voltage and frequency scaling, temperatures (21°C, 43°C), and software settings (TFLMv2.4, TFLMvCI). We will open our source codes and the MCU-specific benchmark datasets.

Explore similar work

CardsList
  1. Multi-Level Modeling of Large Language Model Inference Latency and Energy via Hybrid Analytical--Machine-Learning Predictors

    Aug 7, 2026Saeid Shokoufa, Mohammad Erfan Sadeghi, Mehdi Kamal +1LLM InferenceEnergy-Aware LLM Inference

  2. Taming Asynchronous CPU-GPU Coupling for Frequency-aware Latency Estimation on Mobile Edge

    Apr 11, 2026Jiesong Chen, Jun You, Zhidan Liu +1Edge InferenceEfficient Neural Network Inference

  3. Power-Performance Characterization of TinyML Systems

    Aug 21, 2026Yujie Zhang, Dhananjaya Wijerathne, Zhaoying Li +1Tiny MLEnergy-Efficient ML