RPATTACK: Refined Patch Attack on General Object Detectors

Hao Huang, Yongtao Wang, Zhaoyu Chen, Zhi Tang, Wenqiang Zhang, Kai-Kuang Ma

Abstract

Adversarial patch attacks pose a significant threat to object detection systems, yet existing methods often suffer from high perceptibility, computational inefficiency, and poor transferability across different architectures. This paper introduces RPATTACK (Refined Patch Attack), a surgical approach that identifies and optimizes a sparse set of "key-pixels" to disrupt detector feature maps. By employing an iterative refining scheme and a balanced ensemble attack strategy, RPATTACK achieves a 100% success rate in hiding objects from both YOLO v4 and Faster R-CNN while modifying as little as 0.32% of the image area. Our results demonstrate that detectors can be completely blinded by a tiny fraction of strategically placed pixels, highlighting a critical security vulnerability in modern computer vision.

Introduction

Object detection models, such as YOLO and Faster R-CNN, are integral to safety-critical applications like autonomous driving and surveillance. However, these models are vulnerable to adversarial patches—localized perturbations that cause misclassification or missed detections. Traditional patch attacks typically generate large, blocky, and highly visible noise patterns. These are not only easy for humans to detect but also require extensive iterations to optimize and often fail to transfer between one-stage and two-stage detection architectures.

RPATTACK addresses these challenges by focusing on "refined" perturbations. Instead of a contiguous block, it utilizes a distributed set of pixels that are nearly invisible to the human eye but devastatingly effective against multiple detection models simultaneously.

Methodology

The core innovation of RPATTACK lies in its ability to find the most influential pixels in an image and optimize them through a balanced ensemble approach.

1. Key-Pixel Selection and Iterative Refining

Rather than attacking the entire image or a fixed rectangular region, RPATTACK searches for key-pixels—points with the highest influence on the detector's output.

  • Initial Selection: The image is divided into a grid, and cumulative gradients are calculated to identify regions where pixel changes most significantly affect the model's loss function.
  • Iterative Refining: During optimization, the algorithm dynamically "prunes" pixels that contribute less to the attack. If a pixel's gradient magnitude falls significantly below the average, it is removed from the patch. This results in a sparse, non-contiguous set of perturbations that exploit the specific geometry of the target objects.

2. Balanced Ensemble Attack

To ensure the attack is effective against diverse architectures, RPATTACK employs a gradient balancing technique. When attacking an ensemble (e.g., YOLO v4 and Faster R-CNN), the algorithm monitors the number of objects detected by each model. If one model is already successfully fooled, the optimization weight shifts toward the model that still detects objects. This prevents the attack from over-fitting to one architecture and ensures a stable convergence toward a total detection failure across all targeted models.

Results and Discussion

The effectiveness of RPATTACK was evaluated on the VOC 2007 and Ali-Attack-Data (MS COCO 2017 subset) benchmarks.

Performance and Efficiency

RPATTACK demonstrates superior performance compared to established methods like DPATCH and DPAttack. On the VOC 2007 test set, it reduced the Mean Average Precision (mAP) of both YOLO v4 and Faster R-CNN to 0.00, representing a 100% missed detection rate.

Comparison of RPAttack with existing methods DPATCH and DPAttack. RPAttack achieves a significantly lower perturbed area ratio (0.05% in this example) while maintaining effectiveness.

As shown in the figure above, RPATTACK achieves this total failure with a minimal footprint. While DPATCH requires modifying over 8% of the image, RPATTACK achieves its goal by perturbing only 0.32% of the pixels on average. Furthermore, the method is highly efficient, converging in approximately 2,000 iterations, which is orders of magnitude faster than many previous patch-based attacks.

Key Insights

The success of RPATTACK reveals that pixel importance is highly non-uniform within an image. A very small number of strategically placed pixels can disrupt the feature maps of a neural network just as effectively as a large, solid patch. The dynamic pruning process allows the attack to find a "natural" adversarial structure that is difficult for human observers to notice.

Conclusion

RPATTACK highlights a significant security gap in general object detectors. By refining the attack to a sparse set of key-pixels, it achieves unprecedented efficiency and imperceptibility. While these results are currently demonstrated in digital environments, they underscore the need for more robust detection architectures and the development of defensive countermeasures to protect against surgical adversarial perturbations.

Summary updated

BibTeX
@inproceedings{huang2021rpattack,
  author = {Hao Huang and Yongtao Wang and Zhaoyu Chen and Zhi Tang and Wenqiang Zhang and Kai-Kuang Ma},
  title = {{RPATTACK: Refined Patch Attack on General Object Detectors}},
  booktitle = {ICME},
  year = {2021},
  doi = {10.1109/icme51207.2021.9428443},
}
Figure