# Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks

Faster networks come from raising FLOPS, not only cutting FLOPs

Jierun Chen, Shiu-hong Kao, Hao He, Weipeng Zhuo, Song Wen, Chul-Ho Lee and 1 more · arXiv · 2023-3-7

- **Problem** Cutting FLOPs does not reliably cut latency, because many cheap operators run at low FLOPS on real devices. Depthwise convolutions and the data shuffling around them are the main cause.
- **Method** FasterNet is a family of networks built on PConv, a partial convolution. PConv runs a regular convolution on a subset of channels and passes the rest through unchanged, then a pointwise layer mixes all channels.
- **Results** FasterNet-L reaches 83.5% top-1 accuracy on ImageNet-1k, on par with Swin-B, with 36% higher GPU throughput.

## Why fewer FLOPs can still mean slower inference

Latency is tied to computation through a simple ratio: the operations a network needs, divided by how many of them the device completes per second. Written out, the relation is \\\[ \\text{Latency} = \\frac{\\text{FLOPs}}{\\text{FLOPS}} \\\], where FLOPs counts operations as multiply-adds and FLOPS measures the effective speed of the device. Cutting FLOPs lowers only the numerator, so latency may not improve when FLOPS falls alongside it.

On an Intel CPU, many networks that look cheap on paper reach lower FLOPS than ResNet50. CycleMLP-B1 has about half the FLOPs of ResNet50, yet it runs in 116.1 ms against 73.0 ms for ResNet50. The authors trace this gap to depthwise and group convolutions and to the data manipulations, such as concatenation, shuffling and pooling, that accompany them, all of which run at low FLOPS.

Earlier studies had seen the same mismatch without addressing its root cause.

The paper therefore asks whether these fast networks are really fast, and it treats FLOPS as a quantity to raise alongside reducing FLOPs.

## Why depthwise convolution runs at low FLOPS

DWConv applies c filters of size k × k, where each filter slides over one input channel and produces one output channel.

The arithmetic saving does not carry over to run time, because DWConv is usually followed by a PWConv and cannot replace a regular Conv without a severe accuracy drop. To recover accuracy, the channel count is raised to c' greater than c, and the inverted residual blocks expand the width six times. Memory access then grows to \\( h \\times w \\times 2c' + k^2 \\times c' \\approx h \\times w \\times 2c' \\), while a regular Conv needs \\( h \\times w \\times 2c + k^2 \\times c^2 \\approx h \\times w \\times 2c \\).

The h × w × 2c' term is I/O that the paper treats as already close to the minimum, so the saving has to come from elsewhere, namely the redundancy of the feature maps. A visualization of an intermediate ResNet50 layer shows strong similarity across channels, and this is the observation PConv builds on.

## Partial convolution on a channel subset

PConv runs a regular Conv on a subset of the input channels and passes the remaining channels through unchanged. For contiguous memory access, the subset is taken as the first or last consecutive c\_p channels, and the input and output are assumed to have the same channel count.

Its FLOPs are \\\[ h \\times w \\times k^2 \\times c\_p^2 \\\]. The partial ratio r = c\_p / c sets the subset size, and at r = 1/4 the FLOPs are 1/16 of a regular Conv. Its memory access is \\( h \\times w \\times 2c\_p + k^2 \\times c\_p^2 \\approx h \\times w \\times 2c\_p \\), which is one quarter of the regular Conv value at r = 1/4.

Dropping the untouched channels would leave a regular Conv with fewer channels, which works against the goal of cutting redundancy. Keeping them lets the following PWConv mix information from every channel.

## Adding PWConv and the T-shaped receptive field

The PConv output is followed by a PWConv, so the untouched channels reach the output. The combined effective receptive field resembles a T, weighting the center position more than a regular Conv that treats a patch uniformly.

To test the T shape, each position of a filter F in R^{k^2 x c} is scored by its Frobenius norm across channels, \\\[ \\lVert F\_i \\rVert = \\sqrt{\\sum\_{j=1}^{c} \|f\_{ij}\|^2} \\\] and the position with the largest norm is called salient. Counting salient positions over the filters of a pre-trained ResNet18, the center position was the most frequent salient position in every stage.

