# ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices

ShuffleNet groups pointwise convolutions and shuffles channels for mobile speed

Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, Jian Sun · arXiv · 2017-7-4

- **Problem** Dense pointwise convolutions use most multiply-adds in ResNeXt units, leaving tiny networks few channels. Grouping them cuts cost but stops information crossing channel groups.
- **Method** ShuffleNet groups the 1×1 layers instead of keeping them dense, then shuffles channels so each next group gets channels from every previous group.
- **Results** At 40 MFLOPs on ImageNet, ShuffleNet gets absolute 7.8% lower top-1 error than MobileNet.

## Why dense 1×1 layers stall tiny networks

Most accurate CNNs run to billions of FLOPs, but this work targets budgets of tens or hundreds of MFLOPs on drones, robots and phones. At that scale, Xception and ResNeXt lose efficiency because their dense 1×1 convolutions cost too much. In a ResNeXt residual unit with cardinality 32, pointwise convolutions take 93.4% of the multiply-adds.

Under a tight complexity limit, that cost leaves few channels, which can badly hurt accuracy.

A natural fix is to make the 1×1 layers group convolutions too, since each group then reads only its own channels. The catch appears when several group convolutions are stacked, because an output channel only sees the inputs of its own group. So information stops flowing across channel groups, and the representation weakens.

## Grouped 1×1 layers with a channel shuffle

The key idea is to make the 1×1 layers group convolutions and then shuffle channels, so each next group receives channels from every previous group. The authors argue that the shuffle makes input and output channels fully related again. Concretely, the g × n output channels of a grouped layer are reshaped into a g by n grid, transposed, and flattened again.

The shuffle is differentiable, so it can sit inside a network trained end to end. It still takes effect when the two convolutions use different numbers of groups.

## Assembling the ShuffleNet unit and network

The unit starts from a ResNet bottleneck and keeps its residual branch. Its 3×3 layer becomes a depthwise convolution on the bottleneck feature map. The first 1×1 layer is replaced by pointwise group convolution followed by channel shuffle, and a second pointwise group convolution restores the channels for the shortcut. The authors skip a shuffle after the second pointwise layer, since it gave comparable scores.

For stride 2, a 3×3 average pooling is added on the shortcut, and channel concatenation replaces addition.

For an input of size c × h × w with bottleneck width m, the ResNet unit costs \\( hw(2cm + 9m^2) \\) FLOPs. The ResNeXt unit costs \\( hw(2cm + 9m^2/g) \\), while the ShuffleNet unit costs \\( hw(2cm/g + 9m) \\). The 1×1 terms shrink by a factor of g, so a fixed budget buys wider feature maps.

The network stacks units into three stages, and the first block of each stage uses stride 2. Channels double from one stage to the next, and the bottleneck is one quarter of the output width. Table 1 varies g and adjusts widths so the total stays near 140 MFLOPs. A scale factor s on the channel counts gives roughly s^2 times the complexity of ShuffleNet 1×.

## Effect of the group number

The authors compare group numbers from 1 to 8 at three width scales, with g = 1 as the control without pointwise groups. The gaps grow for smaller models, reaching 3.5 and 4.4 points at 0.5× and 0.25×.

The authors hypothesize that the gain comes from wider feature maps, which fit more channels into the same budget. With more groups, each filter sees fewer input channels, which the authors suggest can harm representation. For 0.25×, however, larger group numbers kept helping, which the authors read as thin networks gaining most from width.

## Channel shuffle against no shuffle

Table 3 compares the same ShuffleNet settings with and without the shuffle at g = 3 and g = 8. The largest gains come at g = 8, where the 0.5× model improves by 5.8 points and the 1× model by 5.2 points.

The authors read this as evidence that cross-group exchange matters more as the number of groups grows.

## Against other building blocks

The authors swap the ShuffleNet units in Stages 2 to 4 for other blocks and adjust channels to keep complexity fixed. ResNeXt was set to cardinality 16 with a 1:2 bottleneck ratio, following the ResNeXt work.

The authors connect this to channel counts: at 38 MFLOPs, Stage 4 has 50, 192, 192, 288 and 576 channels for VGG-like, ResNet, ResNeXt, Xception-like and ShuffleNet. They argue that more channels for the same budget explain the accuracy trend.

## ImageNet comparison with MobileNet

Table 5 pairs each MobileNet width with a ShuffleNet of similar cost on ImageNet.

The authors also compare with PVANET, which they reimplemented at 224×224 input, scoring 29.7% at 557 MFLOPs. ShuffleNet 2× (g = 3) scored 26.3% at 524 MFLOPs in the same comparison.

## Transfer to MS COCO detection

The authors use Faster-RCNN, trained on COCO train+val without the 5000 minival images and tested on minival. Two input sizes were used, 300× and 600× image size. ShuffleNet 2× (g = 3) reached 18.7% mAP at 300× and 25.0% at 600×.

