DetectorGuard: Provably Securing Object Detectors against Localized Patch Hiding Attacks

Chong Xiang, Prateek Mittal

Abstract

DetectorGuard is the first general framework to provide provable security guarantees for object detectors against localized patch hiding attacks—where an adversary uses a small sticker to make an object "disappear." By combining a standard object detector with a robustly-trained "objectness" predictor, the system can either correctly detect an object or trigger an alert, all while maintaining nearly 100% of its original performance on clean images.

Introduction

Object detectors serve as the primary perception systems for autonomous vehicles and surveillance networks. However, they possess a significant vulnerability: localized adversarial patches. An attacker can print a small, carefully designed sticker and place it on a stop sign or a pedestrian, causing the detector to completely miss the object.

While significant progress has been made in securing image classifiers, securing detectors is substantially more difficult. Previous defenses were largely heuristic, offering no mathematical guarantee against adaptive attackers. The challenge lies in providing Provable Robustness without degrading the detector's Clean Performance on normal images.

Overview of DetectorGuard in clean and adversarial settings.

Methodology

DetectorGuard introduces a framework consisting of three integrated modules designed to bridge the gap between high-performance detection and robust security:

  1. Base Detector: An off-the-shelf, high-performance detector (e.g., YOLOv4 or Faster R-CNN) that handles precise bounding box localization on normal images.
  2. Objectness Predictor: This module serves as the security layer. It utilizes a robust image classifier, specifically BagNet, which employs small receptive fields to limit the influence of local adversarial patches. It generates an "objectness map" indicating the probability of an object's presence at various locations.
  3. Objectness Explainer: This logic gate compares the Base Detector’s output against the Objectness Predictor’s map. If the Base Detector misses an object that the robust predictor identifies, it flags a Malicious Mismatch and issues an alert.
Detailed architecture of the robust objectness map generation process.

Key Insights

  • Objectness vs. Classification: It is mathematically easier to prove that something exists in a region than to prove exactly what it is. By focusing on "objectness" for security, DetectorGuard simplifies the robustness problem.
  • Free Robustness Property: The system only alerts when the robust predictor detects something the base detector missed. This ensures that the base detector's high accuracy is preserved on clean data.
  • Receptive Field Restriction: Using models like BagNet restricts the influence of an adversarial patch to a few pixels in the feature map, allowing for worst-case scenario calculations.

Evaluation and Results

The framework was evaluated on three standard benchmarks: PASCAL VOC, MS COCO, and KITTI.

  • Clean Performance: DetectorGuard maintains nearly the same accuracy as undefended models, with an Average Precision (AP) drop of less than 1%.
  • Certified Recall: It achieves the first non-trivial certified recall for detectors. On PASCAL VOC, it can provably guarantee detection or an alert for 28.6% of objects under the "far-patch" threat model.
  • Efficiency: The Base Detector and Objectness Predictor can run in parallel on dual GPUs, resulting in negligible added latency.

Conclusion and Future Work

DetectorGuard represents a breakthrough in provable defense for object detection. While it provides a solid foundation, challenges remain in certifying small, distant objects. Future research may extend these guarantees to video sequences, leveraging temporal consistency for enhanced security, and addressing "hallucination" (false positive) attacks.

Summary updated

BibTeX
@inproceedings{xiang2021detectorguard,
  author = {Chong Xiang and Prateek Mittal},
  title = {{DetectorGuard: Provably Securing Object Detectors against Localized Patch Hiding Attacks}},
  booktitle = {CCS},
  year = {2021},
  url = {https://openreview.net/forum?id=BUm-WIpXGm5},
}
Figure