All models

mobilenet_v2 (image classification)

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

Image classification · 205 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 (20 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
2.2M
Operations
205
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:image-classification
License
Apache-2.0
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
m7321
Graph hash
2fce45f0317825cecc5a161d61a357f20c2599953a749f21d96e5a6fd72502ef
Skeleton hash
570a8ae6a6c98804f2a69ae6e67094df14ab0f4a0b69b74f45b9c6f9d969e156
Architecture hash
46178646bcd5a1da48c5ab6e3b99513f4c418577f0e674d0032132cb15eb7dcc
Diagram SHA-256
792c18ada548959a95ab5b12dad1616f8f98508f516703c2f62e3c579513c5ca
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

transformers.AutoModelForImageClassification.from_config()

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