# GhostNet: More Features from Cheap Operations

Ghost modules generate extra feature maps from cheap linear operations

Kai Han, Yunhe Wang, Qi Tian, Jianyuan Guo, Chunjing Xu, Chang Xu · arXiv · 2019-11-27

- **Problem** Convolutions spend many FLOPs and parameters on feature maps, and many of those maps are near copies of one another. Compressing a trained network is limited by the model it starts from.
- **Method** GhostNet replaces ordinary convolutions with Ghost modules. A small primary convolution makes intrinsic maps, then cheap per-channel linear operations and an identity branch add the remaining maps.
- **Results** GhostNet 1.3× reached 75.7 top-1 on ImageNet with 226M FLOPs, against 75.2 for MobileNetV3 Large 1.0× at 219M.

## Why redundant feature maps are worth reusing

Accurate CNNs are expensive to run: ResNet-50 has about 25.6M parameters and needs 4.1B FLOPs to process a 224×224 image. The cost comes from the convolutions themselves. A layer that produces n maps from c input channels spends \\(n \\cdot h' \\cdot w' \\cdot c \\cdot k \\cdot k\\) FLOPs, which reaches hundreds of thousands when n and c are 256 or 512.

The authors look at the maps a trained network actually produces. In the first residual group of ResNet-50, several pairs of maps look as if one is a cheap transformation of the other. They treat this redundancy as a property to keep, not one to remove, and aim to get these maps at a lower cost.

Pruning, low-bit quantization and knowledge distillation shrink a network, but their results are bounded by the pre-trained model they start from.

## Ghost module: a few convolutions plus cheap maps

The Ghost module splits an ordinary convolutional layer in two. The first part is a primary convolution with m filters, where m is at most n, and its kernel, stride and padding match the ordinary layer so the spatial size of the output stays the same. With the input X and the primary filters f′, this gives \\(Y' = X \* f'\\), so m intrinsic feature maps Y′ are produced before any cheap step.

Each intrinsic map y′\_i then goes through s−1 cheap linear operations Φ\_{i,j}, producing ghost feature maps, and the last step is an identity mapping that keeps y′\_i in the output. The output has \\(n = m \\cdot s\\) maps, and because the linear operations work on one channel at a time, their cost is much lower than that of an ordinary convolution.

The kernel size d of the linear operations is fixed as a hyperparameter instead of being learned per filter, since irregular module shapes reduce the efficiency of CPU and GPU computation. Inside one Ghost module the linear operations share one size, such as 3×3 or 5×5, which keeps the implementation efficient on CPU or GPU hardware. Convolution is used for the linear operations because hardware already supports it well and it covers operations such as smoothing and blurring, although affine and wavelet transformations are mentioned as other low-cost options.

Compared with MobileNet and ShuffleNet units, the primary convolution here can use a customized kernel size, not only 1×1 pointwise. Those units apply pointwise convolution across channels and then depthwise convolution spatially, while the Ghost module applies an ordinary convolution first and then cheap linear operations to add channels, and the identity branch runs in parallel with them.

## How much computation the Ghost module saves

The module contains one identity mapping and m·(s−1) linear operations, which equals n/s times (s−1), and each linear operation has an averaged kernel size of d×d. The authors derive a theoretical speed-up ratio \\(r\_s\\) (their Eq. 4) and a compression ratio \\(r\_c\\) (their Eq. 5), and both approximate to s when s is much smaller than c and d×d has the same magnitude as k×k.

These ratios count FLOPs and parameters analytically, so they are not measured latencies on hardware. The authors also note that letting each linear operation take a different shape would obstruct efficient online inference, which is why one kernel size per module is recommended.

## Ghost bottlenecks and the GhostNet layout

A Ghost bottleneck stacks two Ghost modules. The first one expands the channel count, the second reduces it to match the shortcut, and the shortcut connects the input and output of the pair, which resembles the basic residual block of ResNet. Batch normalization and ReLU follow each layer, except that ReLU is dropped after the second Ghost module, as in MobileNetV2.

For stride 2, the shortcut goes through a downsampling layer, and a depthwise convolution with stride 2 sits between the two Ghost modules. The primary convolution in these bottlenecks is pointwise, chosen for efficiency.

GhostNet takes the MobileNetV3 architecture and replaces its bottleneck blocks with Ghost bottlenecks. A global average pooling and a convolution then produce a 1280-dimensional feature vector, and SE modules are placed in some bottlenecks. Hard-swish is not used because of its latency.

A width multiplier α scales the channel count of every layer, giving GhostNet-α×. Because the cost scales roughly with α², α controls model size and computation, and smaller values give lower latency and lower accuracy.

## Toy check on ResNet-50 feature pairs

