ObjectSeeker: Certifiably Robust Object Detection against Patch Hiding Attacks via Patch-agnostic Masking

Chong Xiang, Alexander Valtchanov, Saeed Mahloujifar, Prateek Mittal

TL;DR

ObjectSeeker is a novel defense framework that certifiably protects object detectors against adversarial "patch hiding" attacks without needing prior knowledge of the patch's size, shape, or location. By strategically masking image halves and securely pruning duplicate bounding boxes, it boosts certifiable robustness by 2–6× over previous state-of-the-art defenses while maintaining near-perfect performance on clean images.

What Problem Does This Paper Address?

Object detection models are critical components in security-sensitive applications like autonomous driving and robotics. However, they are notoriously vulnerable to patch hiding attacks. An attacker can place a small, physically printed adversarial patch onto a scene or object, causing the detector to completely miss critical targets (e.g., making a pedestrian invisible to a self-driving car).

While many heuristic defenses exist, they are easily bypassed by adaptive attackers. Prior certifiably robust defenses (which provide mathematical guarantees of safety) suffer from two major flaws: they only protect a tiny fraction of objects (~10-30%), and they rely on "attack detection," meaning they frequently trigger false alarms and cause the system to completely abstain from making predictions.

The authors address this gap by proposing a defense that provides strong, certifiable prediction guarantees without sacrificing clean accuracy or causing disruptive false alerts.

Methods

ObjectSeeker operates as an alert-free, two-step framework built on top of any standard, unmodified ("vanilla") object detector:

  1. Patch-Agnostic Masking: Instead of trying to guess where a patch is, ObjectSeeker divides the input image into halves using a fixed grid of evenly spaced vertical and horizontal lines. It masks out one half and runs the object detector on the remaining benign pixels. Geometrically, if a patch is reasonably sized, at least one of these line configurations is guaranteed to completely mask out the adversarial patch, neutralizing its malicious influence.
  2. Secure Box Pruning: Running a detector on dozens of masked images naturally creates a flood of duplicate bounding boxes. To clean this up without letting an attacker manipulate the output, ObjectSeeker uses a robust Intersection over Area (IoA) similarity score. In clean settings, it filters out masked boxes that duplicate the "base boxes" found on the original image. In adversarial settings (where the patch erases the base boxes), it securely clusters and unionizes the remaining masked boxes using DBSCAN to form a final, robust prediction.
ObjectSeeker Overview: Masking and Pruning pipelines under clean and adversarial conditions.

The authors also introduce a formal robustness certification procedure. This algorithm mathematically verifies whether a given object will be successfully detected under any possible adaptive attack within the defined threat model.

Visualization of how fixed horizontal and vertical masks successfully cover patches of varying shapes and locations.

Datasets

The framework was evaluated using two popular base detectors (YOLOR and Mask R-CNN with a Swin Transformer backbone) across three benchmark datasets:

  • PASCAL VOC (2007 / 2012): Standard object detection dataset featuring 20 classes.
  • MS COCO (2017): A highly challenging dataset with 80 annotated object classes.
  • KITTI: A real-world autonomous driving dataset featuring camera images of vehicles, pedestrians, and cyclists.

Key Insights and Ideas

  • The Power of Geometric Slicing: You don't need complex neural networks to locate an adversarial patch. Simple, deterministic image-half masking guarantees that the patch will be completely removed in at least one mask, allowing a vanilla detector to function safely on the remaining pixels.
  • Moving Beyond Abstention: Previous certifiable defenses acted as tripwires—they could tell you an attack was happening and halt the system, but couldn't fix it. ObjectSeeker achieves robust prediction, meaning it actually delivers usable bounding boxes even while under active attack.
  • Preserving the Base Model: ObjectSeeker requires no retraining or architecture modifications. It acts as a wrapper around state-of-the-art models, preserving their high performance on clean data.

Key Results

  • Massive Robustness Gains: ObjectSeeker achieved a 10%–40% absolute (2–6× relative) improvement in certified recall over DetectorGuard. For instance, on the VOC dataset with a far-patch threat model, ObjectSeeker-Swin achieved a certified recall of 68.0% compared to DetectorGuard's 31.2%.
  • Negligible Clean Performance Drop: The Average Precision (AP) on clean images dropped by only ~1% compared to completely undefended models, making it highly practical for real-world deployment.
  • Zero False Alerts: Because ObjectSeeker focuses on robust prediction rather than attack detection, it is entirely alert-free and eliminates the user-experience issues caused by false alarms.

Limitations and Future Work

  • The "Over-Patch" Challenge: If an attacker places an adversarial patch directly on top of the victim object (an over-patch), certifying robustness remains incredibly difficult. ObjectSeeker's absolute certified recall drops significantly in this setting because masking the patch also masks a vital portion of the object itself.
  • Computational Overhead: ObjectSeeker requires running the underlying object detector on multiple masked variations of the same image (e.g., $4k$ masked images, where $k$ is the number of grid lines). While the authors demonstrate that this process can be parallelized across multiple GPUs to achieve real-time speeds (~25 fps using 8 GPUs), reducing this computational footprint remains an open area for optimization.

Summary updated

BibTeX
@inproceedings{xiang2023objectseeker,
  author = {Chong Xiang and Alexander Valtchanov and Saeed Mahloujifar and Prateek Mittal},
  title = {{ObjectSeeker: Certifiably Robust Object Detection against Patch Hiding Attacks via Patch-agnostic Masking}},
  booktitle = {SP},
  year = {2023},
  doi = {10.1109/sp46215.2023.10179319},
}
Figure