Diffusion to Confusion: Naturalistic Adversarial Patch Generation Based on Diffusion Model for Object Detector

Shuo-Yen Lin, Ernie Chu, Che-Hsien Lin, Jun-Cheng Chen, Jia-Ching Wang

TL;DR

This paper introduces a novel method for generating "naturalistic" physical adversarial patches using Diffusion Models (DMs) to fool object detectors. By optimizing within the latent space of a pretrained DM, the authors create patches that are highly effective at hiding people from AI surveillance while appearing as perfectly normal images (like dogs or cars) to the human eye.

What Problem Does This Paper Address?

Object detection technology is everywhere, from autonomous vehicles to security cameras. While beneficial, it also poses a significant privacy threat. One way to counter this is through physical adversarial attacks: wearing a patch or sticker that confuses the detector, making the wearer "invisible" to the AI.

The challenge lies in the trade-off between attack performance and stealthiness. Early adversarial patches looked like colorful, high-contrast digital noise—highly effective, but incredibly obvious to any human observer. Recent attempts to make patches look "natural" (often using Generative Adversarial Networks, or GANs) frequently suffer from "mode collapse" (limited variety) and require grueling hyperparameter tuning to balance looking real with being effective.

Methods

The authors propose Adversarial Patch Sampling (APS), leveraging the power of Latent Diffusion Models (LDMs) like Stable Diffusion.

Instead of directly manipulating pixels, their method operates in the DM's latent space. The process works as follows:

  1. Initial Generation: They start with a natural image generated by a text-conditioned LDM (e.g., a prompt for "a high-quality photo of a Pomeranian").
  2. Optimization Loop: In each training iteration, they add a controlled amount of Gaussian noise to the patch.
  3. Denoising & Guidance: A denoising U-Net then pulls the noisy patch back toward the manifold of natural images, guided by the original text prompt.
  4. Adversarial Gradient: Simultaneously, they calculate a loss based on a victim object detector (aiming to minimize the detector's confidence in finding a "person"). This gradient is backpropagated through the entire sampling process to update the patch.
  5. Scene Rendering: To ensure the patch works in the real world, they use a rendering function that simulates various physical conditions like lighting, rotation, and scaling (Expectation Over Transformations) before feeding the image to the detector.
Figure 2. Overall architecture for the proposed method which gen- erates naturalistic adversarial patches. At each optimization iter- ation, a fixed amount of Gaussian noise is added to the patch. A denoising U-Net then iteratively removes the noise from the patch. Finally, we update the original patch according to the gradient from the object detector’s objective. Human image courtesy to INRIA dataset.

Datasets

  • INRIA Person Dataset: The primary dataset used for training and evaluating pedestrian detection.
  • MPII Human Pose Dataset: Used for cross-dataset evaluation to see how well patches trained on one dataset generalize to another.
  • MS COCO: The standard dataset used to pretrain the "victim" object detectors (YOLO series, Faster R-CNN, etc.).

Key Insights and Ideas

  • DMs over GANs: Diffusion models are inherently better at capturing the vast diversity of natural images without the stability issues of GANs. This allows for much more diverse and higher-quality adversarial patches.
  • Text Conditioning as a Semantic Anchor: Using a text prompt (like "cat" or "car") during the adversarial search is crucial. It acts as a guide, ensuring the patch retains its intended semantic meaning even as it's being warped to fool the AI.
  • The $t_{start}$ "Sweet Spot": The authors found that the amount of noise added during optimization ($t_{start}$) is critical. Too little noise ($<0.3T$) doesn't provide enough room for adversarial optimization; too much ($>0.7T$) destroys the image's naturalness. The "sweet spot" is between $0.4T$ and $0.6T$.
  • Bypassing Defenses: Because these patches look like natural objects rather than digital noise, they successfully bypass existing defenses like "Segment and Complete" (SAC), which are designed to detect and ignore traditional noisy adversarial patches.

Key Results

The DM-based patches significantly outperformed previous state-of-the-art naturalistic methods (like the GAN-based approach by Hu et al.) in both effectiveness and human preference.

  • Quantitative: In head-to-head tests on the INRIA dataset, the proposed method achieved an average mAP (mean Average Precision) of 18.2% across multiple detectors, compared to 21.8% for the previous best naturalistic method (lower mAP indicates a more successful attack).
  • Qualitative/Subjective: In a user study with 114 participants, 80.8% of users preferred the naturalness of the DM-generated patches over previous works. When asked to rate naturalness, the DM patches received a score of 69.29%, far higher than Hu et al. (14.03%) and Thys et al. (2.63%).
  • Physical World: The authors printed patches on T-shirts and confirmed they successfully fooled detectors in real-world indoor and outdoor scenes.
Figure 1. Our method produces naturalistic adversarial patches that can be easily utilized in real-world. Our patches (top-row) are more diverse and natural-looking than the ones from previous works (bottom-row) .

Limitations and Future Work

  • Cross-Dataset Generalization: While effective, the patches don't generalize perfectly across different datasets (e.g., training on INRIA and testing on MPII). This is likely due to differences in camera angles and person poses between datasets.
  • Prompt Sensitivity: The choice of text prompt matters. Future work could explore more complex prompts or automated prompt engineering to find even more effective "natural" disguises.
  • Computational Cost: While the authors used techniques like DDIM to speed up generation, diffusion-based optimization is still more computationally intensive than simpler pixel-manipulation methods.

Summary updated

BibTeX
@misc{lin2023diffusion,
  author = {Shuo-Yen Lin and Ernie Chu and Che-Hsien Lin and Jun-Cheng Chen and Jia-Ching Wang},
  title = {{Diffusion to Confusion: Naturalistic Adversarial Patch Generation Based on Diffusion Model for Object Detector}},
  year = {2023},
  eprint = {2307.08076},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.08076},
}
Figure