Papers › Class-Conditioned Transformation for Enhanced Robust Image Classification

Class-Conditioned Transformation for Enhanced Robust Image Classification

27 Mar 2023arXiv:2303.15409archive 2025-07-28

Tsachi Blau, Roy Ganz, Chaim Baskin, Michael Elad, Alex M. Bronstein

Robust classification methods predominantly concentrate on algorithms that address a specific threat model, resulting in ineffective defenses against other threat models. Real-world applications are exposed to this vulnerability, as malicious attackers might exploit alternative threat models. In this work, we propose a novel test-time threat model agnostic algorithm that enhances Adversarial-Trained (AT) models. Our method operates through COnditional image transformation and DIstance-based Prediction (CODIP) and includes two main steps: First, we transform the input image into each dataset class, where the input image might be either clean or attacked. Next, we make a prediction based on the shortest transformed distance. The conditional transformation utilizes the perceptually aligned gradients property possessed by AT models and, as a result, eliminates the need for additional models or additional training. Moreover, it allows users to choose the desired balance between clean and robust accuracy without training. The proposed method achieves state-of-the-art results demonstrated through extensive experiments on various models, AT methods, datasets, and attack types. Notably, applying CODIP leads to substantial robust accuracy improvement of up to +23%, +20%, +26%, and +22% on CIFAR10, CIFAR100, ImageNet and Flowers datasets, respectively.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2303.15409")

Code

Syntology Ran 3 of 10 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 3 ran · our draft was wrong.

By repository: official repository: 10 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 3 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
7unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

conv1x1 tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/model_arch/at_cifar.py official repository ran · our draft was wrong MIT (permissive) · d9def42110729a85 · report
conv3x3 tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/model_arch/at_cifar.py official repository ran · our draft was wrong MIT (permissive) · 160bb14bd76201b4 · report
conv3x3 tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/model_arch/wrn_28_10.py official repository ran · our draft was wrong MIT (permissive) · 00e569acd6b45ef0 · report
ResNet50 tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/model_arch/at_cifar.py official repository unverified MIT (permissive) · f33d6d82ee840347 · report
get_data_loader tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/data_utils.py official repository unverified MIT (permissive) · af354de631970edf · report
get_dataset_size tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/data_utils.py official repository unverified MIT (permissive) · 56b891f65c4ee632 · report
get_defense_threat_model tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/defense_utils.py official repository unverified MIT (permissive) · 370a1033f6925505 · report
get_num_of_classes tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/data_utils.py official repository unverified MIT (permissive) · 6325559431cdcd07 · report
get_threat_model tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/attack_utils.py official repository unverified MIT (permissive) · 925bcee5b7a0ae14 · report
resnet18 tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification/model_arch/at_imagenet.py official repository unverified MIT (permissive) · be69fee37e7e35e5 · report

Tasks

Adversarial AttackClassificationImage ClassificationRobust classificationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections