SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Pang_Backdoor_Cleansing_With_Unlabeled_Data_CVPR_2023_paper · CVPR · 2023

Backdoor Cleansing with Unlabeled Data

Chao Chen, Tao Sun, Lu Pang, Haibin Ling

Open in the Atlas

Code that ran

9 of 14 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; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 7 failures of our instrument; 5 no recorded run), measured 2026-11-24; 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/Pang_Backdoor_Cleansing_With_Unlabeled_Data_CVPR_2023_paper.json · badge: /api/ran/Pang_Backdoor_Cleansing_With_Unlabeled_Data_CVPR_2023_paper.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
luluppang/BCU canonical (classifier label)
classifier basis: census
9 ran · 5 no recorded run
FunctionStatusWhere it lives
PreActResNet18 Ran
ran; our contract draft was wrong, not the code
luluppang/BCU/models/preact_resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from szegedai/SemanticBackdoorDetection, is pointer only (licence: NONE) · get_code("a55348359ff9d8f1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from szegedai/SemanticBackdoorDetection, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

adapt_channel Ran
ran on a synthesized input
luluppang/BCU/models/resnet.py
code served (permissive licence) · get_code("a533c241ca8ca492")
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. 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 numpy as np

# For num_layers=56, we need sparsity to have len(stage_repeat) + len(mid_cprate) elements
# stage_repeat has length 3, so we need 3 + (len(stage_out_channel) - 1) elements
# stage_out_channel has length 1 + 9 + 9 + 9 = 28
# So mid_cprate should have length 27, meaning sparsity needs 3 + 27 = 30 elements

# Let's use num_layers=18 for simplicity
# stage_repeat = [2, 2, 2, 2] (length 4)
# stage_out_channel = [64] + [64]*2 + [128]*2 + [256]*2 + [512]*2 (length 1+2+2+2+2 = 9)
# mid_cprate has length 9 - 1 = 8
# So sparsity needs 4 + 8 = 12 elements

sparsity = [0.1, 0.2, 0.3, 0.4, 0.05, 0.06, 0.07, 0.08, 0.09, 0.10, 0.11, 0.12]
num_layers = 18

ARGS = {
    "sparsity": sparsity,
    "num_layers": num_layers
}
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 — a tuple output has no array shape of its own; none is 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
luluppang/BCU/models/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from medaitech/scrd4ad, is pointer only (licence: NONE) · get_code("2a80220dabcb742a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from medaitech/scrd4ad, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
luluppang/BCU/models/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from medaitech/scrd4ad, is pointer only (licence: NONE) · get_code("600ff2c45e0de056")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from medaitech/scrd4ad, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_targets_bd Ran
ran; our contract draft was wrong, not the code
luluppang/BCU/attack/inputaware_attack.py
pointer only (licence: MIT); the stored copy get_code serves, from wanlunsec/beatrix, is pointer only (licence: NONE) · get_code("2172dd0a5f520f7d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from wanlunsec/beatrix, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

import_module Ran
ran on a synthesized input
luluppang/BCU/models/hub_pytorch.py
code served (permissive licence) · get_code("b7839250d87ca595")
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 module. 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 tempfile
import os

# Create a temporary Python module file to import
temp_dir = tempfile.mkdtemp()
module_file = os.path.join(temp_dir, "test_module.py")

with open(module_file, "w") as f:
    f.write("""
def hello():
    return "world"

class TestClass:
    def __init__(self):
        self.value = 42
""")

ARGS = {
    "name": "test_module",
    "path": module_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type module — a module output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a module 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
make_layers Ran
ran; our contract draft was wrong, not the code
luluppang/BCU/models/vgg.py
pointer only (licence: MIT); the stored copy get_code serves, from s-huu/TurningWeaknessIntoStrength, is pointer only (licence: NONE) · get_code("eba3f5bcc6a06d36")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from s-huu/TurningWeaknessIntoStrength, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

vgg11 Ran
ran; our contract draft was wrong, not the code
luluppang/BCU/models/vgg.py
code served (permissive licence) · get_code("a97e757d44f4dc7f")
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 VGG. 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)

ARGS = {
    'pretrained': False,
    'progress': True,
}
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 VGG — a VGG output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a VGG 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
vgg11_bn Ran
ran; our contract draft was wrong, not the code
luluppang/BCU/models/vgg.py
code served (permissive licence) · get_code("4dbe602a3c7fef59")
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 VGG. 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)

ARGS = {
    'pretrained': False,
    'progress': True,
}
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 VGG — a VGG output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a VGG 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
add_args Not yet run
unverified (harvested, no recorded run)
luluppang/BCU/attack/badnet_attack.py
code served (permissive licence) · get_code("90d60d911581191d")
How it ran

no invocation recorded.

add_args Not yet run
unverified (harvested, no recorded run)
luluppang/BCU/attack/blended_attack.py
code served (permissive licence) · get_code("2ff7f641c3cce602")
How it ran

no invocation recorded.

add_args Not yet run
unverified (harvested, no recorded run)
luluppang/BCU/attack/lc_attack.py
code served (permissive licence) · get_code("5394691602c74e1b")
How it ran

no invocation recorded.

help Not yet run
unverified (harvested, no recorded run)
luluppang/BCU/models/hub_pytorch.py
code served (permissive licence) · get_code("fc6c859f80f1006e")
How it ran

no invocation recorded.

list Not yet run
unverified (harvested, no recorded run)
luluppang/BCU/models/hub_pytorch.py
code served (permissive licence) · get_code("c883293e9dfcbb03")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 8 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 6 later) and 6 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
conv1x1 112 other papers
35 dated earlier, 49 later, 28 same year, order not determinable · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 109 more not named here
conv3x3 111 other papers
36 dated earlier, 47 later, 28 same year, order not determinable · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 108 more not named here
make_layers 59 other papers
37 dated earlier, 12 later, 10 same year, order not determinable
1411.4038 (2014-11)
Fully Convolutional Networks for Semantic Segmentation
1511.00561 (2015-11)
SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
1511.05950 (2015-11)
Staleness-aware Async-SGD for Distributed Deep Learning
and 56 more not named here
PreActResNet18 22 other papers
8 dated earlier, 8 later, 6 same year, order not determinable
1710.09412 (2017-10)
mixup: BEYOND EMPIRICAL RISK MINIMIZATION
2003.04887 (2020-03)
ReZero is All You Need: Fast Convergence at Large Depth
2103.14222 (2021-03)
Adversarial Attacks are Reversible with Natural Supervision
and 19 more not named here
vgg11 8 other papers
5 dated earlier, 2 later, 1 same year, order not determinable
1904.00370 (2019-04)
Variational Adversarial Active Learning
1905.04538 (2019-05)
Disentangling Content and Style via Unsupervised Geometry Distillation
2005.03823 (2020-05)
Blind Backdoors in Deep Learning Models
and 5 more not named here
vgg11_bn 7 other papers
4 dated earlier, 2 later, 1 same year, order not determinable
1904.00370 (2019-04)
Variational Adversarial Active Learning
2005.03823 (2020-05)
Blind Backdoors in Deep Learning Models
2007.07435 (2020-07)
AdvFlow: Inconspicuous Black-box Adversarial Attacks using Normalizing Flows
and 4 more not named here
add_args 1 other paper
1 same year, order not determinable
2303.15564 (2023-03)
Mask and Restore: Blind Backdoor Defense at Test Time with Masked Autoencoder
create_targets_bd 1 other paper
1 dated earlier
2209.11715 (2022-09)
The "Beatrix'' Resurrections: Robust Backdoor Detection via Gram Matrices

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

Repositories linked to this paper

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

Abstract

Due to the increasing computational demand of Deep Neural Networks (DNNs), companies and organizations have begun to outsource the training process. However, the externally trained DNNs can potentially be backdoor attacked. It is crucial to defend against such attacks, i.e., to postprocess a suspicious model so that its backdoor behavior is mitigated while its normal prediction power on clean inputs remain uncompromised. To remove the abnormal backdoor behavior, existing methods mostly rely on additional labeled clean samples. However, such requirement may be unrealistic as the training data are often unavailable to end users. In this paper, we investigate the possibility of circumventing such barrier. We propose a novel defense method that does not require training labels. Through a carefully designed layer-wise weight reinitialization and knowledge distillation, our method can effectively cleanse backdoor behaviors of a suspicious network with negligible compromise in its normal behavior. In experiments, we show that our method, trained without labels, is on-par with state-of-the-art defense methods trained using labels. We also observe promising defense results even on out-of-distribution data. This makes our method very practical. Code is available at: https: //github.com/luluppang/BCU .

For agents

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

get_harvested_code_for_paper("Pang_Backdoor_Cleansing_With_Unlabeled_Data_CVPR_2023_paper")
get_code_for_paper("Pang_Backdoor_Cleansing_With_Unlabeled_Data_CVPR_2023_paper")
have("Pang_Backdoor_Cleansing_With_Unlabeled_Data_CVPR_2023_paper")

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

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

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

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

Connect an agent — have() is free.