Abstract
Adversarial attacks on object detectors are significantly more challenging than those on simple classifiers due to the dual requirements of localization and classification. This paper introduces HNM-PGD (Half-Neighbor Masked Projected Gradient Descent), a novel attack framework designed to fool state-of-the-art detectors like YOLOv4 and Faster RCNN under strict $\ell_0$ constraints. By modifying less than 2% of an image's pixels and organizing them into a limited number of connected "patches," HNM-PGD forces detectors to misclassify objects or ignore them entirely. The method achieved a top 1% ranking in the CIKM 2020 AnalytiCup competition.
Introduction
While adversarial noise that spans an entire image can easily fool classification models, such attacks are often unrealistic for physical-world applications and easily detected by preprocessing filters. In the context of object detection, an effective attack must be localized and sparse. This research addresses the $\ell_0$ constraint challenge: generating a potent attack that modifies only a tiny fraction of pixels grouped into a few connected regions. The goal is to identify the most sensitive semantic regions where minimal perturbations can cause catastrophic failure in the detection pipeline.
Methodology: The HNM-PGD Framework
The authors propose a two-stage framework to generate these sparse, high-impact adversarial patches.
1. Mask Finding (The "Where")
The first stage identifies critical pixels using SmoothGrad, which generates a salience map by averaging gradients over multiple noisy versions of the input image. To satisfy the patch constraint (e.g., fewer than 10 connected regions), the authors introduce Half-Neighbor (HN) refinement. Inspired by K-Nearest Neighbors, a pixel is retained in the mask only if at least half of its neighbors are also selected. This process eliminates isolated noise and creates cohesive, patch-like shapes.
2. Masked PGD Attack (The "How")
With the mask defined, Projected Gradient Descent (PGD) is employed to optimize pixel values within the mask to maximize the detector's loss. For YOLOv4, the attack targets the "objectness" confidence score, while for Faster RCNN, it performs a targeted attack to force a "background" classification. The framework can simultaneously target both architectures by optimizing a combined loss function.
Key Insights and Results
The HNM-PGD method demonstrated high efficiency, successfully fooling models while modifying less than 2% of total pixels. A key finding was the importance of semantic targeting; adversarial patches naturally gravitated toward critical object features like eyes, torsos, or wheels, suggesting these are the primary anchors for detector logic.
Furthermore, the researchers observed that "linear" patches (thin lines) often outperformed dense "blocky" patches. This is likely because thin lines can disrupt more receptive fields across a CNN's sliding convolution kernels than a concentrated block of the same pixel count. As shown in the performance metrics, the attack's effectiveness generally scales with the pixel budget, though different architectures exhibit varying levels of sensitivity.
Conclusion and Future Work
HNM-PGD proves that object detectors are highly vulnerable to sparse, localized perturbations. While the current attack relies on white-box access to model gradients, its success in competition settings highlights a significant security gap. Future research will focus on improving black-box transferability and testing these patches in physical environments (e.g., as printed stickers) to further evaluate their real-world impact.
Summary updated