
mnasnet0_5
Image classification152 ops2.2M params
A mobile CNN found by architecture search that scores candidates on real phone latency, not FLOPS.
Image classification · 265 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
timm.create_model('mnasnet_140', pretrained=False) MNASNet B1 at depth multiplier 1.4, built by timm.
About this model's family
MnasNet is a family of mobile convolutional networks found by automated search rather than hand design, with the search objective built around measured phone latency. Where earlier work used FLOPS as a proxy, the authors measure real inference latency by running each candidate on actual mobile phones. Their motivating example is that MobileNet and NASNet have similar FLOPS, 575M against 564M, yet their latencies differ sharply at 113ms and 183ms.
The second idea is a factorized hierarchical search space: the network is split into predefined blocks and the operations and connections are searched per block, so different blocks can have different layer architectures. Within a block the choices include the convolution type (regular, depthwise or mobile inverted bottleneck), a 3x3 or 5x5 kernel and a squeeze-and-excitation ratio of 0 or 0.25. The search framework has three parts: an RNN-based controller that samples models, a trainer that measures their accuracy, and a mobile phone based inference engine that measures latency. The latency target is treated as a soft constraint, which lets a single search yield several models along the Pareto curve. Searching directly on ImageNet was expensive: each architecture search took 4.5 days on 64 TPUv2 devices. The controller sampled about 8K models, of which only 15 were trained on full ImageNet and just one transferred to COCO.
The headline model, MnasNet-A1, reaches 75.2% top-1 on ImageNet at 78ms on a Pixel phone with 3.9M parameters and 312M multiply-adds. That is 1.8x faster than MobileNetV2 with 0.5% higher accuracy and 2.3x faster than NASNet with 1.2% higher accuracy. The found architecture mixes 3x3 and 5x5 convolutions, unlike earlier mobile models that used only 3x3 convolutions. The B1 variant that timm builds comes from a search with no squeeze-and-excitation in the search space. A depth multiplier of 0.5 halves the number of channels in each layer, which is how the smaller members here are derived. Plugged into SSDLite as a feature extractor, MnasNet matched SSD300's COCO mAP (23.0 against 23.2) with 7.4x fewer parameters and 42x fewer multiply-adds.
Key idea. A multi-objective neural architecture search that optimizes accuracy and measured on-device latency together, paired with a factorized hierarchical search space that allows layer diversity across blocks.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{tan2019mnasnetplatformawareneuralarchitecture,
title={MnasNet: Platform-Aware Neural Architecture Search for Mobile},
author={Mingxing Tan and Bo Chen and Ruoming Pang and Vijay Vasudevan and Mark Sandler and Andrew Howard and Quoc V. Le},
year={2019},
eprint={1807.11626},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1807.11626},
}