PAD: Patch-Agnostic Defense against Adversarial Patch Attacks

Lihua Jing, Rui Wang, Wenqi Ren, Xin Dong, Cong Zou

Introduction

Object detection systems, critical for autonomous vehicles and surveillance, face a significant threat from adversarial patches. Unlike subtle pixel-level perturbations, these patches are localized "stickers" that can be physically printed and placed in the real world to deceive detectors, making objects disappear or be misclassified.

Existing defenses are often brittle: denoising-based methods struggle with high-quality, natural-looking patches, while segmenter-based defenses fail against unseen attack types. The core challenge lies in developing a patch-agnostic defense—one capable of neutralizing any patch regardless of its appearance or training history.

Methodology: The PAD Pipeline

PAD (Patch-Agnostic Defense) is a plug-and-play mechanism designed to detect and remove adversarial patches by identifying two universal "red flags": semantic independence and spatial heterogeneity.

The PAD architecture showing the dual localization branches, fusion block, and final inpainting process.

1. Semantic Independence Localization

Adversarial patches are typically generated independently of their background. PAD utilizes Mutual Information (MI) to measure how much information a local region shares with its neighbors. Because a patch’s content does not "flow" logically from the surrounding scene (e.g., a dog face on a person's chest), it exhibits low mutual information, marking it as a "semantic island."

2. Spatial Heterogeneity Localization

Patches often possess different image quality signatures—such as compression artifacts or noise levels—compared to the original image. PAD performs recompression at various quality factors and analyzes the residuals. Areas where the quality signature deviates from the rest of the image are flagged as suspicious.

3. Fusion and Refinement

These two localization heatmaps are merged and refined using adaptive thresholding. To achieve precise boundaries, PAD integrates the Segment Anything Model (SAM). By matching the rough heatmap to SAM’s zero-shot object masks, the system generates a precise patch boundary. The detected area is then "inpainted" (filled in) before the image is passed to a standard object detector like YOLO or Faster R-CNN.

Key Results and Performance

PAD demonstrates a significant improvement over state-of-the-art (SOTA) methods across various digital and physical datasets, including INRIA, MS COCO, and APRICOT.

  • Superior Detection: Against naturalistic patches on a Faster R-CNN detector, PAD achieved a mean Average Precision (mAP) of 83.23%, significantly outperforming the next best defense, Jedi (66.12%).
  • Localization Accuracy: PAD improved "Patch Localization Recall" by 30%–55% over existing methods like SAC and Jedi.
  • Minimal Impact on Clean Data: The defense maintains high accuracy on non-adversarial images, with only a negligible 0.02% drop in performance.
  • Physical Robustness: In real-world physical tests (APRICOT), PAD reduced the Attack Success Rate (ASR) to 2.27%, outperforming specialized defenses trained specifically on that data.
Comparison of Attack Success Rate (ASR) across different defense mechanisms, highlighting PAD's competitive performance.

Conclusion and Future Work

By leveraging the "Island Hypothesis"—the idea that adversarial patches are semantic and spatial outsiders—PAD provides a robust, zero-shot defense mechanism. While highly effective, future work will focus on reducing the computational overhead of the sliding window MI and SAM components to enable real-time applications in autonomous driving. Additionally, researchers aim to address potential adaptive attacks where adversaries might attempt to mimic the background's semantic and spatial signatures.

Summary updated

BibTeX
@inproceedings{jing2024pad,
  author = {Lihua Jing and Rui Wang and Wenqi Ren and Xin Dong and Cong Zou},
  title = {{PAD: Patch-Agnostic Defense against Adversarial Patch Attacks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure