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

Chong Zhang, Zongxian Li, Jingjing Liu, Peixi Peng, Qixiang Ye, Shijian Lu, Tie-Jun Huang, Yonghong Tian · DOI

TL;DR

This paper introduces Self-Guided Adaptation (SGA), a novel approach for domain adaptive object detection that tackles the challenge of varying "difficulty" in aligning features between source and target domains. By dynamically assessing sample pair "hardness" and progressively aligning representations from easy to hard, SGA significantly improves detection performance, especially under large domain shifts.

What Problem Does This Paper Address?

Object detection models, while powerful, often require vast amounts of labeled data. When deploying these models in new, unlabeled environments (e.g., different camera types, lighting conditions, or artistic styles), their performance degrades significantly. This is known as the domain shift problem. Unsupervised Domain Adaptation (UDA) aims to bridge this gap by training models on a labeled source domain and adapting them to an unlabeled target domain. Existing UDA methods for object detection often rely on adversarial learning to align feature distributions but largely ignore the instantaneous difficulty of aligning specific sample pairs within a mini-batch. This can lead to suboptimal feature representation, especially when the domain shift is substantial. The paper addresses this by proposing a method that explicitly considers and leverages the varying alignment difficulty of sample pairs during the adaptation process.

Methods

The core of the proposed approach is the Self-Guided Adaptation (SGA) model, which operates in two main steps:

  1. Self-Guided Hardness Estimation: For each pair of source and target samples in a mini-batch, a "hardness" factor is calculated. This hardness is defined as the Maximum Mean Discrepancy (MMD) between their feature representations in a Reproducing Kernel Hilbert Space (RKHS). A higher MMD indicates a greater domain distance and thus a "harder" pair to align.
  2. Progressive Representation Alignment: This hardness factor is then used to guide the adversarial learning process. Instead of treating all sample pairs equally, the method adaptively assigns constraints based on their hardness. This is implemented through Self-Guided Progressive Sampling (SPS), which prioritizes aligning "easy" sample pairs (low hardness) in early training iterations and gradually shifts to "harder" pairs as training progresses. This mimics a human learning process, starting with simpler concepts and moving to more complex ones. The alignment is performed hierarchically across multiple convolutional stages of the object detector (e.g., Faster R-CNN).

The adversarial learning framework uses a feature generator (G) and a domain discriminator (D). The discriminator is trained to distinguish between source and target features, while the generator is trained to fool the discriminator. The proposed method modifies the domain classification loss to a Focal Loss, which assigns higher weights to easier samples, and incorporates the hardness factor to dynamically adjust the adversarial loss.

Datasets

The paper evaluates its approach on four domain shift tasks:

  • Pascal VOC → WaterColor
  • Cityscapes → FoggyCityscape
  • Cityscape → Detrac-Night
  • KITTI → Cityscape

Key Insights and Ideas

  • "Hardness" as a Key Metric: The paper introduces the concept of "hardness" for sample pairs in domain adaptation, quantifying the difficulty of aligning their feature representations. This is a crucial insight that moves beyond simply aligning distributions globally.
  • Progressive "Easy-to-Hard" Learning: Mimicking human learning, the progressive sampling strategy (SPS) significantly improves adaptation by focusing on easier alignments first, allowing the model to build a robust foundation before tackling more challenging cross-domain samples.
  • Hierarchical Alignment: Applying the SGA mechanism across multiple feature levels (stages) of the object detector allows for a more comprehensive and robust alignment of representations.
  • Instance-Level Alignment without Region Proposals: The method achieves effective alignment without relying on precise region proposals, which can be unreliable under large domain shifts.

Key Results

The proposed SGA-S (complete implementation) consistently outperforms state-of-the-art methods across all four tested domain adaptation tasks.

  • On the Pascal VOC → WaterColor task, SGA-S achieved a superior mAP of 55.20%, outperforming Baseline-A by 9.12%.
  • For the Cityscapes → FoggyCityscape task, SGA-S achieved an mAP of 36.60% (average) and 37.94% (best).
  • Ablation studies demonstrate that each component (hardness-guided adversarial loss, hardness loss, and SPS) contributes to the overall performance improvement.
  • Qualitative analysis shows that SGA effectively reduces MMD-based hardness and improves domain confusion degree. Error analysis indicates an increase in correct detections and a significant drop in mislocalization errors.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, the calculation of MMD and the progressive sampling strategy likely add computational overhead compared to simpler methods.
  • Hyperparameter Tuning: The regularization factor $\beta$ for the total loss is experimentally determined, suggesting that some hyperparameter tuning might be necessary.
  • Future Work: The paper suggests that the SGA approach provides a fresh insight into general UDA problems, implying its potential applicability beyond object detection. The authors also highlight the effectiveness of aggregating hierarchical representations, suggesting further exploration in this area.

Summary updated

BibTeX
@article{zhang2020self,
  author = {Chong Zhang and Zongxian Li and Jingjing Liu and Peixi Peng and Qixiang Ye and Shijian Lu and Tie-Jun Huang 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