Unsupervised Multi-Target Domain Adaptation Through Knowledge Distillation

Le Thanh Nguyen-Meidine, Atif Belal, Madhu Kiran, Jose Dolz, Louis-Antoine Blais-Morin, Eric Granger

Introduction

In real-world machine learning deployments, models frequently encounter domain shift, where the data distribution in the deployment environment (target domain) differs significantly from the training data (source domain). While Unsupervised Domain Adaptation (UDA) has been extensively studied for single-target scenarios, practical applications—such as city-wide surveillance networks—often require a model to adapt to multiple distinct target domains simultaneously.

Existing Multi-Target Domain Adaptation (MTDA) methods typically attempt to "blend" data from all target domains into a single pool. However, this approach often dilutes domain-specific features, resulting in a "jack of all trades, master of none" model. To address this, researchers have developed MT-MTDA, a framework that leverages specialized teacher models and knowledge distillation to preserve domain specificity while achieving a unified, high-performance student model.

The MT-MTDA Framework

The core philosophy of MT-MTDA is that treating multiple targets as a heterogeneous mixture is detrimental. Instead, the framework employs a multi-stage knowledge distillation approach to capture the nuances of each environment.

Comparison of domain adaptation strategies: (a) Single-Target DA, (b) Single-Target DA for multiple targets, (c) Multi-Target DA with mixed targets, and (d) the proposed MT-MTDA approach.

Methodology

  1. Specialized Teachers: For each of the $n$ target domains, a dedicated "teacher" model ($CNN_1, ..., CNN_n$) is trained using standard UDA techniques, such as Gradient Reversal (RevGrad). Each teacher becomes an expert in its specific target domain while maintaining performance on the source domain.
  2. Knowledge Distillation (KD): A single "student" model is trained to mimic the output distributions of all specialized teachers. This allows the student to inherit the collective expertise of the teachers without the computational burden of running multiple models in production.
  3. Progressive Learning: Rather than learning from all teachers simultaneously, the student follows an iterative process that cycles through teachers at the batch level. This ensures the student preserves the unique characteristics of each domain.
Algorithm 1: The iterative training process for MT-MTDA.

Loss Functions

The training objective combines three primary components: Cross-Entropy Loss (applied to source data), KL Divergence Loss (to align the student's predictions with the teacher's soft labels), and a Domain Confusion Loss to ensure learned features remain invariant across domains.

Experimental Evaluation

The researchers evaluated MT-MTDA on four standard computer vision benchmarks: Digits-five, Office31, OfficeHome, and PACS. These datasets cover a wide range of domain shifts, from digit styles to artistic renderings and real-world objects.

Key Results

MT-MTDA consistently outperformed state-of-the-art methods like AMEANS and DADA across various architectures (AlexNet, ResNet50, and ResNext101):

  • Digits-five: Achieved a top average accuracy of 65.8%, a significant improvement over the previous best of 63.2%.
  • Office31: In the ResNet50-to-AlexNet transfer task, MT-MTDA reached 78.3% average accuracy, outperforming AMEANS (75.4%).
  • Feature Visualization: T-SNE visualizations confirmed that MT-MTDA produces tighter, more distinct class clusters across domains, indicating the learning of more robust and discriminative features.

Discussion and Insights

The success of MT-MTDA highlights that specificity matters in multi-target adaptation. By isolating the adaptation process for each domain before distillation, the system avoids the performance degradation associated with data blending.

However, the approach has limitations. The student's performance is inherently capped by the quality of the teachers; if a teacher fails to adapt well to its specific domain, the student will inherit that deficiency. Additionally, training $N$ teachers for $N$ domains increases the initial computational cost, though the final deployed model remains efficient.

Summary updated

BibTeX
@inproceedings{nguyenmeidine2021unsupervised,
  author = {Le Thanh Nguyen-Meidine and Atif Belal and Madhu Kiran and Jose Dolz and Louis-Antoine Blais-Morin and Eric Granger},
  title = {{Unsupervised Multi-Target Domain Adaptation Through Knowledge Distillation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00138},
}
Figure