# MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications

Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand and 2 more · arXiv · 2017-4-17

- **Problem** Accuracy gains from ever deeper and more complicated networks rarely bring smaller size or lower latency, which makes them hard to run on mobile and embedded hardware.
- **Method** Builds the network from depthwise separable convolutions and scales it with a width multiplier α and a resolution multiplier ρ, so a developer can match size and latency to an application.

## Why small models for mobile vision

Accuracy on ImageNet has mostly improved by stacking deeper and more intricate networks. The authors point out that these accuracy gains do not necessarily come with smaller or faster models.

Robotics, self-driving cars and augmented reality need recognition to finish in time on hardware with limited compute. That makes a model whose size and latency can be matched to a given budget the practical target.

Earlier work on small networks falls into two groups: compressing or factorizing pretrained networks, and training small networks directly. The authors take the second route with an architecture family in which a developer selects a model that fits a latency or size limit. Their models are tuned mainly for latency and also come out small, whereas many small-network papers consider only size.

## Splitting a convolution into two steps

A standard convolution filters and combines its inputs into new outputs in one step. MobileNets split that step in two: a depthwise convolution applies one filter to each input channel, and a 1×1 pointwise convolution then mixes the channels into new features.

For the depthwise step the output for channel m is the sum over i and j of the kernel slice for channel m times the matching input values, \\(\\hat{G}\_{k,l,m}=\\sum\_{i,j}\\hat{K}\_{i,j,m}\\,F\_{k+i-1,l+j-1,m}\\), so each channel is filtered only by its own kernel. Batchnorm and ReLU follow both the depthwise and the pointwise layer.

Because the depthwise step does not mix channels, it cannot create new features on its own. The 1×1 pointwise convolution supplies that combination.

## Where the saving in computation comes from

In the notation of the paper, M and N are the input and output channel counts, D\_F is the feature map size and D\_K is the kernel size. A standard convolution costs \\(D\_K \\cdot D\_K \\cdot M \\cdot N \\cdot D\_F \\cdot D\_F\\), while the depthwise separable version costs \\(D\_K \\cdot D\_K \\cdot M \\cdot D\_F \\cdot D\_F + M \\cdot N \\cdot D\_F \\cdot D\_F\\), the sum of its depthwise and pointwise parts.

Dividing the separable cost by the standard cost gives \\(\\frac{1}{N} + \\frac{1}{D\_K^2}\\), so the ratio is controlled by the output channel count and the kernel size.

With 3×3 kernels, the factorized block uses between 8 and 9 times less computation than a standard convolution, at only a small reduction in accuracy. Further factorizing the spatial dimension would save little, because very little computation is spent in the depthwise layers.

## Stacking the blocks into MobileNet

The body stacks depthwise separable blocks after a first layer that remains a full convolution, and it downsamples with strided convolutions in the depthwise layers and in that first layer. Every layer is followed by batchnorm and ReLU, except the final fully connected layer, which feeds a softmax; average pooling reduces the map to 1×1 before it.

Counting depthwise and pointwise layers separately gives 28 layers.

The design places most of the computation in dense 1×1 convolutions, which map directly onto GEMM, the general matrix multiply, without the im2col reordering that standard convolutions often need. Table 2 gives the 1×1 convolutions 94.86% of Mult-Adds and 74.59% of parameters.

Training uses TensorFlow and RMSprop with asynchronous gradient descent, following Inception V3. The authors use less regularization and augmentation than for large models, since small models overfit less, and they apply very little or no weight decay to the depthwise filters because there are few of them. All ImageNet models share the same training parameters regardless of their size.

## Width and resolution multipliers

The width multiplier α sets the input channels to αM and the output channels to αN, so each layer is thinned uniformly. The cost becomes \\(D\_K \\cdot D\_K \\cdot \\alpha M \\cdot D\_F \\cdot D\_F + \\alpha M \\cdot \\alpha N \\cdot D\_F \\cdot D\_F\\), with α in (0, 1\] and typical values 1, 0.75, 0.5 and 0.25. Cost and parameters fall roughly with α squared, and a model built with a smaller α is trained from scratch.

The resolution multiplier ρ is applied to the input image, so every internal representation is reduced by the same factor. In practice ρ is set by choosing the input resolution, which is 224, 192, 160 or 128. The cost then reads \\(D\_K \\cdot D\_K \\cdot \\alpha M \\cdot \\rho D\_F \\cdot \\rho D\_F + \\alpha M \\cdot \\alpha N \\cdot \\rho D\_F \\cdot \\rho D\_F\\), and ρ reduces computation by roughly ρ squared.

