Abstract
Differentiable Invariant Causal Discovery (DICD) is a novel framework that bridges the gap between differentiable causal discovery and invariant learning. By enforcing that learned structural equations remain optimal across multiple data environments, DICD successfully filters out spurious correlations and "shortcuts" that often plague standard machine learning approaches.
Introduction: The Challenge of Spurious Correlations
Causal Discovery (CD) involves uncovering the underlying "who-causes-what" structure of a system, typically represented as a Directed Acyclic Graph (DAG). Recent breakthroughs, such as the NOTEARS framework, transformed this discrete search into a continuous, differentiable optimization problem. However, these methods primarily rely on Empirical Risk Minimization (ERM), which tends to prioritize any statistical correlation that reduces reconstruction loss, regardless of whether it is truly causal.
In real-world scenarios where data is collected across varying environments (e.g., different sensors or conditions), these non-causal "shortcuts" often change. Standard CD methods struggle to distinguish stable causal mechanisms from these transient correlations, leading to inaccurate graph reconstructions.
Methodology: Invariance as a Causal Filter
DICD addresses this by incorporating principles from Invariant Risk Minimization (IRM). The core hypothesis is that while many graphs might fit a single dataset, only the true causal structure will remain optimal across all environments using the same functional parameters.
The framework consists of a structural model $S$ (the graph) and a causal function $f$ (the weights). DICD enforces a constraint where $f$ must be the "best" fit for $S$ in every environment individually. To overcome the difficulty of bilevel optimization, the authors developed a differentiable penalty term based on the gradient of the loss, allowing the model to be trained efficiently via gradient descent. This approach supports both linear relationships and nonlinear ones through Multi-Layer Perceptrons (MLPs).
Experimental Evaluation
The authors evaluated DICD against state-of-the-art baselines, including CD-NOD, DAGGNN, and DARING, using both synthetic and adapted real-world benchmarks:
- Synthetic Datasets: Erdos-Renyi (ER) and Scale-Free (SF) graphs with 10 to 100 nodes. Environments were simulated by varying the variance of additive noise.
- Colored MNIST: A benchmark where digit color serves as a spurious correlation, testing the model's ability to isolate the true causal relationship (digit-to-label) from environmental noise.
Key Results and Discussion
DICD demonstrated superior accuracy across nearly all experimental settings. A primary metric for evaluation was the Structural Hamming Distance (SHD), which measures the number of edge errors in the predicted graph.
As shown in the results, DICD achieved up to a 36% improvement in SHD compared to the next best method on 10-node ER graphs. Notably, the performance gap widened as graph density increased, suggesting that DICD is particularly robust for complex systems. Furthermore, DICD remains computationally efficient; while multi-environment methods like CD-NOD can take hours for larger graphs, DICD completes in minutes by leveraging GPU acceleration.
Conclusion
DICD provides a powerful mechanism for robust causal discovery by treating stability across environments as a hallmark of causality. By mitigating "over-reconstruction" and filtering out unstable edges, it offers a more reliable path to uncovering true structural relationships in multi-environment data. Future work aims to extend these results to scenarios where environment labels are unknown, potentially through automated environment inference.
Summary updated