RepGhost: A Hardware-Efficient Ghost Module via Re-parameterization

Chengpeng Chen, Zichao Guo, Haien Zeng, Pengfei Xiong, Jian Dong
11/11/2022
81 citations
cs.CV

Official code: ChengpengChen/RepGhost (182 stars, Python, MIT, last commit 2023-08-15). Most starred: huggingface/pytorch-image-models, a community implementation (37,303 stars, Python, Apache-2.0, PyTorch, last commit 2026-04-29, 205× the official stars). 1 more implementation below.

Abstract

Feature reuse has been a key technique in light-weight convolutional neural networks (CNNs) architecture design. Current methods usually utilize a concatenation operator to keep large channel numbers cheaply (thus large network capacity) by reusing feature maps from other layers.

Show full abstract

Although concatenation is parameters- and FLOPs-free, its computational cost on hardware devices is non-negligible. To address this, this paper provides a new perspective to realize feature reuse implicitly and more efficiently instead of concatenation. A novel hardware-efficient RepGhost module is proposed for implicit feature reuse via reparameterization, instead of using concatenation operator. Based on the RepGhost module, we develop our efficient RepGhost bottleneck and RepGhostNet. Experiments on ImageNet and COCO benchmarks demonstrate that our RepGhostNet is much more effective and efficient than GhostNet and MobileNetV3 on mobile devices. Specially, our RepGhostNet surpasses GhostNet 0.5x by 2.5% Top-1 accuracy on ImageNet dataset with less parameters and comparable latency on an ARM-based mobile device. Code and model weights are available at https://github.com/ChengpengChen/RepGhost.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
ChengpengChen/RepGhostOfficial182PythonMIT2023-08-15
huggingface/pytorch-image-modelsCommunity37,303PythonApache-2.02026-04-29
MIT

RepGhost: A Hardware-Efficient Ghost Module via Re-parameterization

18215Python, ShellNov 11, 20223 years agoMIT
light-weightre-parameterizationrepghostrepghostnet
PyTorchApache-2.0

The largest collection of PyTorch image encoders / backbones. Including train, eval, inference, export scripts, and pretrained weights -- ResNet, ResNeXT, EfficientNet, NFNet, Vision Transformer (ViT), MobileNetV4, MobileNet-V3 & V2, RegNet, DPN, CSPNet, Swin Transformer, MaxViT, CoAtNet, ConvNeXt, and more

37,3035,234Python, MDXFeb 2, 20197 months agoApache-2.0
augmixconvnextdistributed-trainingefficientnetimage-classification+15 more

Similar Papers

Cite this paper

@article{chen2022repghost,
  title  = {RepGhost: A Hardware-Efficient Ghost Module via Re-parameterization},
  author = {Chengpeng Chen and Zichao Guo and Haien Zeng and Pengfei Xiong and Jian Dong},
  year   = {2022},
  eprint = {2211.06088},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.06088}
}

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/2211.06088.svg)](https://codeofpaper.com/paper/2211.06088)

Discussion