Partially Functional Dynamic Backdoor Diffusion-based Causal Model

Xinwen Liu, Lei Qian, Song Xi Chen, Niansheng Tang · OpenReview

Abstract: Causal inference in settings involving complex spatio-temporal dependencies, such as environmental epidemiology, is challenging due to the presence of unmeasured confounding. However, a significant gap persists in existing methods: current diffusion-based causal models rely on restrictive assumptions of causal sufficiency or static confounding. To address this limitation, we introduce the Partially Functional Dynamic Backdoor Diffusion-based Causal Model (PFD-BDCM), a generative framework designed to bridge this gap. Our approach uniquely incorporates valid backdoor adjustments into the diffusion sampling mechanism to mitigate bias from unmeasured confounders. Specifically, it captures their intricate dynamics through region-specific structural equations and conditional autoregressive processes, and accommodates multi-resolution variables via functional data techniques. Furthermore, we provide theoretical guarantees by establishing error bounds for counterfactual estimates. Extensive experiments on synthetic data and a real-world air pollution case study confirm that PFD-BDCM outperforms current state-of-the-art methods.

Introduction

Causal inference is fundamental to answering "what if" (interventional) and "why" (counterfactual) questions in science and policy. However, real-world data—particularly in domains like environmental health—often exhibit complex spatio-temporal dependencies and unmeasured confounding. For instance, air pollution levels in one city are influenced by neighboring regions over time, as well as hidden factors that affect both emissions and health outcomes.

Existing deep generative causal models, such as the Diffusion-based Causal Model (DCM), often assume "causal sufficiency," meaning all relevant variables are observed. Even extensions like the Backdoor DCM (BDCM) typically assume a static environment, failing to capture the dynamic nature of evolving spatio-temporal systems. The Partially Functional Dynamic Backdoor Diffusion-based Causal Model (PFD-BDCM) addresses these gaps by integrating backdoor adjustments directly into a diffusion-based generative framework designed for dynamic, multi-resolution data.

The PFD-BDCM Framework

The PFD-BDCM architecture is built upon several key innovations to handle the complexities of real-world causal systems:

  1. Partially Functional Spatio-Temporal Modeling: To manage high-dimensional or continuous time-series data (functional data), the model employs basis expansion. This technique reduces dimensionality while preserving critical temporal patterns, allowing the model to handle variables observed at different resolutions (e.g., hourly vs. daily).
  2. Backdoor Diffusion Sampling: The core innovation involves embedding valid backdoor adjustment sets into the diffusion process. Unlike standard diffusion models where denoising is unconditional or simply class-conditioned, PFD-BDCM conditions the denoising step on backdoor variables to mitigate bias from unobserved confounders.
  3. Deterministic Mapping for Counterfactuals: For counterfactual reasoning, the model utilizes Denoising Diffusion Implicit Models (DDIMs). DDIMs provide a deterministic mapping between data and latent noise, which is essential for the "abduction" step in causal inference—identifying the specific exogenous noise that produced an observation.
  4. Spatio-Temporal Dynamics: The framework uses region-specific structural equations and conditional autoregressive (CAR) processes to explicitly model geographic and temporal correlations.
Spatio-temporal causal graph structure illustrating functional, scalar, and unobserved nodes.

Theoretical and Practical Insights

A significant theoretical contribution of this work is the establishment of a link between reconstruction and causality. The authors prove that the reconstruction error of the diffusion model mathematically bounds the error of counterfactual estimates. This guarantee ensures that if the model can accurately reconstruct observed data from latent noise, its counterfactual predictions are robust.

By leveraging the backdoor criterion, PFD-BDCM does not require direct observation of every confounder. Instead, it uses measured backdoor variables as proxies to mitigate the bias that hidden variables would otherwise introduce into the causal estimates.

Experimental Evaluation

The model was rigorously evaluated using both synthetic and real-world datasets. The synthetic tests involved a complex 33-node causal graph designed to simulate spatio-temporal dynamics and deliberate violations of causal sufficiency.

Performance comparison of PFD-BDCM against baseline models across observational, interventional, and counterfactual queries.

As shown in the results table, PFD-BDCM consistently outperformed state-of-the-art baselines like DCM and BDCM. Across various sample sizes ($n=30, 80, 200$), PFD-BDCM achieved the lowest Maximum Mean Discrepancy (MMD) for observational and interventional queries, and the lowest Mean Squared Error (MSE) for counterfactual queries. For example, at $n=200$, its observational MMD was 0.533, compared to 3.474 for the standard DCM.

In a real-world case study of air pollution across 30 provincial-level divisions in China (2015–2020), PFD-BDCM successfully identified causal relationships between provincial emissions and pollutant indicators, demonstrating its utility in complex, high-stakes environmental modeling.

Conclusion

PFD-BDCM represents a significant advancement in diffusion-based causal modeling, providing a robust framework for inference in the presence of hidden confounders and spatio-temporal dependencies. While future work may explore more advanced tensor decomposition for ultra-high-dimensional data or automated causal discovery, PFD-BDCM currently sets a new benchmark for accuracy and stability in generative causal inference.

Summary updated

BibTeX
@misc{liu2025partially,
  author = {Xinwen Liu and Lei Qian and Song Xi Chen and Niansheng Tang},
  title = {{Partially Functional Dynamic Backdoor Diffusion-based Causal Model}},
  year = {2025},
  eprint = {2509.00472},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.00472},
}
Figure