Introduction
Causal analysis is a cornerstone of scientific inquiry, traditionally divided into two primary tasks: causal discovery and causal inference. Causal discovery aims to identify the direction of influence between variables—determining, for instance, whether $X$ causes $Y$ or vice versa. Causal inference, on the other hand, focuses on predicting the outcomes of interventions (e.g., "what happens if we change $X$?") or counterfactual scenarios (e.g., "what would have happened if $X$ had been different?").
Historically, these tasks have relied on distinct methodologies. Discovery often requires restrictive assumptions, such as linearity or additive noise, while inference typically necessitates a fully specified Structural Equation Model (SEM). This paper, originally presented at the ICML 2020 workshop on Invertible Neural Networks, proposes a unified framework using autoregressive flow models to bridge this gap, offering a flexible approach to both discovery and inference in complex, non-linear systems.
Methodology: Flows as Universal SEMs
The core innovation lies in the synergy between Structural Equation Models and Affine Autoregressive Flows. In an autoregressive flow, variables are generated sequentially, where each variable depends on its predecessors. This structure naturally mirrors the causal ordering of a Directed Acyclic Graph (DAG).
Causal Discovery via Likelihood Ratios
To determine the causal direction between two variables, $x_1$ and $x_2$, the framework trains two separate flow models: one representing $x_1 \to x_2$ and another for $x_2 \to x_1$. By comparing the log-likelihoods of these models, the direction that better fits the observed data is identified as the likely causal path. Unlike traditional methods that assume additive noise (e.g., $y = f(x) + \epsilon$), affine flows can model complex interactions where the noise scale itself is a function of the input.
Causal Inference through Invertibility
The invertibility of flow models is leveraged for causal inference. For counterfactual queries, the model performs "abduction" by mapping observed data back to its underlying latent noise variables. Once these latent states are recovered, an intervention can be applied by modifying a variable, and the "prediction" is generated by running the flow forward. This provides a computationally efficient path for complex "what-if" reasoning.
Experimental Results
The effectiveness of the flow-based approach was tested on both synthetic and real-world datasets.
Robustness in Causal Discovery
In synthetic tests involving Linear SEMs, Additive Noise Models, and complex Neural Network-based SEMs, the flow-based method (Affine flow LR) demonstrated superior or competitive performance compared to traditional benchmarks like NO-TEARS and RECI.
Notably, in the "Neural Network" scenario—characterized by high non-linearity and non-additive noise—the flow-based method was the only approach to consistently identify the correct causal direction as sample sizes increased. On the real-world Cause-Effect Pairs benchmark, it achieved 73% accuracy, surpassing Linear LR (66%) and ANM (69%).
Accuracy of Interventional Predictions
The model's ability to perform causal inference was validated through interventional tasks. When the correct causal ordering is known, the flow model's predictions for interventions closely match theoretical expectations.
As illustrated in the results, the model accurately captures the expected values of downstream variables under intervention, demonstrating its utility as a surrogate for the true underlying SEM.
Discussion and Conclusion
This work demonstrates that autoregressive flows are a powerful tool for causal analysis, effectively serving as flexible, parameterized SEMs. By leveraging deep generative modeling, the authors provide a unified framework that handles non-additive noise and complex non-linearities more effectively than traditional methods.
However, challenges remain. The method's scalability is limited by the need to test permutations of variable orders, which grows factorially with the number of variables. Additionally, while the model performs well empirically, it does not fully resolve the fundamental mathematical ambiguity of identifiability in purely non-linear systems without further constraints. Future research may focus on integrating these constraints directly into flow architectures to enhance theoretical guarantees.
Summary updated