Real-world Adversarial Defense against Patch Attacks based on Diffusion Model

Xingxing Wei, Caixin Kang, Yinpeng Dong, Zhengyi Wang, Shouwei Ruan +2 more
9/14/2024
cs.CVcs.AIcs.CR

No official code found. Best implementation: kkkcx/DIFFender (38 stars, last commit 2024-09-14). 1 more below.

Abstract

Adversarial patches present significant challenges to the robustness of deep learning models, making the development of effective defenses become critical for real-world applications. This paper introduces DIFFender, a novel DIFfusion-based DeFender framework that leverages the power of a text-guided diffusion model to counter adversarial patch attacks. At the core of our approach is the discovery of the Adversarial Anomaly Perception (AAP) phenomenon, which enables the diffusion model to accurately detect and locate adversarial patches by analyzing distributional anomalies. DIFFender seamlessly integrates the tasks of patch localization and restoration within a unified diffusion model framework, enhancing defense efficacy through their close interaction. Additionally, DIFFender employs an efficient few-shot prompt-tuning algorithm, facilitating the adaptation of the pre-trained diffusion model to defense tasks without the need for extensive retraining. Our comprehensive evaluation, covering image classification and face recognition tasks, as well as real-world scenarios, demonstrates DIFFender's robust performance against adversarial attacks. The framework's versatility and generalizability across various settings, classifiers, and attack methodologies mark a significant advancement in adversarial patch defense strategies. Except for the popular visible domain, we have identified another advantage of DIFFender: its capability to easily expand into the infrared domain. Consequently, we demonstrate the good flexibility of DIFFender, which can defend against both infrared and visible adversarial patch attacks alternatively using a universal defense framework.

View on arXivView PDF

Code Implementations(2)

kkkcx/DIFFenderCommunity100%
381Shell, PythonJul 10, 20242 years ago
Bomingmiao/AdvlogoCommunity72%
MIT

AdvLogo: Adversarial Patch Attack against Object Detectors based on Diffusion Models

212C, C++Jun 5, 202411 months agoMIT

Cite this paper

@article{wei2024realworld,
  title  = {Real-world Adversarial Defense against Patch Attacks based on Diffusion Model},
  author = {Xingxing Wei and Caixin Kang and Yinpeng Dong and Zhengyi Wang and Shouwei Ruan and Yubo Chen and Hang Su},
  year   = {2024},
  eprint = {2409.09406},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.09406v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.09406.svg)](https://codeofpaper.com/paper/2409.09406)

Discussion