MnasNet: Platform-Aware Neural Architecture Search for Mobile

TL;DR

Proposes a platform-aware neural architecture search (MNASNet) optimizing real-world latency and accuracy, achieving 75.2% Top-1 accuracy with 78ms latency on mobile.

cs.CV 🔴 Advanced 2018-07-31 44 views
Mingxing Tan Bo Chen Ruoming Pang Vijay Vasudevan Mark Sandler Andrew Howard Quoc V. Le
Neural Architecture Search Mobile Deep Learning Multi-objective Optimization Real-device Latency Deep Learning

Key Findings

Methodology

MNASNet employs a reinforcement learning controller with a multi-objective reward that directly incorporates real-world inference latency measured on mobile devices. It introduces a factorized hierarchical search space, allowing different layers to have diverse architectures, thus balancing search complexity and model performance. The controller, trained via Proximal Policy Optimization (PPO), samples architectures, which are then evaluated on actual devices for latency and accuracy. The optimization aims to find Pareto-efficient solutions that maximize accuracy while respecting latency constraints. The search space is divided into blocks, each with independently optimized parameters such as convolution type, kernel size, and number of layers, enabling layer diversity. Extensive experiments on ImageNet and COCO datasets demonstrate the effectiveness of the approach, with models outperforming state-of-the-art mobile CNNs in both accuracy and speed.

Key Results

  • The MNASNet-A1 model achieves 75.2% Top-1 accuracy on ImageNet with a latency of 78ms on Pixel phones, using only 3.9 million parameters and 312 million multiply-adds, surpassing MobileNetV2 (72.0%) and NASNet (74.0%) in speed and accuracy.
  • On COCO object detection, a feature extractor based on MNASNet attains 23.0% mAP with 42ms inference latency, outperforming MobileNets and comparable to SSD300, with significantly fewer parameters and computations.
  • The multi-objective framework effectively balances accuracy and latency, with models tailored for different real-world constraints, validated across multiple tasks and hardware setups.

Significance

This work addresses the critical gap in mobile neural network design by directly optimizing for real-world inference latency rather than proxy metrics like FLOPS. The approach enhances the practicality of neural architecture search for edge devices, enabling models that are both accurate and fast on actual hardware. The introduction of a hardware-aware, multi-objective search paradigm marks a significant step forward, facilitating the deployment of high-performance AI applications in resource-constrained environments. It also opens avenues for further research into hardware-specific neural architecture optimization, fostering more efficient AI solutions for ubiquitous mobile and embedded systems.

Technical Contribution

The paper's key technical innovations include: 1) integrating real-device latency measurement into the NAS process, 2) employing a multi-objective reward function that balances accuracy and latency, 3) designing a factorized hierarchical search space that allows diverse layer architectures, and 4) utilizing reinforcement learning with PPO to efficiently explore this space. These contributions collectively enable the automatic discovery of models that are both hardware-efficient and high-performing, surpassing prior proxy-based methods. The approach also demonstrates how to incorporate hardware feedback into neural architecture search, setting a new standard for hardware-aware model design.

Novelty

This study is the first to incorporate actual mobile device latency directly into the neural architecture search process as a primary optimization objective. Unlike previous work relying on proxy metrics like FLOPS or model size, it measures real inference time, ensuring practical relevance. The hierarchical, factorized search space further distinguishes this work by allowing layer-specific customization, which enhances model diversity and efficiency. These innovations collectively represent a fundamental shift toward hardware-aware, multi-objective neural architecture search tailored for resource-constrained devices.

Limitations

  • The approach requires extensive real-device latency measurements, making the search process computationally expensive and time-consuming, limiting scalability to larger or more diverse hardware platforms.
  • The predefined hierarchical search space, while flexible, may still restrict exploration of more complex or unconventional architectures, potentially missing some optimal solutions.
  • Performance in extremely low-latency scenarios (e.g., below 20ms) remains less explored, and models may degrade under such constraints. Further optimization and broader hardware testing are needed.

Future Work

Future directions include developing more efficient latency estimation techniques to reduce measurement costs, expanding the search space to include more diverse architectures, and adapting the framework for multi-task or multi-hardware scenarios. Additionally, integrating model compression and quantization techniques could further enhance deployment efficiency. Extending the approach to other hardware platforms like edge GPUs or specialized accelerators will broaden its applicability. Lastly, automating the entire pipeline for real-time architecture adaptation based on evolving hardware capabilities remains an exciting avenue.

AI Executive Summary

