Abstract
Studies show that the representations learned by deep neural networks can be transferred to similar prediction tasks in other domains for which we do not have enough labeled data. However, as we transition to higher layers in the model, the representations become more task-specific and less generalizable. Recent research on deep domain adaptation proposed to mitigate this problem by forcing the deep model to learn more transferable feature representations across domains. This is achieved by incorporating domain adaptation methods into deep learning pipeline. The majority of existing models learn the transferable feature representations which are highly correlated with the outcome. However, correlations are not always transferable. In this paper, we propose a novel deep causal representation learning framework for unsupervised domain adaptation, in which we propose to learn domain-invariant causal representations of the input from the source domain. We simulate a virtual target domain using reweighted samples from the source domain and estimate the causal effect of features on the outcomes. The extensive comparative study demonstrates the strengths of the proposed model for unsupervised domain adaptation via causal representations.
Introduction
Deep learning models are notoriously sensitive to "domain shift." For instance, a cat-classifier trained on photos in sunny gardens (source) might fail on cats in snowy living rooms (target) because it learned to associate "green grass" with "cat." Most Unsupervised Domain Adaptation (UDA) methods attempt to align the statistical distributions of source and target features. However, these methods often capture spurious correlations (like the background) rather than the underlying causal mechanisms (like the shape of the ears). Because correlations are not always transferable, these models often break when the context changes. This research aims to bridge this gap by forcing models to ignore context and focus on the causal features that define an object's identity.
Methods: The DCDAN Framework
The proposed Deep Causal Domain Adaptation Network (DCDAN) moves beyond simple feature alignment to causal inference. The core innovation lies in distinguishing between causal features (e.g., whiskers, ears) and context features (e.g., background).
Virtual Target Domain and Sample Reweighting
Instead of relying solely on target data, DCDAN reweights source samples to create a "virtual" domain. In this space, the distribution of features is balanced such that spurious correlations between background and label are mathematically cancelled out. This is achieved through the Balancing Sample Weights Regularizer ($G$), which learns a weight vector ($W$) for source samples. By minimizing this regularizer, the model ensures that for any given feature, the distribution of all other features is balanced, isolating the specific causal effect of that feature on the outcome.
Binarization and Optimization
To treat features as "treatments" in a causal framework, representations are binarized using either a deterministic sign function or a stochastic "hard-sigmoid" with a straight-through estimator. The network jointly learns feature representations and sample weights using an alternating optimization approach.
Experimental Evaluation
The researchers evaluated DCDAN on standard benchmarks including Office-31 and Office-10 + Caltech-10. Additionally, they used the VQA-X (Visual Question Answering Explanation) dataset to provide "ground truth" for causal features. Unlike standard datasets, VQA-X includes human-annotated heatmaps showing why an image belongs to a class.
Key Results
- State-of-the-Art Performance: DCDAN outperformed several strong baselines (like DAN, DANN, and HAFN). On the Office-31 task, it achieved an average accuracy of 84.166%, compared to the previous best of 83.683%.
- Human Alignment: On the VQA-X dataset, DCDAN's feature heatmaps had a higher rank correlation (0.4501) with human-annotated "important" regions than the standard ResNet-50 (0.4077).
- Qualitative Focus: Visual explanations demonstrate that DCDAN focuses more tightly on the actual object compared to standard models, which often "bleed" attention into the background.
Discussion and Conclusion
The fundamental insight of this work is that correlation ≠ transferability. While deep layers are predictive, they often specialize in source domain quirks. Causal mechanisms, however, should remain invariant across environments. By using reweighting as a proxy for intervention, DCDAN "un-correlates" background from object, adhering to the postulate that causal mechanisms $P(Effect | Cause)$ are independent of the cause's distribution $P(Cause)$.
While the alternating optimization is computationally demanding and relies on the "Overlap Assumption," DCDAN represents a significant step toward more robust and generalizable domain adaptation. Future work may extend this causal framework to multi-source domain adaptation and more complex visual tasks.
Summary updated