[Paper Review] Domain Generalization via Conditional Invariant Representation
This paper proposes Conditional Invariant Domain Generalization (CIDG), a method that learns feature representations with invariant class-conditional distributions 𝕡(h(X)|Y) across domains, enabling robust generalization when both input and conditional label distributions shift. Experiments show CIDG outperforms existing methods on synthetic and real-world datasets, especially under non-i.i.d. data shifts where prior assumptions of stable 𝕡(Y|X) fail.
Domain generalization aims to apply knowledge gained from multiple labeled source domains to unseen target domains. The main difficulty comes from the dataset bias: training data and test data have different distributions, and the training set contains heterogeneous samples from different distributions. Let $X$ denote the features, and $Y$ be the class labels. Existing domain generalization methods address the dataset bias problem by learning a domain-invariant representation $h(X)$ that has the same marginal distribution $\mathbb{P}(h(X))$ across multiple source domains. The functional relationship encoded in $\mathbb{P}(Y|X)$ is usually assumed to be stable across domains such that $\mathbb{P}(Y|h(X))$ is also invariant. However, it is unclear whether this assumption holds in practical problems. In this paper, we consider the general situation where both $\mathbb{P}(X)$ and $\mathbb{P}(Y|X)$ can change across all domains. We propose to learn a feature representation which has domain-invariant class conditional distributions $\mathbb{P}(h(X)|Y)$. With the conditional invariant representation, the invariance of the joint distribution $\mathbb{P}(h(X),Y)$ can be guaranteed if the class prior $\mathbb{P}(Y)$ does not change across training and test domains. Extensive experiments on both synthetic and real data demonstrate the effectiveness of the proposed method.
Motivation & Objective
- To address domain generalization when both 𝕡(X) and 𝕡(Y|X) change across domains, challenging the common assumption of stable 𝕡(Y|X).
- To develop a method that ensures invariance of the joint distribution 𝕡(h(X),Y) by learning representations with invariant 𝕡(h(X)|Y).
- To remove reliance on the assumption that 𝕡(Y|X) remains stable across domains, which often fails in real-world causal structures like Y→X.
- To improve generalization performance on unseen target domains by explicitly regularizing class-conditional distribution invariance.
Proposed method
- Proposes a representation learning framework that minimizes variance of class-conditional distributions 𝕡(h(X)|Y) across source domains.
- Introduces a regularization term based on the variance of class-prior-normalized marginal distributions 𝕡_N(h(X)) to reduce global distribution discrepancy.
- Uses normalization of class priors to mitigate the impact of potential shifts in 𝕡(Y) across domains.
- Incorporates intra-class and inter-class distance constraints inspired by Kernel Fisher Discriminant Analysis to preserve discriminative power.
- Employs RBF kernel-based methods for computing kernel matrices in all experiments, with KNN used for final classification.
- Optimizes the objective function using a combination of distribution invariance and discriminative learning to balance robustness and accuracy.
Experimental results
Research questions
- RQ1Can domain generalization be improved when both input distribution 𝕡(X) and conditional label distribution 𝕡(Y|X) shift across domains?
- RQ2Does enforcing invariance of the class-conditional distribution 𝕡(h(X)|Y) lead to better generalization than enforcing only marginal invariance 𝕡(h(X))?
- RQ3How does the proposed method perform compared to existing domain generalization approaches under realistic distribution shifts where 𝕡(Y|X) is not stable?
- RQ4What is the impact of class prior shift on the performance of domain generalization models, and how can it be mitigated?
Key findings
- On synthetic data, CIDG achieves 86.67% accuracy, significantly outperforming KPCA, DICA, and SCA, which show poor clustering or mixed class representations.
- On the VLCS dataset, CIDG achieves the best performance on 9 out of 10 domain generalization tasks, demonstrating robustness across diverse image domains.
- On the Office+Caltech dataset, CIDG achieves the best results on 9 out of 10 tasks, validating its superiority under complex real-world distribution shifts.
- Methods like KPCA and DICA fail to generalize well when class-conditional distributions shift, highlighting the limitations of relying solely on marginal invariance.
- The proposed method maintains strong performance even when the prior distribution 𝕡(Y) remains unchanged between source and target domains, as assumed in the theoretical framework.
- The use of class-prior normalization in the regularization term effectively reduces the impact of domain shifts in class priors, improving generalization stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.