SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.08502 · 2024

Efficient Image-to-Image Diffusion Classifier for Adversarial Robustness

arXiv · PDF · Open in the Atlas

Code that ran

16 of 18 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 13 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2408.08502.json · badge: /api/ran/2408.08502.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
hfmei/idc canonical (classifier label)
classifier basis: census
16 ran · 2 no recorded run
FunctionStatusWhere it lives
Normalize Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/ddpm/unet_ddpm.py
pointer only (licence: NONE); the stored copy get_code serves, from Xingyu-Zheng/BiDM, is pointer only (licence: NONE) · get_code("c3a6b977022957cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

approx_standard_normal_cdf Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/guided_diffusion/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cfd76fd0d89574a4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

compute_n_params Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/utils.py
pointer only (licence: NONE) · get_code("ad12a494674d23fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

dict2namespace Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from leaveslei/obd, is pointer only (licence: NONE) · get_code("bd1f17e427bf51a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

discretized_gaussian_log_likelihood Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/guided_diffusion/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cd33283d615fb3d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

get_optimizer Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/score_sde/losses.py
pointer only (licence: NONE) · get_code("8ff7c24dade9904c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

get_sde_loss_fn Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/score_sde/losses.py
pointer only (licence: NONE) · get_code("fac494cec4301110")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

get_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hfmei/idc/IDC-BPDA/ddpm/unet_ddpm.py
pointer only (licence: NONE) · get_code("cb49209c125de1b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

lerp_clip Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/classifiers/attribute_net.py
pointer only (licence: NONE) · get_code("195d635db8eb778b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

max_res_from_state_dict Ran
ran, honoured the contract we drafted
hfmei/idc/IDC-BPDA/classifiers/attribute_net.py
pointer only (licence: NONE) · get_code("d5eb57879ef1704e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

nonlinearity Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/ddpm/unet_ddpm.py
pointer only (licence: NONE) · get_code("3137073275f8c21a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

normal_kl Ran
ran, honoured the contract we drafted
hfmei/idc/IDC-BPDA/guided_diffusion/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/agrol, is pointer only (licence: NOASSERTION) · get_code("cf2798b666b231ca")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

optimization_manager Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/score_sde/losses.py
pointer only (licence: NONE) · get_code("366bb8c7035a2fc8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

register_corrector Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/score_sde/sampling.py
pointer only (licence: NONE) · get_code("a05b1d0cf3f508b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

register_predictor Ran
ran; our contract draft was wrong, not the code
hfmei/idc/IDC-BPDA/score_sde/sampling.py
pointer only (licence: NONE) · get_code("473066ddf62a075a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

str2bool Ran
ran, violated the contract we drafted
hfmei/idc/IDC-BPDA/utils.py
pointer only (licence: NONE) · get_code("7c508037b40522af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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.

from_state_dict Not yet run
unverified (harvested, no recorded run)
hfmei/idc/IDC-BPDA/classifiers/attribute_net.py
pointer only (licence: NONE) · get_code("0dd156dfa78cac88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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. No invocation recorded.

get_predictor Not yet run
unverified (harvested, no recorded run)
hfmei/idc/IDC-BPDA/score_sde/sampling.py
pointer only (licence: NONE) · get_code("a58facb8fe71823a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hfmei/idc 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. No invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 18 are also present in other papers whose code we hold (18 with at least one paper dated earlier, 6 the same month, 12 later) and 0 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
str2bool 175 other papers
132 dated earlier, 5 the same month, 37 later, 1 same year, order not determinable · 2 only as an assembly brick
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
and 172 more not named here
normal_kl 160 other papers
119 dated earlier, 2 the same month, 37 later, 2 same year, order not determinable · 19 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 157 more not named here
nonlinearity 156 other papers
95 dated earlier, 6 the same month, 51 later, 4 same year, order not determinable · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
approx_standard_normal_cdf 154 other papers
113 dated earlier, 2 the same month, 37 later, 2 same year, order not determinable · 17 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 151 more not named here
discretized_gaussian_log_likelihood 128 other papers
102 dated earlier, 25 later, 1 same year, order not determinable · 16 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 125 more not named here
get_timestep_embedding 91 other papers
72 dated earlier, 1 the same month, 14 later, 4 same year, order not determinable · 7 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 88 more not named here
Normalize 90 other papers
64 dated earlier, 1 the same month, 22 later, 3 same year, order not determinable · 32 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 87 more not named here
compute_n_params 29 other papers
24 dated earlier, 4 later, 1 same year, order not determinable
2111.09452 (2021-11)
Open Vocabulary Object Detection with Pseudo Bounding-Box Labels
2211.09790 (2022-11)
ConStruct-VL: Data-Free Continual Structured VL Concepts Learning
2211.13594 (2022-11)
Self-supervised vision-language pretraining for Medical visual question answering
and 26 more not named here
dict2namespace 28 other papers
21 dated earlier, 6 later, 1 same year, order not determinable
1907.04809 (2019-07)
Variational Autoencoders and Nonlinear ICA: A Unifying Framework
1912.00589 (2019-12)
Flow Contrastive Estimation of Energy-Based Models
2002.11537 (2020-02)
ICE-BeeM: Identifiable Conditional Energy-Based Deep Models Based on Nonlinear ICA
and 25 more not named here
get_predictor 16 other papers
12 dated earlier, 4 later · 1 only as an assembly brick
2006.09011 (2020-06)
Improved Techniques for Training Score-Based Generative Models
2105.14080 (2021-05)
Gotta Go Fast When Generating Data with Score-Based Models
2112.07068 (2021-12)
Score-Based Generative Modeling with Critically-Damped Langevin Diffusion
and 13 more not named here
optimization_manager 16 other papers
16 dated earlier
2106.05527 (2021-06)
Soft Truncation: A Universal Training Technique of Score-based Diffusion Model for High Precision Score Estimation
2110.05243 (2021-10)
Score-based diffusion models for accelerated MRI
2205.01490 (2022-05)
Subspace Diffusion Generative Models
and 13 more not named here
get_optimizer 15 other papers
15 dated earlier
2110.05243 (2021-10)
Score-based diffusion models for accelerated MRI
2205.01490 (2022-05)
Subspace Diffusion Generative Models
2209.12753 (2022-09)
On Investigating the Conservative Property of Score-Based Generative Models
and 12 more not named here
register_corrector 15 other papers
12 dated earlier, 3 later · 2 only as an assembly brick
2006.09011 (2020-06)
Improved Techniques for Training Score-Based Generative Models
2011.13456 (2020-11)
Score-Based Generative Modeling through Stochastic Differential Equations
2105.14080 (2021-05)
Gotta Go Fast When Generating Data with Score-Based Models
and 12 more not named here
register_predictor 15 other papers
12 dated earlier, 3 later · 2 only as an assembly brick
2006.09011 (2020-06)
Improved Techniques for Training Score-Based Generative Models
2011.13456 (2020-11)
Score-Based Generative Modeling through Stochastic Differential Equations
2105.14080 (2021-05)
Gotta Go Fast When Generating Data with Score-Based Models
and 12 more not named here
lerp_clip 3 other papers
3 dated earlier
2205.07460 (2022-05)
Diffusion Models for Adversarial Purification
2311.16124 (2023-11)
DiffAttack: Evasion Attacks Against Diffusion-Based Adversarial Purification
2401.16352 (2024-01)
Adversarial Training on Purification (AToP): Advancing Both Robustness and Generalization
max_res_from_state_dict 3 other papers
3 dated earlier
2205.07460 (2022-05)
Diffusion Models for Adversarial Purification
2311.16124 (2023-11)
DiffAttack: Evasion Attacks Against Diffusion-Based Adversarial Purification
2401.16352 (2024-01)
Adversarial Training on Purification (AToP): Advancing Both Robustness and Generalization
from_state_dict 2 other papers
2 dated earlier
2311.16124 (2023-11)
DiffAttack: Evasion Attacks Against Diffusion-Based Adversarial Purification
2401.16352 (2024-01)
Adversarial Training on Purification (AToP): Advancing Both Robustness and Generalization
get_sde_loss_fn 1 other paper
1 dated earlier
2311.16124 (2023-11)
DiffAttack: Evasion Attacks Against Diffusion-Based Adversarial Purification

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

Repositories linked to this paper

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

Abstract

Diffusion models (DMs) have demonstrated great potential in the field of adversarial robustness, where DM-based defense methods can achieve superior defense capability without adversarial training. However, they all require huge computational costs due to the usage of large-scale pre-trained DMs, making it difficult to conduct full evaluation under strong attacks and compare with traditional CNN-based methods. Simply reducing the network size and timesteps in DMs could significantly harm the image generation quality, which invalidates previous frameworks. To alleviate this issue, we redesign the diffusion framework from generating high-quality images to predicting distinguishable image labels. Specifically, we employ an image translation framework to learn many-to-one mapping from input samples to designed orthogonal image labels. Based on this framework, we introduce an efficient Image-to-Image diffusion classifier with a pruned U-Net structure and reduced diffusion timesteps. Besides the framework, we redesign the optimization objective of DMs to fit the target of image classification, where a new classification loss is incorporated in the DM-based image translation framework to distinguish the generated label from those of other classes. We conduct sufficient evaluations of the proposed classifier under various attacks on popular benchmarks. Extensive experiments show that our method achieves better adversarial robustness with fewer computational costs than DM-based and CNN-based methods. The code is available at https://github.com/hfmei/IDC

For agents

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

get_harvested_code_for_paper("2408.08502")
get_code_for_paper("2408.08502")
have("2408.08502")

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

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

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

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

Connect an agent — have() is free.