Multi-Target Domain Adaptation with Collaborative Consistency Learning

Takashi Isobe, Xu Jia, Shuaijun Chen, Jianzhong He, Yongjie Shi, Jianzhuang Liu, Huchuan Lu, Shengjin Wang

TL;DR

This paper introduces a novel framework called Collaborative Consistency Learning (CCL) to address the challenging problem of multi-target domain adaptation (MTDA) for semantic segmentation. Unlike previous methods that focus on single source-target pairs, CCL trains a single model capable of performing well across multiple diverse target domains by leveraging collaborative learning among domain-specific "expert" models and distilling their knowledge into a unified "student" model.

What Problem Does This Paper Address?

Semantic segmentation, a crucial task in computer vision for understanding image content at a pixel level, typically relies on large amounts of annotated data. Acquiring such annotations for real-world scenarios is expensive and time-consuming. Unsupervised Domain Adaptation (UDA) aims to bridge this gap by adapting models trained on labeled source data (often synthetic) to unlabeled real-world target data. However, traditional UDA methods are limited to a single source-target pair. In real-world applications like autonomous driving, a single model needs to generalize across various environments (e.g., different weather, lighting, cityscapes), which constitutes the Multi-Target Domain Adaptation (MTDA) problem. Existing MTDA approaches often focus on classification tasks and struggle to extend to dense prediction tasks like semantic segmentation, or they resort to training multiple specialized models, which is inefficient and prone to dispatching errors. This paper tackles the challenge of developing a single, robust semantic segmentation model that can effectively adapt to multiple target domains simultaneously, leveraging both labeled source data and abundant unlabeled target data.

Methods

The proposed Collaborative Consistency Learning (CCL) framework consists of two main stages:

  1. Collaborative Consistency Learning for MTDA:
    • Domain-Specific Experts: For each target domain, a domain-specific "expert" model is trained. To facilitate cross-domain learning, data from all domains (source and other targets) are style-transferred to match the style of the current target domain. This creates a "bridge" between domains.
  2. UDA Loss: Each expert is trained using a combination of standard cross-entropy loss on the source domain and an adversarial loss to reduce domain discrepancy.
  3. Collaborative Consistency Loss ($L_{cl}$): A key innovation is the introduction of a collaborative consistency loss. This loss encourages each expert to produce consistent pixel-wise predictions for samples with the same semantic context but different styles. This allows experts to learn from each other's predictions, effectively exchanging knowledge and improving their individual robustness.
  4. Online Knowledge Distillation for a Domain-Generic Student:
    • Student Model: A single "student" network is trained to generalize across all target domains.
  5. Knowledge Distillation Loss ($L_{okd}$): The student model is trained to mimic the outputs of the multiple domain-specific expert models.
  6. Weight Regularization Loss ($L_{wr}$): To prevent the student from being confused by potentially diverse expert predictions, a weight regularization term is introduced. This term pulls the weights of the domain-specific experts closer to the weights of the student model, reducing the gap between them and making it easier for the student to learn common semantic knowledge.
  7. Overall Objective: The final objective function combines the student's segmentation loss, adversarial loss, knowledge distillation loss, and weight regularization loss.

Datasets

The paper uses the following datasets:

  • Source Domains:
    • GTA5: A synthetic dataset with 24,966 images (1914x1052 pixels) and pixel-level annotations for 19 categories.
  • SYNTHIA: Another synthetic dataset with 9,400 rendered images (1280x760 resolution) for 16 categories.
  • Target Domains:
    • Cityscapes: A real-world dataset with 5,000 street scenes (19 categories), used with 2,975 training and 500 validation images.
  • Indian Driving (IDD): A real-world dataset capturing diverse traffic scenarios (10,003 images total, with 6,993 for training, 981 for validation).
  • Mapillary: A real-world dataset with 25,000 images from various global locations (18,000 for training, 5,000 for testing, 2,000 for validation).

The experiments primarily focus on adapting from synthetic sources (GTA5, SYNTHIA) to real-world targets (Cityscapes, IDD, Mapillary), and also explore real-to-real adaptation.

Key Insights and Ideas

  • MTDA is Crucial for Real-World Applications: The paper strongly argues that adapting to multiple target domains simultaneously is a more realistic and valuable setting than single-target adaptation, especially for applications like autonomous driving.
  • Collaboration Between Experts is Key: The core idea of encouraging domain-specific "expert" models to collaborate and learn from each other's predictions is a significant contribution. This allows for richer knowledge exchange than simply averaging predictions.
  • Bridging Domains with Style Transfer: Using style transfer to make data from different domains appear similar to a target domain's style is an effective way to reduce domain discrepancy and create a common ground for learning.
  • Online Distillation for a Unified Model: Distilling knowledge from multiple experts into a single student model is an efficient way to achieve a generalized model without the overhead of multiple specialized models.
  • Weight Regularization for Student Stability: The weight regularization term is crucial for stabilizing the student's learning process, preventing it from being overwhelmed by the diversity of expert predictions.

Key Results

  • The proposed CCL method achieves state-of-the-art performance on multi-target domain adaptation for semantic segmentation.
  • On the GTA5 to Cityscapes and IDD task, the single CCL model achieves 45.0% and 46.0% mIoU, respectively, significantly outperforming the "Data Combination" baseline and even surpassing the "Individual Model" approach (which uses two separate models) by +1.7% and +2.4% mIoU.
  • The method demonstrates strong generalization capabilities, performing well on both synthetic-to-real and real-to-real adaptation scenarios.
  • Ablation studies confirm the effectiveness of each component: collaborative consistency learning ($L_{cl}$) provides the most significant improvement, followed by weight regularization ($L_{wr}$).

Limitations and Future Work

  • Computational Cost: Training multiple expert models and a student model simultaneously can be computationally intensive.
  • Hyperparameter Tuning: The framework involves several weighting parameters (e.g., $\lambda_{adv}$, $\lambda_{okd}$, $\lambda_{wr}$) that require careful tuning.
  • Future Work: The authors suggest exploring more advanced knowledge distillation techniques and investigating the impact of different style transfer methods. They also imply that the framework can be extended to more complex scenarios with a larger number of target domains.

Summary updated

BibTeX
@inproceedings{isobe2021multi,
  author = {Takashi Isobe and Xu Jia and Shuaijun Chen and Jianzhong He and Yongjie Shi and Jianzhuang Liu and Huchuan Lu and Shengjin Wang},
  title = {{Multi-Target Domain Adaptation with Collaborative Consistency Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00809},
}
Figure