# ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design

Speed on the target platform, not FLOPs, should guide efficient CNN design

Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, Jian Sun · arXiv · 2018-7-30

- **Problem** FLOPs is an indirect metric, so networks with similar FLOPs can run at very different speeds. Memory access cost and platform parallelism also matter, and FLOPs ignores them.
- **Method** ShuffleNet V2 splits each block's input channels into two branches and keeps channel widths equal. It also swaps the Add operation for a channel shuffle, which lets the two branches exchange information.
- **Results** At 40M FLOPs, ShuffleNet V2 was 3.5% more accurate than ShuffleNet v1, and it runs faster on GPU than MobileNet v2 at 500 MFLOPs.

## Why FLOPs misjudges speed

The usual yardstick for a lightweight CNN is FLOPs, which this paper counts as multiply-adds. FLOPs stands in for speed or latency, the quantities practitioners actually care about, but it only approximates them. The gap shows up when two networks with similar FLOPs run at clearly different speeds.

The authors point to two reasons for this gap, and the first is memory access cost. Memory access can take a large share of runtime in operations such as group convolution, and it can become the bottleneck on hardware with strong compute, such as GPUs. The second reason is parallelism, because a model with more parallel work can run much faster than another model with the same FLOPs.

Even identical FLOPs can take different time, since the platform decides which operations are fast.

A prior study found that a tensor decomposition cut FLOPs by 75% yet ran slower on GPU. The authors trace this to cuDNN being specially optimized for 3×3 convolutions, so a 3×3 convolution isn't simply nine times slower than a 1×1 one. They conclude that the direct metric, speed measured on the target platform, should guide design in place of FLOPs.

## Four guidelines from runtime measurements

The analysis begins by splitting the runtime of ShuffleNet v1 and MobileNet v2 by operation type. Convolution takes most of the time, but data I/O, channel shuffle and element-wise operations such as ReLU and tensor addition also take a considerable share. Because FLOPs ignores that share, the authors turn to controlled benchmarks to derive design rules.

The first guideline concerns 1×1 convolutions, which account for most of the complexity in these networks. For input channels c1 and output channels c2 on an h×w feature map, the FLOPs are \\(B = hwc\_1c\_2\\). The memory access cost is \\(MAC = hw(c\_1+c\_2)+c\_1c\_2\\), which counts the feature maps and the kernel weights. A mean value inequality gives MAC a lower bound set by FLOPs, and that bound is reached when c1 and c2 are equal.

Real caches and libraries don't follow this ideal exactly, so the measured speeds decide the question.

On GPU, the ×1 configuration ran at 1480 batches/sec with c1:c2 at 1:1. It fell to 748 batches/sec at 1:12, while the total FLOPs stayed fixed. So balanced channel widths run faster at the same FLOPs, which fits the idea that equal widths keep memory traffic low.

The second guideline concerns group convolution, which cuts FLOPs by connecting channels only within groups. More groups let a network use more channels at the same FLOPs, but the same change raises MAC. For a fixed input and a fixed computational cost, MAC grows with the group number. On GPU, 8 groups ran at 634 batches/sec at ×1, compared to 2451 for a single group at the same FLOPs.

Eight groups were more than twice as slow as dense convolution on GPU and up to 30% slower on ARM.

The third guideline targets fragmentation, where a block uses many small multi-path operators instead of a few large ones. NASNET-A has 13 fragmented operators in one building block, while regular structures like ResNet have 2 or 3. Fragmentation hurts on GPU because many small operators reduce parallel work and add launch and synchronization overhead.

In the benchmark, the 4-fragment structure ran about 3 times slower than the 1-fragment structure on GPU, with a smaller drop on ARM.

The fourth guideline says element-wise operations matter even though their FLOPs are small. Depth-wise convolution counts as one of them, because its MAC to FLOPs ratio is high. To test this, the ResNet bottleneck block was modified by removing its ReLU and its shortcut, one at a time. Removing them gave around 20% speedup on both GPU and ARM.

Together the four guidelines say an efficient network should keep channel widths balanced, limit group convolution, reduce fragmentation and cut element-wise operations.

## How the ShuffleNet V2 block is built

Each unit starts with a channel split that divides the c input channels into two branches of c−c′ and c′ channels. One branch stays as an identity, so part of the features passes through untouched. The other branch runs three convolutions whose input and output channel counts match, which follows the equal-width guideline. Its two 1×1 convolutions are not group-wise, partly to respect the second guideline and partly because the split already creates two groups.

A channel shuffle then lets the two branches exchange information before the next unit begins. The Add operation from ShuffleNet v1 is gone, and element-wise operations like ReLU and depth-wise convolution sit in only one branch. Concat, channel shuffle and channel split are merged into a single element-wise step.

