arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.00322cs.LGcs.AIcs.CR
收藏

DensePure:理解扩散模型的对抗鲁棒性

DensePure: Understanding Diffusion Models towards Adversarial Robustness

Arizona State University(亚利桑那州立大学);NVIDIA(英伟达);University of Michigan, Ann Arbor(密歇根大学安娜堡分校);Caltech(加州理工学院);UIUC(伊利诺伊大学厄巴纳-香槟分校);UC Berkeley(加州大学伯克利分校)

Chaowei Xiao, Zhongzhu Chen, Kun Jin, Jiongxiao Wang, Weili Nie, Mingyan Liu, Anima Anandkumar, Bo Li, Dawn Song

摘要:

扩散模型最近已被用于通过去噪过程来提高经认证的鲁棒性。然而,扩散模型为什么能够提高认证的鲁棒性的理论理解仍然缺乏,阻碍了进一步的改进。在这项研究中,我们通过分析扩散模型的基本属性,并建立条件下,他们可以提高认证的鲁棒性,关闭这一差距。这种更深入的理解使我们能够提出一种新的方法DensePure,旨在提高预训练模型(即分类器)的认证鲁棒性。给定一个(对抗性)输入,DensePure包括通过扩散模型(具有不同的随机种子)的反向过程进行多次去噪,以获得多个反向样本,然后将其通过分类器,然后对推断的标签进行多数投票以进行最终预测。这种使用多轮去噪的设计是通过我们对反向样本的条件分布的理论分析得到的。具体而言,当干净样本的数据密度高时,其在扩散模型中的逆过程下的条件密度也高;因此从后一个条件分布中采样可以净化对抗样本,并以高概率返回相应的干净样本。利用条件分布中的最高密度点作为反向样本,确定了给定实例在扩散模型反向过程下的鲁棒区域。我们发现,这个强大的区域是一个联盟的多个凸集,并可能远远大于在以前的作品中确定的强大的区域。在实践中,DensePure可以近似条件分布中高密度区域的标签,从而可以增强认证的鲁棒性。

英文摘要:

Diffusion models have been recently employed to improve certified robustness through the process of denoising. However, the theoretical understanding of why diffusion models are able to improve the certified robustness is still lacking, preventing from further improvement. In this study, we close this gap by analyzing the fundamental properties of diffusion models and establishing the conditions under which they can enhance certified robustness. This deeper understanding allows us to propose a new method DensePure, designed to improve the certified robustness of a pretrained model (i.e. classifier). Given an (adversarial) input, DensePure consists of multiple runs of denoising via the reverse process of the diffusion model (with different random seeds) to get multiple reversed samples, which are then passed through the classifier, followed by majority voting of inferred labels to make the final prediction. This design of using multiple runs of denoising is informed by our theoretical analysis of the conditional distribution of the reversed sample. Specifically, when the data density of a clean sample is high, its conditional density under the reverse process in a diffusion model is also high; thus sampling from the latter conditional distribution can purify the adversarial example and return the corresponding clean sample with a high probability. By using the highest density point in the conditional distribution as the reversed sample, we identify the robust region of a given instance under the diffusion model's reverse process. We show that this robust region is a union of multiple convex sets, and is potentially much larger than the robust regions identified in previous works. In practice, DensePure can approximate the label of the high density region in the conditional distribution so that it can enhance certified robustness.

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

↑