Generalized Domain Adaptation

Yu Mitsuzumi, Go Irie, Daiki Ikami, Takashi Shibata

Abstract

Unsupervised Domain Adaptation (UDA) has traditionally been studied through various fragmented sub-problems like Multi-Source or Open Set adaptation. This paper introduces Generalized Domain Adaptation (GDA), a unified framework that encompasses these variants. We address a challenging "blind" scenario where domain labels are unknown and class labels are sparse. Our approach utilizes a "class-destructive" transformation to disentangle domain-specific features from class-specific ones, enabling effective domain alignment without explicit domain labels.

Introduction: The Fragmentation of Domain Adaptation

In machine learning, Unsupervised Domain Adaptation (UDA) aims to bridge the gap between a labeled source domain and an unlabeled target domain. Over time, this field has branched into numerous specialized tasks, such as Multi-Source DA (MSDA), Multi-Target DA (MTDA), Open Set DA (OSDA), and Partial DA (PDA). While these methods excel in their specific niches, they often lack robustness when applied to different scenarios or when domain labels are unavailable.

Comparison of various domain adaptation settings and the proposed Generalized Domain Adaptation (GDA) framework.

The proposed Generalized Domain Adaptation (GDA) framework provides a single mathematical representation covering these diverse cases. Crucially, GDA tackles the "blind" setting where the assignment of samples to domains is unknown, a common real-world situation that renders traditional alignment techniques ineffective.

Methodology

The GDA framework operates in two primary stages: Domain Label Estimation and Classifier Learning.

Domain Label Estimation via Class-Destructive Transformation

To align domains without explicit labels, the model must first group similar samples. We introduce a "class-destructive" transformation that divides images into a grid and randomly shuffles the blocks. This technique relies on the observation that class identity typically depends on local geometric structures, which are destroyed by shuffling. In contrast, domain characteristics—such as lighting, color distribution, and sensor noise—are often global and persist despite local rearrangement. By training a contrastive model on these scrambled images, we extract features that are sensitive to the domain but "blind" to the class, which are then clustered to estimate domain labels.

The GDA pipeline, featuring domain label estimation through class-destructive transformations and subsequent adversarial classifier learning.

Classifier Learning

With estimated domain labels, we employ a Domain-Adversarial Neural Network (DANN) architecture. A Gradient Reversal Layer (GRL) is used to train a feature extractor that produces domain-invariant representations. To handle potential "unknown" classes in Open Set scenarios, an entropy-based filtering mechanism determines whether a sample belongs to a known category or should be classified as "UNK."

Experimental Results

We evaluated GDA on standard benchmarks including Digits (SVHN, MNIST, etc.), Office-31, and Office-Home.

Performance in Blind Settings

In scenarios where domain labels were withheld (GDA1 and GDA2 settings), our method significantly outperformed existing state-of-the-art (SOTA) baselines. On the Digits benchmark, GDA achieved a Harmonic mean of accuracy (HOS) of 80.07%, compared to just 37.46% for the OSBP baseline. This suggests that standard methods struggle when they cannot explicitly distinguish between domain shifts and class features.

Robustness and Disentanglement

Even in standard tasks where domain labels are known, GDA remains highly competitive with specialized algorithms. Confusion matrix analysis reveals that the class-destructive approach successfully disentangles domain and class features, leading to cleaner classification and fewer cross-domain errors.

Discussion and Future Work

While GDA offers a powerful unified framework, it introduces new hyperparameters, such as the grid size for image shuffling. If the grid is too coarse, class information remains; if too fine, domain information may be lost. Additionally, the current implementation requires an estimate of the number of latent domains. Future research will focus on automatically detecting the optimal number of clusters and developing single-stage, end-to-end training procedures to reduce computational overhead.

Summary updated

BibTeX
@inproceedings{mitsuzumi2021generalized,
  author = {Yu Mitsuzumi and Go Irie and Daiki Ikami and Takashi Shibata},
  title = {{Generalized Domain Adaptation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00114},
}
Figure