Skip to main content
QUICK REVIEW

[论文解读] DensePure: Understanding Diffusion Models towards Adversarial Robustness

Chaowei Xiao, Zhong‐Zhu Chen|arXiv (Cornell University)|Nov 1, 2022
Adversarial Robustness in Machine LearningComputer Science被引用 18
一句话总结

DensePure 提出了一种新颖的即插即用方法,通过扩散模型提升微调分类器的认证对抗鲁棒性。通过使用不同随机种子对对抗输入反复进行去噪,并对分类器输出进行多数投票,DensePure 识别出由多个凸集组成的鲁棒区域,这些区域围绕高密度的干净样本分布,从而在 ImageNet 上实现了 SOTA 的认证鲁棒性,平均提升 7%。

ABSTRACT

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.

研究动机与目标

  • 为了从理论上理解扩散模型为何能增强对抗防御中的认证鲁棒性。
  • 为了识别扩散模型反向过程在何种条件下能够可靠地从对抗输入中恢复干净标签。
  • 为了开发一种实用的、无需调参的方法,在不微调分类器的前提下提升认证鲁棒性。
  • 为了将扩散模型反向过程下样本的鲁棒区域表征为多个凸集的并集。
  • 为了在 ImageNet 和 CIFAR-10 上实证验证所提方法在认证鲁棒性方面优于现有方法。

提出的方法

  • DensePure 使用预训练扩散模型的反向过程,从单个对抗输入生成多个去噪样本,每个样本使用不同的随机种子。
  • 该方法将预训练分类器应用于每个去噪样本,并通过多数投票确定最终预测结果。
  • 理论分析表明,当干净样本的数据密度较高时,扩散模型下反向样本的条件密度也较高,从而能够可靠地恢复干净标签。
  • 给定输入的鲁棒区域被表征为多个凸集的并集,每个凸集以高密度干净样本为中心,其范围显著大于先前方法中的单邻域鲁棒区域。
  • 该方法采用条件分布中密度最高的点作为反向样本的确定性代理,提升了稳定性和鲁棒性。
  • 采用快速采样技术(如 b=2, K=10)以降低计算成本,同时保持较强的认证准确率。

实验结果

研究问题

  • RQ1在何种条件下,扩散模型的反向过程能够可靠地从对抗输入中恢复干净数据?
  • RQ2反向样本的条件分布与干净样本的数据密度之间有何关系?
  • RQ3基于扩散模型的防御的鲁棒区域是否可表征为多个凸集的并集?与先前方法相比有何差异?
  • RQ4使用不同随机种子进行重复去噪是否能超越单一样本去噪,提升认证鲁棒性?
  • RQ5一种完全基于推理、无需调优的方法(如 DensePure)是否能在 ImageNet 上实现 SOTA 的认证鲁棒性?

主要发现

  • 与现有方法相比,DensePure 在 ImageNet 上实现了 7% 的平均认证鲁棒性提升,包括 Carlini 等人(2022)提出的先前 SOTA 方法。
  • 在 ImageNet 上使用 ViT-B/16 时,DensePure 在 ϵ=2.0 时达到 92.0% 的认证准确率,优于先前 SOTA 的 90.0%。
  • 对于 ImageNet 上的 BEiT 主干网络,DensePure 在 ϵ=2.0 时达到 80.0% 的认证准确率,而先前 SOTA 为 77.0%。
  • DensePure 识别出的鲁棒区域是由多个凸集组成的并集,其范围显著大于先前工作中单邻域鲁棒区域。
  • 该方法在 ViT、BEiT 和 WideResNet 等不同架构上,在 ImageNet 和 CIFAR-10 上均保持了优异性能。
  • 即使采用快速采样(b=2, K=10),DensePure 仍能实现非平凡的认证准确率,证明了其在高计算成本下的实际可行性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。