COCO-O: A Benchmark for Object Detectors under Natural Distribution Shifts

Xiaofeng Mao, Yuefeng Chen, Yao Zhu, Da Chen, Hang Su, Rong Zhang, Hui Xue

TL;DR

COCO-O is a new, challenging benchmark designed to evaluate how well object detectors handle "natural distribution shifts"—real-world changes like varying weather, artistic styles (paintings, sketches), or even tattoos. By testing over 100 modern detectors, the authors reveal that while many models overfit to standard datasets, large-scale foundation models and advanced backbones are the true drivers of robust performance.

What Problem Does This Paper Address?

Deep learning models for object detection are typically trained and tested on datasets like COCO, which consist of "clean," high-quality images. However, in the real world, these models encounter Out-Of-Distribution (OOD) inputs—images that look different from the training data due to environmental changes or different artistic representations.

Existing benchmarks for OOD robustness are often limited to specific scenarios (like autonomous driving) or rely on synthetic corruptions (like adding digital noise). This makes it difficult to assess the general-purpose robustness of modern detectors. The authors created COCO-O to fill this gap, providing a diverse, natural testbed to see if recent "State-of-the-Art" (SOTA) improvements are genuinely robust or just over-optimized for the standard COCO test set.

Methods

The researchers introduced COCO-O(ut-of-distribution), a dataset featuring six levels of natural distribution shifts. To evaluate models fairly, they utilized the Effective Robustness (ER) metric.

ER is crucial because a model might perform better on OOD data simply because it is better overall (higher "clean" accuracy). By fitting a linear baseline to classic detectors (as seen in the dashed line in Figure 1), the ER metric measures how much a specific model's OOD performance exceeds what its clean performance would predict.

Figure 1: An overview of representative object detectors evaluated on COCO and our COCO-O dataset. The plotted dash line presents the linear function fitted on classic detectors, which demonstrates the trend of COCO-O mAP increasing along with COCO mAP. The Effective Robustness (red text in figure) measures how far the model lies above the linear fit.

Datasets

  • COCO: The standard in-distribution dataset used for training and as a performance baseline.
  • COCO-O (New): The proposed benchmark. It contains 6,782 images and 26,624 bounding boxes across the same 80 categories as COCO. It is divided into six domains representing increasing levels of abstraction: Weather, Painting, Handmake, Cartoon, Tattoo, and Sketch.
Figure 2: Visualization of the six domains in COCO-O, ordered by decreasing levels of object detail.

Key Insights and Ideas

  • Backbone is the Robustness Engine: The choice of backbone (the part of the model that extracts features) is far more important for robustness than the detection "neck" or "head." Upgrading a standard ResNet-50 to a more advanced design like Swin Transformer or PVTv2 yielded massive robustness gains.
  • Detection Transformers (DETRs) are Fragile: Surprisingly, while DETRs perform exceptionally well on standard benchmarks, they show poor generalization on COCO-O. The authors suggest that their "one-to-one" matching system might be too reliant on specific patterns in the training data.
  • The Power of Foundation Models: Large-scale models pre-trained on massive image-text pairs (like EVA, GLIP, and FIBER) showed a "great leap" in robustness. Their exposure to diverse data during pre-training helps them handle the abstract shifts in COCO-O much better than models trained only on standard datasets.
  • MixUp is a Robustness Hero: Among various data augmentation techniques, MixUp (blending two images together) was found to be the most effective at boosting OOD robustness for models like YOLOX.
Figure 4: Analysis of different augmentations in YOLOX-S. MixUp provides the largest boost to Effective Robustness.

Key Results

  • Significant Performance Drop: Standard detectors face a massive challenge; for example, a Faster R-CNN model saw a 55.7% relative performance drop when moving from COCO to COCO-O.
  • SOTA Rankings: The EVA model currently holds the top spot on the COCO-O leaderboard, demonstrating the effectiveness of billion-scale foundation models.
  • Architecture Impact: Simply replacing a ResNet-50 backbone with a PVTv2-B2 improved the COCO-O mAP by approximately 8.5 points, significantly increasing the model's Effective Robustness.
Figure 6: Comparison of 53 SOTA detectors. While many have high clean mAP (left), their Effective Robustness (right) varies wildly, with foundation models (blue bars) leading the pack.

Limitations and Future Work

The authors acknowledge that the superior performance of foundation models might be partly due to "data leakage"—the possibility that these models encountered similar OOD-style images during their massive, web-scale pre-training.

A major remaining mystery is why Detection Transformers (DETRs) underperform so significantly under natural shifts. Future research is needed to understand this vulnerability and to develop new detection algorithms that achieve robustness through architectural innovation rather than just scaling up training data.

Summary updated

BibTeX
@misc{mao2023coco,
  author = {Xiaofeng Mao and Yuefeng Chen and Yao Zhu and Da Chen and Hang Su and Rong Zhang and Hui Xue},
  title = {{COCO-O: A Benchmark for Object Detectors under Natural Distribution Shifts}},
  year = {2023},
  eprint = {2307.12730},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.12730},
}
Figure