SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.06088 · 2022

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

arXiv · PDF · Open in the Atlas

Code that ran

10 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 4 failures of our instrument; 7 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2211.06088.json · badge: /api/ran/2211.06088.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
chengpengchen/repghost canonical (classifier label)
classifier basis not recorded on the link
10 ran · 7 no recorded run
FunctionStatusWhere it lives
clever_format Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
chengpengchen/repghost/infotool/helper.py
code served (permissive licence) · get_code("b161f124ff564c74")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from collections.abc import Iterable

torch.manual_seed(0)

# Test with various numeric values covering different magnitude ranges
ARGS = {
    'nums': [42.5, 1500.0, 2000000.0, 5000000000.0, 3000000000000.0],
    'format': '%.2f'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
colorful_print Ran
ran; our contract draft was wrong, not the code
chengpengchen/repghost/infotool/helper.py
code served (permissive licence) · get_code("12576d42d14e9ae2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import builtins

torch.manual_seed(0)

# The function colorful_print takes:
# 1. fn_print: a callable that will be called with *args, **kwargs
# 2. color: a string representing a color code (defaults to COLOR_RED)

# Create a simple test function that will be wrapped
def test_print_function(*args, **kwargs):
    print("Test output", *args, **kwargs)

# Create the arguments dictionary
ARGS = {
    'fn_print': test_print_function,
    'color': '91m'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_syncbn_to_bn Ran
ran on a synthesized input
chengpengchen/repghost/tools.py
code served (permissive licence) · get_code("88f7445c5b1400a9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned TestModule. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a module hierarchy with SyncBatchNorm that will be converted
class TestModule(nn.Module):
    def __init__(self):
        super().__init__()
        # Create a SyncBatchNorm layer
        self.sync_bn = nn.SyncBatchNorm(num_features=4, eps=1e-5, momentum=0.1, affine=True, track_running_stats=True)
        # Add a nested module with another SyncBatchNorm
        self.nested = nn.Sequential(
            nn.SyncBatchNorm(num_features=8, eps=1e-5, momentum=0.1, affine=True, track_running_stats=True)
        )
    
module = TestModule()

# Set some state on the SyncBatchNorm to ensure it's properly initialized
module.sync_bn.weight.data.fill_(1.0)
module.sync_bn.bias.data.fill_(0.0)
module.sync_bn.running_mean.fill_(0.0)
module.sync_bn.running_var.fill_(1.0)
module.sync_bn.num_batches_tracked.fill_(0)

# Also set state on nested SyncBatchNorm
nested_bn = module.nested[0]
nested_bn.weight.data.fill_(1.0)
nested_bn.bias.data.fill_(0.0)
nested_bn.running_mean.fill_(0.0)
nested_bn.running_var.fill_(1.0)
nested_bn.num_batches_tracked.fill_(0)

ARGS = {
    "module": module
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TestModule — a TestModule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TestModule output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_clamp Ran
ran, honoured the contract we drafted
chengpengchen/repghost/infotool/fx_profile.py
code served (permissive licence) · get_code("2878428e1958cb9a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# input_shapes and output_shapes are likely lists or tuples of shape tuples
# representing tensor dimensions
input_shapes = [
    (2, 4),
    (2, 3),
    (2, 5)
]

output_shapes = [
    (2, 4),
    (2, 3),
    (2, 5)
]

ARGS = {
    "input_shapes": input_shapes,
    "output_shapes": output_shapes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_matmul Ran
ran; our contract draft was wrong, not the code
chengpengchen/repghost/infotool/fx_profile.py
code served (permissive licence) · get_code("911b9807f4998259")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects:
# - input_shapes: a list where [0] is indexable and has shape[-1] and .numel()
# - output_shapes: a list where [0] is indexable and has .numel()
# Both should behave like torch.Size or tensors with shape info

input_tensor = torch.randn(2, 4, 3)
output_tensor = torch.randn(2, 5, 6)

input_shapes = [input_tensor.shape]
output_shapes = [output_tensor.shape]

ARGS = {
    "input_shapes": input_shapes,
    "output_shapes": output_shapes,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_mul Ran
ran; our contract draft was wrong, not the code
chengpengchen/repghost/infotool/fx_profile.py
code served (permissive licence) · get_code("31618bae63672c9e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function count_mul takes input_shapes and output_shapes
# It accesses output_shapes[0] and calls .numel() on it
# So output_shapes[0] must be a tensor (or have a numel() method)

# Create small tensors to represent shapes
input_shapes = [torch.randn(2, 4)]
output_shapes = [torch.randn(3, 5)]

ARGS = {
    'input_shapes': input_shapes,
    'output_shapes': output_shapes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
counter_conv Ran
ran on a synthesized input
chengpengchen/repghost/infotool/vision/counter.py
code served (permissive licence) · get_code("7f32bc2caccead61")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (1,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "bias": 1,
    "kernel_size": 3,
    "output_size": 5,
    "in_channel": 4,
    "group": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (1,) — shape (1,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
counter_norm Ran
ran on a synthesized input
chengpengchen/repghost/infotool/vision/counter.py
code served (permissive licence) · get_code("c1f9c3bdd753a577")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (1,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes input_size as a parameter
# Looking at the body: it's used in arithmetic (2 * input_size)
# and the result is wrapped in torch.DoubleTensor([...])
# So input_size should be a number (int or float)

input_size = 5

ARGS = {
    "input_size": input_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (1,) — shape (1,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
counter_parameters Ran
ran on a synthesized input
chengpengchen/repghost/infotool/vision/counter.py
code served (permissive licence) · get_code("3096fbb3cb601582")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (1,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function iterates over para_list and calls .nelement() on each item
# So para_list should be a list of tensors (or objects with .nelement() method)
# Tensors are the most natural choice

tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(3, 5)
tensor3 = torch.randn(2, 2, 3)

para_list = [tensor1, tensor2, tensor3]

ARGS = {
    "para_list": para_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (1,) — shape (1,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
hard_sigmoid Ran
ran on a synthesized input
chengpengchen/repghost/model/repghost.py
code served (permissive licence) · get_code("f9479314f0ac20b2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small tensor for testing
x = torch.randn(2, 4)

ARGS = {
    "x": x,
    "inplace": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_upsample Not yet run
unverified (harvested, no recorded run)
chengpengchen/repghost/infotool/vision/basic_hooks.py
code served (permissive licence) · get_code("31325cecc16666a0")
How it ran

no invocation recorded.

onnx_counter_add Not yet run
unverified (harvested, no recorded run)
chengpengchen/repghost/infotool/vision/onnx_counter.py
code served (permissive licence) · get_code("1f1bf8d0c1cb9792")
How it ran

no invocation recorded.

onnx_counter_conv Not yet run
unverified (harvested, no recorded run)
chengpengchen/repghost/infotool/vision/onnx_counter.py
code served (permissive licence) · get_code("f0c18018ea33388f")
How it ran

no invocation recorded.

onnx_counter_matmul Not yet run
unverified (harvested, no recorded run)
chengpengchen/repghost/infotool/vision/onnx_counter.py
code served (permissive licence) · get_code("a0515d90835a5334")
How it ran

no invocation recorded.

repghost_model_convert Not yet run
unverified (harvested, no recorded run)
chengpengchen/repghost/model/repghost.py
code served (permissive licence) · get_code("c8ca5c60836a3516")
How it ran

no invocation recorded.

repghostnet Not yet run
unverified (harvested, no recorded run)
chengpengchen/repghost/model/repghost.py
code served (permissive licence) · get_code("e9cceb505126ab1b")
How it ran

no invocation recorded.

validate Not yet run
unverified (harvested, no recorded run)
chengpengchen/repghost/validate.py
code served (permissive licence) · get_code("08ff6e71ddb0c3d9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 10 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 7 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
validate 9 other papers
5 dated earlier, 4 later
2103.15632 (2021-03)
Regular Polytope Networks
2107.00652 (2021-07)
CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windows
2204.05173 (2022-04)
Machine Learning State-of-the-Art with Uncertainties
and 6 more not named here
hard_sigmoid 2 other papers
2 dated earlier
2107.08621 (2021-07)
Face.evoLVe: A High-Performance Face Recognition Library
2210.10090 (2022-10)
How to Boost Face Recognition with StyleGAN?
clever_format 1 other paper
1 later
2606.20457 (2026-06)
Repurposing a Speech Classifier for Guided Diffusion-Based Speech Generation
colorful_print 1 other paper
1 later
2606.20457 (2026-06)
Repurposing a Speech Classifier for Guided Diffusion-Based Speech Generation
count_clamp 1 other paper
1 later
2606.20457 (2026-06)
Repurposing a Speech Classifier for Guided Diffusion-Based Speech Generation
count_matmul 1 other paper
1 later
2606.20457 (2026-06)
Repurposing a Speech Classifier for Guided Diffusion-Based Speech Generation
count_mul 1 other paper
1 later
2606.20457 (2026-06)
Repurposing a Speech Classifier for Guided Diffusion-Based Speech Generation
counter_conv 1 other paper
1 dated earlier
2203.02431 (2022-03)
Rethinking Efficient Lane Detection via Curve Modeling
counter_norm 1 other paper
1 dated earlier
2203.09747 (2022-03)
Efficient Split-Mix Federated Learning for On-Demand and In-Situ Customization
onnx_counter_matmul 1 other paper
1 later
2606.20457 (2026-06)
Repurposing a Speech Classifier for Guided Diffusion-Based Speech Generation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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. 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2211.06088")
get_code_for_paper("2211.06088")
have("2211.06088")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2211.06088.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2211.06088.svg)](https://syntology.ai/paper/2211.06088)

Connect an agent — have() is free.