---
title: 'TinyNAS: Efficient NAS for TinyML Devices'
url: https://www.emergentmind.com/topics/tinynas
type: topic
---

# TinyNAS: Efficient NAS for TinyML Devices

TinyNAS refers to a class of neural architecture search (NAS) frameworks specifically designed to yield high-accuracy, resource-efficient deep neural networks suitable for deployment on resource-constrained devices such as microcontrollers (MCUs). These frameworks are characterized by their explicit handling of stringent hardware constraints—memory (SRAM and Flash), latency, and, in many implementations, energy—and their capacity to explore large architecture spaces efficiently, sometimes with zero-shot, evolutionary, or grid-based strategies. TinyNAS was first systematized in the context of MCUNet, but has since been extended, adapted, and generalized in multiple works including TinyTNAS and PrototypeNAS, covering domains beyond image classification, such as time series and general TinyML tasks [2007.10319][2408.16535][2603.15106].

## 1. Problem Formulation and Scope

TinyNAS frameworks address the fundamental challenge of enabling deep learning on MCUs and similar edge devices, where available memory ($\approx$ tens to hundreds of kB), Flash ($\approx$ 1–2 MB), and compute throughput are orders of magnitude lower than those available on mobile SoCs. Architectures must not only fit tight resource "budgets" but also deliver competitive accuracy. Formally, the search problem is cast as a constrained multi-objective optimization:
\[
\max_{\alpha \in \mathcal{S}, w}~ \operatorname{Acc}(\alpha, w)
\]
subject to
\[
M(\alpha) \le M_{\max}, \quad F(\alpha) \le F_{\max}, \quad T(\alpha) \le T_{\max}, \quad E(\alpha) \le E_{\max}
\]
where $\alpha$ parameterizes the architecture (e.g., stage depths, kernels, widths), $w$ the learned weights, $M$ the peak SRAM usage, $F$ the Flash occupation, $T$ the inference latency, and $E$ the energy per inference [2007.10319][2408.16535][2603.15106].

TinyNAS distinguishes itself from conventional mobile NAS by integrating MCU-specific constraints and by employing search/pruning/quantization spaces and algorithms tailored for sub-megabyte models.

## 2. Core Methodologies and Search Strategies

TinyNAS and its variants adopt diverse strategies for architecture search and resource compliance:

- **Two-Stage Search (MCUNet TinyNAS)**: First, search-space design is optimized by profiling the valid candidate set under (SRAM, Flash) constraints through simulation. Sub-architectures are sampled and only feasible ones (i.e., $M(\alpha)\le M_{\max}$, $F(\alpha)\le F_{\max}$) are retained. Statistical properties (mean FLOPs, etc.) are used to select promising resolution/width multipliers. Subsequently, a one-shot super-network is trained with weight-sharing, followed by an evolutionary search to select Pareto-optimal architectures, which are fully retrained post-selection [2007.10319].

- **Hardware-aware Grid Search (TinyTNAS)**: For time series classification, TinyTNAS implements a direct, resource-constrained grid search over low-dimensional parameterizations, specifically the filter count ($k$) and the number of repeating blocks ($c$) in a DSC (depthwise-separable convolution) + pooling cascade. At each step, quantized models are profiled for RAM, Flash, and MACs via the MLTK toolkit, and only those meeting user-defined maxima are trained. Time-bound search is explicitly enforced: the process terminates upon hitting a specified wall-clock limit ($T_{\max}$), returning the highest-accuracy feasible model observed [2408.16535].

- **Zero-Shot, Multi-Objective Optimization (PrototypeNAS)**: PrototypeNAS generalizes TinyNAS into a three-step pipeline—(1) zero-shot, multi-objective Pareto exploration using proxy signals (SNIP, NASWOT, MeCo, ZiCo), (2) hypervolume-based subset selection to distill representative Pareto-optimal designs, and (3) final model training and quantization. The search space includes macro-architecture choice, width, depth, pruning, and quantization settings, all jointly optimized, yielding candidate models in minutes that outperform prior TinyNAS setups at matched resource budgets [2603.15106].

- **Device-Aware Resource Profiling**: All frameworks profile candidates in situ or via simulation for memory footprint, latency, and energy, tightly coupling NAS to real hardware deployment constraints. For MCUNet, this role is fulfilled by TinyEngine, while TinyTNAS relies on quantized TFLite profiling and MLTK [2007.10319][2408.16535].

## 3. Search Space Design and Model Families

TinyNAS search spaces are expressly constructed for hardware efficiency, leveraging architectural motifs that are both compact and amenable to quantization:

- **Mobile-Style Backbones**: Inverted-bottleneck (MobileNetV2) structures are preferred, with stage-wise tuning of expansion ratios, kernel sizes (3×3, 5×5, 7×7), and block depths. Channel growth is gradual to avoid bottlenecking memory at any one layer [2007.10319].

- **DSC + Pooling Cascades**: For temporal data, TinyTNAS restricts the search space to cell-wise 1D depthwise-separable convolution blocks interleaved with max pooling. Each model is defined by $(k, c)$, with geometric filter growth across repeated blocks, followed by global pooling and dense layers [2408.16535].

- **Joint Structure–Compression Spaces**: PrototypeNAS augments the macro-architecture dimension (MobileNet, ResNet, SqueezeNet, MbedNet) with algorithmic axes for block-level pruning (sparsity ratios), width scaling, quantization bits (8, 16, 32), and allows group-wise kernel/stride specification. Candidates are thus composite vectors covering structure, pruning, and quantization settings; output channels after compression are $C_j(\theta) = \lfloor \alpha \cdot C_j^0 \cdot (1-\rho_{g(j)}) \rfloor$ [2603.15106].

