Classifier Guidance Enhances Diffusion-based Adversarial Purification by Preserving Predictive Information
Mingkun Zhang, Jianing Li, Wei Chen, Jiafeng Guo, Xueqi Cheng
TL;DR
This work introduces COUP, a classifier-confidence guided purification method that enhances diffusion-based adversarial purification by preserving predictive information and avoiding decision-boundary regions. By augmenting the reverse-time diffusion with a gradient term derived from the classifier's confidence, COUP reduces label-shift risk and bounds purification distortion, yielding improved robustness against strong attacks such as AutoAttack and BPDA+EOT on CIFAR-10/100. Theoretical results justify the design with propositions on label stability and $l_2$ purification bounds, while extensive experiments demonstrate consistent robustness gains across backbone architectures and attack settings. The approach leverages off-the-shelf diffusion models and classifiers, achieving superior performance without bespoke adversarial training, and offers practical insights into the trade-offs between denoising strength and information preservation in diffusion-based purification.
Abstract
Adversarial purification is one of the promising approaches to defend neural networks against adversarial attacks. Recently, methods utilizing diffusion probabilistic models have achieved great success for adversarial purification in image classification tasks. However, such methods fall into the dilemma of balancing the needs for noise removal and information preservation. This paper points out that existing adversarial purification methods based on diffusion models gradually lose sample information during the core denoising process, causing occasional label shift in subsequent classification tasks. As a remedy, we suggest to suppress such information loss by introducing guidance from the classifier confidence. Specifically, we propose Classifier-cOnfidence gUided Purification (COUP) algorithm, which purifies adversarial examples while keeping away from the classifier decision boundary. Experimental results show that COUP can achieve better adversarial robustness under strong attack methods.
