Searching for MobileNetV3
- Publication
- ICCV 2019Conference
- First submitted to arXiv
- arXiv:1905.02244
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{lightweightmobilenetv32019,
title = {{Searching for MobileNetV3}},
author = {Andrew Howard and Mark Sandler and Grace Chu and Liang-Chieh Chen and Bo Chen and Mingxing Tan and Weijun Wang and Yukun Zhu and Ruoming Pang and Vijay Vasudevan and Quoc V. Le and Hartwig Adam},
year = {2019},
eprint = {1905.02244},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1905.02244}
}
Looking back at SENet's lightweight-model experiments, one might jokingly ask: was this a glimpse of the next MobileNet? That is a retrospective analogy; SENet did not propose MobileNetV3.
The Google team also wanted to keep advancing MobileNet. This time the target was the accuracy–latency trade-off on mobile CPUs.
Defining the Problem
The question is simple: how do we find a better MobileNet? In practice, that means improving accuracy within a mobile CPU latency budget. Multiply-add counts (MAdds) and inference latency measure different costs. The paper therefore evaluates designs with measured latency on a single large core of Pixel phones using TFLite.
The authors combine two search methods: NAS selects the block-level architecture, then NetAdapt adjusts channels layer by layer against the target platform's latency. They also manually redesign the first and last layers, SE gates, and activations. MobileNetV3 did not emerge from NAS alone.
Solving the Problem
From the MobileNetV2 Block to V3
Can you spot the difference? V2 expands with a 1×1 convolution, applies a depthwise convolution, then projects linearly back to narrow channels; a residual is used only when input and output shapes match. The V3 sketch adds Squeeze-and-Excitation (SE) after the depthwise operation in the expanded representation, and allows different nonlinearities. This is a block sketch; the Large and Small tables below show which layers actually contain SE.
The earlier MnasNet had already placed SE in MobileNetV2-style blocks. V3 replaces the SE gate's sigmoid with hard-sigmoid and fixes its bottleneck width to one quarter of the expanded channel count. This adds some parameters, but the authors observed no discernible latency cost on their target platform.
Search First, Then Tune Each Layer
The blocks are ready; how should they be stacked? The paper reuses MnasNet's RNN controller and block search space. Large begins with MnasNet-A1. Because small models' accuracy is more sensitive to latency, Small changes the latency weight in the search reward from to and searches for a fresh seed architecture. The two models have different starting points.
NetAdapt then proposes lower-latency candidates, briefly fine-tunes them, and chooses using the ratio of accuracy change to latency change. It can narrow an expansion layer or jointly narrow blocks that share a bottleneck width, preserving residual connections. Once the target latency is reached, the selected architecture is trained from scratch.
The 3.8 and 15.6 values in this diagram illustrate the NetAdapt procedure; they are not MobileNetV3 measurements. The division of labor is the key: NAS searches global blocks, while NetAdapt uses device measurements to refine individual layers.
Redesigning the Tail and the Stem
In Original Last Stage, a 1×1 convolution expands a 7×7 feature map to 1280 channels before average pooling. Efficient Last Stage pools first, so the high-dimensional convolution runs at just one 1×1 spatial location; it also removes unneeded projection and filtering layers from the preceding bottleneck. The paper reports about 30M fewer MAdds and 7 ms less latency (about 11%) with almost no accuracy loss. This result belongs to that configuration, not every network.
The stem is costly too. Seeing mirror-image-like early filters, the authors reduce the first convolution's output channels from 32 to 16 and use hard-swish to preserve accuracy. Relative to 32 channels with ReLU or swish, the paper reports another 10M MAdds and 2 ms saved. This is a redesigned and retrained network, not deleting half the weights of a trained model.
Where Is Hard-Swish Used?
The dashed curves show sigmoid and swish; the solid curves show their hard approximations. Here is a quick comparison of the five functions in the author's discussion:
- ReLU: . It zeroes negative inputs and passes positive ones through. Its simple computation and non-saturating positive branch make it common in deep networks.
- Swish: , where . This self-gated function can improve accuracy over ReLU in some settings, but evaluating sigmoid has a cost on mobile devices.
- Hard-swish: , with . It approximates swish and can be implemented efficiently as a piecewise function when the runtime supports it.
- Sigmoid: . It maps inputs into , which is useful for gates and often for binary-classification outputs.
- Hard-sigmoid: . This piecewise-linear approximation replaces sigmoid in V3's SE gates and is easier to implement efficiently in mobile and quantized settings.
An optimized hard-swish operator can lower latency.
V3 does not replace every ReLU. Applying hard-swish to deeper, smaller feature maps is cheaper, so both designs use it mainly later in the network. The first convolution is an exception: it also uses hard-swish. The layer tables give the precise placement.
Layer-by-Layer Large and Small Designs
In the Large table, SE marks attention; HS and RE in the NL column mean hard-swish and ReLU. Exp size is the expanded channel count, #out the output count, s the stride, and NBN means no batch normalization in that convolution. Starting from a 224×224×3 input, the stem outputs 16 channels. Bottlenecks from 80 output channels onward use HS, while the stem itself also uses HS. The 7×7, 960-channel features are pooled to 1×1, then expanded to 1280 channels; is the number of classes.
Small also starts with 16 channels, but its first bottleneck already has SE and stride 2. Its 7×7, 576-channel features are pooled before expansion to 1024 channels. SE and HS placements differ between the tables; blindly repeating the block sketch would build the wrong network.
Discussion
ImageNet: Accuracy and Device Latency
The horizontal axis is Pixel 1 latency; the vertical axis is ImageNet Top-1 accuracy. All models use 224-pixel inputs. Figure 1 labels Small 1.0 near 67.5% and 16 ms; Table 3 reports 67.4% at 15.8 ms, versus 64.9% at 20.3 ms for MnasNet-small. Large 1.0 obtains 75.2% at 51 ms, versus 75.2% at 71 ms for MnasNet-A1. Small and Large serve different resource budgets; their latency and accuracy cannot be combined into one model.
P-1, P-2, and P-3 mean Pixel 1, 2, and 3. TFLite measured latency on one large core with batch size 1, in milliseconds. MAdds are millions of multiply-adds, distinct from parameter count and measured latency. Large 1.0 has 75.2% / 219M MAdds / 5.4M parameters / 51 ms on Pixel 1, versus 72.0% / 300M / 3.4M / 64 ms for MobileNetV2 1.0: 3.2 percentage points higher Top-1 accuracy and about 20% less latency, but more parameters. Small 1.0 has 67.4% / 56M / 15.8 ms, versus 60.8% / 59.2M / 16.6 ms for V2 0.35. This is a similar-latency comparison, not an equal-width comparison.
Development Path and Downstream Tasks
In Figure 9, up and left is better. The path starts near 75.2% / 72 ms for MnasNet, passes through SE width changes, hard-swish, NetAdapt, and a compact tail, and ends near 75.2% / 51 ms. Accuracy reaches about 76.1% along the way, then some of it is traded for lower latency. The accuracy gains of individual points cannot be added together.
The paper also uses V3 as an SSDLite backbone on the COCO test set. With the channels between C4 and C5 halved, Large obtains 22.0 mAP / 119 ms, versus 22.1 mAP / 162 ms for V2. That 27% latency reduction includes a detection-specific channel change. The authors also introduce the LR-ASPP segmentation head: on the Cityscapes validation set with half-resolution input, V3 Large with a 128-channel head obtains 72.36 mIoU / 657 ms. These are different tasks and configurations; the classification table's 51 ms cannot be applied to detection or segmentation.
Conclusion
Mobile devices have limited compute, so the model must be designed for its target platform. MobileNetV3 combines block search, layer-wise latency tuning, and manual architecture changes to improve the accuracy–latency trade-off on the Pixel phones tested in the paper.
Perhaps the same approach could eventually yield one architecture that works well across Pixel, Apple, and Samsung phones. A different processor, operator implementation, or runtime still calls for fresh measurements. For mobile users and model developers like us, that is good news.