Attacking Object Detector Using A Universal Targeted Label-Switch Patch

Avishag Shapira, Ron Bitton, Dan Avraham, Alon Zolfi, Yuval Elovici, Asaf ShabtaiarXiv 2022

Abstract

Adversarial attacks against deep learning-based object detectors (ODs) have been studied extensively in the past few years. These attacks cause the model to make incorrect predictions by placing a patch containing an adversarial pattern on the target object or anywhere within the frame. However, none of prior research proposed a misclassification attack on ODs, in which the patch is applied on the target object. In this study, we propose a novel, universal, targeted, label-switch attack against the state-of-the-art object detector, YOLO. In our attack, we use (i) a tailored projection function to enable the placement of the adversarial patch on multiple target objects in the image (e.g., cars), each of which may be located a different distance away from the camera or have a different view angle relative to the camera, and (ii) a unique loss function capable of changing the label of the attacked objects. The proposed universal patch, which is trained in the digital domain, is transferable to the physical domain. We performed an extensive evaluation using different types of object detectors, different video streams captured by different cameras, and various target classes, and evaluated different configurations of the adversarial patch in the physical domain.

Introduction

Deep learning-based object detectors (ODs) like YOLO are the backbone of modern smart city infrastructure, used to optimize traffic flow and prioritize emergency vehicles. While we know these models are vulnerable to adversarial patches—small, noisy patterns that confuse the AI—most existing research focuses on "vanishing" attacks (making an object disappear) or "digital-only" attacks that fail in real-world conditions.

The challenge lies in the physicality and perspective of the real world. A patch on a moving car changes size, shape, and appearance based on its distance and angle relative to a static surveillance camera. Furthermore, forcing a model to pick a specific wrong label (e.g., "this car is a bus") is significantly harder than simply making the model fail to detect the car at all.

Methods

The authors propose a novel pipeline to create a robust, transferable patch. First, a Tailored Projection Function models how a patch on a car's hood appears to a camera as the car moves, accounting for perspective distortions. Second, a Unique Loss Function minimizes the probability of the "car" class while maximizing the target class (e.g., "bus"), incorporating Total Variation (TV) loss for physical printability. Third, Ensemble Training against multiple YOLO versions (v3, v4, v5) ensures cross-model robustness. Finally, the attack manipulates Pre-NMS Candidates to ensure the final output is the desired incorrect label.

Adversarial patch placement on a vehicle hood.

The study utilized digital datasets from real-world surveillance and physical datasets using toy cars. Evaluation was performed across YOLOv3, YOLOv4, YOLOv5, and Faster R-CNN.

Results and Discussion

The researchers found that the car's hood is the optimal location for a patch because it remains visible from a wide range of distances and angles. In digital simulations, the patch successfully switched the label from "car" to "bus" in 88% to 94.6% of cases. When printed and placed on toy cars, the patch maintained a 95.9% success rate.

Comparison of object detection results without and with the adversarial patch in digital and physical domains.

Patches trained using ensemble methods were highly effective even against models they weren't specifically trained on, including the Faster R-CNN architecture. This suggests that the adversarial features learned are universal across different detector architectures.

Conclusion

This attack demonstrates that misclassifying a car as a bus or ambulance could allow an attacker to exploit traffic priority systems. Future work should focus on developing countermeasures, such as specialized adversarial training or detection layers to identify high-frequency adversarial patterns before the AI makes a classification.

Summary updated

BibTeX
@misc{shapira2022attacking,
  author = {Avishag Shapira and Ron Bitton and Dan Avraham and Alon Zolfi and Yuval Elovici and Asaf Shabtai},
  title = {{Attacking Object Detector Using A Universal Targeted Label-Switch Patch}},
  year = {2022},
  eprint = {2211.08859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.08859},
}
Figure