Causal Autoregressive Flows

Ilyes Khemakhem, Ricardo Pio Monti, Robert Leech, Aapo Hyvärinen
11/4/2020
303 citations
stat.MLcs.LG
diffusion-flow

Official code: piomonti/carefl (45 stars, Python, MIT, last commit 2021-04-08).

Abstract

Two apparently unrelated fields -- normalizing flows and causality -- have recently received considerable attention in the machine learning community. In this work, we highlight an intrinsic correspondence between a simple family of autoregressive normalizing flows and identifiable causal models.

Show full abstract

We exploit the fact that autoregressive flow architectures define an ordering over variables, analogous to a causal ordering, to show that they are well-suited to performing a range of causal inference tasks, ranging from causal discovery to making interventional and counterfactual predictions. First, we show that causal models derived from both affine and additive autoregressive flows with fixed orderings over variables are identifiable, i.e. the true direction of causal influence can be recovered. This provides a generalization of the additive noise model well-known in causal discovery. Second, we derive a bivariate measure of causal direction based on likelihood ratios, leveraging the fact that flow models can estimate normalized log-densities of data. Third, we demonstrate that flows naturally allow for direct evaluation of both interventional and counterfactual queries, the latter case being possible due to the invertible nature of flows. Finally, throughout a series of experiments on synthetic and real data, the proposed method is shown to outperform current approaches for causal discovery as well as making accurate interventional and counterfactual predictions.

View on arXivView PDF

Code Implementations(1)

piomonti/careflOfficial100%
MIT

Code for "Causal autoregressive flows" - AISTATS, 2021

459Python, ShellJul 3, 20205 years agoMIT

Similar Papers

Cite this paper

@article{khemakhem2020causal,
  title  = {Causal Autoregressive Flows},
  author = {Ilyes Khemakhem and Ricardo Pio Monti and Robert Leech and Aapo Hyvärinen},
  year   = {2020},
  eprint = {2011.02268},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.02268}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.02268.svg)](https://codeofpaper.com/paper/2011.02268)

Discussion