Attacking Important Pixels for Anchor-free Detectors

Yunxu Xie, Shu Hu, Xin Wang, Quanyu Liao, Bin Zhu, Xi Wu, Siwei LyuarXiv 2023 · DOI

Introduction

Object detection has traditionally relied on anchor-based architectures like Faster R-CNN, which utilize thousands of predefined bounding boxes. Recently, anchor-free detectors such as CenterNet have gained traction due to their streamlined design and superior inference speed. These models bypass anchors entirely, instead predicting "heatmaps" to identify the center points (keypoints) of objects. However, this shift in architecture introduces new security vulnerabilities. This paper presents the first adversarial attack framework specifically engineered for anchor-free detectors, targeting the "important pixels" that define these heatmaps.

The Vulnerability of Anchor-free Detectors

Existing adversarial attacks are often optimized for anchor-based mechanisms, focusing on perturbing box proposals. When applied to anchor-free models, these attacks frequently underperform. The authors identify that the core of an anchor-free detector's logic lies in its heatmap generation. To fool such a model, an attacker must manipulate the peaks of these heatmaps.

A critical discovery in this research is the "runner-up pixel" effect. In many cases, simply suppressing the primary keypoint is insufficient; the detector often identifies a neighboring pixel with a slightly lower score as the new center point. Effective attacks must therefore target both the primary keypoints and these "runner-up" pixels to ensure the object remains undetected.

Proposed Methodology

The authors introduce a Category-wise Attack framework designed to target all instances of a specific class (e.g., all "cars") simultaneously, rather than attacking objects individually. This approach enhances both computational efficiency and the transferability of the adversarial examples.

Overview of the category-wise adversarial attack framework, illustrating the SCA and DCA (Global, Local, and Semantic) variants.

The framework consists of two primary strategies:

  1. Sparse Category-wise Attack (SCA): This method focuses on minimizing the $L_0$ norm. It iteratively identifies and perturbs a minimal set of highly influential pixels, making the attack nearly invisible to human observers while effectively degrading detector performance.
  2. Dense Category-wise Attack (DCA): This strategy minimizes the $L_\infty$ norm, distributing subtle perturbations across specific regions. Three variants are proposed:
  3. DCA-G (Global): Applies perturbations across the entire image.
  4. DCA-L (Local): Targets a square region surrounding the detected objects.
  5. DCA-S (Semantic): The most advanced variant, utilizing Multi-layer Semantic Information Region Selection (MSIRE). MSIRE analyzes gradients across multiple CNN layers to isolate the precise semantic regions (such as a person's face) that the detector relies upon, creating a highly targeted attack mask.

Experimental Evaluation

The proposed methods were rigorously tested on the PascalVOC and MS-COCO benchmarks, as well as the MS-COCO Keypoints dataset for human pose estimation. The evaluation focused on Attack Success Ratio (ASR), mean Average Precision (mAP) under attack, and generation time.

Performance comparison of the proposed attacks against the DAG baseline. The results highlight superior ASR and significantly reduced computation time for DCA variants.

Key Findings

The results demonstrate that anchor-free detectors are highly susceptible to heatmap-based manipulation. In white-box settings on MS-COCO, the DCA-G and DCA-S variants achieved a near-perfect ASR of 99%, outperforming the previous state-of-the-art DAG method (89%).

Efficiency is a major advantage of this framework. DCA-G was found to be approximately 14 times faster than DAG, making it viable for real-time applications. Furthermore, the SCA method proved that detectors could be fooled by altering less than 1% of the image pixels.

Perhaps most significantly, the attacks exhibited high transferability. Adversarial images generated to fool a CenterNet model were successful in degrading the performance of entirely different architectures, including anchor-based models like Faster R-CNN and SSD. This suggests that "important pixels" identified by anchor-free models represent fundamental semantic features used across various detection paradigms.

Conclusion

This research highlights a significant security gap in modern anchor-free object detectors. By targeting category-wide "important pixels" and accounting for the runner-up effect, the proposed framework achieves unprecedented success rates and efficiency. As anchor-free models continue to be deployed in safety-critical systems, developing robust defense mechanisms against these heatmap-targeted attacks is an urgent priority for the computer vision community.

Summary updated

BibTeX
@misc{xie2023attacking,
  author = {Yunxu Xie and Shu Hu and Xin Wang and Quanyu Liao and Bin Zhu and Xi Wu and Siwei Lyu},
  title = {{Attacking Important Pixels for Anchor-free Detectors}},
  year = {2023},
  eprint = {2301.11457},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.11457},
}
Figure