arXiv:2611.08147cs.CVNov 2026

Manuscript Offprint

arXiv:2611.08147

MCUFlowNet: Hardware-Aware Neural Architecture Search for Optical Flow on Microcontrollers

Enmin Lin, Jona Beysens

Enmin Lin, Jona Beysens

Department of Electrical Engineering (ESAT)

KU Leuven, Leuven, Belgium

{enmin.lin, jona.beysens}@kuleuven.be

Abstract—Dense optical flow allows small drones to avoid obstacles. However, few dense optical flow networks are designed for microcontrollers (MCUs) with neural accelerators, whose on-chip SRAM limits the input resolution. We present PACE-NAS, a macro-to-micro neural architecture search framework that decouples memory from latency: a macro design fixes the backbone and its peak SRAM, and a micro design searches operators and depths to trade accuracy against compiler-estimated latency. We apply it to EdgeFlowNet on a Grove Vision AI V2 board (Ethos-U55), where profiling locates the peak SRAM at the full-resolution output head. Replacing transposed convolutions with bilinear upsampling and convolutions lowers the peak SRAM by 18%, and two lightweight context modules lower the endpoint error (EPE) without raising the peak. All searched subnets share this peak, so the search needs no memory constraint. We name the Pareto-optimal models MCUFlowNet; the fastest variant, MCUFlowNet-S, runs 1.76×1.76\times faster than a retrained EdgeFlowNet at a 1.6% higher EPE and, in simulated forest flights at 2 m/s, reaches the goal without collision in 51.5% of trials, against 41.8%. PACE-NAS also applies to semantic segmentation, where a searched PIDNet-S variant runs 1.17×1.17\times faster at similar accuracy. Code is available at https://gitlab.kuleuven.be/emedia-research-lab/esat-stadius/mcuflownet/mcuflownet.

I. INTRODUCTION

Small aerial robots rely on timely dense optical flow, the per-pixel displacement between consecutive frames, for collision avoidance [1], and on optical flow for autonomous landing and self-motion estimation [2]. Perception delay shortens the time available to avoid obstacles [3], which motivates onboard processing [4], and strict weight and power budgets favor microcontrollers (MCUs) [5].

EdgeFlowNet, a compact multi-scale network of standard convolutions, brings dense optical flow to the Coral Edge TPU [6], but on MCUs its full-resolution output head sets the peak SRAM and thus bounds the input resolution. Hardware-aware neural architecture search (NAS) adapts networks to a target device [7]; on MCUs, it treats peak SRAM as a constraint and can be co-designed with the memory scheduling of the inference engine [8], [9]. For optical flow, however, NAS has typically targeted GPU-scale models [10], and few dense flow networks are designed for MCUs with neural accelerators.

This paper proposes PACE-NAS, a macro-to-micro framework for hardware-aware NAS that adapts existing dense

Figure

Fig. 1. PACE-NAS overview. Training cost is in estimated H200 GPU-hours, relative to one full training run of EdgeFlowNet (1×1\times); S and L mark the two retrained subnets.

flow networks to MCUs by decoupling memory from latency (Fig. 1). Its macro design profiles the target platform, re-structures the layers that set the peak SRAM, and adds two lightweight context modules for image-wide context where SRAM is spare; these steps fix the backbone and its peak SRAM. Its micro design trains a weight-sharing supernet over operators and depths that leave this peak unchanged, then runs an evolutionary Pareto search over endpoint error (EPE) and the latency estimated by Arm's Vela compiler [11]. To the best of our knowledge, this is the first work to use hardware-aware NAS to design dense optical flow networks for MCUs.

On Grove Vision AI V2, a board with an Arm Cortex-M55 MCU and an Ethos-U55 accelerator, we apply PACE-NAS to EdgeFlowNet and retrain two Pareto-optimal subnets, which we call MCUFlowNet-S and MCUFlowNet-L. Both our models need less peak SRAM than a retrained EdgeFlowNet; MCUFlowNet-S is 1.76×1.76\times faster at a 1.6% higher EPE, while MCUFlowNet-L matches EdgeFlowNet's latency at a similar EPE. Mainly because of its lower latency, MCUFlowNet-S also raises the success rate in simulated obstacle avoidance from 41.8% to 51.5%. On semantic segmentation, PACE-NAS finds a faster PIDNet-S at similar accuracy.

References (30)