Introduction
Adversarial attacks in the physical world typically involve "patches"—printed patterns placed on objects to deceive AI systems. While effective at fooling object detectors, these patches are often conspicuous and garish, making them easily detectable by human observers. This paper introduces PG-ECAP (Prompt-Guided Environmentally Consistent Adversarial Patch), a novel method that leverages latent diffusion models and text prompts to generate adversarial patches that are both effective against AI and visually harmonious with their surroundings.
The Challenge of Environmental Consistency
Previous adversarial patch designs often prioritize attack success over visual naturalness. Even when "naturalness" is considered (e.g., making a patch look like a common object), the resulting images are frequently distorted or out of context. For instance, a neon-colored geometric pattern on a T-shirt in a forest setting would immediately draw human suspicion. PG-ECAP addresses this lack of environmental consistency by ensuring patches blend seamlessly into specific target environments.
Methodology: PG-ECAP
The core of PG-ECAP is the optimization within the latent space of a Latent Diffusion Model (LDM), specifically Stable Diffusion. Instead of manipulating raw pixels, the system optimizes the initial noise ($z_T$) to find an adversarial representation that remains within the manifold of natural-looking images.
Key Technical Components
- Prompt Guidance: A text prompt (e.g., "a picture full of leaf-like green colors") defines the target environment, guiding the diffusion model to generate contextually appropriate textures.
- Prompt Alignment Loss ($L_{prompt}$): This loss tracks cross-attention maps between the text prompt and latent variables. By stabilizing these maps, the system ensures the patch retains its intended semantic style during optimization.
- Latent Space Alignment Loss ($L_{latent}$): This ensures the adversarial patch remains semantically close to the initial natural image generated from the prompt.
- Attack Optimization ($L_{attack}$): A standard adversarial loss is used to minimize the confidence scores of target object detectors like YOLO or Faster R-CNN.
Experimental Evaluation
The researchers evaluated PG-ECAP using the INRIA Person Dataset for digital benchmarks and conducted extensive physical testing in real-world scenes including lobbies, hallways, woodlands, and lawns.
Key Results
- Digital and Physical Performance: In white-box digital attacks, PG-ECAP achieved a mean Average Precision (mAP) of 27.09%, outperforming state-of-the-art methods. In physical tests, the adversarial T-shirts achieved an average Attack Success Rate (ASR) of 94.14%.
- Human Perception: A subjective study rated PG-ECAP at 5.56/7 for environmental consistency, significantly higher than the next best competitor, AdvCat (2.89).
- Transferability: Patches optimized for one detector showed high transferability to other architectures, including transformer-based models like DETR.
Conclusion
PG-ECAP demonstrates that adversarial patches can be both highly effective and stealthy by leveraging the generative power of diffusion models. By shifting the focus from simple "naturalness" to "environmental consistency," this work makes physical adversarial attacks significantly more practical and difficult for humans to detect.
Summary updated