FROD: Robust Object Detection for Free

Muhammad Awais, Weiming Zhuang, Lingjuan Lyu, Sung-Ho BaearXiv 2023

Abstract

Object detection is a vital task in computer vision and has become an integral component of numerous critical systems. However, state-of-the-art object detectors, similar to their classification counterparts, are susceptible to small adversarial perturbations that can significantly alter their normal behavior. Unlike classification, the robustness of object detectors has not been thoroughly explored. In this work, we take the initial step towards bridging the gap between the robustness of classification and object detection by leveraging adversarially trained classification models. Merely utilizing adversarially trained models as backbones for object detection does not result in robustness. We propose effective modifications to the classification-based backbone to instill robustness in object detection without incurring any computational overhead. To further enhance the robustness achieved by the proposed modified backbone, we introduce two lightweight components: imitation loss and delayed adversarial training. Extensive experiments on the MS-COCO and Pascal VOC datasets are conducted to demonstrate the effectiveness of our proposed approach.

Introduction

Deep learning models are notoriously brittle. A tiny, imperceptible "adversarial perturbation" added to an image can cause a state-of-the-art object detector to hallucinate objects or completely miss obvious ones. While defenses for image classification have matured, defending object detection remains challenging. Traditional Adversarial Training (AT) is computationally expensive—often 10-15x slower than standard training—and typically imposes a "robustness tax," significantly degrading performance on clean images. FROD (Free Robust Object Detection) aims to bridge this gap by transferring robustness from classification to detection with minimal overhead.

The FROD Framework

FROD leverages backbones (like ResNet-50) that have already been adversarially trained for classification. To prevent the "catastrophic forgetting" of robustness during fine-tuning for detection, the authors propose three key modifications:

  1. Selective Layer Retraining: Instead of fine-tuning the entire backbone, retraining only the final blocks preserves the robust features inherited from the classification task.
  2. BatchNorm Adaptation: Unlike standard practices that freeze Batch Normalization (BN) layers in detection, FROD updates BN statistics to align with the new detection dataset, which is critical for maintaining robustness.
  3. Imitation Loss: A lightweight loss term forces the active backbone's features to "imitate" those of a fixed, frozen version of the robust pre-trained model, preventing feature drift.
FROD Architecture: The framework utilizes a robust classification pretrained model as a reference for the backbone, incorporating imitation loss and selective layer modification.

Delayed Adversarial Training (DAT)

For enhanced defense, the authors introduce FROD-DAT. This variant uses standard training for the majority of the process and switches to a single-step adversarial training phase (using a fast, one-step attack) only at the end. This adds only about 1.9x overhead while significantly boosting resistance to stronger multi-step attacks like PGD-10.

Empirical Design and Results

The effectiveness of these design choices is validated through extensive ablation studies. As shown in the performance metrics, retraining fewer layers is essential for preserving robust mAP, even if it slightly limits clean mAP gains.

Ablation studies showing the impact of the number of re-trained layers on clean vs. robust mAP (left) and the effect of adversarial epochs in the DAT phase (right).

Key results include:

  • Efficiency: FROD incurs 0% computational overhead, while FROD-DAT is significantly faster than previous SOTA methods like CWAT (1.9x vs 13x overhead).
  • Performance: On Pascal VOC, FROD achieved a clean mAP of 0.671, far exceeding the previous robust SOTA of 0.513. Under PGD-10 attacks, FROD-DAT achieved a robust mAP of 0.252, setting a new benchmark for efficient, robust detection.

Conclusion

FROD demonstrates that robustness is a transferable property. By delicately handling the fine-tuning of robust classification backbones and employing delayed adversarial training, it is possible to build secure object detectors that maintain high accuracy on clean data without prohibitive training costs.

Summary updated

BibTeX
@misc{awais2023frod,
  author = {Muhammad Awais and Weiming Zhuang and Lingjuan Lyu and Sung-Ho Bae},
  title = {{FROD: Robust Object Detection for Free}},
  year = {2023},
  eprint = {2308.01888},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.01888},
}
Figure