NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MAPLE-Edge: A Runtime Latency Predictor for Edge Devices

Saeejith Nair, Saad Abbasi, Alexander Wong, Mohammad Javad ShafieeWorkshops @ CVPR 2022

Abstract

Neural Architecture Search (NAS) has enabled automatic discovery of more efficient neural network architectures, especially for mobile and embedded vision applications. Although recent research has proposed ways of quickly estimating latency on unseen hardware devices with just a few samples, little focus has been given to the challenges of estimating latency on runtimes using optimized graphs, such as TensorRT and specifically for edge devices. As devices like NVIDIA’s Jetsons get more popular in embedded computing and robotics, we observe a pressing need to more accurately estimate inference latency of neural network architectures on diverse runtimes, including highly optimized ones. In this work, we propose MAPLE-Edge, an edge device-oriented extension of MAPLE, the state-of-the-art latency predictor for general purpose hardware, where we train a regression network on architecture-latency pairs in conjunction with a hardware-runtime descriptor to effectively estimate latency on a diverse pool of edge devices. Compared to MAPLE, MAPLE-Edge can describe the runtime and target device platform using a much smaller set of CPU performance counters that are widely available on all Linux kernels, while still achieving up to +49.6% accuracy gains against previous state-of-the-art baseline methods on optimized edge device runtimes, using just 10 measurements from an unseen target device. We also demonstrate that unlike MAPLE which performs best when trained on a pool of devices sharing a common runtime, MAPLE-Edge can effectively generalize across runtimes by applying a trick of normalizing performance counters by the operator latency, in the measured hardware-runtime descriptor. Lastly, we show that for runtimes exhibiting lower than desired accuracy, performance can be boosted by collecting additional samples from the target device, with an extra 90 samples translating to gains of nearly +40%.

Introduction

In the world of mobile and embedded AI, finding the perfect balance between accuracy and speed is critical. This is the primary goal of Neural Architecture Search (NAS). However, to identify the fastest models, NAS requires accurate knowledge of how long a specific architecture takes to run (latency) on a specific piece of hardware. Measuring every candidate model on actual hardware is prohibitively slow, leading researchers to rely on Look-Up Tables (LUTs) or Latency Prediction Modules (LPMs).

While LUTs are fast, they often fail on optimized runtimes like NVIDIA's TensorRT, which perform layer fusion and other graph-level optimizations that make the total latency non-additive. MAPLE-Edge addresses this "generalization gap," specifically targeting the challenges of optimized edge runtimes where traditional estimation methods break down.

Methodology

MAPLE-Edge builds upon the original MAPLE framework but introduces three key innovations tailored for edge computing:

  1. Targeted Uniform Adaptation Sampling: When introducing a new device, the system requires a few real-world samples to calibrate. Instead of random selection, MAPLE-Edge bins the latency space and samples one model from each bin, ensuring the calibration set represents the full spectrum of performance.
  2. Performance Counter Normalization: Raw hardware metrics (like CPU cycles or cache misses) vary wildly between runtimes. MAPLE-Edge normalizes these counters by the operator latency, transforming absolute values into relative rates (e.g., cache misses per second). This creates a robust "hardware-runtime descriptor" that generalizes better across different software stacks.
  3. Dense Hardware Descriptor: The model utilizes a streamlined set of six CPU performance counters (cycles, instructions, cache references/misses, and L1 data cache loads/misses) that are widely supported by the Linux perf tool across both Intel and ARM processors.
The MAPLE-Edge pipeline, illustrating the data collection stage, adaptation set collection via targeted uniform sampling, and the final training set creation for the LPM.

Experimental Evaluation

The system was evaluated using NAS-Bench-201, profiling architectures on a diverse pool of edge hardware including NVIDIA Jetson Nano, TX1, and TX2 (using TensorFlow Lite and TensorRT) and Raspberry Pi 4B (using TensorFlow Lite).

The "Fusion" Failure

A core insight of this work is the failure of traditional LUTs on modern edge AI. Optimizations like layer fusion mean the whole is not the sum of its parts. As shown in Figure 6, LUT predictions for optimized runtimes like Jetson Nano TRT are significantly less accurate and exhibit higher variance than for standard CPU runtimes.

Comparison of True Latency vs. LUT Predictions across different hardware and runtimes. The high variance in the Jetson Nano TRT plot demonstrates the failure of LUTs on optimized runtimes.

Predictive Performance

On optimized TensorRT runtimes, MAPLE-Edge outperformed the previous state-of-the-art (HELP) by significant margins. For example, on the Jetson TX2 with TensorRT, MAPLE-Edge achieved 96.59% accuracy (within a ±10% error bound), while the baseline MAPLE struggled at 81.93%. The system achieves these results using only 10 measurements from the target device. Furthermore, if higher accuracy is required, collecting 90 additional samples (100 total) can boost performance by nearly 40% on particularly difficult runtimes.

Conclusion

MAPLE-Edge provides a robust solution for latency prediction on edge devices with optimized runtimes. By utilizing targeted sampling and normalized hardware descriptors, it achieves high accuracy with minimal overhead. While LUTs remain competitive on less graph-optimized runtimes like TFLite on Raspberry Pi, MAPLE-Edge’s ability to generalize across hardware and software stacks represents a significant advancement for real-time architecture discovery in robotics and embedded vision.

Summary updated

BibTeX
@inproceedings{nair2022maple,
  author = {Saeejith Nair and Saad Abbasi and Alexander Wong and Mohammad Javad Shafiee},
  title = {{MAPLE-Edge: A Runtime Latency Predictor for Edge Devices}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
  url = {https://openreview.net/forum?id=RscL-P0uK2},
}
Figure