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は、事前学習された分類器の保証可能な敵対的ロバストネスを向上させるための新しい、即座に利用可能な手法を提案する。拡散モデルの逆過程を異なるランダムシードを用いて反復的にノイズ除去することで、分類器の出力に対して多数決を適用し、高密度なクリーンサンプルの周囲に複数の凸集合からなるロバスト領域を特定する。これにより、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は、事前学習済みの拡散モデルの逆過程を用いて、1つの敵対的入力から複数のノイズ除去済みサンプルを生成する。各サンプルは異なるランダムシードを用いる。
  • この手法は、各ノイズ除去済みサンプルに対して事前学習済み分類器を適用し、分類器出力の多数決を用いて最終予測を決定する。
  • 理論的分析により、クリーンサンプルのデータ密度が高い場合、拡散モデルにおける逆サンプルの条件付き密度も高くなることが示され、クリーンラベルの信頼性ある回復が可能である。
  • 与えられた入力のロバスト領域は、高密度なクリーンサンプルの周囲に中心を持つ複数の凸集合の和集合として特徴づけられる。これは、従来の単一近傍領域よりも顕著に大きな領域である。
  • 逆サンプルの条件付き分布における最高密度点を、決定論的代理として用いることで、安定性とロバストネスが向上する。
  • 計算コストを低減するために、高速サンプリング技術(例:b=2, K=10)が用いられ、強力な保証可能な正確性を維持している。

実験結果

リサーチクエスチョン

  • RQ1拡散モデルの逆過程が、敵対的入力からクリーンデータを信頼性高く回復する条件は何か?
  • RQ2逆サンプルの条件付き分布は、クリーンサンプルのデータ密度とどのように関係するか?
  • RQ3拡散ベースの防御におけるロバスト領域は、複数の凸集合の和集合として特徴づけられるか?また、従来手法と比較してどうなるか?
  • RQ4異なるランダムシードを用いた反復的なノイズ除去は、単一サンプルのノイズ除去を上回る保証可能なロバストネスを実現できるか?
  • RQ5DensePureのような純粋に推論に依存し、チューニングを行わない手法が、ImageNetでSOTAの保証可能なロバストネスを達成できるか?

主な発見

  • DensePureは、Carliniら(2022年)の先行SOTAを含め、従来手法と比較してImageNetで平均7%の保証可能なロバストネスの向上を達成した。
  • ViT-B/16を用いたImageNetでは、ϵ=2.0で92.0%の保証可能な正確性を達成し、前回SOTAの90.0%を上回った。
  • BEiTバックボーンを用いたImageNetでは、ϵ=2.0で80.0%の保証可能な正確性を達成し、前回SOTAの77.0%を上回った。
  • DensePureが特定したロバスト領域は、複数の凸集合の和集合であり、従来の手法における単一近傍領域とは顕著に大きい。
  • ViT、BEiT、WideResNetなど、さまざまなアーキテクチャにおいて、ImageNetおよびCIFAR-10の両方で強力な性能を維持した。
  • 高速サンプリング(b=2, K=10)でさえも、非自明な保証可能な正確性を達成しており、高い計算コストにもかかわらず実用的であることを示した。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。