Abstract: Learning the causal structure behind data is invaluable for improving generalization and obtaining high-quality explanations. Towards this end, we propose a novel framework, Invariant Structure Learning (ISL), that is designed to improve causal structure discovery by utilizing generalization as an indication in the process. ISL splits the data into different environments, and learns a structure that is invariant to the target across different environments by imposing a consistency constraint. The proposed aggregation mechanism then selects the classifier based on a graph structure that reflects the causal mechanisms in the data more accurately compared to the structures learnt from individual environments. Furthermore, we extend ISL to a self-supervised learning setting, where accurate causal structure discovery does not rely on any labels. Self-supervised ISL utilizes proposals for invariant causality, by iteratively setting different nodes as targets. On synthetic and real-world datasets, we demonstrate that ISL accurately discovers the causal structure, outperforms alternative methods, and yields superior generalization for datasets with significant distribution shifts.
Introduction
Deep learning models are notoriously efficient at identifying patterns, but they often fail to distinguish between true causal signals and "spurious correlations." For instance, a model trained to recognize cows in green pastures might mistakenly learn that green grass is a defining feature of a cow. When presented with a cow on a beach, the model fails because it relied on an accidental environmental pattern rather than the underlying causal relationship. This phenomenon, known as underspecification, is a primary hurdle for model robustness in real-world applications.
Researchers from Google Cloud AI and USC have introduced Invariant Structure Learning (ISL) to address this. ISL is a framework designed to discover the stable, causal "skeleton" of data—the structure that remains invariant even when the environment changes.
Methodology: Generalization as a Signal
The core philosophy of ISL is that causality implies invariance. If a feature $X$ truly causes a label $Y$, that relationship should remain consistent across different contexts. ISL leverages this by using generalization performance as a guide for causal discovery.
The ISL Framework
- Environment Partitioning: If data lacks pre-labeled environments, ISL uses unsupervised clustering (e.g., K-means) to group data into distinct "contexts" that represent different distributions.
- Consistency Constraints: The framework learns a Directed Acyclic Graph (DAG) for each environment. It imposes a constraint that the parameters representing the causal parents of the target variable must be shared across all environments.
- Bi-level Optimization: The model employs a nested optimization strategy: the inner loop identifies the best DAG for a specific environment, while the outer loop ensures the chosen structure is the one that generalizes most effectively across all environments.
- Self-Supervised Discovery: For unlabeled data, ISL iteratively treats every variable as a target to propose candidate causal edges, eventually aggregating them into a globally consistent causal graph.
Experimental Evaluation
The authors evaluated ISL against standard benchmarks and real-world datasets, including the Boston Housing dataset, the Sachs protein signaling network, and a complex 27-node Insurance network. These tests were designed to see if the model could ignore "distractor" variables and maintain performance under significant distribution shifts.
Key Results
ISL demonstrated a significant advantage over traditional deep learning and existing causal discovery methods:
- Structural Accuracy: In synthetic tests, ISL often achieved a Structural Hamming Distance (SHD) of 0, meaning it perfectly reconstructed the ground-truth causal graph. In contrast, baseline methods like NOTEARS-MLP frequently incorporated spurious edges.
- Error Reduction: On datasets with high distribution shifts, ISL reduced Mean Squared Error (MSE) by up to 83% compared to standard MLPs and 96% compared to other causal-regularized methods.
- Robustness: ISL proved resilient in counterfactual scenarios. When spurious variables were manually altered, ISL’s predictions remained stable, whereas baseline models showed high variance.
Discussion and Conclusion
ISL represents a shift from treating Out-of-Distribution (OOD) generalization as a byproduct to using it as a primary signal for discovering causal truth. By identifying only the true "parents" of a variable, ISL produces sparser, more interpretable models that are inherently more explainable.
While the method currently faces higher computational overhead due to its bi-level optimization and is sensitive to the quality of initial environment clustering, it provides a robust path forward for Causal AI. Future work aims to refine environment partitioning through more sophisticated representation learning and to establish stronger theoretical convergence guarantees.
Summary updated