## 4. Quantitative Performance and Hardware Evaluation

TinyNAS designs have achieved substantial improvements in resource utilization and accuracy for TinyML tasks:

- **ImageNet-1K Classification (MCUNet/TinyNAS):** 70.7% top-1 accuracy on STM32H743 ($\approx$95 ms/inference; 466 kB SRAM; 1.2 MB Flash). This result surpassed ResNet-18 and MobileNetV2 under equal or stricter constraints [2007.10319].

- **Time Series Classification (TinyTNAS):** On UCI HAR, TinyTNAS reduced RAM by 12× (10.8 kB), MACs by 144× (53.1 k), FLASH by 78× (19.3 kB), and ESP32 inference latency by 149× (13 ms) vs. baseline 1D CNNs, with accuracy increased by 0.2% (93.40%). On PAMAP2/WISDM, similar scale reductions were observed, while on MIT-BIH/PTB, TinyTNAS maintained ≤1–5% accuracy loss with 9× RAM, 64× MAC, and 295× latency reductions [2408.16535].

- **Speed/Profiling:** Search times range from ≈10 minutes (TinyTNAS CPU-only time-bound search for time series; PrototypeNAS zero-shot search for joint architecture/compression on small GPUs) to ≈300 GPU-hours (MCUNet super-net training). Energy and CO$_2$ costs are greatly lowered vs. traditional RL NAS (e.g., from $\approx$11345 lb to $\approx$85 lb CO$_2$ per model) [2007.10319][2408.16535][2603.15106].

- **Summary Table: Selected Results**

| System      | Task        | Accuracy (%) | RAM (kB) | Flash (kB) | Latency (ms) | References    |
|-------------|-------------|--------------|----------|------------|--------------|---------------|
| MCUNet      | ImageNet    | 70.7         | 466      | 1200       | 95           | [2007.10319]  |
| TinyTNAS    | UCI HAR     | 93.40        | 10.8     | 19.3       | 13 (ESP32)   | [2408.16535]  |
| PrototypeNAS| CIFAR-10    | 90–93.7      | 112–365  | 356–775    | —            | [2603.15106]  |

## 5. Extensions, Comparative Analysis, and Impact

- **Comparisons with Other NAS Approaches:** PrototypeNAS provides evidence that, at equivalent resource budgets, it achieves 3–5 percentage points higher accuracy than MCUNet/TinyNAS and NATS-Bench reference models. It attributes these gains to richer search spaces (multiple macro-architectures, joint pruning/quantization) and the use of proxy-based multi-objective optimization [2603.15106].

- **Broader Applicability:** Although initially oriented around image classification, TinyNAS variants (TinyTNAS, PrototypeNAS) have extended the methodology to time series, audio, and object detection tasks, demonstrating the generalizability of the constrained NAS paradigm [2408.16535][2603.15106].

- **Deployment and Reproducibility:** TinyNAS-generated architectures have been deployed on commercial MCUs (e.g., STM32H743, ESP32, Arduino Nano 33 BLE). Toolkits such as MCUNet’s TinyEngine, TinyTNAS (public GitHub), and MLTK enable end-to-end quantization and hardware profiling [2007.10319][2408.16535].

A plausible implication is that TinyNAS principles—hardware profiling in the loop, compact design spaces, resource-aware multi-objective NAS—are central to the mainstreaming of always-on, high-accuracy deep learning at the microcontroller scale.

## 6. Limitations and Implementation Recommendations

- **Search Efficiency:** While grid search (TinyTNAS) is highly efficient for low-dimensional parameter spaces, it does not scale to larger or more complex search spaces without the risk of combinatorial explosion. One-shot super-net and zero-shot proxy approaches (MCUNet/PrototypeNAS) are more scalable but require more sophisticated implementation.

- **Reliability of Proxies:** Zero-shot proxy ensembles (PrototypeNAS) accelerate search but may introduce proxy–accuracy mismatch. However, reported results indicate practical efficacy [2603.15106].

- **Parameter Tuning:** The number of training epochs per candidate can be tuned for a trade-off between search speed and estimate reliability; values of 4–10 have been found effective in practice [2408.16535].

- **Profiling Accuracy:** Accurate quantization profiling (e.g., via TF-Lite + MLTK) is essential to ensure searched models meet real hardware constraints post-deployment [2408.16535].

- **Generalizability:** TinyNAS’s methodological advances are tightly coupled to MCUs’ unique hardware patterns; direct transfer to mobile or server-class devices requires adaptation [2007.10319][2603.15106].

## 7. Related Work and Evolution

TinyNAS originated in the context of MCUNet [2007.10319], representing a landmark in demonstrating >70% ImageNet accuracy on off-the-shelf MCUs. Extensions such as TinyTNAS [2408.16535] have optimized the approach for CPU-only environments and real-time time series classification, while PrototypeNAS [2603.15106] further automates and generalizes TinyNAS through zero-shot, multi-objective search and joint structure–compression spaces. These advances underscore an increasing integration of software, hardware, and search methodology for practical TinyML.

The development trajectory suggests continued convergence of rapid, resource-aware neural architecture search and hardware-centric model specialization, enabling deeper penetration of TinyML into embedded edge AI applications.

Source: https://www.emergentmind.com/topics/tinynas