The T-shaped Conv is decomposed into PConv plus PWConv because the decomposition exploits inter-filter redundancy and saves FLOPs. The T-shaped Conv costs \\( h \\times w \\times (k^2 \\times c\_p \\times c + c \\times (c - c\_p)) \\), while PConv plus PWConv costs \\( h \\times w \\times (k^2 \\times c\_p^2 + c^2) \\). The former is larger when \\( (k^2 - 1)c \> k^2 c\_p \\), for example with c\_p = c/4 and k = 3.

## FasterNet block and four-stage backbone

FasterNet has four stages, and each begins with an embedding convolution of size 4 × 4 and stride 4, or a merging convolution of size 2 × 2 and stride 2, which downsample and expand channels. The four stages run at h/4, h/8, h/16 and h/32 resolution with channel counts c1 to c4. The last two stages receive more blocks, since their memory access is lower and their FLOPS higher.

Each FasterNet block holds a PConv followed by two PWConv layers, arranged as an inverted residual block with an expanded middle layer and a shortcut. Normalization and activation sit only after the middle PWConv, since stacking them throughout the network limits feature diversity and adds latency, and BN can be merged into adjacent convolutions at inference.

GELU is used in the smaller variants and ReLU in the larger ones, chosen for running time and effectiveness. The classifier is a global average pooling, a Conv 1 × 1 and a fully connected layer. The variants T0, T1, T2, S, M and L share one architecture and differ in depth and width, with channel and block counts given per stage.

## Operator speed on GPU, CPU and ARM

Each operator was tested by stacking 10 layers and feeding feature maps of typical sizes, on a 2080Ti GPU, an Intel i9-9900X CPU and a Cortex-A72 ARM core, with CPU and ARM each using a single thread. Latency was measured with batch size 1 and throughput with batch size 32.

PConv has 1/16 the FLOPs of a regular Conv and reaches 10.5×, 6.2× and 22.8× the FLOPS of DWConv on GPU, CPU and ARM. The average FLOPS is 3274 G/s for PConv against 313 G/s for DWConv on GPU, 39.91 G/s against 6.42 G/s on CPU, and 2.73 G/s against 0.12 G/s on ARM.

The regular Conv reaches the highest FLOPS, with an average of 10151 G/s on GPU, but its total FLOPs make its latency and throughput too costly. GConv and DWConv lose most of their FLOPS, and they tend to widen channels to recover accuracy, which raises their latency.

## Approximating a regular Conv with PConv plus PWConv

Each feature map dataset was split into 70% train, 10% validation and 20% test. A small network of PConv followed by PWConv was trained with mean squared error, and DWConv+PWConv and GConv+PWConv were trained under the same setting for comparison.

PConv+PWConv reached the lowest average test loss, 0.0123, against 0.0133 for GConv+PWConv and 0.0148 for DWConv+PWConv, where lower is better. The per-stage picture is mixed: in stage 1, GConv+PWConv is slightly lower, 0.0065 against 0.0069, while in stage 3 PConv+PWConv gives 0.0172 against 0.0202 for GConv+PWConv and 0.0214 for DWConv+PWConv.

The authors read this as evidence that a part of the feature maps is enough to capture spatial features.

## ImageNet-1k accuracy against measured speed

Models were trained for 300 epochs on ImageNet-1k with AdamW, using batch size 2048 for FasterNet-M and FasterNet-L and 4096 for the others. The cosine learning rate schedule has a peak of 0.001 × batch size / 1024 and a 20-epoch linear warmup, and resolution is 192 for the first 280 epochs and 224 for the last 20. Top-1 accuracy is measured at 224 × 224 with a 0.9 crop ratio, and knowledge distillation and neural architecture search were not used.

FasterNet-T0 reached 71.9 top-1 against 69.0 for MobileViT-XXS, with 6807 fps against 2393 fps on GPU, 9.2 ms against 30.8 ms on CPU and 143 ms against 348 ms on ARM. The speed ratios are 2.8×, 3.3× and 2.4× on GPU, CPU and ARM, and FasterNet-T0 is 2.9% more accurate. The table notes that MobileViT and EdgeNeXt were evaluated at 256 × 256, while the other models used 224 × 224.

