Detecting Backdoors in Object Detection via Pre-NMS Prediction Distribution Shift
Organizations: Xi’an Jiaotong University, Xi’an, China · Singapore Management University, Singapore
Abstract
Object detection models deployed in safety-critical applications remain vulnerable to backdoor attacks that cause targeted misbehaviors when a hidden trigger is present. Existing detection methods either rely on trigger inversion or exploit architecture-specific assumptions, and critically, representative existing methods fail to generalize reliably to scene-level attacks, where a single trigger induces anomalous behavior across all objects in the scene simultaneously. We present DistScan, a backdoor detection framework based on a simple but previously unexploited observation: backdoor injection systematically shifts a model's pre-NMS prediction class distribution away from its training class frequencies, even on clean inputs without any trigger present. DistScan aggregates intermediate class predictions over a clean validation set and flags a model as backdoored if the resulting distribution deviates significantly from the training class frequencies, requiring no model weight access, no trigger knowledge, and no additional training. Extensive experiments on MS-COCO and PASCAL VOC across two architectures and three scene-level attack scenarios demonstrate that DistScan substantially outperforms existing methods, improving average detection accuracy over the best-performing applicable baseline by 27.32 percentage points.
Figures & tables
| Scenario | Dataset | Model | DistScan | MIA | ODSCAN | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| TPR | FPR | Acc. | TPR | FPR | Acc. | TPR | FPR | Acc. | |||
| SPONGE | VOC | YOLOv5 | 100.00 | 0.00 | 100.00 | - | - | - | 0.00 | 0.00 | 50.00 |
| FRCNN | 94.44 | 0.00 | 97.22 | 0.00 | 0.00 | 50.00 | 0.00 | 0.00 | 50.00 | ||
| COCO | YOLOv5 | 100.00 | 0.00 | 100.00 | - | - | - | 0.00 | 0.00 | 50.00 | |
| FRCNN | 83.33 | 0.00 | 91.67 | 0.00 | 0.00 | 50.00 | 0.00 | 0.00 | 50.00 | ||
| BLINDING | VOC | YOLOv5 | 100.00 | 0.00 | 100.00 | - | - | - | 0.00 | 0.00 | 50.00 |
| Method | SPONGE-VOC | SPONGE-COCO | BLINDING-VOC | BLINDING-COCO | GMA-VOC | GMA-COCO | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| YOLOv5 | FRCNN | YOLOv5 | FRCNN | YOLOv5 | FRCNN | YOLOv5 | FRCNN | YOLOv5 | FRCNN | YOLOv5 | FRCNN | |
| DistScan | 1.00 | 0.97 | 1.00 | 0.91 | 1.00 | 1.00 | 0.99 | 0.94 | 1.00 | 0.94 | 0.92 | 1.00 |
| MIA | - | 0.00 | - | 0.00 | - | 0.79 | - | 0.60 | - | 0.91 | - | 0.40 |
| Dataset | Val Set | YOLOv5 | Faster R-CNN | ||||||
|---|---|---|---|---|---|---|---|---|---|
| SPONGE | BLINDING | GMA | Average | SPONGE | BLINDING | GMA | Average | ||
| VOC | Equal Number | 100.00 | 100.00 | 100.00 | 100.00 | 55.56 | 69.44 | 77.78 | 67.59 |
| Equal Size | 100.00 | 94.44 | 72.22 | 88.89 | 97.22 | 100.00 | 91.67 | 96.30 | |
| Random | 100.00 | 100.00 | 100.00 | 100.00 | 55.56 | 69.44 | 77.78 | 67.59 | |
| COCO | Equal Number | 100.00 | 94.44 | 86.11 | 93.52 | 55.56 | 88.89 | 88.89 | 77.78 |
| Equal Size | 100.00 | 88.89 | 97.22 | 95.37 | 91.67 | 94.44 | 100.00 | 95.37 | |
| Dataset | YOLOv5 | Faster R-CNN | |||||||
|---|---|---|---|---|---|---|---|---|---|
| SPONGE | BLINDING | GMA | All | SPONGE | BLINDING | GMA | All | ||
| VOC | 0.0000 | 100.00 | 100.00 | 100.00 | 100.00 | 50.00 | 50.00 | 50.00 | 50.00 |
| 0.0005 | 100.00 | 100.00 | 100.00 | 100.00 | 97.22 | 100.00 | 91.67 | 96.30 | |
| 0.0010 | 100.00 | 97.22 | 91.67 | 96.30 | 97.22 | 100.00 | 91.67 | 96.30 | |
| 0.0100 | 100.00 | 97.22 | 77.78 | 91.67 | 50.00 | 86.11 | 91.67 | 75.93 | |
| 0.0500 | 94.44 | 97.22 | 80.56 | 90.74 | 52.78 | 72.22 | 88.89 | 71.30 | |
Backdoor Detection
Backdoor detection finds hidden triggers or poisoned behavior in trained models before they can secretly redirect predictions or actions.
See all 53 papers