Skip to content
StackDecode
AI & ML Atlas
Deep LearningarchitectureInteractive simulation

MobileNet

Light CNNs for phones, built from depthwise separable convolutions.

The idea

A standard convolution mixes space and channels at once. MobileNet splits it: a depthwise convolution filters each channel separately, then a 1×1 pointwise convolution mixes channels. This does nearly the same job with roughly 8–9× fewer multiplications for 3×3 kernels. Later versions add inverted residual blocks.

cost ratio ≈ 1/N + 1/k²

Watch it run

This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.

Plain deep networkWith skip connections (ResNet)out12345678910111213141516171819in
  • plain
  • with skip connections

The learning signal (gradient) starts at the output and travels backwards through 20 layers. Bar height shows its size at each layer on a log scale.

layers back:
0
1/7

A residual block computes x + F(x). The "+ x" is a shortcut the gradient can travel along.

Step by step

  1. 1Apply a 3×3 depthwise convolution to each channel separately.
  2. 2Apply a 1×1 pointwise convolution to mix the channels.
  3. 3Add batch norm and ReLU6.
  4. 4Optionally scale the network with width and resolution multipliers.

Where it is used

On-device vision: phones, drones, embedded cameras.

Watch out for

Slightly lower accuracy than large networks.

Related