NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generating Visually Realistic Adversarial Patch

Xiaosen Wang, Kunyu WangarXiv 2023

Abstract: Deep neural networks (DNNs) are vulnerable to various types of adversarial examples, bringing huge threats to security-critical applications. Among these, adversarial patches have drawn increasing attention due to their good applicability to fool DNNs in the physical world. However, existing works often generate patches with meaningless noise or patterns, making it conspicuous to humans. To address this issue, we explore how to generate visually realistic adversarial patches to fool DNNs. Firstly, we analyze that a high-quality adversarial patch should be realistic, position irrelevant, and printable to be deployed in the physical world. Based on this analysis, we propose an effective attack called VRAP, to generate visually realistic adversarial patches. Specifically, VRAP constrains the patch in the neighborhood of a real image to ensure the visual reality, optimizes the patch at the poorest position for position irrelevance, and adopts Total Variance loss as well as gamma transformation to make the generated patch printable without losing information. Empirical evaluations on the ImageNet dataset demonstrate that the proposed VRAP exhibits outstanding attack performance in the digital world. Moreover, the generated adversarial patches can be disguised as the scrawl or logo in the physical world to fool the deep models without being detected, bringing significant threats to DNNs-enabled applications.

Introduction

Deep Neural Networks (DNNs) are notoriously fragile. "Adversarial patches"—small, localized images added to a scene—can trick a model into misclassifying an object, such as seeing a toaster instead of a banana. While effective in digital simulations, most existing patches appear as meaningless digital noise, making them immediately obvious to humans in physical environments. This conspicuousness limits their practical threat in real-world security scenarios.

The VRAP Methodology

To overcome the limitations of noise-based attacks, the researchers developed VRAP (Visually Realistic Adversarial Patch). This method focuses on three pillars of practical physical attacks: visual reality, position irrelevance, and printability.

Comparison of adversarial patches generated by GoogleAp, LaVAN, and the proposed VRAP. VRAP patches (right column) resemble natural objects like oranges, making them less conspicuous than the noise patterns of other methods.

Technical Strategies

  • $\epsilon$-Neighborhood Constraint: Instead of starting with random noise, VRAP begins with a real image (like a drawing or a logo). The algorithm constrains adversarial perturbations to stay within a small distance ($\epsilon$) of the original image, ensuring the final patch remains visually recognizable as a natural "scrawl" or object.
  • Local Search for Position Robustness: In the physical world, precise placement is difficult. VRAP uses a local search during optimization to identify the "poorest" (least effective) position in a neighborhood and optimizes the patch to succeed specifically in that worst-case scenario. This makes the patch universally effective across a range of nearby positions.
  • Printability Optimization: To survive the transition from screen to paper, the method employs Total Variation (TV) loss to ensure smooth color transitions and a learnable gamma transformation to account for the brightness and contrast shifts typical of physical printing.

Experimental Evaluation

The researchers evaluated VRAP using the ImageNet (ILSVRC 2012) validation set, selecting 1,000 images across 1,000 classes that were correctly classified by target models. The attack was tested against several popular architectures, including VGG-16, ResNet-18, DenseNet-121, and MobileNet-v2.

Key Results

VRAP demonstrated high efficacy across all tested models. In digital simulations, it achieved a 100% Attack Success Rate (ASR) on VGG-16 and over 90% on ResNet-18 and MobileNet-v2 at a patch size of 0.3.

Attack success rates of VRAP across different model architectures (VGG-16, ResNet-18, DenseNet-121, MobileNet-v2) as a function of patch size and the constraint parameter $\epsilon$.

Beyond raw success rates, the "Position Irrelevant Rate" (PIR) reached nearly 100% on VGG-16 and averaged 80% on other models, confirming that the patch remains effective even when its exact location varies. Furthermore, VRAP proved resilient against state-of-the-art adversarial defenses like PatchGuard and LGS, maintaining an average ASR of 73.4%.

Conclusion

By disguising adversarial attacks as common scrawls or logos, VRAP shifts the focus of adversarial machine learning toward "social engineering" for computer vision. The ability to hijack a model's attention using realistic textures, as confirmed by Grad-CAM visualizations, poses a significant threat to DNN-enabled applications in the physical world. Future work will explore more diverse natural styles and investigate whether these realistic patches can be used to improve model robustness through adversarial training.

Summary updated

BibTeX
@misc{wang2023generating,
  author = {Xiaosen Wang and Kunyu Wang},
  title = {{Generating Visually Realistic Adversarial Patch}},
  year = {2023},
  eprint = {2312.03030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.03030},
}
Figure