Designing neural networks for mobile devices presents a unique challenge: models must be both accurate and fast, yet traditional design methods often rely on proxy metrics like FLOPS that do not accurately reflect real-world performance. This disconnect hampers the deployment of truly efficient AI on resource-limited hardware. Addressing this, the authors introduce MNASNet, a neural architecture search framework that directly optimizes for actual inference latency measured on mobile phones. By integrating reinforcement learning with a multi-objective reward that balances accuracy and real-device latency, MNASNet effectively discovers models that outperform existing mobile CNNs.

A key innovation lies in the factorized hierarchical search space, which allows different layers within the network to have diverse structures. This flexibility enables the search process to find architectures that better trade off between computational complexity and accuracy. The reinforcement learning controller samples candidate architectures, which are then evaluated on real hardware, ensuring the models are optimized for practical deployment. Extensive experiments on ImageNet demonstrate that MNASNet-A1 achieves 75.2% Top-1 accuracy with only 78ms latency on Pixel phones, surpassing MobileNetV2 and NASNet in both speed and accuracy, with fewer parameters.

Furthermore, the approach extends to object detection tasks on COCO, where models based on MNASNet feature extractors achieve higher mAP with significantly fewer computations. The results highlight the importance of hardware-aware, multi-objective optimization in neural architecture design, especially for edge devices. Despite the high computational cost of real-device measurements, the method sets a new standard for practical neural network optimization. Future work aims to improve efficiency, expand architecture diversity, and adapt to broader hardware platforms, promising a new era of AI deployment on mobile and embedded systems.

Deep Analysis

Background

The rapid growth of deep learning has led to increasingly complex models, achieving remarkable performance in tasks like image classification and object detection. However, deploying these models on mobile devices remains challenging due to limited computational resources, power constraints, and latency requirements. Early lightweight models such as SqueezeNet, MobileNet, and ShuffleNet introduced techniques like depthwise separable convolutions and channel shuffling to reduce model size and computation. Nonetheless, manual design of optimal architectures is labor-intensive and often suboptimal. Recent advances in neural architecture search (NAS) have automated this process, leading to models like NASNet and AmoebaNet that outperform hand-crafted counterparts. Yet, most NAS methods optimize proxy metrics like FLOPS or parameter count, which do not always correlate with real-world latency on mobile hardware. As hardware heterogeneity increases, there is a pressing need for hardware-aware NAS that directly considers actual inference speed, enabling models that are truly optimized for deployment in resource-constrained environments.

Core Problem

The core challenge addressed in this paper is to develop a neural architecture search method that explicitly incorporates real-world inference latency on mobile devices into the optimization process. Traditional proxy metrics such as FLOPS or model size often fail to accurately predict actual latency due to hardware-specific factors like memory bandwidth, parallelism, and software stack inefficiencies. This discrepancy leads to models that perform well in theory but poorly in practice. Moreover, existing NAS approaches tend to generate architectures with repetitive cell structures, limiting layer diversity and potential performance gains. Balancing high accuracy with low latency under strict hardware constraints remains a significant bottleneck, especially when models must be scaled across different devices and applications. The paper proposes a solution that directly measures latency during search and employs a multi-objective framework to find Pareto-optimal solutions tailored for mobile hardware.

Innovation

The main innovations include: 1) integrating real-device latency measurements into the NAS process, ensuring models are optimized for actual hardware performance; 2) designing a factorized hierarchical search space that allows different blocks within the network to have distinct architectures, promoting layer diversity; 3) employing reinforcement learning with a multi-objective reward function that balances accuracy and latency, enabling the discovery of models that meet diverse deployment constraints; 4) using a controller trained via Proximal Policy Optimization to efficiently explore the large search space. These innovations collectively enable the automatic design of mobile neural networks that are both accurate and hardware-efficient, overcoming limitations of proxy-based methods and fixed cell stacking strategies.

Methodology

  • �� Construct a multi-objective reward function combining accuracy and real-device latency, with adjustable weights.
  • �� Build a factorized hierarchical search space dividing the network into multiple blocks, each with independently optimized parameters such as convolution type, kernel size, and number of layers.
  • �� Use a reinforcement learning controller, based on RNN, to generate architecture tokens for each block, sampling diverse models.
  • �� For each sampled architecture, train on ImageNet or COCO, then measure inference latency directly on mobile phones.
  • �� Calculate reward based on accuracy and latency, guiding the controller to favor Pareto-efficient models.
  • �� Repeat sampling and evaluation until convergence, selecting top models for deployment.
  • �� Validate models across different hardware and tasks, including classification and object detection, demonstrating robustness and efficiency.

