All models

MobileNetV2

MobileNetV2: inverted residual blocks with linear bottlenecks for efficient mobile vision.

Image classification · 153 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (21 KB)

Open in a new tab

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.

At a glance

Parameters
3.5M
Operations
153
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2018)
Cited by
26,767 (as of 9 October 2026)
Authors
Mark Sandler, Andrew Howard, Menglong Zhu and others
Name in source
mobilenet_v2
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m7320
Graph hash
bd70e3b4a6838cf8bfa0e0fe87c35ad4d6f4388b2be20d89194b4e67c7dac339
Skeleton hash
901b14a7a3f59168b8b613da48cc8b3d58f9cb63a6b172bad83d02fc3947edda
Architecture hash
cc311e053220b436f588212aefbb006feca1442a2b433afc408573d1d77e9ea2
Diagram SHA-256
0ad4e4509e2ba4918443673a46fbfd3117c2dbb07049024e143b6168aa626c69
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

torchvision.models.get_model('mobilenet_v2', weights=None)

What it is

About this model's family

MobileNetV2 is a mobile convolutional architecture that improved the state of the art for mobile models across multiple tasks, benchmarks and model sizes. Its main contribution is one layer module, the inverted residual with linear bottleneck: a low-dimensional input is expanded to high dimension and filtered with a lightweight depthwise convolution. Features are then projected back to a low-dimensional representation with a linear convolution. The inverted part: shortcut connections run between the thin bottleneck layers rather than between expanded representations. Removing non-linearities in the narrow layers turned out to matter for keeping representational power.

The network opens with a full convolution layer with 32 filters followed by 19 residual bottleneck layers, and uses ReLU6 for its robustness under low-precision computation. With the expansion factor of 6, a bottleneck layer taking a 64-channel input and producing 128 channels has a 384-channel intermediate expansion layer. Input resolution and width multiplier are the tunable trade-off knobs; the primary network, width multiplier 1 at 224x224, costs 300 million multiply-adds and uses 3.4 million parameters. The paper also applies it to object detection in a framework called SSDLite and to mobile semantic segmentation through a reduced DeepLabv3 called Mobile DeepLabv3.

The Transformers port predicts 1001 classes rather than ImageNet-1k's 1000, the extra being a background class at index 0. Its segmentation variant uses a DeepLabV3+ head, often pretrained on datasets like PASCAL VOC. For those segmentation models, the final convolution layer of the backbone is computed even though the DeepLabV3+ head doesn't use it. The torchvision mobilenet_v2 builder constructs the same architecture from the paper and takes optional pretrained weights.

Key idea. The inverted residual with linear bottleneck: expand a thin input, filter it with a depthwise convolution, and project it back down with a linear layer.

  • mobilenetv2
  • mobilenet v2
  • mobilenet
  • inverted residual
  • linear bottleneck
  • ssdlite
  • mobile deeplabv3
  • image classification
  • google

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{sandler2019mobilenetv2invertedresidualslinear,
      title={MobileNetV2: Inverted Residuals and Linear Bottlenecks}, 
      author={Mark Sandler and Andrew Howard and Menglong Zhu and Andrey Zhmoginov and Liang-Chieh Chen},
      year={2019},
      eprint={1801.04381},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1801.04381}, 
}