For spatial downsampling the channel split is removed, so the unit's output channels double. The authors say the resulting unit follows all four guidelines.

## Network assembly and feature reuse

The blocks are stacked in a layout close to ShuffleNet v1's, following the stage structure in the overall architecture table. The one addition is an extra 1×1 convolution before global average pooling, which mixes features.

With c′ = c/2, half of the channels pass through each block and join the next one. The authors read this as a form of feature reuse, similar in spirit to DenseNet and CondenseNet. With c′ = c/2 the ratio is 0.5, and the resulting pattern resembles the one plotted for DenseNet. The reuse pattern is built into the structure by design, and the authors check its benefit in experiments.

## ImageNet accuracy against FLOPs

The networks are compared at four complexity levels of roughly 40, 140, 300 and 500+ MFLOPs, under the ShuffleNet v1 protocol. Results are top-1 error on the ImageNet validation set with a single center crop. At the 40M FLOPs level, the paper reports ShuffleNet V2 as 3.5% more accurate than ShuffleNet v1 and 3.7% more accurate than MobileNet v2.

At 0.5×, ShuffleNet v2 at 41 MFLOPs scored 39.7 top-1 error. ShuffleNet v1 at 0.5× (g=3) at 38 MFLOPs scored 43.2, so the two models sit at nearly the same budget. At 2×, ShuffleNet v2 at 591 MFLOPs scored 25.1, compared to 25.3 for MobileNet v2 1.4 at 585 MFLOPs. The gap is small at that level, and the authors say the advantage is largest under smaller budgets.

MobileNet v2 performs poorly at 40 MFLOPs with 224×224 input. The authors attribute this to too few channels, which their more efficient block avoids. Their own reimplementation of MobileNet v2 at 500+ MFLOPs scored 26.7 error, compared to 25.3 in the original paper. Table 8 also includes CondenseNet, IGCV2 and IGCV3, and the authors say ShuffleNet V2 performs better across complexity levels.

## Speed on GPU and ARM

Speed was measured on a GTX 1080Ti GPU with batch size 8 and on a Snapdragon 810 ARM device with batch size 1. At 500 MFLOPs, ShuffleNet V2 was 58% faster than MobileNet v2, 63% faster than ShuffleNet v1 and 25% faster than Xception on GPU. The authors say the GPU gap is clearest, which fits the guidelines they derived.

On ARM, ShuffleNet v1, Xception and ShuffleNet V2 run at comparable speeds. MobileNet v2 is much slower there, especially at smaller FLOPs. The authors attribute this to MobileNet v2's higher memory access cost, which matters on mobile devices.

MobileNet v1 is the exception on GPU, running faster than all counterparts despite lower accuracy. The 0.5 MobileNet v1 at 149 MFLOPs ran at 382 batches/sec, compared to 341 for ShuffleNet v2 1× at 146 MFLOPs. The authors explain this by MobileNet v1 meeting most guidelines, with fewer fragments than ShuffleNet v2. Auto-generated models are relatively slow, which the authors trace to heavy fragmentation.

## COCO detection and large models

For detection, the backbones in Light-Head RCNN are replaced with ShuffleNet V2 and fine-tuned on COCO. At 40M FLOPs, ShuffleNet V2 reached 22.5 mmAP, compared to 21.9 for Xception, 20.9 for ShuffleNet v1 and 20.7 for MobileNet v2. Xception ranks above ShuffleNet v1 and MobileNet v2 on detection, though it ranks lower on classification. The authors suggest that the larger receptive field of Xception blocks, 7 against 3, explains this.

Following that idea, the authors add a 3×3 depth-wise convolution before the first pointwise convolution in each block. This variant, ShuffleNet v2\*, reached 23.7 mmAP at 40M FLOPs. On GPU with batch size 4, the authors report ShuffleNet V2 around 40% faster than ShuffleNet v1 and 16% faster than MobileNet v2.

For large models, ShuffleNet v2-50 at 2.3G FLOPs reached 22.8 top-1 error. ResNet-50 at 3.8G FLOPs scored 24.0 in the same table. The authors say ShuffleNet v2-50 surpasses ResNet-50 with 40% fewer FLOPs. That deeper model needed an added residual path to converge faster.

## Limits of the evidence

Speed numbers come from one GTX 1080Ti and one Snapdragon 810, so they describe those two platforms. The authors call the guidelines platform independent, yet they validated them on GPU and ARM only. They also note that the desirable properties depend on platform characteristics such as memory handling and code optimization.