Experiments

The experimental setup involves searching on ImageNet with a limited number of epochs due to high computational cost, using a Pixel phone for latency measurement. About 8,000 models are sampled, with top candidates evaluated on full datasets. Hyperparameters include RMSProp optimizer, learning rate schedules, batch normalization, and dropout. The models are compared against MobileNetV2, NASNet, and other lightweight architectures, with metrics including Top-1 accuracy, parameters, multiply-adds, and real-device latency. Additional ablation studies examine the impact of different reward weights and search space configurations. For object detection, models are integrated into SSD frameworks and evaluated on COCO, confirming the generality of the approach.

Results

MNASNet-A1 achieves 75.2% Top-1 accuracy with 78ms latency, outperforming MobileNetV2 (72.0%) and NASNet (74.0%) in speed and accuracy. The model uses only 3.9M parameters and 312M multiply-adds, representing a significant efficiency gain. In object detection, the feature extractor based on MNASNet attains 23.0% mAP with 42ms latency, surpassing MobileNets and matching state-of-the-art performance with fewer resources. The results demonstrate that directly optimizing for real-world latency yields models with superior practical performance, validating the multi-objective framework. Ablation studies confirm the importance of the hierarchical search space and hardware-aware reward in achieving these gains.

Applications

The proposed method is suitable for deploying real-time vision applications on smartphones, tablets, and embedded devices, including image classification, object detection, augmented reality, and autonomous systems. It enables developers to automatically generate models tailored to specific hardware constraints, reducing manual tuning efforts. The approach facilitates rapid prototyping and deployment of AI in resource-limited environments, broadening access to intelligent applications. In the long term, this framework can be extended to multi-task learning, multi-hardware optimization, and integrated with model compression techniques, further enhancing AI accessibility and efficiency in edge computing.

Limitations & Outlook

The reliance on real-device latency measurements makes the search process computationally intensive and time-consuming, limiting scalability. The predefined hierarchical search space, while flexible, may restrict exploration of more complex architectures. The approach's effectiveness in ultra-low latency scenarios (<20ms) remains to be validated. Hardware heterogeneity poses challenges for generalization, requiring multiple hardware-specific searches. Future work should focus on improving latency estimation efficiency, expanding architecture diversity, and automating multi-device adaptation to address these limitations.

Plain Language Accessible to non-experts

Imagine you're trying to design the fastest and tastiest sandwich for your friends. Normally, you'd pick ingredients based on recipes you know, but sometimes those recipes are too slow or not tasty enough. So, instead, you decide to try different combinations and actually taste each sandwich to see how fast you can make it and how good it tastes. You keep experimenting, measuring how long each takes and how delicious it is, and then choose the best ones. This is similar to what the researchers did with mobile AI models. Instead of guessing which model is fast or accurate, they built a smart system that tests real models on actual phones, measuring how long they take to give results and how accurate they are. Then, it learns to pick the best balance—models that are both quick and correct. This way, your phone can recognize pictures or objects almost instantly, just like a super-fast, smart assistant. The key is that they measure real performance directly, not just estimate it, making the models truly practical for everyday use. This approach helps make AI on phones smarter, faster, and more reliable, so you get better experiences without waiting or draining your battery.

Abstract

Designing convolutional neural networks (CNN) for mobile devices is challenging because mobile models need to be small and fast, yet still accurate. Although significant efforts have been dedicated to design and improve mobile CNNs on all dimensions, it is very difficult to manually balance these trade-offs when there are so many architectural possibilities to consider. In this paper, we propose an automated mobile neural architecture search (MNAS) approach, which explicitly incorporate model latency into the main objective so that the search can identify a model that achieves a good trade-off between accuracy and latency. Unlike previous work, where latency is considered via another, often inaccurate proxy (e.g., FLOPS), our approach directly measures real-world inference latency by executing the model on mobile phones. To further strike the right balance between flexibility and search space size, we propose a novel factorized hierarchical search space that encourages layer diversity throughout the network. Experimental results show that our approach consistently outperforms state-of-the-art mobile CNN models across multiple vision tasks. On the ImageNet classification task, our MnasNet achieves 75.2% top-1 accuracy with 78ms latency on a Pixel phone, which is 1.8x faster than MobileNetV2 [29] with 0.5% higher accuracy and 2.3x faster than NASNet [36] with 1.2% higher accuracy. Our MnasNet also achieves better mAP quality than MobileNets for COCO object detection. Code is at https://github.com/tensorflow/tpu/tree/master/models/official/mnasnet

cs.CV cs.LG