Self-Guided Adaptation: Progressive Representation Alignment for Domain Adaptive Object Detection

Zongxian Li, Qixiang Ye, Chong Zhang, Jingjing Liu, Shijian Lu, Yonghong Tian

TL;DR

This paper introduces Self-Guided Adaptation (SGA), a novel unsupervised domain adaptation framework for object detection that dynamically assesses the "hardness" of aligning cross-domain sample pairs. By implementing an "easy-to-hard" progressive sampling strategy and a hardness-guided adversarial loss, SGA effectively bridges large domain shifts across hierarchical feature representations without requiring target-domain annotations.

What Problem Does This Paper Address?

Object detection models trained on one domain (e.g., clear, sunny daytime driving) often suffer severe performance drops when deployed in another (e.g., foggy weather or nighttime) due to domain shift. Unsupervised Domain Adaptation (UDA) attempts to mitigate this by aligning feature distributions between a labeled source domain and an unlabeled target domain.

However, existing UDA methods typically treat all training samples equally or use static weighting strategies. They ignore the instantaneous difficulty of aligning specific data distributions during the training process. When the domain gap is large, forcing immediate alignment on highly discrepant sample pairs can deteriorate the model's feature representations.

Methods

The authors propose the Self-Guided Adaptation (SGA) model, which introduces a dynamic, curriculum-style learning approach to domain adaptation through two main mechanisms:

  1. Self-Guided Hardness Estimation: Rather than assuming uniform alignment difficulty, SGA calculates a dynamic "hardness" factor for sample pairs in each mini-batch. This factor is computed using Maximum Mean Discrepancy (MMD) within a Reproducing Kernel Hilbert Space (RKHS), measuring the instantaneous distance between source and target features.
  2. Hardness-Guided Adversarial Loss: This hardness factor is integrated directly into an adversarial training framework as the modulating factor ($\gamma$) of a Focal Loss variant. This dynamically forces the domain discriminator to focus more on "easy" samples (those closer to the domain boundary) and less on "hard" ones during the early stages of training.
Overview of the SGA framework showing hardness estimation and progressive representation alignment.
  1. Self-Guided Progressive Sampling (SPS): To simulate an "easy-to-hard" human learning process, SPS uses an adaptive threshold ($\alpha$) to filter mini-batches. In early epochs, highly discrepant (hard) sample pairs are excluded, allowing the model to stabilize on easier alignments first. As the model adapts, the threshold automatically adjusts to include progressively harder samples.

SGA is applied hierarchically across three distinct convolutional stages of a Faster R-CNN backbone to fully align multi-level feature representations.

Hierarchical application of SGA modules and the progressive sampling timeline.

Datasets

The method was evaluated across four challenging domain adaptation benchmarks:

  • Pascal VOC $\rightarrow$ WaterColor: Adapting from natural images to artistic styles (large style shift).
  • Cityscapes $\rightarrow$ FoggyCityscape: Adapting from clear weather to synthetic fog (weather/visibility shift).
  • Cityscapes $\rightarrow$ Detrac-Night: Moving from daytime to real-world nighttime traffic (illumination shift).
  • KITTI $\leftrightarrow$ Cityscapes: Cross-dataset adaptation involving variations in camera setups, resolutions, and viewpoints.

Key Insights and Ideas

  • Curriculum Learning for UDA: Forcing a network to align radically different source and target images from day one can corrupt feature representations. Aligning similar or "easy" pairs first provides a stable foundation for tackling harder domain gaps later.
  • Dynamic Weighting via MMD: Instead of using MMD solely as a global distance metric to minimize, using it as a dynamic, sample-level weight for adversarial loss allows the model to adaptively adjust its optimization constraints on the fly.
  • Feature-Level over Instance-Level Alignment: Directly aligning features at the backbone level avoids relying on Region Proposal Networks (RPNs), which inherently perform poorly under unaligned, large domain shifts.

Key Results

SGA-S (the full system incorporating progressive sampling) achieved state-of-the-art performance across all benchmarks:

  • Natural to Artistic: On Pascal VOC $\rightarrow$ WaterColor, SGA-S achieved a 55.30% mAP, outperforming the previous best method (SW-Faster) by 2.03%.
  • Weather Shift: On Cityscapes $\rightarrow$ FoggyCityscape, it reached 37.94% mAP, a significant improvement over the non-adapted baseline (24.83%).
  • Illumination Shift: For daytime to nighttime adaptation, it scored 49.67% AP on cars, outperforming SW-Faster by over 3%.
  • Hierarchical Benefit: Ablation studies demonstrated that incorporating SGA modules sequentially across the three backbone stages progressively boosts performance, validating the hierarchical alignment strategy.
Model analysis showing MMD reduction, domain confusion degree, error distribution, and RPN recall rates.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@article{li2020self,
  author = {Zongxian Li and Qixiang Ye and Chong Zhang and Jingjing Liu and Shijian Lu and Yonghong Tian},
  title = {{Self-Guided Adaptation: Progressive Representation Alignment for Domain Adaptive Object Detection}},
  journal = {IEEE Trans. Multimedia},
  year = {2020},
  doi = {10.1109/tmm.2021.3078141},
}
Figure