Table 3 applies the changes in sequence to one internal layer with D\_K = 3, M = 512, N = 512 and D\_F = 14. Mult-Adds fall from 462 million for a standard convolution to 52.3 million for the depthwise separable form, 29.6 million with α = 0.75 and 15.1 million with ρ = 0.714. Parameters go from 2.36 million to 0.27 million, then 0.15 million, and the resolution step leaves them unchanged.

## ImageNet trade-offs under shrinking

To test width against depth, the authors removed five separable layers with 14×14×512 feature maps to make a shallower model. The authors summarize the thinner model as 3% better at this similar computation and parameter budget.

Accuracy drops smoothly until the model becomes too small at α = 0.25. The 16 models formed from four widths and four input resolutions show a log-linear relation between accuracy and Mult-Adds, with a jump at α = 0.25, and parameter counts do not change with resolution.

## Comparison with popular ImageNet models

Table 8 sets the full 1.0 MobileNet-224 against GoogleNet and VGG 16. The authors describe MobileNet as nearly as accurate as VGG16 while 32 times smaller and 27 times less compute intensive, and as more accurate than GoogleNet while smaller and more than 2.5 times less computation.

The text does not say whether the baseline numbers were re-measured under the same training settings.

## Transfer to fine-grained, geolocation, face and detection tasks

For Stanford Dogs, the authors pretrained on a larger noisy web set they collected and then fine-tuned on the Stanford Dogs training set. The authors say MobileNet nearly reaches the state-of-the-art results at much lower computation and size.

PlaNet classifies geographic cells, and the authors re-trained it with the MobileNet architecture on the same data. The full PlaNet on Inception V3 has 52 million parameters and 5.74 billion Mult-Adds, while the MobileNet version has about 13 million parameters, roughly 3 million in the body and 10 million in the final layer, and 0.58 million Mult-Adds.

Table 11 reports the fraction of the Im2GPS test set localized within each distance of the ground truth: 79.3% at continent scale against 77.6% for PlaNet, but 60.3% against 64.0% at country scale, 45.2% against 51.1% at region scale and 11.4% against 11.0% at street scale, with both at 31.7% at city scale. The PlaNet figures come from an updated version of PlaNet with an improved architecture and training dataset.

The authors distill it into a MobileNet classifier by training the student to emulate the teacher's outputs instead of ground-truth labels, which allows large unlabeled datasets. The authors say the classifier stays resilient to aggressive shrinking and uses only 1% of the Multi-Adds.

For COCO detection, MobileNet serves as the base network in SSD with 300 input and in Faster-RCNN with 300 and 600 inputs, and it is compared with VGG and Inception V2. Models were trained on COCO train+val excluding 8k minival images and evaluated on minival, and Faster-RCNN evaluates 300 RPN proposal boxes per image. With Faster-RCNN 600, MobileNet reached 19.8% at 30.5 billion Mult-Adds, against 25.7% for VGG at 149.6 billion.

With Faster-RCNN 300, MobileNet reached 16.4%, above Inception V2 at 15.4% and below VGG at 22.9%. MobileNet is therefore below Inception V2 under SSD 300 and below VGG under both Faster-RCNN settings, while the authors describe its results as comparable at a fraction of the computation and model size.

## Distilling FaceNet into a mobile model

To build a mobile model, the authors train by minimizing the squared differences between the outputs of FaceNet and MobileNet on the training data.

## Limitations

The tables report Mult-Adds and parameters, and no measured latency appears among the reported columns, so the speed case rests on computation counts. Accuracy holds up as width shrinks until the smallest width, where the authors note a jump in the drop.

The ImageNet study uses one set of training parameters for all model sizes, so per-size tuning was not part of it. The comparisons with GoogleNet, VGG 16, AlexNet and Squeezenet are table values, and whether their numbers were re-measured under the same training settings is not stated. The PlaNet comparison uses an updated PlaNet version, and in the Stanford Dogs comparison MobileNet is 83.3% against 84% for Inception V3.

## Paper info

