Domain Conditioned Adaptation Network

Shuang Li, Chi Harold Liu, Qiuxia Lin, Binhui Xie, Zhengming Ding, Gao Huang, Jian Tang

Abstract

The Domain Conditioned Adaptation Network (DCAN) challenges the common assumption that convolutional layers should be entirely shared between source and target domains in deep domain adaptation. By introducing domain-conditioned channel attention and feature correction blocks, DCAN allows the model to learn domain-specific low-level features, leading to state-of-the-art performance on challenging benchmarks like DomainNet.

Introduction

Domain Adaptation (DA) aims to transfer knowledge from a labeled "source" domain to an unlabeled "target" domain. Traditional deep DA methods typically focus on aligning high-level features in the final layers while forcing the "backbone" convolutional layers to be identical for both domains. This "strongly-shared" assumption becomes a bottleneck when the visual gap between domains is significant—for instance, when adapting from synthetic images to real-world photos. Forcing shared low-level filters can prevent the model from capturing domain-informative features early on, leading to error propagation.

Methodology

To address the limitations of strongly-shared architectures, DCAN proposes a "weakly-shared" framework consisting of two primary modules:

  1. Domain Conditioned Channel Attention (DCCA): Unlike standard attention mechanisms, DCCA employs separate paths for source and target domains to learn channel-wise dependencies. This allows the network to dynamically "excite" different convolutional channels based on the input domain, specializing feature extraction without significantly increasing the parameter count.
  2. Domain Conditioned Feature Correction (DCFC): These blocks are integrated after task-specific layers to explicitly model domain discrepancies as a residual term ($\Delta H$).
The DCAN architecture featuring Domain Conditioned Channel Attention (DCCA) and Feature Correction (DCFC) modules.

To optimize these modules, the authors utilize a combination of cross-entropy loss, target entropy minimization, and Maximum Mean Discrepancy (MMD). A novel regularization loss ($L_{reg}$) is introduced to ensure that the correction blocks remain stable and do not learn noisy transformations by forcing a random subset of source data to remain consistent after passing through the correction module.

Experimental Results

DCAN was evaluated on three major cross-domain benchmarks, demonstrating superior performance as task complexity increased:

  • Office-31: Achieved an average accuracy of 89.5%, surpassing previous state-of-the-art methods.
  • Office-Home: Reached 70.5% average accuracy, a notable improvement over the previous best of 68.1%.
  • DomainNet: On this massive benchmark (~0.6M images), DCAN significantly outperformed competitors. Using a ResNet-50 backbone, it achieved 19.9% accuracy, which scaled to 24.8% with a ResNet-152 backbone.

Qualitative Analysis

The effectiveness of domain-conditioned attention is best observed through visualization. While standard models often get distracted by background clutter (e.g., furniture or peripherals) when identifying objects like an "eraser," DCAN's attention maps show a precise focus on the object itself. This behavior mimics a model trained with actual target labels, confirming that capturing domain-specific knowledge early in the network is crucial for robust adaptation.

Comparison of attention maps between standard models and DCAN, highlighting DCAN's ability to focus on task-relevant objects.

Conclusion

DCAN demonstrates that low-level features are not always universal across domains. By treating attention as a domain-specific switch and incorporating feature correction, the model effectively bridges large domain gaps. The significant performance gains on large-scale datasets like DomainNet suggest that weakly-shared architectures are a promising direction for future domain adaptation research.

Summary updated

BibTeX
@inproceedings{li2020domain,
  author = {Shuang Li and Chi Harold Liu and Qiuxia Lin and Binhui Xie and Zhengming Ding and Gao Huang and Jian Tang},
  title = {{Domain Conditioned Adaptation Network}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i07.6801},
}
Figure