Dynamic Causal Explanation Based Diffusion-Variational Graph Neural Network for Spatio-temporal Forecasting

Guojun Liang, Prayag Tiwari, Slawomir Nowaczyk, Stefan Byttner, Fernando Alonso-Fernandez · DOI

Abstract

Spatio-temporal forecasting is essential for understanding complex systems like traffic networks and brain activity. Traditional models often rely on static graph assumptions and struggle with data uncertainty and lack of interpretability. This paper introduces the Dynamic Diffusion-Variational Graph Neural Network (DVGNN), a framework that models evolving node relationships as a stochastic diffusion process. By integrating Variational Graph Auto-encoders with physics-inspired Stochastic Differential Equations (SDEs), DVGNN captures dynamic causal links and handles inherent noise. Evaluated on transportation and neuroscience datasets, DVGNN demonstrates superior forecasting accuracy and robustness compared to state-of-the-art baselines.

Introduction

Spatio-temporal forecasting—predicting how a system changes across both space and time—is critical for urban planning, neuroscience, and logistics. However, existing models face three major hurdles:

  1. Static Assumptions: Many models assume the underlying graph (the map of how nodes influence each other) is fixed. In reality, a road's influence on its neighbors changes based on the time of day or external events like accidents.
  2. Ignoring Uncertainty: Real-world data is inherently noisy due to sensor failures or unpredictable human behavior. Most deterministic models fail to account for this underlying stochasticity.
  3. The "Black Box" Problem: High-performing models often fail to distinguish between simple correlation and true causality, making their predictions difficult to interpret for decision-makers.
Dynamic road relationships over time illustrating the need for evolving graph structures.

Methodology

The DVGNN framework moves away from deterministic modeling toward a generative, unsupervised approach. Its architecture consists of three main stages:

1. The Encoder

The encoder uses two-layer Graph Convolutional Networks (GCNs) to project historical data into a latent space. Unlike standard GCNs, this encoder calculates a probability distribution (mean and variance) for node embeddings, utilizing a variational approach to explicitly handle data uncertainty.

2. The Diffusion Decoder

This is the core innovation of the model. Instead of using a simple mathematical product to estimate edge weights, the authors model node interactions as a Diffusion Process governed by Stochastic Differential Equations (SDEs). This physics-inspired approach allows the model to infer dynamic causal links ($A_{causal}$) and transition probabilities ($A_{trans}$) by treating the change in latent states as a noise-driven movement over time.

3. Prediction Module

The generated dynamic graphs are fed into a combination of dynamic GCNs and Temporal Attention mechanisms. This setup captures long-range time dependencies to produce final multi-step forecasts. The entire system is trained by optimizing the Evidence Lower Bound (ELBO), balancing reconstruction accuracy with latent space simplicity.

The DVGNN architecture featuring the Variational Encoder, SDE-based Diffusion Decoder, and Multi-step Prediction module.

Experiments and Results

The model was evaluated across two distinct domains to demonstrate its versatility:

  • Transportation: Tested on standard highway datasets (PeMS08, Los-loop) and 2D grid taxi trajectories (T-drive). DVGNN outperformed state-of-the-art baselines like DCRNN and ASTGCN. For instance, on the Los-loop dataset, a variant using structural regularization (DVGNN-mask) achieved an RMSE of 5.49, significantly lower than the 6.14 achieved by the next best model.
  • Healthcare/Neuroscience: Using simulated brain network (FMRI) datasets, DVGNN achieved the highest F1-scores for causal discovery. This proved the model's ability to identify meaningful relationships even in "graph-less" scenarios where no physical map is provided.

Key Insights

  • Physics-Informed AI: By incorporating the mathematical nature of noise through SDEs, the model is significantly more robust to outliers and sensor errors.
  • Causality Discovery: The diffusion process models how a state at time $t$ leads to a state at $t+1$, allowing the resulting graphs to represent directed causal relationships rather than just correlations.

Conclusion and Future Work

DVGNN represents a significant step forward in robust, interpretable spatio-temporal forecasting. While the model shows superior accuracy and noise robustness, its mathematical complexity and reliance on Gaussian prior distributions present opportunities for future refinement. Future research will explore more flexible generative models to maintain precision over longer-term prediction horizons.

Summary updated

BibTeX
@article{liang2025dynamic,
  author = {Guojun Liang and Prayag Tiwari and Slawomir Nowaczyk and Stefan Byttner and Fernando Alonso-Fernandez},
  title = {{Dynamic Causal Explanation Based Diffusion-Variational Graph Neural Network for Spatio-temporal Forecasting}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2024.3415149},
}
Figure