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

PatchAttack: A Black-Box Texture-Based Attack with Reinforcement Learning

Chenglin Yang, Adam Kortylewski, Cihang Xie, Yinzhi Cao, Alan L. Yuille

Abstract

PatchAttack is a highly efficient black-box adversarial attack that induces misclassification by superimposing small, textured patches onto images. By utilizing reinforcement learning (RL) to optimize patch placement and a custom "texture dictionary" to provide class-specific visual signals, the method achieves a >99% success rate on ImageNet while manipulating as little as 3% of the image. This approach significantly outperforms traditional monochrome patch attacks in both query efficiency and targeted success rates.

Introduction

Adversarial attacks on deep convolutional neural networks (DCNNs) generally fall into two categories: perturbation-based attacks, which add imperceptible noise across an entire image, and patch-based attacks, which place visible, localized blocks over specific regions. While patch-based attacks are more representative of real-world threats (e.g., physical stickers on objects), existing black-box versions face significant challenges. They often rely on inefficient random search strategies, requiring tens of thousands of queries, and typically use monochrome patches that lack the semantic information needed for successful targeted attacks.

Methodology

PatchAttack addresses these limitations by formulating the search for an adversarial patch as a reinforcement learning problem.

Reinforcement Learning Agent

The core of the system is an RL agent—specifically an LSTM-based policy network—that learns to sequentially place patches. The agent receives a reward based on the target model's output: for non-targeted attacks, the reward is proportional to the drop in confidence for the correct class; for targeted attacks, it is based on the rise in confidence for a specific target class.

The PatchAttack workflow: (1) RL agent selects patch position, (2) selects texture image, (3) selects patch position within texture, (4) applies texture, (5) feeds to DCNN, and (6) receives reward.

The Texture Dictionary

A key innovation of PatchAttack is the use of textured patches instead of monochrome ones. Textured patches are "additive," injecting features that actively steer the model's decision-making process. To facilitate this, the authors developed a "Texture Dictionary":

  1. Extraction: Gram matrices (mathematical signatures of style and texture) are extracted from ImageNet classes using a VGG19 network.
  2. Refinement: Grad-CAM is used to ensure textures are derived from objects rather than backgrounds.
  3. Clustering: Signatures are clustered to identify 30 prototypical textures for each of the 1,000 ImageNet classes.
Examples from the Texture Dictionary for various ImageNet classes, showing prototypical textures used to trick models.

Experimental Results

The researchers evaluated PatchAttack on the ImageNet (ILSVRC2012) dataset against several DCNN architectures, including ResNet50, DenseNet121, ResNeXt50, and MobileNetV2.

Key Performance Metrics

  • Success Rate: The attack achieved a >99% success rate for non-targeted attacks across all architectures.
  • Query Efficiency: By learning the "geometry" of model vulnerabilities, the RL agent reached success in roughly 1/10th the queries required by random search methods. For instance, on ResNet50, PatchAttack required ~983 queries compared to 10,000 for the Hastings Patch Attack (HPA) baseline.
  • Targeted Attacks: While monochrome attacks often struggle with targeted scenarios (frequently below 25% success), PatchAttack reached near 100% targeted success on most models, typically requiring occlusion of about 10% of the image.

Robustness Against Defenses

PatchAttack successfully bypassed state-of-the-art defenses like Feature Denoising. Because the patches represent coherent "objects" rather than random noise, standard denoisers fail to filter them out. Furthermore, the attack remained effective against "shape-biased" networks, suggesting that even models designed to focus on global structure still rely heavily on local texture cues.

Conclusion

PatchAttack demonstrates that texture-based patches, optimized via reinforcement learning, represent a potent threat to DCNNs. While targeted attacks still require a significant number of queries (up to 15,000), the method's ability to inject class-specific information makes it far more effective than previous black-box patch attacks. Future work may explore model-agnostic texture generation and the translation of these digital patches into physical-world adversarial objects.

Summary updated

BibTeX
@inproceedings{yang2020patchattack,
  author = {Chenglin Yang and Adam Kortylewski and Cihang Xie and Yinzhi Cao and Alan L. Yuille},
  title = {{PatchAttack: A Black-Box Texture-Based Attack with Reinforcement Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58574-7\_41},
}
Figure