[Paper Review] Out-of-distribution Prediction with Invariant Risk Minimization: The Limitation and An Effective Fix
This paper identifies a critical limitation of Invariant Risk Minimization (IRM) in out-of-distribution (OOD) generalization: when spurious correlations (e.g., color and domain) are stronger than invariant ones (e.g., shape and class), DNNs can learn non-overlapping, domain-specific representations that evade IRM’s regularization, leading to poor OOD performance. To fix this, the authors propose combining IRM with Conditional Distribution Matching (CDM), which enforces overlapping representations across domains for the same class, significantly improving OOD accuracy on a new semi-synthetic dataset (CMNIST+), especially under strong triangle spuriousness.
This work considers the out-of-distribution (OOD) prediction problem where (1)~the training data are from multiple domains and (2)~the test domain is unseen in the training. DNNs fail in OOD prediction because they are prone to pick up spurious correlations. Recently, Invariant Risk Minimization (IRM) is proposed to address this issue. Its effectiveness has been demonstrated in the colored MNIST experiment. Nevertheless, we find that the performance of IRM can be dramatically degraded under \emph{strong $Λ$ spuriousness} -- when the spurious correlation between the spurious features and the class label is strong due to the strong causal influence of their common cause, the domain label, on both of them (see Fig. 1). In this work, we try to answer the questions: why does IRM fail in the aforementioned setting? Why does IRM work for the original colored MNIST dataset? How can we fix this problem of IRM? Then, we propose a simple and effective approach to fix the problem of IRM. We combine IRM with conditional distribution matching to avoid a specific type of spurious correlation under strong $Λ$ spuriousness. Empirically, we design a series of semi synthetic datasets -- the colored MNIST plus, which exposes the problems of IRM and demonstrates the efficacy of the proposed method.
Motivation & Objective
- To investigate why IRM fails in OOD generalization when spurious correlations are stronger than invariant ones.
- To expose the limitation of IRM in learning non-overlapping representations that circumvent its regularization.
- To propose a solution that combines IRM with Conditional Distribution Matching (CDM) to enforce overlapping, invariant representations across domains.
- To validate the proposed method on a new semi-synthetic dataset (CMNIST+) designed to induce strong triangle spuriousness.
- To demonstrate that CDM alone is insufficient, but CDM combined with IRM significantly improves OOD performance.
Proposed method
- The authors introduce CMNIST+, a semi-synthetic dataset where the spurious correlation between color (spurious feature), domain, and class is stronger than the invariant correlation between shape (invariant feature) and class.
- IRM is extended by adding a CDM regularizer that encourages the representation distribution of the same class to be similar across different domains.
- The CDM regularizer is implemented via a discriminator network that predicts domain labels from features and class labels, minimizing the KL divergence between predicted and true domain probabilities.
- The combined loss is optimized via an alternating minimax procedure: minimize the IRM loss while maximizing the CDM loss through the discriminator.
- Two variants are evaluated: IRM-MMD (using multiple kernel MMD) and IRM-ACDM (using an MLP discriminator), both with joint IRM and CDM regularization.
- The method is compared against ERM, IRM, EIIL, and oracle baselines on CMNIST+ under varying levels of triangle spuriousness (ρ ∈ {0.8, 0.85, 0.9}).
Experimental results
Research questions
- RQ1Why does IRM fail in OOD prediction when spurious correlations are stronger than invariant correlations?
- RQ2Can DNNs learn non-overlapping, domain-specific representations that minimize empirical risk while evading IRM regularization?
- RQ3Does combining IRM with Conditional Distribution Matching (CDM) mitigate the failure of IRM under strong triangle spuriousness?
- RQ4Can CDM alone solve the OOD generalization problem in this setting, or is IRM necessary?
- RQ5How does the inclusion of domain labels in the training process affect the learning of invariant features compared to methods that infer soft domain labels?
Key findings
- Under strong triangle spuriousness (ρ > 0.75), IRM’s performance degrades significantly, dropping to 58.47% test accuracy at ρ = 0.85 on CMNIST+.
- IRM-ACDM achieves 70.15% test accuracy at ρ = 0.8, a 12% improvement over IRM (58.00%), demonstrating the effectiveness of combining CDM with IRM.
- IRM-MMD achieves 67.08% at ρ = 0.8, a 9% improvement over IRM, confirming that CDM enhances IRM’s robustness.
- CDM alone (ACDM or MMD) fails to achieve high OOD accuracy, with ACDM reaching only 30.41% at ρ = 0.8, showing that CDM is insufficient without IRM.
- EIIL, which learns soft domain labels, underperforms IRM, indicating that explicit domain supervision is more effective than implicit domain modeling for invariant representation learning.
- The oracle model, which uses grayscale images and avoids spurious features, achieves 73.49% accuracy at ρ = 0.85, showing that the proposed method (70.15%) is close to the optimal performance.
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.