Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design

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

  • 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
What we show
Paper info and commentary

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

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up