Skip to main content
QUICK REVIEW

[Paper Review] Diffusion Causal Models for Counterfactual Estimation

Pedro L. Sánchez, Sotirios A. Tsaftaris|Edinburgh Research Explorer (University of Edinburgh)|Feb 21, 2022
Domain Adaptation and Few-Shot LearningComputer Science13 citations
TL;DR

This paper proposes Diff-SCM, a diffusion-based structural causal model that enables counterfactual estimation in high-dimensional imaging data by leveraging gradients from anti-causal predictors during reverse diffusion. It achieves more realistic and minimal counterfactuals than baselines on MNIST and ImageNet, validated via a novel metric, counterfactual latent divergence (CLD).

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. 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.

Motivation & Objective

  • To address the challenge of counterfactual estimation in high-dimensional imaging data using deep neural networks.
  • To develop a causal inference framework that integrates generative diffusion models with structural causal models (SCMs) for intervention estimation.
  • To enable minimal and realistic counterfactual generation by leveraging gradients from anti-causal predictors during reverse diffusion.
  • To propose a new evaluation metric, counterfactual latent divergence (CLD), for assessing minimality and quality of generated counterfactuals.
  • To demonstrate the method’s effectiveness on MNIST and ImageNet through quantitative and qualitative evaluation.

Proposed method

  • Uses a deterministic forward diffusion process to infer latent variables from observed data, enabling manipulation of the latent space.
  • Applies interventions in the reverse diffusion process by utilizing gradients of an anti-causal predictor with respect to the input image.
  • Employs denoising diffusion models (DDPMs) to learn the reverse process, where the neural network approximates the gradient of the log-likelihood of the data distribution.
  • Integrates anti-causal predictors trained to predict outcomes (e.g., class labels) from images, whose gradients guide intervention on the causal variable.
  • Employs Markov Chain Monte Carlo (MCMC) sampling to iteratively generate counterfactuals by traversing the diffusion process with intervened gradients.
  • Proposes a novel evaluation metric, CLD (Counterfactual Latent Divergence), which measures the latent space distance between factual and counterfactual samples relative to natural data variations.

Experimental results

Research questions

  • RQ1Can diffusion models be effectively combined with structural causal models to generate realistic counterfactuals in high-dimensional image data?
  • RQ2How can anti-causal predictors be used to guide interventions during the reverse diffusion process for accurate counterfactual generation?
  • RQ3Can a new metric, CLD, effectively evaluate the minimality and quality of counterfactuals compared to existing baselines?
  • RQ4What hyperparameter settings (e.g., scale parameter s) optimize counterfactual quality, and how can CLD be used for hyperparameter tuning?
  • RQ5Does the proposed Diff-SCM framework outperform state-of-the-art methods in both quantitative metrics and qualitative realism on MNIST and ImageNet?

Key findings

  • Diff-SCM generates more realistic and minimal counterfactuals than baseline methods on MNIST, as validated by the proposed CLD metric.
  • The optimal scale hyperparameter s for intervention strength was found to be 0.7, balancing minimality and class shift, as determined via CLD-based hyperparameter search.
  • The CLD metric successfully identified the best-performing model configuration, outperforming baselines across multiple evaluation criteria.
  • The method generalizes to ImageNet 256x256 data, generating plausible counterfactuals that reflect meaningful class transitions.
  • The use of anti-causal predictor gradients enables effective intervention without requiring explicit graph mutilation, even in the presence of confounders.
  • The framework achieves state-of-the-art performance in counterfactual generation, with qualitative results showing coherent and semantically meaningful image transformations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.