- **Authors**: Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, Hartwig Adam
- **Venue**: arXiv · Preprint
- **First published**: 2017-4-17
- **Added**: 2026-10-20
- **Updated**: 2017-4-17
- **Version**: v1
- **arXiv**: 1704.04861
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1704.04861v1) · [PDF ↗](https://arxiv.org/pdf/1704.04861v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, Hartwig Adam (2017). MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. arXiv:1704.04861v1. https://arxiv.org/abs/1704.04861v1

**BibTeX**

```
@misc{howard2017mobilenets,
  title = {{MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications}},
  author = {Andrew G. Howard and Menglong Zhu and Bo Chen and Dmitry Kalenichenko and Weijun Wang and Tobias Weyand and Marco Andreetto and Hartwig Adam},
  year = {2017},
  eprint = {1704.04861},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.04861v1}
}
```

## Other paper commentary

- [End-to-End Object Detection with Transformers](https://refivu.com/en/papers/8dd88d07-a896-4e8b-812e-b56f620aeed0-end-to-end-object-detection-with-transformers.md)
- [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://refivu.com/en/papers/d2c6b7fa-f256-44cf-9328-c55d713768da-swin-transformer-hierarchical-vision-transformer-using.md)
- [Learning Transferable Visual Models From Natural Language Supervision](https://refivu.com/en/papers/c2ad57ff-fd96-4ad1-af27-4195a16c557d-learning-transferable-visual-models-from-natural-language.md)
- [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://refivu.com/en/papers/8a112940-90e3-4c6b-8fa0-d576b3ebd5d1-an-image-is-worth-16x16-words-transformers-for.md)
- [Deep Residual Learning for Image Recognition](https://refivu.com/en/papers/19d6446d-fd9a-4e80-b535-a4e333cad216-deep-residual-learning-for-image-recognition.md)
- [ArcFace: Additive Angular Margin Loss for Deep Face Recognition](https://refivu.com/en/papers/c413067c-e2eb-43a0-8011-b952f120296a-arcface-additive-angular-margin-loss-for-deep-face.md)
- [DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter](https://refivu.com/en/papers/70da27bf-5c2f-4e05-bfe2-7c145011b0d9-distilbert-a-distilled-version-of-bert-smaller-faster.md)
- [QLoRA: Efficient Finetuning of Quantized LLMs](https://refivu.com/en/papers/27d2d955-4f1a-4d56-aef7-766870813fe4-qlora-efficient-finetuning-of-quantized-llms.md)
- [The Power of Scale for Parameter-Efficient Prompt Tuning](https://refivu.com/en/papers/b52e4465-a64e-4e31-94a8-52b414c956c9-the-power-of-scale-for-parameter-efficient-prompt.md)
- [ReAct: Synergizing Reasoning and Acting in Language Models](https://refivu.com/en/papers/332bb0c8-840f-4238-89c1-dfa32572b3d8-react-synergizing-reasoning-and-acting-in-language-models.md)
- [ALBERT: A Lite BERT for Self-supervised Learning of Language Representations](https://refivu.com/en/papers/7a3fbf64-0a8d-440d-a8cf-5d65c573adde-albert-a-lite-bert-for-self-supervised-learning.md)
- [Parameter-Efficient Transfer Learning for NLP](https://refivu.com/en/papers/617c096f-a488-458f-9a8f-89779c96eda7-parameter-efficient-transfer-learning-for-nlp.md)

## Terms in this paper

- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [COCO](https://refivu.com/en/terms/41f3215c4f4a-coco)
- [mAP](https://refivu.com/en/terms/477dad058d88-map)
- [AlexNet](https://refivu.com/en/terms/e5142ede4de4-alexnet)
- [Depthwise separable convolution](https://refivu.com/en/terms/63e4d9cf94c7-depthwise-separable-convolution)
- [distillation](https://refivu.com/en/terms/6f4f52fc9c49-distillation)
- [MobileNet](https://refivu.com/en/terms/373a038a6bbb-mobilenet)
- [BatchNorm](https://refivu.com/en/terms/c1d81c43c87f-batchnorm)
- [depthwise convolution](https://refivu.com/en/terms/c55d5ba28fdb-depthwise-convolution)
- [GEMM](https://refivu.com/en/terms/2ab461ff0bcb-gemm)
- [width multiplier](https://refivu.com/en/terms/d7eae6b0cb4f-width-multiplier)
- [YFCC100M](https://refivu.com/en/terms/c5d4e1980208-yfcc100m)
- [mean AP](https://refivu.com/en/terms/cbba22d34104-mean-ap)
- [Mult-Adds](https://refivu.com/en/terms/6b992e996b7e-mult-adds)
- [PlaNet](https://refivu.com/en/terms/aec227e71098-planet)
- [pointwise convolution](https://refivu.com/en/terms/e2e363ace348-pointwise-convolution)
- [SqueezeNet](https://refivu.com/en/terms/051ec261e8a1-squeezenet)
- [standard convolution](https://refivu.com/en/terms/ee11d8c17da6-standard-convolution)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/a2a0cf15-7ef8-4a03-b85e-0062c7082283-mobilenets-efficient-convolutional-neural-networks-for)
