CAKE: CAusal and collaborative proxy-tasKs lEarning for Semi-Supervised Domain Adaptation

Wenqiao Zhang, Changshuo Liu, Can Cui, Beng Chin Ooi

TL;DR

CAKE tackles Semi-Supervised Domain Adaptation (SSDA) through a causal lens, treating domain "style" as a confounding variable that obscures invariant semantic "concepts." By generating concept-preserving counterfactual samples to perform causal interventions and pairing them with a debiased, collaborative semi-supervised learning framework, CAKE achieves state-of-the-art transfer performance across multiple visual domain adaptation benchmarks.

What Problem Does This Paper Address?

In Semi-Supervised Domain Adaptation (SSDA), a model is trained using abundant labeled source-domain data alongside a very small number of labeled target samples and plentiful unlabeled target samples. Conventional approaches typically minimize distribution discrepancy or rely on standard pseudo-labeling.

However, two major challenges remain:

  1. Confounding by Style: Classifiers easily overfit to domain-specific styles (e.g., clipart textures, backgrounds, color palettes) instead of focusing on the underlying invariant concept (e.g., the silhouette or structure of an airplane).
  2. Confirmation Bias and Distribution Mismatch: With limited target supervision, traditional semi-supervised pseudo-labeling heavily favors dominant head classes, compounding errors on tail classes and failing to align features globally.

Methods

CAKE decomposes SSDA into two complementary subroutines:

                +------------------------------------------------+
                |     Invariant Concept Learning Proxy (ICL)     |
                |  Generates style variations (GAN + Augment)   |
                |  Applies causal intervention P(Y | do(X))      |
                +-----------------------+------------------------+
                                        |
                             Guides Invariant Concepts
                                        |
                +-----------------------v------------------------+
                |  Collaboratively Debiasing Learning (CDL)      |
                |  - Dual SSL Classifiers (Source & Target)      |
                |  - IPW Weighting (Fixes tail-class bias)       |
                |  - Self-Penalization on uncertain predictions  |
                +------------------------------------------------+
  1. Invariant Concept Learning (ICL) Proxy:
  2. Causal Graph & Intervention: Images are modeled as $X = (C, S_C, S_I)$, disentangled into concept $C$, cross-domain style $S_C$, and intra-domain style $S_I$. Only $C$ causally determines label $Y$. To eliminate spurious correlations, CAKE applies Pearl’s do-calculus intervention $P(Y \mid do(X))$.
  3. Invariant Causal Factor Generators (ICFGs): CAKE generates counterfactual style variants $\hat{X}$ using CycleGAN for cross-domain styles and standard photometric augmentations for intra-domain styles. An invariant regularization loss enforces consistent model predictions across all generated style variants.
  4. Collaboratively Debiasing Learning (CDL) Proxy:
  5. Dual Pseudo-Labeling Classifiers: Two co-training classifiers ($M_C^s$ trained on source data, $M_C^t$ on target data) iteratively produce pseudo-labels for unlabeled target data.
  6. Inverse Propensity Weighting (IPW): Addresses confirmation bias by shifting the objective from $P(Y \mid X)$ toward $P(X \mid Y)$, counteracting label imbalances and ensuring rare/tail classes are not neglected.
  7. Self-Penalization: Suppresses confident yet below-threshold negative predictions by driving down their respective class probabilities.

Datasets

The authors evaluate CAKE on three standard visual adaptation benchmarks:

  • DomainNet: 4 domains (Real, Clipart, Painting, Sketch) across 126 categories under 1-shot and 3-shot settings.
  • Office-Home: 4 domains (Real-World, Clipart, Art, Product) across 65 categories (12 adaptation scenarios).
  • Office: 3 domains (Amazon, Webcam, DSLR) across 31 categories.

Key Insights and Ideas

  • Style as a Confounder: Instead of simply learning global domain-invariant features via adversarial training, treating cross- and intra-domain style as causal confounders isolates the fine-grained visual concept responsible for the true label.
  • Fixing Pseudo-Label Confirmation Bias via IPW: Semi-supervised learning in SSDA suffers because label distributions shift across domains. Using IPW balances gradient updates across head and tail categories, preventing error cascades.
  • Mutual Reinforcement: Causal intervention provides a robust feature representation, while collaborative debiased pseudo-labeling expands high-quality target supervision to better constrain the invariant representation.

Key Results

  • DomainNet (3-shot, ResNet-34): CAKE achieves 77.6% mean accuracy, outperforming prior state-of-the-art methods like PACL (76.4%), CDAC (76.0%), and DECOTA (75.6%). In the 1-shot setting, it attains 75.7% (vs. DECOTA's 73.9%).
  • Office-Home (3-shot, VGG-16): CAKE reaches 72.6% mean accuracy, ahead of DECOTA (69.3%) and CDAC.
  • Office (3-shot, AlexNet): Reaches 73.8% mean accuracy, surpassing CDAC (70.0%).
  • Class Imbalance & Ablations: On DomainNet tail classes (e.g., class 69), CAKE achieves 46.0% accuracy compared to 36.2% without the debiasing mechanism. Removing causal intervention drops accuracy by 2.4% on DomainNet and 1.9% on Office-Home.

Limitations and Future Work

  • High Computational Overhead: Training the cross-domain CycleGAN generators is computationally expensive, taking roughly 12 days and requiring ~49GB of GPU memory on DomainNet. (The authors note that using simple image augmentations alone still yields competitive results).
  • Single-Concept Assumption: The causal framework assumes an image contains a single concept $C$ independent of style. In complex visual scenes (e.g., multi-label classification or visual question answering), co-occurring objects act as additional object-level confounders. Extending the causal graph to multi-object contexts remains open for future research.

Summary updated

BibTeX
@inproceedings{zhang2023cake,
  author = {Wenqiao Zhang and CHANGSHUO LIU and Can Cui and Beng Chin Ooi},
  title = {{CAKE: CAusal and collaborative proxy-tasKs lEarning for Semi-Supervised Domain Adaptation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=L97ftsVhiUi},
}
Figure