FasterNet-L reached 83.5% top-1, the same as Swin-B in the table, with 323 fps against 237 fps on GPU, which is 36% higher throughput. On CPU, FasterNet-L takes 219.5 ms against 349.2 ms for Swin-B, a saving of 37% in compute time. Against ConvNeXt-B the figures are 28% higher GPU throughput and 15% less CPU compute time. The ARM latency for FasterNet-L, Swin-B and ConvNeXt-B is out of memory.

The authors' trade-off plots place FasterNet at the top across the throughput and latency axes. The comparison groups models with similar top-1 accuracy, and many baselines use advanced training recipes, while ShuffleNetV2, MobileNetV2 and GhostNet were trained without them, which the authors call not totally fair.

## Detection and segmentation on COCO

FasterNet backbones initialized from ImageNet-1k weights were placed in Mask R-CNN and trained on COCO with AdamW, a 1× schedule of 12 epochs, and batch size 16.

FasterNet-S reached 39.9 box AP and 36.9 mask AP, against 38.0 and 34.4 for ResNet50, which the paper summarizes as +1.9 box AP and +2.4 mask AP. Its GPU latency is 54.3 ms against 54.9 ms for ResNet50.

FasterNet-L reached 44.0 box AP and 39.9 mask AP, against 42.9 and 39.5 for PVT-Large, a difference of +1.1 box AP and +0.4 mask AP. Its GPU latency is 93.8 ms against 152.2 ms for PVT-Large, a 38% reduction. The paper describes this as a comparison under similar FLOPs, but the table lists 484 G for FasterNet-L and 358 G for PVT-Large.

## Partial ratio, normalization and activation choices

On the partial ratio, the T0\* variant at r = 1/2 reached 71.7 top-1 at 6626 fps, the default T0 at r = 1/4 reached 71.9 at 6807 fps, and the T0\* variant at r = 1/8 reached 71.3. T0\* has a modified width and depth, so its rows are not directly comparable with the default T0 row. The authors say an overly large ratio would turn PConv into a regular Conv and an overly small one would weaken spatial feature capture, but only the T0 and T2 variants are shown.

T0 with BN reached 71.9 top-1 at 6807 fps, while T0 with LN reached 71.9 at 5515 fps, with CPU latency of 9.2 ms against 10.7 ms. BN can be merged into adjacent convolutions, which is why the authors chose it.

On T0, ReLU reached 71.3 top-1 with 6929 fps and 8.2 ms on CPU, while GELU reached 71.9 with 6807 fps and 9.2 ms, so GELU is more accurate and ReLU is faster in this table. On T2, ReLU reached 78.9 and GELU 78.7, so the ordering reverses for the larger variant. The authors conjecture that GELU helps the smaller variants through higher non-linearity, and that the benefit fades in larger ones.

## How PConv relates to GConv and ConvNeXt

PConv can be seen as a modified GConv that operates on a single group and leaves the other groups untouched. Per the authors, this prevents excessive memory access and reduces intra-filter redundancy beyond the inter-filter redundancy that GConv already reduces.

FasterNet resembles ConvNeXt after replacing DWConv with PConv, but the authors append PWConv after PConv to aggregate information from all channels, whereas ConvNeXt was designed by trial and error. PConv also removes the activation functions from the middle of PConv and PWConv to minimize the error in approximating a regular Conv.

## Limitations

PConv must use stride 1 so that its output aligns with the untouched channels, and downsampling is handled by separate layers in the architecture. FasterNet is built only from convolutional operators, so its receptive field may be limited, and the authors name enlarging it and combining it with other operators as future work.

Latency was measured on one GPU, one single-threaded Intel CPU and one single-threaded ARM core. Several compared baselines were trained with advanced recipes that differ from the FasterNet recipe, and MobileViT and EdgeNeXt were measured at a different resolution.

The ablation shows only two examples, T0 and T2, and pruning, neural architecture search and knowledge distillation were not applied.

## Paper info

- **Authors**: Jierun Chen, Shiu-hong Kao, Hao He, Weipeng Zhuo, Song Wen, Chul-Ho Lee, S. -H. Gary Chan
- **Venue**: arXiv · Preprint
- **First published**: 2023-3-7
- **Added**: 2026-11-12
- **Updated**: 2023-5-21
- **Version**: v3
- **arXiv**: 2303.03667
- **Category**: cs.CV
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info and commentary

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

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