Three pairs from Figure 1 were taken from the first residual block of ResNet-50. For each pair a small depthwise convolution maps the feature on the left to the one on the right, and the reconstruction error is measured by mean squared error with kernel sizes d from 1 to 7.

The authors read these small errors as strong correlation between feature maps, so the redundant maps could come from a few intrinsic maps. This check measures reconstruction of one map from another, not classification accuracy.

## Choosing d and s on CIFAR-10

The analysis uses a VGG-16 variant with every convolutional layer replaced by a Ghost module, trained on CIFAR-10 with training settings that follow the ResNet setup.

The authors attribute the weaker d=1 result to 1×1 kernels being unable to bring spatial information into the maps, and the weaker larger kernels to overfitting and extra computation.

Larger s lowers FLOPs substantially while accuracy falls gradually, and at s=2 the authors report slightly higher accuracy than the original model.

## CIFAR-10 comparison with compressed models

The authors describe the VGG-16 result as a slight accuracy gain at a 2× acceleration, and they note that the Ghost model is ahead of the listed competitors with the highest accuracy while using far fewer FLOPs.

The authors describe this as comparable accuracy to the baseline with a 2× speed-up.

The feature maps of the second layer of Ghost-VGG-16 are visualized in Figure 4 and compared with those of vanilla VGG-16 in Figure 5. The authors state that the maps from the cheap transformations differ significantly from the primary maps.

## ResNet-50 compression on ImageNet

All convolutional layers of ResNet-50 are replaced by Ghost modules, and the models are trained with the same settings as the original ResNet-50. The baseline reached 75.3 top-1 and 92.2 top-5 with 25.6M weights and 4.1B FLOPs.

With s=2, Ghost-ResNet-50 has 13.0M weights and 2.2B FLOPs and reached 75.0 top-1 and 92.3 top-5, which the authors describe as about 2× acceleration and compression with accuracy maintained. At the same 2× setting, the table lists Thinet at 72.1 top-1, NISP at 90.8 top-5, Versatile at 74.5 top-1 and SSS at 74.2 top-1, all below 75.0.

With s=4, Ghost-ResNet-50 has 6.5M weights and 1.2B FLOPs, with 74.1 top-1 and 91.9 top-5. The text describes a 0.3% accuracy drop at this setting and about 4× speed-up. In Table 6, 0.3 matches the top-5 difference from 92.2 to 91.9, while top-1 falls from 75.3 to 74.1. Shift-ResNet-50 (70.6 top-1, 6.0M weights) and Slimmable-ResNet-50 0.5× (72.1 top-1, 1.1B FLOPs) are listed with similar weights or FLOPs and lower accuracy.

## GhostNet classification on ImageNet

Training follows most of the settings used for ShuffleNet, except that the initial learning rate is 0.4 at batch size 1,024 on 8 GPUs, and accuracy is single-crop top-1 on the ImageNet validation set. The primary convolution uses kernel size k=1, and s=2 and d=3 in all Ghost modules.

The models are grouped at roughly 50, 150 and 200 to 300 MFLOPs. At the smallest level GhostNet 0.5× reached 66.2 top-1 with 2.6M weights and 42M FLOPs, against 65.4 for MobileNetV3 Small 0.75× at 44M and 61.1 for ShuffleNetV2 0.5× at 41M. At about 150M FLOPs GhostNet 1.0× reached 73.9 top-1 with 141M, against 73.3 for MobileNetV3 Large 0.75× at 155M.

Latency was measured on an ARM-based phone with TFLite in single-threaded mode and batch size 1. The text reports GhostNet about 0.5% higher top-1 than MobileNetV3 at the same latency, and that GhostNet at 75.0% accuracy has 40 ms latency while MobileNetV3 at similar accuracy needs about 45 ms.

## Detection with GhostNet as backbone

GhostNet is the backbone feature extractor in RetinaNet and in Faster R-CNN with FPN, trained with SGD for 12 epochs from ImageNet pretrained weights on trainval35k and evaluated on minival.

With RetinaNet, GhostNet 1.1× reached 26.6% mAP at 164M FLOPs, against 26.4% for MobileNetV3 1.0× at 219M and 26.7% for MobileNetV2 1.0× at 300M.

The authors describe GhostNet as achieving similar mAP with lower computation in both frameworks.

## Where the evidence stops

The module analysis fixes the kernel size d for all linear operations and varies d only over 1, 3, 5 and 7, and the stride ratio only over 2 to 5 on VGG-16 with CIFAR-10. The toy check uses only the first residual block of ResNet-50 and three feature map pairs.

The speed-up ratios are theoretical FLOPs-based expressions, and measured latency appears only for one ARM-based phone with TFLite, single-threaded, batch size 1. The detection results use one backbone setup per framework, with FLOPs at 224×224 and the training schedule given above.

