Class-Conditioned Transformation for Enhanced Robust Image Classification

Tsachi Blau, Roy Ganz, Chaim Baskin, Michael Elad, Alex M. Bronstein
3/27/2023
cs.CV

No official code found. Best implementation: tsachiblau/Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification (4 stars, MIT, last commit 2024-11-07).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Class-Conditioned-Transformation-for-Enhanced-Robust-Image-Classification

40PythonNov 4, 20241 years agoMIT

Similar Papers

Cite this paper

@article{blau2023classconditioned,
  title  = {Class-Conditioned Transformation for Enhanced Robust Image Classification},
  author = {Tsachi Blau and Roy Ganz and Chaim Baskin and Michael Elad and Alex M. Bronstein},
  year   = {2023},
  eprint = {2303.15409},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.15409v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.15409.svg)](https://codeofpaper.com/paper/2303.15409)

Discussion