Jierun Chen, Shiu-hong Kao, Hao He, Weipeng Zhuo, Song Wen, Chul-Ho Lee, S. -H. Gary Chan (2023). Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks. arXiv:2303.03667v3. https://arxiv.org/abs/2303.03667v3

**BibTeX**

```
@misc{chen2023walk,
  title = {{Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks}},
  author = {Jierun Chen and Shiu-hong Kao and Hao He and Weipeng Zhuo and Song Wen and Chul-Ho Lee and S. -H. Gary Chan},
  year = {2023},
  eprint = {2303.03667},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.03667v3}
}
```

## Other paper commentary

- [An All-in-One Network for Dehazing and Beyond](https://refivu.com/en/papers/03c50633-ad40-4af4-b88a-e6cb99e97639-an-all-in-one-network-for-dehazing-and.md)
- [SmoothGrad: removing noise by adding noise](https://refivu.com/en/papers/ab609ae7-27e3-4473-bc00-e8bc5f0e8a91-smoothgrad-removing-noise-by-adding-noise.md)
- [Fine-Grained Visual Classification of Aircraft](https://refivu.com/en/papers/3543af61-7a52-4fb1-ac78-312fdda48697-fine-grained-visual-classification-of-aircraft.md)
- [Vision Transformers for Dense Prediction](https://refivu.com/en/papers/9b71a7ee-e2ab-43e8-a6e8-d9dd244b9be7-vision-transformers-for-dense-prediction.md)
- [CyCADA: Cycle-Consistent Adversarial Domain Adaptation](https://refivu.com/en/papers/86c1af43-2e3a-459f-87e6-d7c0653694a6-cycada-cycle-consistent-adversarial-domain-adaptation.md)
- [The Open Images Dataset V4: Unified image classification, object detection, and visual relationship detection at scale](https://refivu.com/en/papers/a257d9ea-aed6-4a9a-9d02-5e4c50a42a90-the-open-images-dataset-v4-unified-image-classification.md)
- [All-Optical Machine Learning Using Diffractive Deep Neural Networks](https://refivu.com/en/papers/818615cb-8c22-447c-a0a6-77954575b98a-all-optical-machine-learning-using-diffractive-deep-neural.md)
- [Beyond Part Models: Person Retrieval with Refined Part Pooling (and a Strong Convolutional Baseline)](https://refivu.com/en/papers/0d7a16fd-c14e-49e6-938f-2cdeb51ea5a4-beyond-part-models-person-retrieval-with-refined-part.md)
- [Digging Into Self-Supervised Monocular Depth Estimation](https://refivu.com/en/papers/501b9eb4-7fd4-43f0-8b68-eaaf0aab3b71-digging-into-self-supervised-monocular-depth-estimation.md)

## Terms in this paper

- [COCO](https://refivu.com/en/terms/41f3215c4f4a-coco)
- [Top-1 accuracy](https://refivu.com/en/terms/653c0b9eaa58-top-1-accuracy)
- [ReLU](https://refivu.com/en/terms/7b22f5612f6c-relu)
- [Mask R-CNN](https://refivu.com/en/terms/6da881f24c0c-mask-r-cnn)
- [Image classification](https://refivu.com/en/terms/e15c43f3bb32-image-classification)
- [FLOPs](https://refivu.com/en/terms/14c405888d5b-flops)
- [ImageNet-1K](https://refivu.com/en/terms/d8d6444bd460-imagenet-1k)
- [Latency](https://refivu.com/en/terms/884c3275b80a-latency)
- [GELU](https://refivu.com/en/terms/8897c492bcfe-gelu)
- [throughput](https://refivu.com/en/terms/f064ae564aec-throughput)
- [average precision (AP)](https://refivu.com/en/terms/5ded7cefa324-average-precision-ap)
- [Frobenius norm](https://refivu.com/en/terms/8b20cfffe432-frobenius-norm)
- [Batch Normalization (BN)](https://refivu.com/en/terms/466eb6623905-batch-normalization-bn)
- [AdamW optimizer](https://refivu.com/en/terms/390ee6da73bf-adamw-optimizer)
- [pointwise convolution](https://refivu.com/en/terms/e2e363ace348-pointwise-convolution)
- [ResNet50](https://refivu.com/en/terms/b9ab4b71c5b5-resnet50)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/dffa1011-36cd-44c9-b21a-c10cc00af851-run-don-t-walk-chasing-higher-flops-for)
