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

Boming Miao, Chunxiao Li, Yao Zhu, Weixiang Sun, Zizhe Wang, Xiaoyi Wang, Chuanlong XiearXiv 2024 · DOI

Abstract

Adversarial patches are effective tools for fooling object detectors but often suffer from poor visual quality, making them easily detectable by humans or automated defenses. We present AdvLogo, a framework that leverages diffusion models to generate high-quality, natural-looking adversarial patches. By optimizing latent variables in the frequency domain and fine-tuning unconditional embeddings, AdvLogo identifies "adversarial subspaces" within semantic categories. Our results demonstrate that AdvLogo achieves superior black-box transferability and aesthetic quality compared to existing natural patch methods, while remaining robust against common adversarial defenses.

Introduction

Object detection systems are vulnerable to adversarial patches—localized perturbations designed to induce misclassification. Traditional patches, such as AdvPatch, are highly effective but visually conspicuous, resembling random noise. Conversely, "natural" adversarial patches generated by GANs often lack the potency required for reliable black-box attacks. AdvLogo addresses this trade-off by utilizing the generative power of Stable Diffusion to find versions of objects that appear normal to humans but reside in adversarial subspaces that trigger detector failures.

The Adversarial Subspace Hypothesis

The core premise of AdvLogo is the existence of an "adversarial subspace" within the broader semantic space of an object category (e.g., "dog"). While two images of a dog may be distant in pixel space, the introduction of Gaussian noise during the diffusion process creates a bridge between them. This allows the optimization process to shift a standard image into an adversarial one that the diffusion model then "cleans" into a high-quality, natural-looking result.

The Adversarial Subspace Hypothesis: Noise acts as a bridge between semantic space and adversarial subspaces, allowing for the generation of natural-looking yet effective patches.

The AdvLogo Framework

AdvLogo employs Stable Diffusion 2.1 to generate patches. The framework introduces several key innovations:

  1. Frequency Domain Optimization: Instead of direct pixel manipulation, perturbations are applied to latent variables in the frequency domain via Fourier Transforms. This preserves global image structure and prevents the "salt and pepper" noise typical of adversarial attacks.
  2. Unconditional Embedding Optimization: The authors discovered that optimizing the "null" or unconditional embedding—the part of the diffusion model usually representing no specific prompt—significantly enhances adversarial strength without compromising visual fidelity.
  3. Gradient Approximation: To handle the computational cost of backpropagating through the multi-step diffusion process, a simplified gradient approximation is used.
AdvLogo Architecture and Results: The framework optimizes latent variables in the frequency domain to generate adversarial patches. The right panel shows the detector being fooled (bottom) compared to the clean baseline (top).

Experimental Evaluation

Evaluated on the INRIA Person dataset against seven mainstream detectors (including YOLO and Faster R-CNN), AdvLogo consistently outperformed previous state-of-the-art natural patch methods like NAP. In black-box settings against YOLO v2, AdvLogo showed a 17.91% improvement in attack success rate over NAP. Furthermore, AdvLogo proved more resilient to "Segment and Complete" (SAC) defenses because its patches are indistinguishable from real objects, unlike the garbled patterns of traditional adversarial noise.

Conclusion

AdvLogo demonstrates that diffusion models can be effectively harnessed to create a new class of adversarial attacks that are both potent and aesthetically pleasing. Future work will explore semantic variability across different prompts and investigate prompt tuning as a means of embedding adversarial signals directly into text-to-image instructions.

Summary updated

BibTeX
@misc{miao2024advlogo,
  author = {Boming Miao and Chunxiao Li and Yao Zhu and Weixiang Sun and Zizhe Wang and Xiaoyi Wang and Chuanlong Xie},
  title = {{AdvLogo: Adversarial Patch Attack against Object Detectors based on Diffusion Models}},
  year = {2024},
  eprint = {2409.07002},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.07002},
}
Figure