Efficient Image-to-Image Diffusion Classifier for Adversarial Robustness

Hefei Mei, Minjing Dong, Chang Xu
8/16/2024
cs.CV

No official code found. Best implementation: hefeimei06/IDC (20 stars, last commit 2024-08-21).

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

View on arXivView PDF

Code Implementations(1)

hefeimei06/IDCCommunity100%

[AAAI 2025] Efficient Image-to-Image Diffusion Classifier for Adversarial Robustness

200C++, CudaAug 16, 20242 years ago

Similar Papers

Cite this paper

@article{mei2024efficient,
  title  = {Efficient Image-to-Image Diffusion Classifier for Adversarial Robustness},
  author = {Hefei Mei and Minjing Dong and Chang Xu},
  year   = {2024},
  eprint = {2408.08502},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.08502v2}
}

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/2408.08502.svg)](https://codeofpaper.com/paper/2408.08502)

Discussion