[Paper Review] Causality Inspired Representation Learning for Domain Generalization
This paper proposes Causality Inspired Representation Learning (CIRL), a domain generalization method that learns invariant, causally sufficient representations by enforcing three ideal properties: separation from non-causal factors, joint independence among factors, and causal sufficiency. By leveraging causal intervention and a factorization module, CIRL achieves state-of-the-art performance on benchmark datasets like PACS, with a 86.32% average accuracy under unseen domain shifts.
Domain generalization (DG) is essentially an out-of-distribution problem, aiming to generalize the knowledge learned from multiple source domains to an unseen target domain. The mainstream is to leverage statistical models to model the dependence between data and labels, intending to learn representations independent of domain. Nevertheless, the statistical models are superficial descriptions of reality since they are only required to model dependence instead of the intrinsic causal mechanism. When the dependence changes with the target distribution, the statistic models may fail to generalize. In this regard, we introduce a general structural causal model to formalize the DG problem. Specifically, we assume that each input is constructed from a mix of causal factors (whose relationship with the label is invariant across domains) and non-causal factors (category-independent), and only the former cause the classification judgments. Our goal is to extract the causal factors from inputs and then reconstruct the invariant causal mechanisms. However, the theoretical idea is far from practical of DG since the required causal/non-causal factors are unobserved. We highlight that ideal causal factors should meet three basic properties: separated from the non-causal ones, jointly independent, and causally sufficient for the classification. Based on that, we propose a Causality Inspired Representation Learning (CIRL) algorithm that enforces the representations to satisfy the above properties and then uses them to simulate the causal factors, which yields improved generalization ability. Extensive experimental results on several widely used datasets verify the effectiveness of our approach.
Motivation & Objective
- Address the limitation of statistical dependence-based domain generalization methods, which fail under distribution shift due to lack of causal understanding.
- Formalize domain generalization within a structural causal model (SCM) to distinguish between causal factors (invariant across domains) and non-causal factors (domain-dependent).
- Develop a practical method to learn representations that mimic true causal factors despite unobserved causal structures.
- Ensure learned representations are invariant to domain shifts by enforcing invariance through causal intervention and factorization.
- Demonstrate that causally inspired representations lead to improved generalization and robustness on out-of-distribution test domains.
Proposed method
- Propose a structural causal model (SCM) where input X is a mixture of causal factors S and non-causal factors U, with only S causally affecting the label Y.
- Introduce a causal intervention module that generates perturbed data with changed U but invariant S, enforcing representation invariance across domains.
- Design a factorization module that enforces joint independence among representation dimensions to approximate ideal causal factors.
- Enforce causal sufficiency by ensuring each representation dimension captures essential, non-reduundant causal information for classification.
- Use a contrastive learning objective to align representations across domains while preserving causal structure.
- Integrate the causal intervention and factorization modules into an end-to-end training framework using standard backpropagation.
Experimental results
Research questions
- RQ1Can causal representation learning improve domain generalization beyond statistical dependence modeling?
- RQ2How can unobserved causal factors be effectively approximated in practice using observable representations?
- RQ3Do representations that satisfy separation, joint independence, and causal sufficiency lead to better OOD generalization?
- RQ4How robust is the proposed method to hyperparameter choices in real-world domain shift scenarios?
- RQ5Can visual attention maps confirm that CIRL learns category-specific, causal features rather than spurious domain-related patterns?
Key findings
- CIRL achieves a state-of-the-art average accuracy of 86.32% on the PACS dataset with Sketch as the unseen target domain, outperforming existing SOTA methods.
- The ablation study confirms that all components—causal intervention, factorization, and adversarial module—are essential, with the full CIRL model achieving 86.32% vs. 84.99% for the variant without factorization.
- Representation independence improves significantly during training, with the Frobenius norm of off-diagonal correlations decreasing and stabilizing, confirming effective joint independence learning.
- CIRL achieves the highest mean representation importance (3.22) and lowest standard deviation (0.09), indicating that each dimension contributes meaningfully and consistently to classification.
- The method is robust to hyperparameter variations, maintaining strong performance across a wide range of τ (5.0–10.0) and κ (0.5–0.6), demonstrating stability.
- Visualizations show CIRL focuses on category-specific features (e.g., giraffe’s neck), while baselines attend to non-causal, domain-specific patterns (e.g., texture), confirming causal alignment.
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.