Robust Classification via a Single Diffusion ModelRobust Classification via a Single Diffusion Model
The paper proposes the Robust Diffusion Classifier (RDC), which builds an adversarially robust generative classifier from a pretrained diffusion model. On CIFAR-10, RDC achieves 75.67% robust accuracy against multiple ℓ∞-norm-constrained adaptive attacks with ε∞=8/255, 4.77% higher than the previous state-of-the-art adversarially trained model. RDC first maximizes the data likelihood of the input, then uses the conditional likelihood estimated by the diffusion model to predict class probabilities via Bayes' theorem; the paper states that the method requires no training against specific adversarial attacks and generalizes better to multiple unseen threats. To reduce computational cost, the paper proposes a new diffusion backbone called multi-head diffusion and an efficient sampling strategy. The research background is that diffusion purification can be bypassed by stronger adaptive attacks and adversarial training performs poorly under unseen threats; code is open-sourced at https://github.com/huanranchen/DiffusionClassifier.