The MobileNet paper reports 16.4% and 19.8% for MobileNet 1.0, while the authors' reimplementation scored 14.9% and 19.3%. The reimplementation used the same fine-tuning settings as the ShuffleNet models, so that pair is the more even comparison. ShuffleNet 1× (g = 3) reached 19.8% at 600×, matching the reported MobileNet figure with roughly 4 times less complexity.

## Measured speed on a mobile processor

The speed tests ran on a single Qualcomm Snapdragon 820 processor, single thread, at 224×224, 480×640 and 720×1280 inputs. At 224×224, ShuffleNet 0.5× (g = 3) took 15.2 ms, compared to 184.0 ms for AlexNet.

The authors therefore treat actual speed measurement as critical for low-cost architecture design.

## Limitations

Depthwise convolution is hard to run efficiently on low-power mobile devices, which the authors link to a worse computation to memory access ratio. Larger group numbers, g = 4 or 8, usually gave better accuracy but ran less efficiently in the authors' implementation. Speed was measured on one ARM-based processor, the Snapdragon 820.

Small Inception-style models were not built, since the authors found the Inception design had too many hyper-parameters to shrink. The authors note that further hyper-parameter tuning might improve the reference design, which they kept simple. Detection was tested only with Faster-RCNN on MS COCO.

## Paper info

- **Authors**: Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, Jian Sun
- **Venue**: arXiv · Preprint
- **First published**: 2017-7-4
- **Added**: 2026-11-11
- **Updated**: 2017-12-7
- **Version**: v2
- **arXiv**: 1707.01083
- **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/1707.01083v2) · [PDF ↗](https://arxiv.org/pdf/1707.01083v2)

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

Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, Jian Sun (2017). ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices. arXiv:1707.01083v2. https://arxiv.org/abs/1707.01083v2

**BibTeX**

```
@misc{zhang2017shufflenet,
  title = {{ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices}},
  author = {Xiangyu Zhang and Xinyu Zhou and Mengxiao Lin and Jian Sun},
  year = {2017},
  eprint = {1707.01083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.01083v2}
}
```

## Other paper commentary

- [Path Aggregation Network for Instance Segmentation](https://refivu.com/en/papers/a3658986-d50d-4da4-997a-1b69d8a09d76-path-aggregation-network-for-instance-segmentation.md)
- [EfficientDet: Scalable and Efficient Object Detection](https://refivu.com/en/papers/bea70d85-5dca-48dc-8e51-707923164b9b-efficientdet-scalable-and-efficient-object-detection.md)
- [Rethinking Atrous Convolution for Semantic Image Segmentation](https://refivu.com/en/papers/d417603b-a8c0-438a-8aaf-2a2da3403f74-rethinking-atrous-convolution-for-semantic-image.md)
- [Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms](https://refivu.com/en/papers/a95484f1-3372-4671-ab1c-c9d084962641-fashion-mnist-a-novel-image-dataset-for-benchmarking.md)
- [Searching for MobileNetV3](https://refivu.com/en/papers/0831f87e-094f-403b-b55b-27cf192fd9c4-searching-for-mobilenetv3.md)
- [UNet++: A Nested U-Net Architecture for Medical Image Segmentation](https://refivu.com/en/papers/156db9ed-e303-494d-af9e-c37b8715a287-unet-a-nested-u-net-architecture-for-medical.md)
- [DeepWalk: Online Learning of Social Representations](https://refivu.com/en/papers/dd05ed66-43b8-4f25-93ca-264ea076a439-deepwalk-online-learning-of-social-representations.md)
- [Gemini: A Family of Highly Capable Multimodal Models](https://refivu.com/en/papers/210f7673-6e80-4763-9ef2-d58f1a878648-gemini-a-family-of-highly-capable-multimodal-models.md)
- [Enriching Word Vectors with Subword Information](https://refivu.com/en/papers/c9e8d8e6-e24f-4128-8771-cadeb8b6c17e-enriching-word-vectors-with-subword-information.md)

## Terms in this paper

- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [FLOPs](https://refivu.com/en/terms/14c405888d5b-flops)
- [MS COCO](https://refivu.com/en/terms/1a7c38d39825-ms-coco)
- [Inference time](https://refivu.com/en/terms/e758873451fd-inference-time)
- [Depthwise separable convolution](https://refivu.com/en/terms/63e4d9cf94c7-depthwise-separable-convolution)
- [depthwise convolution](https://refivu.com/en/terms/c55d5ba28fdb-depthwise-convolution)
- [channel shuffle](https://refivu.com/en/terms/d268cb266034-channel-shuffle)
- [group convolution](https://refivu.com/en/terms/6d283087db77-group-convolution)
- [pointwise group convolution](https://refivu.com/en/terms/7d13c4a83657-pointwise-group-convolution)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/5e319185-7793-46fa-a04c-1eefe3a80e23-shufflenet-an-extremely-efficient-convolutional-neural)
