Single-Path Mobile AutoML: Efficient ConvNet Design and NAS Hyperparameter Optimization

Dimitrios Stamoulis, Ruizhou Ding, Di Wang, Dimitrios Lymberopoulos, Bodhi Priyantha, Jie Liu, Diana Marculescu · DOI

Abstract

Can we reduce the search cost of Neural Architecture Search (NAS) from days down to only few hours? NAS methods automate the design of Convolutional Networks (ConvNets) under hardware constraints and they have emerged as key components of AutoML frameworks. However, the NAS problem remains challenging due to the combinatorially large design space and the significant search time (at least 200 GPU-hours). In this work, we alleviate the NAS search cost down to less than 3 hours, while achieving state-of-the-art image classification results under mobile latency constraints. We propose a novel differentiable NAS formulation, namely Single-Path NAS, that uses one single-path over-parameterized ConvNet to encode all architectural decisions based on shared convolutional kernel parameters, hence drastically decreasing the search overhead. Single-Path NAS achieves state-of-the-art top-1 ImageNet accuracy (75.62%), hence outperforming existing mobile NAS methods in similar latency settings (~80ms). In particular, we enhance the accuracy-runtime trade-off in differentiable NAS by treating the Squeeze-and-Excitation path as a fully searchable operation with our novel single-path encoding. Our method has an overall cost of only 8 epochs (24 TPU-hours), which is up to 5,000x faster compared to prior work. Moreover, we study how different NAS formulation choices affect the performance of the designed ConvNets. Furthermore, we exploit the efficiency of our method to answer an interesting question: instead of empirically tuning the hyperparameters of the NAS solver (as in prior work), can we automatically find the hyperparameter values that yield the desired accuracy-runtime trade-off? We open-source our entire codebase at: https://github.com/dstamoulis/single-path-nas.

Introduction: The Challenge of Mobile ConvNet Design

Designing Convolutional Neural Networks (ConvNets) for mobile devices is a delicate balancing act between high accuracy and low latency. While Neural Architecture Search (NAS) has automated much of this process, it remains computationally expensive. Traditional differentiable NAS methods typically employ a "multi-path" supernet, where every possible operation—such as different kernel sizes or expansion ratios—is represented as a separate, trainable branch.

This multi-path approach leads to a memory explosion and a complex "bi-level" optimization problem, requiring the system to simultaneously learn network weights and architectural parameters. Consequently, these searches often demand hundreds of GPU hours and significant manual tuning of the NAS solver's own hyperparameters.

Methodology: Single-Path NAS and Superkernel Encoding

The core innovation of this work is Single-Path NAS. Instead of branching into multiple paths, the proposed method encodes all architectural decisions into a single "superkernel."

The Single-Path NAS concept (right) vs. traditional Multi-path NAS (left).

Key Methodological Components:

  • Superkernel Encoding: A 3x3 convolution is treated as the "inner core" of a 5x5 convolution. By utilizing an indicator function (relaxed to a sigmoid for differentiability), the model learns whether the "outer shell" of the 5x5 kernel is necessary. This concept extends to expansion ratios and Squeeze-and-Excitation (SE) ratios.
  • Searchable SE: Unlike prior work that treats SE as a binary switch, this method treats it as a fully searchable operation with varying ratios, significantly improving the accuracy-runtime trade-off.
  • Differentiable Latency Loss: A pre-profiled latency model (based on a Pixel 1 smartphone) is incorporated directly into the loss function, allowing the search to optimize for hardware efficiency in real-time.
  • Automated Hyperparameter Tuning: Using Bayesian Optimization, the system automatically finds the optimal trade-off parameter (λ) between accuracy and latency, removing the need for manual heuristic tuning.

Results and Key Insights

Single-Path NAS demonstrates that weight sharing is a powerful tool for efficiency. By sharing weights across architectural choices (e.g., 3x3 weights as a subset of 5x5 weights), the search simplifies into a gradient descent problem on a single, compact network. This reduces the search cost to just 8 epochs—roughly 2.45 hours on a TPU-v3.

Search Cost vs. ImageNet Accuracy: Single-Path NAS occupies the top-left "sweet spot."

Performance Benchmarks:

  • State-of-the-Art Accuracy: Single-Path NAS achieved 75.62% top-1 accuracy on ImageNet with ~80ms latency on a Pixel 1, outperforming MobileNetV3 (75.2%), MnasNet (75.2%), and FBNet (74.9%).
  • Efficiency Gains: The search process is 5,000x faster than MnasNet and 25x faster than ProxylessNAS.
  • Downstream Tasks: When evaluated as a backbone for Mask R-CNN on the COCO dataset, the model achieved 33.03 AP, surpassing other mobile-optimized backbones.

Conclusion

Single-Path NAS represents a significant step toward accessible AutoML, slashing design time from days to hours without sacrificing performance. While the current search space is constrained by a fixed MobileNetV2-based macro-architecture, the efficiency of the superkernel approach provides a foundation for future work exploring entirely new macro-architectures and diverse hardware targets. By solving the "Meta-NAS" problem through automated hyperparameter tuning, this research moves the field closer to a true "push-button" solution for hardware-aware network design.

Summary updated

BibTeX
@article{stamoulis2019single,
  author = {Dimitrios Stamoulis and Ruizhou Ding and Di Wang and Dimitrios Lymberopoulos and Bodhi Priyantha and Jie Liu and Diana Marculescu},
  title = {{Single-Path Mobile AutoML: Efficient ConvNet Design and NAS Hyperparameter Optimization}},
  journal = {IEEE J. Sel. Top. Signal Process.},
  year = {2019},
  doi = {10.1109/jstsp.2020.2971421},
}
Figure