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 like images is challenging. We introduce Diff-SCM, a framework that leverages diffusion models for structural causal modeling.
Introduction
In the field of AI, distinguishing between correlation and causality remains a fundamental challenge. While standard deep learning models excel at identifying patterns where "A" and "B" occur together, they often struggle with the formal logic of causality—specifically, answering "what if" questions. This paper addresses counterfactual estimation for high-dimensional data like images.
A counterfactual asks: Given an observation, what would have happened if we had changed one specific factor? For images, this is difficult because one must modify a high-level attribute (such as an object's class) while keeping every other detail—texture, lighting, and background—exactly the same. Traditional causal models struggle with pixel-level complexity, while standard generative models often fail to preserve the unique identity of the original image during modification.
Methodology: The Diff-SCM Framework
The authors propose Diff-SCM, which utilizes the mathematics of Stochastic Differential Equations (SDEs) used in diffusion models to satisfy Pearl’s "Causal Hierarchy." The process follows three classic causal steps:
- Abduction: To maintain the "identity" of the original image, the model uses a deterministic version of diffusion (DDIM) to reverse-engineer the specific Gaussian noise (exogenous variables) that would produce that exact image.
- Action: An intervention is performed by selecting a new target class (e.g., changing a "3" to an "8").
- Prediction: The diffusion process is run in reverse to generate the new image. This process is guided by the gradients of an anti-causal predictor (a classifier), ensuring the final image matches the target class while the abducted noise ensures the style and structure remain consistent with the original.
A key insight of the paper is viewing diffusion as causal weakening: forward diffusion (adding noise) gradually dissolves the causal relationships between variables until they are independent noise. Reverse diffusion then acts as the process of "strengthening" those causal bonds to create structure.
Evaluation and Results
The model was evaluated on MNIST and high-resolution (256x256) ImageNet data. To quantify performance, the authors introduced Counterfactual Latent Divergence (CLD), a metric using a VAE's latent space to measure if a counterfactual is "minimal"—meaning it changed just enough to reach the new class without becoming an unrelated image.
Key Results
- Superior Realism: On MNIST, Diff-SCM outperformed existing baselines across multiple metrics, including IM1 and IM2, which measure closeness to the data manifold.
- Better Minimality: The CLD metric confirmed that Diff-SCM produces counterfactuals more faithful to the original image's non-intervened attributes compared to adversarial-based methods.
- Scaling to ImageNet: Unlike many previous deep causal models, Diff-SCM successfully generated convincing counterfactuals on complex 256x256 natural photos.
Limitations and Future Work
Currently, the experiments focus on a simple two-variable setup (Image $\leftarrow$ Class). Scaling this to complex Directed Acyclic Graphs (DAGs) with many interacting variables remains a challenge. Additionally, in complex scenarios, classifiers might be biased by confounders (e.g., relying on background features that should not change during intervention). Finally, the computational cost of diffusion sampling remains higher than GAN-based alternatives, which may limit real-time applications.
Summary updated