Diffusion Causal Models for Counterfactual Estimation

Pedro Sanchez, Sotirios A. Tsaftaris
2/21/2022
cs.LGcs.CV

Official code: vios-s/Diff-SCM (105 stars, Python, Apache-2.0, last commit 2023-06-07).

Abstract

We consider the task of counterfactual estimation from observational imaging data given a known causal structure. In particular, quantifying the causal effect of interventions for high-dimensional data with neural networks remains an open challenge.

Show full abstract

Herein we propose Diff-SCM, a deep structural causal model that builds on recent advances of generative energy-based models. In our setting, inference is performed by iteratively sampling gradients of the marginal and conditional distributions entailed by the causal model. Counterfactual estimation is achieved by firstly inferring latent variables with deterministic forward diffusion, then intervening on a reverse diffusion process using the gradients of an anti-causal predictor w.r.t the input. Furthermore, we propose a metric for evaluating the generated counterfactuals. We find that Diff-SCM produces more realistic and minimal counterfactuals than baselines on MNIST data and can also be applied to ImageNet data. Code is available https://github.com/vios-s/Diff-SCM.

View on arXivView PDF

Code Implementations(1)

vios-s/Diff-SCMOfficial100%
Apache-2.0

Code for Diff-SCM paper

10514PythonFeb 20, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{sanchez2022diffusion,
  title  = {Diffusion Causal Models for Counterfactual Estimation},
  author = {Pedro Sanchez and Sotirios A. Tsaftaris},
  year   = {2022},
  eprint = {2202.10166},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.10166}
}

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/2202.10166.svg)](https://codeofpaper.com/paper/2202.10166)

Discussion