{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/repghost-a-hardware-efficient-ghost-module","title":"RepGhost: A Hardware-Efficient Ghost Module via Re-parameterization","arxiv_id":"2211.06088","date":"2022-11-11","proceeding":null,"authors":["Chengpeng Chen","Zichao Guo","Haien Zeng","Pengfei Xiong","Jian Dong"],"abstract":"Feature reuse has been a key technique in light-weight convolutional neural networks (CNNs) 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. 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 via structural re-parameterization technique. A novel hardware-efficient RepGhost module is proposed for implicit feature reuse via re-parameterization, 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 the proposed 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 phone.","url_abs":"https://arxiv.org/abs/2211.06088v1","url_pdf":"https://arxiv.org/pdf/2211.06088v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"repghost-a-hardware-efficient-ghost-module","repo_url":"https://github.com/chengpengchen/repghost","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"repghost-a-hardware-efficient-ghost-module","repo_url":"https://github.com/rwightman/pytorch-image-models","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"repghost-a-hardware-efficient-ghost-module","repo_url":"https://gitlab.com/birder/birder","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"average-pooling","method_name":"Average Pooling"},{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"depthwise-convolution","method_name":"Depthwise Convolution"},{"method_slug":"depthwise-separable-convolution","method_name":"Depthwise Separable Convolution"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"ghost-bottleneck","method_name":"Ghost Bottleneck"},{"method_slug":"ghost-module","method_name":"Ghost Module"},{"method_slug":"ghostnet","method_name":"GhostNet"},{"method_slug":"global-average-pooling","method_name":"Global Average Pooling"},{"method_slug":"hard-swish","method_name":"Hard Swish"},{"method_slug":"inverted-residual-block","method_name":"Inverted Residual Block"},{"method_slug":"pointwise-convolution","method_name":"Pointwise Convolution"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"relu6","method_name":"ReLU6"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"sigmoid-activation","method_name":"Sigmoid Activation"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"squeeze-and-excitation-block","method_name":"Squeeze-and-Excitation Block"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2211.06088","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2211.06088"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/rwightman/pytorch-image-models","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/chengpengchen/repghost","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://gitlab.com/birder/birder","reach":null}],"summary":{"ran":5,"unverified":12},"by_repo_kind":{"official":{"samples":17,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"b161f124ff564c74","entry":"clever_format","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/helper.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/helper.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b161f124ff564c74"}},{"code_sha256_prefix":"12576d42d14e9ae2","entry":"colorful_print","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/helper.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/helper.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"12576d42d14e9ae2"}},{"code_sha256_prefix":"2878428e1958cb9a","entry":"count_clamp","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/fx_profile.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/fx_profile.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2878428e1958cb9a"}},{"code_sha256_prefix":"911b9807f4998259","entry":"count_matmul","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/fx_profile.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/fx_profile.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"911b9807f4998259"}},{"code_sha256_prefix":"31618bae63672c9e","entry":"count_mul","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/fx_profile.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/fx_profile.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"31618bae63672c9e"}},{"code_sha256_prefix":"88f7445c5b1400a9","entry":"convert_syncbn_to_bn","repo":"chengpengchen/repghost","repo_kind":"official","path":"tools.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"88f7445c5b1400a9"}},{"code_sha256_prefix":"31325cecc16666a0","entry":"count_upsample","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/vision/basic_hooks.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/vision/basic_hooks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"31325cecc16666a0"}},{"code_sha256_prefix":"7f32bc2caccead61","entry":"counter_conv","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/vision/counter.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/vision/counter.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7f32bc2caccead61"}},{"code_sha256_prefix":"c1f9c3bdd753a577","entry":"counter_norm","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/vision/counter.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/vision/counter.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c1f9c3bdd753a577"}},{"code_sha256_prefix":"3096fbb3cb601582","entry":"counter_parameters","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/vision/counter.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/vision/counter.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3096fbb3cb601582"}},{"code_sha256_prefix":"f9479314f0ac20b2","entry":"hard_sigmoid","repo":"chengpengchen/repghost","repo_kind":"official","path":"model/repghost.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/model/repghost.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f9479314f0ac20b2"}},{"code_sha256_prefix":"1f1bf8d0c1cb9792","entry":"onnx_counter_add","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/vision/onnx_counter.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/vision/onnx_counter.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1f1bf8d0c1cb9792"}},{"code_sha256_prefix":"f0c18018ea33388f","entry":"onnx_counter_conv","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/vision/onnx_counter.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/vision/onnx_counter.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f0c18018ea33388f"}},{"code_sha256_prefix":"a0515d90835a5334","entry":"onnx_counter_matmul","repo":"chengpengchen/repghost","repo_kind":"official","path":"infotool/vision/onnx_counter.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/infotool/vision/onnx_counter.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a0515d90835a5334"}},{"code_sha256_prefix":"c8ca5c60836a3516","entry":"repghost_model_convert","repo":"chengpengchen/repghost","repo_kind":"official","path":"model/repghost.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/model/repghost.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c8ca5c60836a3516"}},{"code_sha256_prefix":"e9cceb505126ab1b","entry":"repghostnet","repo":"chengpengchen/repghost","repo_kind":"official","path":"model/repghost.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/model/repghost.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e9cceb505126ab1b"}},{"code_sha256_prefix":"08ff6e71ddb0c3d9","entry":"validate","repo":"chengpengchen/repghost","repo_kind":"official","path":"validate.py","file_url":"https://github.com/chengpengchen/repghost/blob/HEAD/validate.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"08ff6e71ddb0c3d9"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}