The authors state that further hyper-parameter tuning or automatic architecture search over the Ghost module could raise performance; these were not tested. No experiment in the paper removes the identity mapping alone or swaps the Ghost module for other linear operations, so the contribution of each branch is not isolated.

## Paper info

- **Authors**: Kai Han, Yunhe Wang, Qi Tian, Jianyuan Guo, Chunjing Xu, Chang Xu
- **Venue**: arXiv · Preprint
- **First published**: 2019-11-27
- **Added**: 2026-11-11
- **Updated**: 2020-3-13
- **Version**: v2
- **arXiv**: 1911.11907
- **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/1911.11907v2) · [PDF ↗](https://arxiv.org/pdf/1911.11907v2)

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

Kai Han, Yunhe Wang, Qi Tian, Jianyuan Guo, Chunjing Xu, Chang Xu (2019). GhostNet: More Features from Cheap Operations. arXiv:1911.11907v2. https://arxiv.org/abs/1911.11907v2

**BibTeX**

```
@misc{han2019ghostnet,
  title = {{GhostNet: More Features from Cheap Operations}},
  author = {Kai Han and Yunhe Wang and Qi Tian and Jianyuan Guo and Chunjing Xu and Chang Xu},
  year = {2019},
  eprint = {1911.11907},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.11907v2}
}
```

## Other paper commentary

- [Visual Genome: Connecting Language and Vision Using Crowdsourced Dense Image Annotations](https://refivu.com/en/papers/f53fd829-f514-4443-ae13-a5df28e84536-visual-genome-connecting-language-and-vision-using.md)
- [CSPNet: A New Backbone that can Enhance Learning Capability of CNN](https://refivu.com/en/papers/3f885aa7-65fa-4ad8-bde8-f91e2cb0eb53-cspnet-a-new-backbone-that-can-enhance-learning.md)
- [Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression](https://refivu.com/en/papers/d05dc1a3-dfd0-4eb2-bd4f-2b74602bcc42-distance-iou-loss-faster-and-better-learning-for.md)
- [YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information](https://refivu.com/en/papers/11ec3a37-5335-4563-b8f6-6949e50f3a4f-yolov9-learning-what-you-want-to-learn-using.md)
- [Context Encoders: Feature Learning by Inpainting](https://refivu.com/en/papers/7b297366-a2d7-4dfc-9233-9920c1be930e-context-encoders-feature-learning-by-inpainting.md)
- [Object Detection with Deep Learning: A Review](https://refivu.com/en/papers/7a141689-80c4-419f-837d-9d8f246ca5fc-object-detection-with-deep-learning-a-review.md)
- [Spatial Transformer Networks](https://refivu.com/en/papers/6eb29eca-41eb-4d69-ace3-032bf11562a8-spatial-transformer-networks.md)
- [Bag of Tricks for Efficient Text Classification](https://refivu.com/en/papers/48b6ecfa-f1d3-4096-8e4a-50b65a867c17-bag-of-tricks-for-efficient-text-classification.md)
- [Sparks of Artificial General Intelligence: Early experiments with GPT-4](https://refivu.com/en/papers/bf8f04ae-6d95-4b81-8fa4-4c3f7fdcc547-sparks-of-artificial-general-intelligence-early-experiments.md)
- [LINE: Large-scale Information Network Embedding](https://refivu.com/en/papers/395ad92f-93c2-44fe-8480-bbf8df48c4cf-line-large-scale-information-network-embedding.md)
- [Least Squares Generative Adversarial Networks](https://refivu.com/en/papers/de7adb03-4a8a-4e01-93e9-d9d8b2434300-least-squares-generative-adversarial-networks.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [CIFAR-10](https://refivu.com/en/terms/19035a518d0a-cifar-10)
- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [FLOPs](https://refivu.com/en/terms/14c405888d5b-flops)
- [mean Average Precision](https://refivu.com/en/terms/7908941f08d6-mean-average-precision)
- [MS COCO](https://refivu.com/en/terms/1a7c38d39825-ms-coco)
- [Latency](https://refivu.com/en/terms/884c3275b80a-latency)
- [depthwise convolution](https://refivu.com/en/terms/c55d5ba28fdb-depthwise-convolution)
- [identity mapping](https://refivu.com/en/terms/409cd2106e76-identity-mapping)
- [MobileNetV3](https://refivu.com/en/terms/bcf9b567a140-mobilenetv3)
- [width multiplier](https://refivu.com/en/terms/d7eae6b0cb4f-width-multiplier)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/54dc4d80-177d-40dc-bde2-a797c18077da-ghostnet-more-features-from-cheap-operations)
