GhostNets on Heterogeneous Devices via Cheap Operations

Kai Han, Yunhe Wang, Chang Xu, Jianyuan Guo, Chunjing Xu +2 more
1/10/2022
176 citations
cs.CV

Official code: huawei-noah/Efficient-AI-Backbones (4,429 stars, Python, PyTorch, last commit 2025-03-15).

Abstract

Deploying convolutional neural networks (CNNs) on mobile devices is difficult due to the limited memory and computation resources. We aim to design efficient neural networks for heterogeneous devices including CPU and GPU, by exploiting the redundancy in feature maps, which has rarely been investigated in neural architecture design.

Show full abstract

For CPU-like devices, we propose a novel CPU-efficient Ghost (C-Ghost) module to generate more feature maps from cheap operations. Based on a set of intrinsic feature maps, we apply a series of linear transformations with cheap cost to generate many ghost feature maps that could fully reveal information underlying intrinsic features. The proposed C-Ghost module can be taken as a plug-and-play component to upgrade existing convolutional neural networks. C-Ghost bottlenecks are designed to stack C-Ghost modules, and then the lightweight C-GhostNet can be easily established. We further consider the efficient networks for GPU devices. Without involving too many GPU-inefficient operations (e.g.,, depth-wise convolution) in a building stage, we propose to utilize the stage-wise feature redundancy to formulate GPU-efficient Ghost (G-Ghost) stage structure. The features in a stage are split into two parts where the first part is processed using the original block with fewer output channels for generating intrinsic features, and the other are generated using cheap operations by exploiting stage-wise redundancy. Experiments conducted on benchmarks demonstrate the effectiveness of the proposed C-Ghost module and the G-Ghost stage. C-GhostNet and G-GhostNet can achieve the optimal trade-off of accuracy and latency for CPU and GPU, respectively. Code is available at https://github.com/huawei-noah/CV-Backbones.

View on arXivView PDF

Code Implementations(1)

PyTorch

Efficient AI Backbones including GhostNet, TNT and MLP, developed by Huawei Noah's Ark Lab.

4,429734Python, ShellNov 16, 20191 years ago
convolutional-neural-networksefficient-inferenceghostnetimagenetmodel-compression+5 more

Similar Papers

Cite this paper

@article{han2022ghostnets,
  title  = {GhostNets on Heterogeneous Devices via Cheap Operations},
  author = {Kai Han and Yunhe Wang and Chang Xu and Jianyuan Guo and Chunjing Xu and Enhua Wu and Qi Tian},
  year   = {2022},
  eprint = {2201.03297},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.03297}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.03297.svg)](https://codeofpaper.com/paper/2201.03297)

Discussion