arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.02316cs.LGcs.CV
收藏

你的扩散模型其实是一个可认证鲁棒的分类器

Your Diffusion Model is Secretly a Certifiably Robust Classifier

Tsinghua University(清华大学);RealAI

Huanran Chen, Yinpeng Dong, Shitong Shao, Zhongkai Hao, Xiao Yang, Hang Su, Jun Zhu

AI总结:

该研究证明扩散分类器具有O(1)利普希茨性与固有可认证鲁棒性,通过推广至高斯损坏数据分类得到加噪扩散分类器(NDCs),在CIFAR-10上实现了更优的可认证鲁棒性。

摘要:

生成式学习以其对数据分布的有效建模而著称,在处理分布外样本方面具有固有优势,尤其是在提升对抗攻击鲁棒性方面。其中,利用强大扩散模型的扩散分类器已展现出优异的经验鲁棒性。然而,目前仍缺乏对其鲁棒性的全面理论理解,这引发了人们对其在未来更强攻击下脆弱性的担忧。在本研究中,我们证明了扩散分类器具有O(1)利普希茨性,并建立了其可认证鲁棒性,证明了其固有的恢复能力。为了实现非恒定利普希茨性,从而获得更严格的可认证鲁棒性,我们将扩散分类器推广到对高斯损坏数据进行分类。这包括推导这些分布的证据下界(ELBOs),使用ELBO近似似然,并通过贝叶斯定理计算分类概率。实验结果表明,这些加噪扩散分类器(Noised Diffusion Classifiers, NDCs)具有优异的可认证鲁棒性。值得注意的是,在CIFAR-10数据集上,当ℓ₂范数分别小于0.25和0.5的对抗扰动下,我们使用单个现成的扩散模型且无需任何额外数据,实现了超过80%和70%的可认证鲁棒性。

英文摘要:

Generative learning, recognized for its effective modeling of data distributions, offers inherent advantages in handling out-of-distribution instances, especially for enhancing robustness to adversarial attacks. Among these, diffusion classifiers, utilizing powerful diffusion models, have demonstrated superior empirical robustness. However, a comprehensive theoretical understanding of their robustness is still lacking, raising concerns about their vulnerability to stronger future attacks. In this study, we prove that diffusion classifiers possess $O(1)$ Lipschitzness, and establish their certified robustness, demonstrating their inherent resilience. To achieve non-constant Lipschitzness, thereby obtaining much tighter certified robustness, we generalize diffusion classifiers to classify Gaussian-corrupted data. This involves deriving the evidence lower bounds (ELBOs) for these distributions, approximating the likelihood using the ELBO, and calculating classification probabilities via Bayes' theorem. Experimental results show the superior certified robustness of these Noised Diffusion Classifiers (NDCs). Notably, we achieve over 80% and 70% certified robustness on CIFAR-10 under adversarial perturbations with \(\ell_2\) norms less than 0.25 and 0.5, respectively, using a single off-the-shelf diffusion model without any additional data.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