Looking back at Labels: A Class based Domain Adaptation Technique

Vinod Kumar Kurmi, Vinay P. Namboodiri · DOI

Abstract

In this paper, we solve the problem of adapting classifiers across domains. We consider the problem of domain adaptation for multi-class classification where we are provided a labeled set of examples in a source dataset and we are provided a target dataset with no supervision. In this setting, we propose an adversarial discriminator based approach. While the approach based on adversarial discriminator has been previously proposed; in this paper, we present an informed adversarial discriminator. Our observation relies on the analysis that shows that if the discriminator has access to all the information available including the class structure present in the source dataset, then it can guide the transformation of features of the target set of classes to a more structure adapted space. Using this formulation, we obtain state-of-the-art results for the standard evaluation on benchmark datasets. We further provide detailed analysis which shows that using all the labeled information results in an improved domain adaptation.

Introduction

Deep learning models often struggle with domain shift—a phenomenon where a model trained on a source dataset performs poorly on a different but related target dataset. Unsupervised Domain Adaptation (UDA) aims to address this discrepancy without requiring labels for the target data.

A common strategy involves using an adversarial discriminator: a sub-network trained to distinguish between source and target features, while the main model is trained to generate features that "fool" this discriminator. However, standard discriminators are typically binary (source vs. target). This paper argues that such a binary approach often leads to mode collapse, where the model attempts to make all target samples resemble the general source domain, squashing distinct class structures together and losing critical discriminative information.

Methodology

To overcome the limitations of binary discriminators, the authors propose IDDA (Informative Discriminator for Domain Adaptation). The architecture, shown in Figure 1, consists of three primary components: a Feature Extractor ($G_f$), a Classifier ($G_c$), and an Informative Discriminator ($G_d$).

The IDDA architecture featuring a multi-class discriminator that incorporates source class labels to guide adaptation.

The core innovation is the multi-class discriminator. Instead of a simple binary output, $G_d$ is trained to perform a more complex task:

  • For source samples, it is trained to predict their actual ground-truth class labels ($1$ to $K$).
  • For target samples, it is trained to predict a unique "fake" label ($K+1$).

By utilizing a Gradient Reversal Layer (GRL), the feature extractor is forced to evolve such that target samples are misclassified by the discriminator as one of the source classes rather than the "fake" class. This mechanism encourages the model to map target samples into the specific "modes" or clusters of the source classes, effectively preserving the multi-class structure during adaptation.

Crucially, IDDA is independent of target predictions. Unlike methods that rely on potentially noisy pseudo-labels for the target domain, IDDA leverages ground-truth source labels, providing a more stable and informed training signal from the outset.

Experimental Evaluation

The proposed method was evaluated on several standard UDA benchmarks, including Office-31, Home-Office, ImageCLEF-2014, Caltech-Bing, and MNIST to MNIST-M. IDDA achieved state-of-the-art results across these datasets. For instance, on Office-31, it reached an average accuracy of 78.5%, significantly outperforming the standard GRL baseline (73.9%). In the Amazon $\rightarrow$ DSLR task, IDDA showed a substantial 8.2% improvement over the baseline.

t-SNE visualization of feature distributions before and after adaptation, showing how IDDA preserves class structure while aligning domains.

Visual analysis using t-SNE (Figure 2) demonstrates the effectiveness of the approach. Before adaptation, the source and target domains are clearly separated. After adaptation with IDDA, the target samples are well-aligned with the source clusters while maintaining distinct class boundaries. Quantitative analysis also showed that IDDA significantly reduces the proxy $\mathcal{A}$-distance, a measure of domain discrepancy, compared to both source-only models and those using binary discriminators.

Conclusion

IDDA demonstrates that incorporating source class labels into the adversarial discriminator provides a significantly more "informed" signal for domain adaptation. By preserving the multimodal structure of the data, the method avoids mode collapse and achieves superior classification performance on target domains. Future research could explore the use of hierarchical label structures to further refine the discriminator's guidance and investigate more explicit ways to correlate source and target latent structures.

Summary updated

BibTeX
@inproceedings{kurmi2019looking,
  author = {Vinod Kumar Kurmi and Vinay P. Namboodiri},
  title = {{Looking back at Labels: A Class based Domain Adaptation Technique}},
  booktitle = {IJCNN},
  year = {2019},
  doi = {10.1109/ijcnn.2019.8852199},
}
Figure