BadDet: Backdoor Attacks on Object Detection

Shih-Han Chan, Yinpeng Dong, Jun Zhu, Xiaolu Zhang, Jun Zhou

TL;DR

While backdoor attacks are well-documented in image classification, BadDet reveals that object detection models are equally—if not more—vulnerable. The researchers introduce four distinct attack strategies that can force a model to hallucinate objects, misclassify them, or make them disappear entirely, and they propose an entropy-based defense called Detector Cleanse to spot these malicious triggers at runtime.

What Problem Does This Paper Address?

Most research into "backdoor" (or Trojan) attacks focuses on simple image classification: if a small trigger (like a white square) is in the corner, the model classifies a "cat" as a "dog." However, real-world systems like autonomous vehicles and surveillance rely on object detection, which is far more complex. Detectors must not only classify but also locate multiple objects simultaneously.

The authors identify a critical gap: we don't fully understand how backdoors manifest in these multi-object, multi-task environments. If a self-driving car's detector has a backdoor that makes "stop signs" disappear when a specific sticker is present, the consequences are life-threatening. BadDet explores this vulnerability systematically.

Methods

The authors propose BadDet, a framework consisting of four specialized backdoor attacks:

  1. Object Generation Attack (OGA): A trigger causes the model to "see" a non-existent object of a target class (e.g., a "person" appearing on an empty highway).
  2. Regional Misclassification Attack (RMA): A trigger placed on or near an object changes that specific object's label to a target class.
  3. Global Misclassification Attack (GMA): A single trigger anywhere in the image forces all detected objects to be reclassified as the target class.
  4. Object Disappearance Attack (ODA): A trigger placed near an object makes the detector fail to see it entirely.

To defend against these, they introduce Detector Cleanse. This is a runtime defense that identifies poisoned samples by analyzing the entropy of predicted bounding boxes. The core idea is that a backdoored model will show abnormally low entropy (high certainty) for a specific class when a trigger is present, even if the surrounding image features are heavily perturbed or "blended" with random noise.

Datasets

The study evaluates these attacks on the gold standards of object detection:

  • PASCAL VOC 2007 & 2012: A classic benchmark for object detection.
  • MSCOCO: A large-scale dataset with more complex scenes and smaller objects.

The attacks were tested against two representative architectures: Faster R-CNN (a two-stage detector) and YOLOv3 (a one-stage detector).

Key Insights and Ideas

  • Detection is a harder target for attackers: Unlike classification, the infected model must understand the spatial relationship between the trigger and multiple objects.
  • The "Transfer Learning" Trap: One of the most alarming findings is that backdoors are incredibly "sticky." Even if a user downloads a pre-trained (poisoned) model and fine-tunes it on their own clean, benign dataset, the backdoor often remains intact.
  • Asymmetric Difficulty: The authors found that "Object Disappearance" (ODA) is harder for a model to learn than "Object Generation" (OGA). It is easier to teach a model to associate a trigger with a new feature than to teach it to ignore an existing one.
  • Entropy as a Shield: By "blending" a suspected image with clean features from other images, the researchers found that poisoned predictions remain stubbornly fixed on the target class, while benign predictions fluctuate. This "abnormal stability" is what Detector Cleanse uses to flag attacks.

Key Results

  • High Success Rates: In most settings, the Attack Success Rate (ASR) exceeded 90% for OGA and RMA on both Faster R-CNN and YOLOv3.
  • Stealthiness: The models maintained nearly identical performance on clean, "benign" images, meaning a user would have no reason to suspect the model is compromised until the trigger appears.
  • Defense Effectiveness: Detector Cleanse achieved high detection accuracy (often >85-90%) in identifying poisoned samples while maintaining a low False Rejection Rate (FRR) for clean images.

Limitations and Future Work

The paper primarily focuses on digital triggers (patterns added to the image file). While the authors mention that these could generalize to the physical world (like a sticker on a sign), they do not perform extensive physical-world testing.

Additionally, while Detector Cleanse is effective, it is a runtime defense. It doesn't "fix" the model; it just warns the user that a specific input is suspicious. Future work could explore "offline" defenses that can prune or unlearn the backdoor from the model weights themselves without requiring high-entropy runtime checks.

Summary updated

BibTeX
@inproceedings{chan2022baddet,
  author = {Shih-Han Chan and Yinpeng Dong and Jun Zhu and Xiaolu Zhang and Jun Zhou},
  title = {{BadDet: Backdoor Attacks on Object Detection}},
  booktitle = {Workshops @ ECCV},
  year = {2022},
  doi = {10.1007/978-3-031-25056-9\_26},
}

Loading related content...

Figure