All models

quantized_mobilenet_v2

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

Image classification · 165 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 (35 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
165
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
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
m8499
Graph hash
4b8f5ac3ad0b6621b3d7a01e799c4af77210cc517d7e160868200e2784a44f96
Skeleton hash
41e66665dfa83ce5c32d31d9b7ea828ea33f5bcd57c3e63bdf6a0201e53ee756
Architecture hash
58a6f24a5a6d44da2391606a36a09c4235895652d37f74e434133b3706b8cd29
Diagram SHA-256
22d7ec886c4962cae86a1980f62a8e3a61db7bd079d97fdd44c6c759ebeb0181
TorchLens version
2.35.3
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('quantized_mobilenet_v2', weights=None, quantize=False)

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}, 
}