Paper commentary
MobileNetV2: Inverted Residuals and Linear Bottlenecks
MobileNetV2 cuts mobile vision compute while keeping accuracy high
- Problem Accurate image recognition networks often need more computation than many mobile and embedded devices can spare.
- Method MobileNetV2 stacks inverted residual blocks that expand a thin input, filter it depthwise, and project it back. Unlike classical residual blocks, its shortcuts join the thin bottlenecks.
- Results On ImageNet, MobileNetV2 reaches 72.0 top-1 accuracy with 300 million MAdds and 3.4 million parameters.
Why mobile networks need a different target
Gains in image recognition accuracy have often come with networks whose computational cost exceeds what many mobile and embedded devices can provide. MobileNetV2 targets lower operation counts and memory use while keeping accuracy in line with comparable efficient models, and the authors measure the trade-off in multiply-adds (MAdds), parameter count and latency.
The design builds on MobileNetV1, keeping its simplicity and standard operators while improving its accuracy.
Depthwise separable convolutions as the starting point
The starting point is the depthwise separable convolution, which splits one full convolution into a depthwise layer that applies a single filter to each input channel and a 1×1 pointwise layer that builds new features as linear combinations of the channels. A standard layer maps an input of size \(h_i \times w_i \times d_i\) with a kernel \(K \in \mathbb{R}^{k\times k\times d_i\times d_j}\), and its cost is \(h_i \cdot w_i \cdot d_i \cdot d_j \cdot k \cdot k\).
With \(k = 3\), MobileNetV2 has a computational cost 8 to 9 times smaller than a standard convolution, and the earlier MobileNet work [27] reports only a small loss in accuracy for this factorization. The saving is close to a factor of \(k^2\) but not exactly that, because the precise factor is \(k^2 d_j/(k^2+d_j)\).
Why narrow layers should stay linear
The argument starts from the assumption that the activations of a layer over a set of real images, the manifold of interest, can be embedded in a low-dimensional subspace. Reducing the width until the manifold fills the space would follow from that assumption, but ReLU complicates it: applied to a line in 1D it produces a ray, and in higher-dimensional space it bends the image into a curve with joints.
When the output of a ReLU layer keeps a region of non-zero volume, the points of that region come from a linear map of the input, so the non-linearity adds no extra power on that part of the space.
A ReLU that collapses a channel loses information in that channel, but with many channels and structure in the manifold, the other channels can keep the information. The authors state this more formally in supplemental material, saying that when the input manifold fits in a much lower-dimensional subspace of the activation space, ReLU preserves the information and still adds complexity to the functions the layer can express.
Together these points suggest placing linear bottleneck layers in the blocks, so that the manifold sits in a low-dimensional subspace of a wider activation space. Using non-linear layers in the bottlenecks hurts performance by several percent in the authors' experiments, which the authors take as support for the hypothesis.
The inverted residual block
The block takes a low-dimensional input and expands it with a 1×1 convolution followed by ReLU6. A 3×3 depthwise convolution with ReLU6 then filters the expanded features, and a 1×1 convolution without non-linearity projects them back to a low-dimensional output. The ratio between the inner size and the input size is the expansion factor, and the main experiments use 6.
For a bottleneck that takes a 64-channel input and produces 128 channels, the expanded layer has 384 channels.
The shortcuts join the thin bottleneck tensors rather than the wide expanded tensors, which is the reverse of the classical residual block. The authors reason that the bottlenecks carry the necessary information, while the expansion acts as an implementation detail around a non-linear transformation. The inverted layout is more memory efficient and, in the authors' experiments, works slightly better than the classical arrangement.
The extra 1×1 term is offset because the networks use much smaller input and output dimensions.
The input and output domains of a block measure the capacity of the network at that layer, while the inner transformation sets its expressiveness. With inner depth 0 the convolution reduces to the identity thanks to the shortcut, and expansion ratios below 1 give a classical residual block.
Stacking blocks and scaling the network
The network begins with a full convolution of 32 filters and then applies 19 residual bottleneck layers. The stage table gives the output channels, the repeat count and the stride of each sequence, ending with a 1×1 convolution to 1280 channels and a 7×7 average pooling. The kernel size is 3×3 for spatial convolutions, and dropout and batch normalization are used during training.
Except for the first layer, the expansion rate stays constant, and expansion rates between 5 and 10 give nearly identical performance curves in the authors' experiments. Input resolution and width multiplier are the tuning knobs, and the primary model at width multiplier 1 and 224×224 input costs 300 million MAdds with 3.4 million parameters.
Across input resolutions from 96 to 224 and width multipliers from 0.35 to 1.4, the cost ranges from 7 multiply-adds up to 585M MAdds, and the model size ranges from 1.7M to 6.9M parameters. For multipliers below one, the width multiplier is not applied to the last convolutional layer, which the authors say improves smaller models.
Memory-efficient inference
An inference engine schedules the computation graph to minimise the largest amount of intermediate tensors held in memory at once. For graphs with only trivial parallel structure, such as a residual connection, the peak reduces to the largest sum over an operation of its input sizes, output sizes and internal storage: \(M(G) = \max_{op \in G} \left(\sum_{A \in op_{inp}} |A| + \sum_{B \in op_{out}} |B| + |op|\right)\).
If the bottleneck block is treated as one operation, its large inner expanded tensor becomes a disposable intermediate, so the peak is set by the bottleneck tensors.
The bottleneck operator is written as \(F(x) = [A \circ N \circ B]x\), where \(A\) and \(B\) are linear maps and \(N\) is a non-linear per-channel map. The inner tensor can be split into \(t\) parts so that \(F(x) = \sum_{i=1}^{t} (A_i \circ N \circ B_i)(x)\), and the partial sums are accumulated while only one part of size \(n/t\) is held in memory.
The split works because the inner transformation is per channel and the operators outside it shrink the tensor a lot, conditions the authors say most traditional networks do not meet.
The number of multiply-adds stays the same for any split, but replacing one matrix multiplication with several smaller ones slows runtime in existing implementations because of increased cache misses. The authors find a split with \(t\) between 2 and 5 most useful, since it still uses highly optimised matrix and convolution operators. Table 3 lists a maximum of 400K for MobileNetV2 against 1600K for MobileNetV1, measured in Kb with 16-bit floats for activations.
Training setup for ImageNet
The models are trained in TensorFlow with the RMSProp optimizer, with decay and momentum both set to 0.9. Batch normalization follows every layer, the weight decay is 0.00004, and the initial learning rate is 0.045, decaying by 0.98 per epoch, following the MobileNetV1 setup. Training uses 16 GPU asynchronous workers and a batch size of 96.
ImageNet classification results
The MobileNetV2 row reports 75ms against 113ms for MobileNetV1, measured on a single large core of a Google Pixel 1 with TF-Lite. ShuffleNet (1.5) reached 71.5 and ShuffleNet (x2) reached 73.7, and NasNet-A reached 74.0 with 564M MAdds and 183ms; ShuffleNet latency is not reported because efficient group convolutions and shuffling were not yet supported.
The accuracy figures come from ImageNet training and the latency figures from the phone measurement, so the two columns describe different conditions. Figure 5 plots accuracy against multiply-adds, with multipliers 0.35, 0.5, 0.75 and 1.0 at every resolution and 1.4 only at 224.
Non-linearity and shortcut placement
The authors test two design choices with ImageNet training curves: whether the bottleneck keeps a ReLU6, and where the shortcut is placed. In Figure 6a, the linear bottleneck reaches higher top 1 accuracy over the training steps than the variant with ReLU6 in the bottleneck, and the authors read this as non-linear layers erasing information in a low-dimensional space.
The authors note that a model with linear bottlenecks is strictly less powerful in principle than one with non-linearities, so the gain they observe is empirical.
Figure 6b compares a shortcut between bottlenecks, a shortcut between expansions and no residual connection over training steps up to 7 million. The authors present the shortcut between bottlenecks as performing better than the shortcut between the expanded layers, which they call a new result of the paper. The shortcut comparison appears only as training curves, without a tabulated gap.
SSDLite for COCO object detection
SSDLite replaces the regular prediction convolutions of SSD with separable convolutions, a depthwise layer followed by a 1×1 projection. For MobileNetV2, the first SSDLite layer attaches to the expansion of layer 15 at output stride 16, and the remaining layers attach on top of the last layer at output stride 32.
Both MobileNet detectors are trained and evaluated with the TensorFlow Object Detection API at 320×320 input, and Table 6 reports COCO mAP. The authors describe MobileNetV2 SSDLite as 20× more efficient and 10× smaller than YOLOv2 while still outperforming it on COCO.
Mobile DeepLabv3 for semantic segmentation
DeepLabv3 uses MobileNetV1 or MobileNetV2 as feature extractors, evaluated on PASCAL VOC 2012 with extra annotated images and mIOU. Atrous convolution controls feature resolution, and output stride is the ratio of input resolution to final output resolution, usually 16 or 8 for denser maps. The variations compared are the feature extractor, simplified DeepLabv3 heads, and inference strategy, and the full heads include an ASPP module of three 3×3 convolutions with different atrous rates.
Multi-scale and flipped inputs raise MAdds a great deal, so the authors judge them unsuitable for on-device use. MobileNetV1 at output stride 8 with ASPP and multi-scale and flipped inputs reached 78.56 mIOU at 941.9B MAdds, against 82.70 mIOU at 4870.6B for ResNet-101 under the same settings. The authors say MobileNetV1 needs about 4.9 to 5.7 times fewer MAdds than ResNet-101 in this comparison.
At output stride 16 with ASPP, the MNet V2* row, which uses the second last feature map, reaches 75.70 mIOU at 5.8B MAdds, against 75.29 mIOU at 14.25B for MNet V1.
Building the DeepLabv3 heads on the second last MobileNetV2 feature map, which has 320 channels instead of 1280, gives similar performance with about 2.5 times fewer operations than the MobileNetV1 counterparts. The authors identify this configuration as a candidate for on-device applications. All models in Table 7 were pretrained on COCO, and the PASCAL images are 512×512; Table 7 reports mIOU, parameters and MAdds but no latency.
Limitations
Latency numbers come from one large core of a Google Pixel 1 phone with TF-Lite, so they describe that setup only. Splitting matrix products saves memory but slows runtime in existing implementations, and whether framework-level optimization removes this cost remains open. Faster-RCNN and R-FCN are not compared, since the focus is on mobile and real-time models.
The authors leave the theoretical separation of expressiveness and capacity as a direction for future research. The linear bottleneck gain rests on Figure 6a curves and the reported drop of several percent, with no tabulated numbers for that ablation.
Paper info
- Authors
- Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, Liang-Chieh Chen
- Venue
- arXiv · Preprint
- First published
- 2018-1-13
- Added
- 2026-11-11
- Updated
- 2019-3-21
- Version
- v4
- arXiv
- 1801.04381
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
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
Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, Liang-Chieh Chen (2018). MobileNetV2: Inverted Residuals and Linear Bottlenecks. arXiv:1801.04381v4. https://arxiv.org/abs/1801.04381v4
BibTeX
@misc{sandler2018mobilenetv2,
title = {{MobileNetV2: Inverted Residuals and Linear Bottlenecks}},
author = {Mark Sandler and Andrew Howard and Menglong Zhu and Andrey Zhmoginov and Liang-Chieh Chen},
year = {2018},
eprint = {1801.04381},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1801.04381v4}
}