APRICOT: A Dataset of Physical Adversarial Attacks on Object Detection

A. Braunegg, Amartya Chakraborty, Michael Krumdick, Nicole Lape, Sara Leary, Keith Manville, Elizabeth M. Merkhofer, Laura Strickhart, Matthew Walmer

Introduction

Most research in adversarial machine learning focuses on "digital" attacks—mathematically precise pixel manipulations that are invisible to humans but catastrophic for models. However, in safety-critical applications like autonomous driving or security surveillance, the primary threat comes from "physical" attacks: printed textures or patches placed in the environment to fool sensors.

Research into physical adversarial patches has historically been hampered by a lack of standardized, diverse datasets, with most studies relying on small-scale experiments in controlled lab settings. The APRICOT (Adversarial Patches Rearranged In COnText) dataset addresses this gap, providing the first publicly available benchmark for evaluating physical adversarial attacks on object detection systems in real-world environments.

The APRICOT Dataset

The APRICOT dataset consists of 1,011 high-resolution photographs featuring 60 unique adversarial patches. These patches target 10 specific COCO object categories, such as "apple," "kite," and "sports ball." To ensure environmental diversity, the images were captured by 20 different photographers across various public indoor and outdoor locations, capturing the effects of varying lighting, distances, and viewing angles.

Examples from the APRICOT dataset showing physical adversarial patches triggering false positive detections in various real-world contexts, including grocery stores (a), parks (b), offices (c), and outdoor structures (d).

Methodology: Creating and Defending Against Patches

The authors generated the adversarial patches using a modified version of ShapeShifter, an optimization framework designed for "false positive" attacks. These attacks are intended to make a detector "hallucinate" an object where none exists. To ensure the patches remained effective when printed and placed in the physical world, the researchers employed Expectation over Transformation (EoT), which incorporates simulated distortions like rotation, scaling, and lighting changes during the optimization process.

For defense, the study explored two main avenues:

  1. Supervised Defense: Training a "patch detector" (Faster R-CNN) using synthetic "Flying Patch" datasets, where adversarial patches were digitally overlaid on standard COCO images.
  2. Unsupervised Defense: Testing "attack-agnostic" methods that flag patches as out-of-distribution anomalies. These included Kernel Density Estimation (KDE), Bayesian uncertainty (using dropout at inference time), and Autoencoder reconstruction error.

Key Insights and Results

One of the most significant findings was the Robustness-vs-Blatancy Trade-off. To ensure a patch works reliably across different angles and lighting conditions, the texture must be high-contrast and distinctive. This makes physical attacks much more visible to the human eye than digital ones, suggesting they are inherently easier to detect as anomalies.

A high-resolution adversarial patch optimized to trigger specific object detections. The complex, high-contrast patterns are necessary for physical robustness but make the attack highly visible.

Performance Metrics

  • Attack Effectiveness: In white-box settings, patches achieved a targeted fooling rate of approximately 17% for Faster R-CNN and 6% for SSD. While lower than digital success rates, these represent a significant threat to safety-critical systems. Untargeted success rates (causing the model to detect any object) were much higher, reaching up to 38%.
  • Defense Success: The supervised patch detector achieved an Average Precision (AP) of 0.686. Notably, the detector performed well despite being trained entirely on synthetic digital overlays, suggesting that adversarial features transfer effectively from the digital to the physical domain.
  • Geometry and Hallucinations: The model's errors were often tied to the patch's shape; for instance, square patches frequently triggered "kite" detections, while circular patches were often misidentified as "doughnuts" or "frisbees."

Conclusion and Future Work

While the APRICOT dataset demonstrates that "hallucinating" objects in the wild is challenging for attackers, it confirms that physical patches are a legitimate threat. The effectiveness of supervised detectors trained on synthetic data provides a promising path for mitigation.

Future work may involve expanding the dataset to include "vanishing" attacks (making real objects disappear) and testing adaptive attacks where the adversary attempts to bypass the patch detectors themselves. Additionally, further research is needed to better distinguish between natural false positives and those caused by malicious intent.

Summary updated

BibTeX
@inproceedings{braunegg2020apricot,
  author = {A. Braunegg and Amartya Chakraborty and Michael Krumdick and Nicole Lape and Sara Leary and Keith Manville and Elizabeth M. Merkhofer and Laura Strickhart and Matthew Walmer},
  title = {{APRICOT: A Dataset of Physical Adversarial Attacks on Object Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58589-1\_3},
}
Figure