Multi-Source Domain Adaptation for Object Detection

Xingxu Yao, Sicheng Zhao, Pengfei Xu, Jufeng Yang · DOI

TL;DR

This paper introduces DMSN, a novel framework for object detection that tackles the challenging problem of adapting models trained on multiple, diverse source domains to a new, unlabeled target domain. By employing hierarchical feature alignment and a unique "pseudo subnet" learning strategy, DMSN effectively bridges domain gaps while preserving crucial object discriminability, outperforming existing methods.

What Problem Does This Paper Address?

Object detection models, while powerful, often suffer a significant performance drop when applied to data from a different domain (e.g., images taken at night vs. during the day, or from different cameras). This "domain shift" is a major hurdle, as annotating large datasets for every new domain is prohibitively expensive and time-consuming. While unsupervised domain adaptation (UDA) techniques aim to alleviate this, most existing methods assume the training data comes from a single source domain. This paper addresses a more realistic and complex scenario: adapting an object detector when labeled data is available from multiple distinct source domains, each with its own unique characteristics. Directly combining data from multiple sources can lead to performance degradation due to conflicting domain information, making a specialized approach necessary.

Methods

The core of the proposed solution is the Divide-and-Merge Spindle Network (DMSN), built upon the Faster R-CNN architecture. DMSN tackles the multi-source domain adaptation challenge in two main phases:

Phase 1: Initial Alignment and Source Specialization * Hierarchical Feature Alignment: DMSN employs different alignment strategies for low-level and high-level features. Low-level features (e.g., edges, textures) are strongly aligned across all domains to improve localization, while high-level features (e.g., semantic information) are weakly aligned to preserve domain-specific characteristics. This is achieved using adversarial learning with domain discriminators. * Source Subnet Training: Each labeled source domain is trained with its own specialized subnet. This allows each subnet to learn the unique characteristics of its respective source domain while still contributing to the overall adaptation process.

Phase 2: Pseudo Subnet Learning and Consistency Regularization * Pseudo Subnet Learning (PSL): A novel "pseudo target subnet" is introduced. Its parameters are learned by dynamically weighting and aggregating the parameters of the individual source subnets. This dynamic weighting strategy uses a loss memory bank to assess the similarity between each source domain and the target domain, giving more weight to more relevant sources. This approach aims to approximate an optimal target domain model without direct target labels. * Consistency Regularization for RPN: To further bridge the gap and improve instance-level invariance, a consistency regularization is applied to the region proposal networks (RPNs) of the source subnets and the pseudo target subnet. This encourages all subnets to generate similar region proposals for the same target image, leading to more robust detection.

The final prediction is obtained by merging the outputs from all subnets.

Datasets

The paper evaluates DMSN on several standard datasets for object detection and domain adaptation:

  • Cityscapes: A dataset of urban driving scenes, used as a source domain.
  • KITTI: A dataset collected from autonomous driving platforms, also used as a source domain.
  • BDD100k: A large-scale dataset with diverse driving scenarios, used as a target domain. This dataset includes images captured at different times of day (daytime, night, dawn/dusk) and from various cameras, enabling experiments in both cross-camera and cross-time adaptation scenarios.

Key Insights and Ideas

  • Multi-source is not just combining: The paper convincingly demonstrates that simply merging data from multiple sources and applying single-source adaptation techniques is suboptimal. The "mutual interference" between disparate domains can degrade performance.
  • Hierarchical alignment matters: Differentiating alignment strategies for low-level (localization) and high-level (recognition) features is crucial for effective object detection adaptation.
  • Learning a "pseudo target" is powerful: Introducing a pseudo target subnet, learned by aggregating source subnet knowledge, provides a more direct path to target domain adaptation than solely relying on adversarial alignment.
  • RPN consistency is key for instance-level adaptation: Regularizing region proposals across subnets helps the model learn more robust, instance-level invariances, which are vital for accurate object detection.
  • Oracle performance is not always the ceiling: In scenarios with abundant source data, the adapted model can potentially surpass the performance of a model trained solely on a limited target dataset (the "oracle").

Key Results

DMSN demonstrates strong performance across various adaptation scenarios:

  • Cross-Camera Adaptation (KITTI + Cityscapes to BDD100k daytime): DMSN achieves an mAP of 49.2%, significantly outperforming source-combined DA methods (e.g., Strong-Weak at 41.1%) and other multi-source DA methods like MDAN (43.2%) and M³SDA (44.1%).
  • Cross-Time Adaptation (Daytime + Night to Dawn/Dusk in BDD100k): DMSN achieves an mAP of 35.0%, outperforming source-combined DA (32.9%) and other multi-source DA methods. Notably, it surpasses the "oracle" (direct training on dawn/dusk) by a considerable margin (26.6% vs. 35.0%), highlighting the benefit of leveraging large amounts of multi-source data.
  • Ablation Studies: The paper shows that each component of DMSN (hierarchical alignment, pseudo subnet learning, consistency regularization, and dynamic weighting) contributes to the overall performance improvement.

Limitations and Future Work

  • Domain Discrepancy: While DMSN significantly reduces domain discrepancy, a performance gap still exists compared to the oracle results in some scenarios, suggesting that further improvements in bridging complex domain shifts are possible.
  • Computational Cost: The framework involves multiple subnets, which can increase computational complexity.
  • Future Work: The authors suggest that collecting more labeled data from multiple source domains can further enhance adaptation performance. They also imply that exploring more sophisticated alignment strategies and potentially incorporating other domain adaptation techniques could lead to further gains. The paper also hints at the possibility of surpassing oracle performance when sufficient multi-source data is available.

Summary updated

BibTeX
@inproceedings{yao2021multi,
  author = {Xingxu Yao and Sicheng Zhao and Pengfei Xu and Jufeng Yang},
  title = {{Multi-Source Domain Adaptation for Object Detection}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00326},
}
Figure