Saved in:
Bibliographic Details
Main Authors: Liu, Yiming, Liu, Kezhao, Xiao, Yao, Dong, Ziyi, Xu, Xiaogang, Wei, Pengxu, Lin, Liang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2404.14309
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916674279571456
author Liu, Yiming
Liu, Kezhao
Xiao, Yao
Dong, Ziyi
Xu, Xiaogang
Wei, Pengxu
Lin, Liang
author_facet Liu, Yiming
Liu, Kezhao
Xiao, Yao
Dong, Ziyi
Xu, Xiaogang
Wei, Pengxu
Lin, Liang
contents Diffusion-Based Purification (DBP) has emerged as an effective defense mechanism against adversarial attacks. The success of DBP is often attributed to the forward diffusion process, which reduces the distribution gap between clean and adversarial images by adding Gaussian noise. While this explanation is theoretically sound, the exact role of this mechanism in enhancing robustness remains unclear. In this paper, through empirical analysis, we propose that the intrinsic stochasticity in the DBP process is the primary factor driving robustness. To test this hypothesis, we introduce a novel Deterministic White-Box (DW-box) setting to assess robustness in the absence of stochasticity, and we analyze attack trajectories and loss landscapes. Our results suggest that DBP models primarily rely on stochasticity to avoid effective attack directions, while their ability to purify adversarial perturbations may be limited. To further enhance the robustness of DBP models, we propose Adversarial Denoising Diffusion Training (ADDT), which incorporates classifier-guided adversarial perturbations into the diffusion training process, thereby strengthening the models' ability to purify adversarial perturbations. Additionally, we propose Rank-Based Gaussian Mapping (RBGM) to improve the compatibility of perturbations with diffusion models. Experimental results validate the effectiveness of ADDT. In conclusion, our study suggests that future research on DBP can benefit from a clearer distinction between stochasticity-driven and purification-driven robustness.
format Preprint
id arxiv_https___arxiv_org_abs_2404_14309
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Towards Understanding the Robustness of Diffusion-Based Purification: A Stochastic Perspective
Liu, Yiming
Liu, Kezhao
Xiao, Yao
Dong, Ziyi
Xu, Xiaogang
Wei, Pengxu
Lin, Liang
Computer Vision and Pattern Recognition
Diffusion-Based Purification (DBP) has emerged as an effective defense mechanism against adversarial attacks. The success of DBP is often attributed to the forward diffusion process, which reduces the distribution gap between clean and adversarial images by adding Gaussian noise. While this explanation is theoretically sound, the exact role of this mechanism in enhancing robustness remains unclear. In this paper, through empirical analysis, we propose that the intrinsic stochasticity in the DBP process is the primary factor driving robustness. To test this hypothesis, we introduce a novel Deterministic White-Box (DW-box) setting to assess robustness in the absence of stochasticity, and we analyze attack trajectories and loss landscapes. Our results suggest that DBP models primarily rely on stochasticity to avoid effective attack directions, while their ability to purify adversarial perturbations may be limited. To further enhance the robustness of DBP models, we propose Adversarial Denoising Diffusion Training (ADDT), which incorporates classifier-guided adversarial perturbations into the diffusion training process, thereby strengthening the models' ability to purify adversarial perturbations. Additionally, we propose Rank-Based Gaussian Mapping (RBGM) to improve the compatibility of perturbations with diffusion models. Experimental results validate the effectiveness of ADDT. In conclusion, our study suggests that future research on DBP can benefit from a clearer distinction between stochasticity-driven and purification-driven robustness.
title Towards Understanding the Robustness of Diffusion-Based Purification: A Stochastic Perspective
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2404.14309