Skip to main content
QUICK REVIEW

[논문 리뷰] DensePure: Understanding Diffusion Models towards Adversarial Robustness

Chaowei Xiao, Zhong‐Zhu Chen|arXiv (Cornell University)|2022. 11. 01.
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.

연구 동기 및 목표

  • 확산 모델이 인증 가능한 내성 향상에 기여하는 이유를 이론적으로 이해하는 것.
  • 확산 모델의 역과정이 적대적 입력으로부터 정상 레이블을 신뢰성 있게 복원할 수 있는 조건을 규명하는 것.
  • 분류기 재학습 없이도 인증 가능한 내성을 향상시킬 수 있는 실용적이고 파rameter-free 방법을 개발하는 것.
  • 확산 모델의 역과정 하에서 샘플의 내성 영역을 다수의 볼록집합의 합집합으로 특성화하는 것.
  • 제안된 방법이 ImageNet과 CIFAR-10에서 기존 방법들보다 인증 가능한 내성에서 뛰어난 성능을 보임을 경험적으로 검증하는 것.

제안 방법

  • DensePure는 사전 훈련된 확산 모델의 역과정을 사용하여 동일한 적대적 입력으로부터 다양한 랜덤 시드를 사용해 다수의 정제된 샘플을 생성한다.
  • 이 방법은 각 정제된 샘플에 대해 사전 훈련된 분류기를 적용하고, 최종 예측을 결정하기 위해 다수결표를 사용한다.
  • 이론적 분석에 따르면, 정상 샘플의 데이터 밀도가 높을 경우, 확산 모델 하에서 역과정에 의한 샘플의 조건부 밀도도 높아지며, 이는 정상 레이블의 안정적인 복원을 가능하게 한다.
  • 주어진 입력에 대한 내성 영역은 고밀도 정상 샘플 주변에 중심을 둔 여러 볼록집합의 합집합으로 특성화되며, 이는 이전 연구에서 제안된 단일 이웃 내성 영역보다 훨씬 크다.
  • 역과정에 의한 샘플의 조건부 분포에서 가장 높은 밀도를 가진 점을 결정적 프록시로 사용함으로써 안정성과 내성을 향상시킨다.
  • 계산 비용을 줄이기 위해 빠른 샘플링 기법(예: b=2, K=10)을 활용하면서도 강력한 인증 정확도를 유지한다.

실험 결과

연구 질문

  • RQ1확산 모델의 역과정이 적대적 입력으로부터 정상 데이터를 신뢰성 있게 복원할 수 있는 조건은 무엇인가?
  • RQ2역과정에 의한 샘플의 조건부 분포는 정상 샘플의 데이터 밀도와 어떻게 관련이 있는가?
  • RQ3확산 기반 방어의 내성 영역은 다수의 볼록집합의 합집합으로 특성화될 수 있으며, 이는 이전 방법들과 비교해 어떻게 다른가?
  • RQ4다양한 랜덤 시드를 사용해 반복적인 노이즈 제거를 수행함으로써 단일 샘플 노이즈 제거를 초월해 인증 가능한 내성을 향상시킬 수 있는가?
  • RQ5DensePure처럼 순수하게 추론 기반이며 튜닝이 없는 방법이 ImageNet에서 최고 성능(SOTA)의 인증 가능한 내성을 달성할 수 있는가?

주요 결과

  • DensePure는 기존 방법들 대비 ImageNet에서 평균 7% 향상된 인증 가능한 내성을 확보했으며, Carlini 등(2022)의 이전 SOTA를 포함한다.
  • 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) 조건에서도 비현저한 인증 정확도를 확보함으로써, 높은 계산 비용에도 불구하고 실용 가능성을 입증한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.