Detection speed was not measured on ARM, because the PSRoI Pooling operation is unavailable there. CondenseNet has no speed measurement, since no efficient implementation exists. The MobileNet v2 numbers from the authors' own reimplementation differ from the published ones.

The authors leave open how to enlarge the receptive field for detection, which they tie to high-resolution images. They suggest combining model search with these guidelines and measuring speed on the target platform, but they did not test this.

## Paper info

- **Authors**: Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, Jian Sun
- **Venue**: arXiv · Preprint
- **First published**: 2018-7-30
- **Added**: 2026-11-11
- **Updated**: 2018-7-30
- **Version**: v1
- **arXiv**: 1807.11164
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1807.11164v1) · [PDF ↗](https://arxiv.org/pdf/1807.11164v1)

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

Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, Jian Sun (2018). ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design. arXiv:1807.11164v1. https://arxiv.org/abs/1807.11164v1

**BibTeX**

```
@misc{ma2018shufflenet,
  title = {{ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design}},
  author = {Ningning Ma and Xiangyu Zhang and Hai-Tao Zheng and Jian Sun},
  year = {2018},
  eprint = {1807.11164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.11164v1}
}
```

## Other paper commentary

- [Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding](https://refivu.com/en/papers/7b8d214e-c983-4cf0-910e-176f0c996770-deep-compression-compressing-deep-neural-networks-with.md)
- [Communication-Efficient Learning of Deep Networks from Decentralized Data](https://refivu.com/en/papers/67777aca-9be4-4537-8568-875c944fceee-communication-efficient-learning-of-deep-networks-from.md)
- [Uncovering near-wall blood flow from sparse data with physics-informed neural networks](https://refivu.com/en/papers/5532e81a-0a00-4722-b226-e72f33cb333a-uncovering-near-wall-blood-flow-from-sparse-data.md)
- [Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformers](https://refivu.com/en/papers/e1ad5f0d-a89a-4cb3-8342-dd757fe4cb2a-adaptive-fourier-neural-operators-efficient-token-mixers-for.md)
- [MoE-LLaVA: Mixture of Experts for Large Vision-Language Models](https://refivu.com/en/papers/fb693097-da32-48e7-b5d7-5855f63c8534-moe-llava-mixture-of-experts-for-large-vision.md)
- [SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot](https://refivu.com/en/papers/98e70bdf-a832-4686-b3f8-e3eefd5887c4-sparsegpt-massive-language-models-can-be-accurately-pruned.md)
- [Cascade R-CNN: Delving into High Quality Object Detection](https://refivu.com/en/papers/8374d444-20db-4d12-9b4c-6fa3eca5e1d6-cascade-r-cnn-delving-into-high-quality-object.md)
- [Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Network](https://refivu.com/en/papers/c2c293f4-dc72-4731-8795-3cf7b87f96e1-real-time-single-image-and-video-super-resolution.md)
- [DINOv2: Learning Robust Visual Features without Supervision](https://refivu.com/en/papers/7e38faf5-df28-456e-b030-fb3b41cff096-dinov2-learning-robust-visual-features-without-supervision.md)
- [Deformable Convolutional Networks](https://refivu.com/en/papers/578e91c5-050a-4482-bf73-97db86a8865f-deformable-convolutional-networks.md)
- [Graph Neural Networks: A Review of Methods and Applications](https://refivu.com/en/papers/a985ee6a-3fda-41af-b6ea-0451377e5861-graph-neural-networks-a-review-of-methods-and.md)
- [Distributed Representations of Sentences and Documents](https://refivu.com/en/papers/f945f364-5ce3-4c12-bc05-c40bf55f4f8d-distributed-representations-of-sentences-and-documents.md)

## Terms in this paper

- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [FLOPs](https://refivu.com/en/terms/14c405888d5b-flops)
- [Top-1 Error](https://refivu.com/en/terms/2cd2d3a429ea-top-1-error)
- [channel shuffle](https://refivu.com/en/terms/d268cb266034-channel-shuffle)
- [depth-wise convolution](https://refivu.com/en/terms/e7499edf2a0d-depth-wise-convolution)
- [ImageNet 2012](https://refivu.com/en/terms/fd4401892143-imagenet-2012)
- [Inference Speed](https://refivu.com/en/terms/782b4bb7700b-inference-speed)
- [feature reuse](https://refivu.com/en/terms/7b9577740a4f-feature-reuse)
- [group convolution](https://refivu.com/en/terms/6d283087db77-group-convolution)
- [MobileNet v2](https://refivu.com/en/terms/515cb6f9d457-mobilenet-v2)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/d1e3c93e-79dc-4e3d-a949-2f726da0b409-shufflenet-v2-practical-guidelines-for-efficient-cnn)
