Generalized Domain Conditioned Adaptation Network

Shuang Li, Binhui Xie, Qiuxia Lin, Chi Harold Liu, Gao Huang, Guoren Wang · DOI

Abstract

Domain Adaptation (DA) attempts to transfer knowledge learned in the labeled source domain to the unlabeled but related target domain without requiring large amounts of target supervision. Recent advances in DA mainly proceed by aligning the source and target distributions. Despite the significant success, the adaptation performance still degrades accordingly when the source and target domains encounter a large distribution discrepancy. We consider this limitation may attribute to the insufficient exploration of domain-specialized features because most studies merely concentrate on domain-general feature learning in task-specific layers and integrate totally-shared convolutional networks (convnets) to generate common features for both domains. In this paper, we relax the completely-shared convnets assumption adopted by previous DA methods and propose Domain Conditioned Adaptation Network (DCAN), which introduces domain conditioned channel attention module with a multi-path structure to separately excite channel activation for each domain. Such a partially-shared convnets module allows domain-specialized features in low-level to be explored appropriately. Further, given the knowledge transferability varying along with convolutional layers, we develop Generalized Domain Conditioned Adaptation Network (GDCAN) to automatically determine whether domain channel activations should be separately modeled in each attention module. Afterward, the critical domain-specialized knowledge could be adaptively extracted according to the domain statistic gaps. As far as we know, this is the first work to explore the domain-wise convolutional channel activations separately for deep DA networks. Additionally, to effectively match high-level feature distributions across domains, we consider deploying feature adaptation blocks after task-specific layers, which can explicitly mitigate the domain discrepancy.

Introduction

Unsupervised Domain Adaptation (UDA) aims to leverage labeled data from a source domain to improve performance on an unlabeled target domain. Traditional approaches often rely on the assumption that low-level convolutional features are "universal" and should be extracted using a single, shared backbone. However, when the domain gap is substantial—such as transitioning from professional photography to hand-drawn sketches—this "completely shared" assumption can lead to the suppression of critical domain-specific information. The Generalized Domain Conditioned Adaptation Network (GDCAN) addresses this by introducing a flexible architecture that selectively learns domain-specialized features.

Proposed Methodology: GDCAN

The core innovation of GDCAN lies in its departure from rigid parameter sharing. The architecture incorporates three primary components:

  1. Domain Conditioned Channel Attention (DCAN): This module utilizes a multi-path structure to separately excite channel activations for the source and target domains. By allowing each domain to "attend" to different features, the network preserves domain-informative knowledge that a shared filter might otherwise ignore.
  2. Adaptive Routing Strategy: To optimize the balance between shared and specialized features, GDCAN employs an automated routing mechanism. It calculates a cross-domain statistic distance based on the mean and variance of features in a layer. If the domains exhibit similar statistics, they share an attention path; if the discrepancy is high, the network routes them through separate paths.
  3. Feature Adaptation Module: In the higher, task-specific layers, GDCAN aligns feature distributions using a modified Maximum Mean Discrepancy (MMD) loss. A regularization term ensures that the target-specific branches remain grounded in useful feature space by occasionally processing source data.
The GDCAN architecture featuring the Adaptive Channel Attention Module and Feature Adaptation Module.

Experimental Evaluation

The effectiveness of GDCAN was evaluated across four major benchmarks, including the massive DomainNet dataset (345 categories across 6 domains) and Office-Home (65 categories across 4 domains).

Quantitative Results

GDCAN demonstrated state-of-the-art performance, particularly on challenging datasets. On DomainNet, GDCAN achieved an average accuracy improvement of 8.6% over the previous best baseline (SWD). On Office-Home, it reached 71.5% average accuracy, outperforming the strong SAFN baseline by approximately 3%.

Qualitative Analysis

Grad-CAM visualizations reveal that GDCAN more accurately localizes objects in the target domain compared to traditional shared-backbone models. While baselines often focus on irrelevant background noise due to domain shift, GDCAN's adaptive attention allows it to focus on the primary objects, such as keyboards or webcams, even in cluttered environments.

Grad-CAM visualizations comparing GDCAN with baseline methods across various target domain images.

Conclusion

GDCAN challenges the convention of entirely shared convolutional backbones in Domain Adaptation. By adaptively deciding where to share and where to specialize features based on domain statistics, the model achieves superior transferability. Future work will explore more complex distance metrics for routing and the application of these conditioned modules to non-CNN architectures.

Summary updated

BibTeX
@article{li2021generalized,
  author = {Shuang Li and Binhui Xie and Qiuxia Lin and Chi Harold Liu and Gao Huang and Guoren Wang},
  title = {{Generalized Domain Conditioned Adaptation Network}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2021},
  doi = {10.1109/tpami.2021.3062644},
}
Figure