[Paper Review] $\mu$NAS: Constrained Neural Architecture Search for Microcontrollers.
µNAS is a neural architecture search system specifically designed for microcontrollers (MCUs), explicitly targeting RAM, persistent storage, and inference speed constraints. By using a highly granular search space with accurate resource estimation and evolutionary search, it achieves up to 4.8% higher accuracy or 13× smaller memory footprint than prior MCU-optimized models.
IoT devices are powered by microcontroller units (MCUs) which are extremely resource-scarce: a typical MCU may have an underpowered processor and around 64 KB of memory and persistent storage, which is orders of magnitude fewer computational resources than is typically required for deep learning. Designing neural networks for such a platform requires an intricate balance between keeping high predictive performance (accuracy) while achieving low memory and storage usage and inference latency. This is extremely challenging to achieve manually, so in this work, we build a neural architecture search (NAS) system, called $\\mu$NAS, to automate the design of such small-yet-powerful MCU-level networks. $\\mu$NAS explicitly targets the three primary aspects of resource scarcity of MCUs: the size of RAM, persistent storage and processor speed. $\\mu$NAS represents a significant advance in resource-efficient models, especially for "mid-tier" MCUs with memory requirements ranging from 0.5 KB to 64 KB. We show that on a variety of image classification datasets $\\mu$NAS is able to (a) improve top-1 classification accuracy by up to 4.8%, or (b) reduce memory footprint by 4--13x, or (c) reduce the number of multiply-accumulate operations by at least 2x, compared to existing MCU specialist literature and resource-efficient models.
Motivation & Objective
- To address the challenge of deploying accurate, efficient neural networks on resource-constrained microcontrollers (MCUs) with limited RAM, Flash memory, and processing power.
- To overcome the limitations of existing NAS and model compression methods, which are typically designed for mobile or GPU platforms and fail to scale down to MCU-level constraints.
- To develop a NAS system that explicitly models and optimizes for the three primary resource bottlenecks in MCUs: RAM, persistent storage, and inference latency.
- To enable the discovery of small, high-accuracy neural architectures that are deployable on 'mid-tier' MCUs with up to 64 KB of SRAM and Flash.
Proposed method
- Designs a highly granular neural architecture search space that captures fine-grained architectural choices relevant to MCU efficiency, including layer types, depth, width, and connectivity.
- Employs aging evolution (AE), an evolutionary local search algorithm, to explore the search space efficiently while maintaining population diversity and avoiding premature convergence.
- Integrates accurate, per-layer resource usage estimation—specifically for RAM, Flash, and multiply-accumulate (MAC) operations—during search to guide architecture selection.
- Applies model pruning as a post-processing step to further reduce model size and MAC operations without significant accuracy loss.
- Uses scalarized multi-objective optimization to balance accuracy, model size, and inference speed during search.
- Enables search efficiency through modular design, allowing independent replacement of components like search algorithms, compression techniques, or resource estimators.
Experimental results
Research questions
- RQ1Can a NAS system be designed to effectively explore and optimize for the extreme resource constraints of microcontrollers, including RAM, persistent storage, and inference speed?
- RQ2How does a highly granular search space combined with accurate resource estimation impact the quality of discovered models for MCU deployment?
- RQ3Can evolutionary search with morphisms (e.g., aging evolution) efficiently navigate a complex, fine-grained search space to discover small, accurate models?
- RQ4To what extent can µNAS outperform existing model compression and NAS methods in terms of accuracy, model size, and MAC operations on MCU platforms?
- RQ5How does the search efficiency of µNAS scale with increasing dataset complexity, such as on CIFAR-10 versus MNIST?
Key findings
- On MNIST, µNAS discovered a pruned, dense model with less than 0.5 KB of parameters and over 99% top-1 accuracy, demonstrating feasibility for ultra-small models.
- On multiple image classification datasets, µNAS improved top-1 accuracy by up to 4.8% compared to existing MCU-specialized models and literature baselines.
- µNAS reduced the memory footprint of models by 4–13× compared to existing resource-efficient models and MCU literature.
- The number of multiply-accumulate (MAC) operations was reduced by at least 2× compared to existing models, indicating improved inference efficiency.
- The search process, while slow (8000 steps, ~40 GPU-days on CIFAR-10), gradually advanced the Pareto front, suggesting potential for further improvements with extended search time.
- The modular design of µNAS allows reuse of components such as search algorithms, compression techniques, and resource estimators, enabling future adaptation to different execution strategies or hardware targets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.