Defending Person Detection Against Adversarial Patch Attack by using Universal Defensive Frame

Youngjoon Yu, Hong Joo Lee, Hakmin Lee, Yong Man Ro · DOI

TL;DR

This paper introduces the Universal Defensive Frame (UDF), a novel, image-agnostic border pattern applied to input images to protect person detection models from adversarial patch attacks. Generated via a competitive learning game between a shielding frame and a threatening patch, UDF successfully restores object detection capabilities without requiring model retraining or sacrificing accuracy on clean images.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) excel at computer vision tasks like person detection, but they possess a critical vulnerability: adversarial patch attacks. By printing a carefully crafted, localized pattern onto a T-shirt or poster, an attacker can become completely invisible to state-of-the-art object detectors. This poses severe safety risks for autonomous driving and automated security systems.

Defending against these localized attacks is uniquely challenging. Unlike image classification defenses, object detection defenses must handle multiple targets, varying bounding box coordinates, and complex spatial contexts. Existing solutions typically require retraining the entire detection network with massive datasets or introducing heavy computational overhead during inference. Furthermore, many defenses suffer from a "robustness tax," significantly degrading the model's accuracy on normal, clean images.

Methods

The authors propose a counter-intuitive but elegant solution: using a localized pattern to defeat a localized pattern. Instead of altering the network weights, they optimize a static Universal Defensive Frame (UDF) that is added to the outer border of any incoming image.

Fig. 1. Person detection results of the proposed universal defensive frame (UDF). Ground truth is depicted as green line and the prediction is depicted as blue line. (a) an adversarial patch [22] attacked person evades person detection; (b) the adversarial patch attacked person in (a) can be detected with UDF; (c) the detection of the adversarial patch attacked person and clean person (d) the adversarial patch attacked person in (c) can be detected with UDF. A demo video can be found at: https://youtu.be/hAXZWv95EPE

To generate a robust, image-agnostic frame, the authors design a min-max optimization framework based on competitive learning:

  1. The Threatening Patch Module acts as the attacker, iteratively optimizing a localized patch to minimize the detector's objectness score (making the person invisible).
  2. The Shielding Frame Module acts as the defender, optimizing the border frame to maximize the objectness score and restore the original detection coordinates.
Fig. 2. Overview of the proposed framework to generate the universal shielding frame s with frame width w. The framework consists of an integrating module, the competitive generation module, and the error condition check. The integrating module combines input image set X, shielding frame sk, and threatening patch tk. The competitive generation module (orange dotted box) takes the integrated image set as an input and iteratively returns the shielding frame sk and threatening patch tk. The error condition modulates the termination of iteration by the switching path according to the error rate threshold δ. After optimizing for all sub-image sets in the entire dataset, we used the final optimized universal shielding frame s∗as universal defensive frame d in the inference stage. LUSF is the loss function to optimize the universal shielding frame.

Through this cat-and-mouse game, the frame learns to universally counteract the feature-suppressing effects of adversarial patches across a broad data distribution. During inference, this optimized frame is simply pasted onto incoming images as a lightweight pre-processing step.

Fig. 3. Detailed architecture of the competitive generation module. The architecture can include any weight-fixed detector (e.g., YOLO and Fast(er) R-CNN). The shielding frame generation module (blue, top) receives the detection output fθ as an input and outputs the loss function LUSF and the universal shielding frame s. The threatening patch generation module (red, bottom) takes an objectness score S as input and returns the universal threatening patch t as output. Competitive learning between these two modules encourages better output s, t. fθ is the detection output which is the combined vector including the classification score, the objectness score, and the bounding box location. LUSF and LUT P are the loss functions that optimize USF and UTP, respectively.

Datasets

The method was evaluated using two distinct datasets:

  • INRIA Person Dataset: A standard public benchmark for pedestrian detection and adversarial patch evaluation, consisting of 614 training images and 288 test images.
  • Collected Dataset: A custom dataset captured by the authors using a FLIR Pro R camera to simulate a real-world security entrance. It contains 630 training images and 187 validation images across indoor and outdoor scenes, all manually annotated.

Key Insights and Ideas

  • Fighting Localized with Localized: Instead of trying to globally robustify a network, the UDF exploits the network's sensitivity to localized context. Placing a defensive pattern on the image border effectively "cancels out" the malicious signals generated by a patch on a person's chest.
  • Zero Retraining Overhead: Because UDF acts purely in the input space, it is entirely model-agnostic and works out-of-the-box with weight-fixed detectors like YOLO-v2 or Faster R-CNN.
  • Preserving the Clean Baseline: Traditional adversarial training often degrades standard accuracy. Because the UDF occupies only the uninformative outer edges of an image, it leaves the central semantic content intact, preserving clean image performance.

Key Results

The authors evaluated UDF against three state-of-the-art patch attacks (Adv-patch, Adv-T-shirt, and Adv-cloak):

  • Restoring Detection Performance: On the INRIA dataset using YOLO-v2, an Adv-patch attack plummeted the model's Average Precision (AP) from 89.63% down to 18.80%. Applying the UDF successfully recovered the AP back to 51.96%. Similar strong recoveries were observed using Faster R-CNN (improving from 49.21% to 69.32%).
  • Negligible Clean Image Impact: Across all datasets and models, applying the UDF to clean images resulted in an AP drop of less than 1%.
  • Resilience to Adaptive Attacks: Even in a white-box scenario where the attacker knows the exact UDF pattern and designs an "adaptive patch" to bypass it, the UDF maintained a solid defense (recovering YOLO-v2 AP to 44.49%).
  • Real-Time Efficiency: UDF introduces minimal latency, adding only 5.2 ms of overhead for YOLO-v2 and 13.1 ms for Faster R-CNN on a standard GTX 1080Ti GPU.

Limitations and Future Work

The primary limitation acknowledged by the authors is that the current UDF optimization is class-specific, focusing exclusively on protecting the person class. While highly relevant for security and autonomous driving, a truly universal defense should protect against multi-class object suppression. The authors note that generalizing learnable defensive frames to multi-class object detection is a key direction for their future work.

Summary updated

BibTeX
@misc{yu2022defending,
  author = {Youngjoon Yu and Hong Joo Lee and Hakmin Lee and Yong Man Ro},
  title = {{Defending Person Detection Against Adversarial Patch Attack by using Universal Defensive Frame}},
  year = {2022},
  eprint = {2204.13004},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.13004},
}
Figure