Learning Domain Adaptive Object Detection with Probabilistic Teacher

Meilin Chen, Weijie Chen, Shicai Yang, Jie Song, Xinchao Wang, Lei Zhang, Yunfeng Yan, Donglian Qi, Yueting Zhuang, Di Xie, Shiliang Pu

Overview

The Probabilistic Teacher (PT) framework introduces a novel approach to unsupervised domain adaptive object detection by moving away from rigid, hard-to-tune confidence thresholds. By modeling bounding boxes as probability distributions, the framework captures localization uncertainty and uses a new Entropy Focal Loss to guide a "student" model with high-quality, uncertainty-aware pseudo-labels generated by a "teacher" model.

The Challenge: Domain Shift and Self-Training Flaws

Object detectors trained on clear, sunny city streets often fail when deployed in foggy weather or entirely different cities. This performance drop is known as domain shift. Unsupervised Domain Adaptive Object Detection (UDA-OD) aims to solve this by adapting a model to a new "target" domain using only unlabeled data.

Most current methods rely on "self-training," where a model generates its own labels (pseudo-boxes) for the target data. However, this approach suffers from two major flaws:

  1. The Threshold Trap: Researchers typically filter out "bad" pseudo-boxes using a fixed confidence threshold. Without ground-truth labels in the target domain, picking the right threshold is essentially guesswork.
  2. Localization Blindness: Standard detectors only provide a confidence score for what an object is (classification), not how well it is framed (localization). A model might be 90% sure it sees a car but draw a highly inaccurate bounding box.

The Probabilistic Teacher Framework

To move from arbitrary "filtering" to uncertainty-based "weighting," the authors introduce the Probabilistic Teacher framework.

The Probabilistic Teacher architecture unifies classification, localization, and anchor adaptation.
  • Probabilistic Faster-RCNN: The standard Faster-RCNN is modified to predict bounding box coordinates as Gaussian distributions rather than single points. This provides a variance ($\sigma^2$) for every box, acting as a direct measure of localization uncertainty.
  • Uncertainty-Guided Consistency Training: Instead of discarding boxes below a threshold, the framework uses a teacher-student setup. The teacher generates pseudo-labels with associated uncertainty, and the student learns from them via a consistency loss.
  • Entropy Focal Loss (EFL): This novel loss function automatically down-weights noisy, high-entropy (high uncertainty) predictions. It forces the model to focus on the most reliable pseudo-labels for both classification and localization.
  • Anchor Adaptation: Because object sizes and scales vary between domains (e.g., due to different camera angles), the authors treat anchor box shapes as learnable parameters that adapt to the target domain's distribution over time.

Key Insights

  • Variance > Score: A critical finding of this research is that box variance ($\sigma^2$) is a much more reliable indicator of actual localization accuracy (Intersection over Union, or IoU) than the standard foreground confidence score.
  • The "Intra-Domain Gap": The authors identify that adaptation isn't uniform even within the target domain. Large, clear objects adapt easily, while small, blurry, or occluded ones lag behind. They term this the "intra-domain gap."
  • Augmentation as Alignment: Strong data augmentation (like Gaussian blur or color jitter) isn't just for regularization. The authors argue it acts as an implicit way to bridge the intra-domain gap by forcing the model to learn robust features for difficult object instances.

State-of-the-Art Results

The framework was rigorously evaluated across four diverse domain shift scenarios: Weather (Cityscapes to Foggy Cityscapes), Scale/Layout (Cityscapes to BDD100k), Camera Setup (KITTI to Cityscapes), and Synthetic-to-Real (Sim10k to Cityscapes).

Performance leap of the Probabilistic Teacher compared to previous domain alignment and translation methods.

The Probabilistic Teacher achieves new state-of-the-art (SOTA) performance across the board:

  • Massive Gains in Fog: On the Foggy Cityscapes benchmark, PT reached 47.1 mAP, a significant jump over the previous best of 41.8 mAP.
  • Source-Free Success: PT is highly effective in "source-free" settings, where original training data is inaccessible due to privacy or storage constraints. In the KITTI-to-Cityscapes task, PT's source-free performance (59.6 mAP) nearly matched its performance when source data was available (60.2 mAP).
  • Robustness: Unlike threshold-based methods, PT's performance remains stable across different hyperparameters, making it highly practical for real-world deployment where tuning against a labeled validation set is impossible.

Limitations and Future Work

While PT bridges the domain gap significantly, a performance difference still exists between source-available and source-free settings in weather and scale-shift tasks. The authors leave the narrowing of this specific gap for future research. Additionally, while the framework is "threshold-free" during training, it still relies on standard Non-Maximum Suppression (NMS) thresholds during inference, which remains a common bottleneck in object detection pipelines.

Summary updated

BibTeX
@inproceedings{chen2022learning,
  author = {Meilin Chen and Weijie Chen and Shicai Yang and Jie Song and Xinchao Wang and Lei Zhang and Yunfeng Yan and Donglian Qi and Yueting Zhuang and Di Xie and Shiliang Pu},
  title = {{Learning Domain Adaptive Object Detection with Probabilistic Teacher}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=jV5hDzb2GN},
}
Figure