NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Causal Modeling with Stationary Diffusions

Lars Lorch, Andreas Krause, Bernhard Schölkopf

Abstract

We develop a novel approach towards causal inference. Rather than structural equations over a causal graph, we learn stochastic differential equations (SDEs) whose stationary densities model a system’s behavior under interventions. These stationary diffusion models do not require the formalism of causal graphs, let alone the common assumption of acyclicity. We show that in several cases, they generalize to unseen interventions on their variables, often better than classical approaches. Our inference method is based on a new theoretical result that expresses a stationarity condition on the diffusion’s generator in a reproducing kernel Hilbert space. The resulting kernel deviation from stationarity (KDS) is an objective function of independent interest.

Introduction: The Challenge of Cycles

Most classical causal models rely on Structural Causal Models (SCMs) and Directed Acyclic Graphs (DAGs). While powerful, these models have a major "Achilles' heel": they struggle with cycles. In fields like biology (gene regulatory networks) or engineering (control systems), feedback loops are ubiquitous.

Existing ways to handle cycles in SCMs are often mathematically restrictive or require discrete optimization to find the graph structure. Furthermore, while causality is inherently a process that unfolds over time, we often only have access to "steady-state" data—cross-sectional snapshots of a system after it has stabilized. The challenge is to learn a mechanistic model that respects the temporal nature of causality and handles cycles, even when we can't observe the system's trajectory over time.

The Stationary Diffusion Framework

This paper introduces a paradigm shift in causal inference by replacing traditional static structural equations with Stationary Diffusions. By modeling causal relationships as stochastic differential equations (SDEs) that reach a steady state, the framework naturally handles feedback loops and learns from "snapshot" interventional data without requiring time-series observations.

The system is modeled using SDEs of the form: $$d\mathbf{x}_t = f(\mathbf{x}_t)dt + \sigma(\mathbf{x}_t)dW_t$$ where the causal dependencies are embedded in the drift function $f$ and the diffusion $\sigma$. The key insight is that the observed data represents the stationary density (the equilibrium) of this SDE. Even with snapshot data, modeling the system as if it evolves over time allows for well-defined feedback loops, as the SDE effectively "unrolls" the causal dependencies.

Stationary distributions emerging from SDE trajectories.

Learning via Kernel Deviation from Stationarity (KDS)

To train these models efficiently, the authors introduce a novel objective function called the Kernel Deviation from Stationarity (KDS). Instead of simulating the SDE or backpropagating through time, KDS leverages Reproducing Kernel Hilbert Space (RKHS) theory to derive a closed-form expression.

KDS identifies a "witness function" that would change the most under the SDE's dynamics. If the system is truly at stationarity, the expectation of this change should be zero. By minimizing KDS across multiple interventional datasets, the model jointly learns the shared causal mechanisms and the specific parameters of the interventions. This turns a complex dynamical fitting problem into a fully differentiable kernel-based optimization.

Visualization of the KDS objective and its gradients with respect to model parameters.

Experimental Evaluation

The authors evaluated their approach on several synthetic and semi-synthetic benchmarks, including randomly generated cyclic linear systems and SERGIO, a sophisticated simulator for single-cell gene expression data that uses non-linear chemical Langevin equations.

Key Results

  • Superior Accuracy: In cyclic settings, the proposed method consistently outperformed state-of-the-art SCM methods (such as GIES, DCDI, and NODAGS) in predicting the effects of unseen interventions.
  • Robustness: Even in acyclic settings where SCMs should have an advantage, the diffusion models remained highly competitive.
  • Graph-Free Inference: Unlike DAG-based methods, this approach doesn't require explicit constraints to avoid cycles or a discrete search over graph spaces. Sparsity is encouraged via standard penalties on the function parameters.

Discussion and Future Work

While stationary diffusions offer a robust alternative for cyclic causal modeling, some challenges remain. The parameters of the SDE are only identifiable up to a constant factor (the "speed scaling" issue), and ensuring the stability of complex non-linear models is an ongoing area of research. Future work will focus on extending this framework to handle unobserved confounders and studying how these models generalize across broader classes of interventions.

Summary updated

BibTeX
@inproceedings{lorch2024causal,
  author = {Lars Lorch and Andreas Krause and Bernhard Schölkopf},
  title = {{Causal Modeling with Stationary Diffusions}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=9smzJLOhFI},
}
Figure