Lune

ICML2024Top-tier venue

Diffusion Models Demand Contrastive Guidance for Adversarial Purification to Advance

Mingyuan Bai, Wei Huang, Tenghui Li, Andong Wang, Junbin Gao, Cesar F. Caiafa, Qibin Zhao

Abstract

In adversarial defense, adversarial purification can be viewed as a special generation task with the purpose to remove adversarial attacks and diffusion models excel in adversarial purification for their strong generative power. With different predetermined generation requirements, various types of guidance have been proposed, but few of them focuses on adversarial purification. In this work, we propose to guide diffusion models for adversarial purification using contrastive guidance. We theoretically derive the proper noise level added in the forward process diffusion models for adversarial purification from a feature learning perspective. For the reverse process, it is implied that the role of contrastive loss guidance is to facilitate the evolution towards the signal direction. From the theoretical findings and implications, we design the forward process with the proper amount of Gaussian noise added and the reverse process with the gradient of contrastive loss as the guidance of diffusion models for adversarial purification. Empirically, extensive experiments on CIFAR-10, CIFAR-100, the German Traffic Sign Recognition Benchmark and ImageNet datasets with ResNet and WideResNet classifiers show that our method outperforms most of current adversarial training and adversarial pu-

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Adversarial Purification via Super-Resolution and Diffusion cites Score-Based Generative Modeling through Stochastic Differential Equations
  • Sample-specific Noise Injection for Diffusion-based Adversarial Purification cites Diffusion Models Beat GANs on Image Synthesis
  • Sample-specific Noise Injection for Diffusion-based Adversarial Purification cites Score-Based Generative Modeling through Stochastic Differential Equations
  • Contrastive Learning with Hard Negative Samples cites Debiased Contrastive Learning
  • Efficient Image-to-Image Diffusion Classifier for Adversarial Robustness cites Diffusion Models Beat GANs on Image Synthesis
  • Efficient Image-to-Image Diffusion Classifier for Adversarial Robustness cites Score-Based Generative Modeling through Stochastic Differential Equations
  • Diffusion Models Beat GANs on Image Synthesis cites Score-Based Generative Modeling through Stochastic Differential Equations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Adversarial Purification via Super-Resolution and DiffusionMincheol Park, Cheonjun Park, Seungseop Lim, Mijin Koo et al.ICCV 2025 · 2 citations
  2. Efficient Image-to-Image Diffusion Classifier for Adversarial RobustnessHefei Mei, Minjing Dong, Chang XuAAAI 2025 · 2 citations
  3. Sample-specific Noise Injection for Diffusion-based Adversarial PurificationYuhao Sun, Jiacheng Zhang, Zesheng Ye, Chaowei Xiao et al.ICML 2025
  4. Divide and Conquer: Heterogeneous Noise Integration for Diffusion-based Adversarial PurificationGaozheng Pei, Shaojie Lyu, Gong Chen, Ke Ma et al.CVPR 2025
  5. Diffusion-based Adversarial Purification from the Perspective of the Frequency DomainGaozheng Pei, Ke Ma, Yingfei Sun, Qianqian Xu et al.ICML 2025

Builds on28

  1. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  2. Score-Based Generative Modeling through Stochastic Differential EquationsYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar et al.ICLR 2021 · 1,270 citations
  3. Contrastive Learning with Hard Negative SamplesJoshua David Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie JegelkaICLR 2021 · 999 citations
  4. Adversarial Weight Perturbation Helps Robust GeneralizationDongxian Wu, Shu-Tao Xia, Yisen WangNeurIPS 2020 · 917 citations
  5. Debiased Contrastive LearningChing-Yao Chuang, Joshua Robinson, Yen-Chen Lin, Antonio Torralba et al.NeurIPS 2020 · 761 citations

Related papers

  1. Diffusion Models for Adversarial PurificationWeili Nie, Brandon Guo, Yujia Huang, Chaowei Xiao et al.ICML 2022 · 663 citations
  2. MimicDiffusion: Purifying Adversarial Perturbation via Mimicking Clean Diffusion ModelKaiyu Song, Hanjiang Lai, Yan Pan, Jian YinCVPR 2024 · 11 citations
  3. ADBM: Adversarial Diffusion Bridge Model for Reliable Adversarial PurificationXiao Li, Wenxuan Sun, Huanran Chen, Qiongxiu Li et al.ICLR 2025
  4. Two Modalities Are Better Than One: Efficient Adversarial Purification via Multimodal Diffusion ModelsMingyuan Bai, Wei Huang, Tenghui Li, Andong Wang et al.ICML 2026
  5. Towards Understanding the Robustness of Diffusion-Based Purification: A Stochastic PerspectiveYiming Liu, Kezhao Liu, Yao Xiao, Ziyi Dong et al.ICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines