DyCAST: Learning Dynamic Causal Structure from Time Series

Yue Cheng, Bochen Lyu, Weiwei Xing, Zhanxing Zhu

Introduction

Understanding the dynamics of causal structures is crucial for uncovering the underlying processes in time series data. Most existing approaches to causal discovery rely on a "static assumption," where contemporaneous and time-lagged dependencies are assumed to have invariant topological structures. However, these models fail to capture the evolving causal relationships between variables when the underlying system is non-stationary.

To address this limitation, researchers have proposed DyCAST (Dynamic Causal Structure Learning), a novel framework that uses Neural Ordinary Differential Equations (Neural ODEs) to model how causal relationships evolve over time. By treating the space of Directed Acyclic Graphs (DAGs) as a constrained manifold, DyCAST can learn dynamic, time-varying causal structures in high-dimensional time series data more accurately and efficiently than previous state-of-the-art methods.

Breaking the Static Assumption

In time series analysis, causal discovery involves identifying how variables influence one another. These influences are typically split into two categories: inter-slice (how variables at time $t-1$ affect those at time $t$) and intra-slice (contemporaneous relationships at the exact same time $t$).

Comparison of static and dynamic causal structures in time series.

The major limitation of current models, such as DYNOTEARS, is their reliance on static assumptions. They assume the underlying causal "map" never changes. In reality, systems are dynamic: a traffic accident might suddenly create new causal dependencies between road segments, or biological pathways might shift during different stages of a disease. Existing models struggle to capture these emerging or disappearing edges while ensuring the resulting graph remains a valid DAG (i.e., containing no circular reasoning or loops).

The DyCAST Methodology

DyCAST models the evolution of the intra-slice adjacency matrix $W_t$ as a continuous trajectory rather than a fixed snapshot.

The DyCAST architecture utilizing a Latent ODE to model dynamic causal structures over time.

The framework introduces several key innovations:

  1. Neural ODEs on a DAG Manifold: Instead of learning a single static matrix, DyCAST uses a Neural ODE to define the derivative of the causal structure. To ensure the graph remains acyclic at every point in time, the problem is reformulated as an ODE on a DAG manifold.
  2. Manifold Stabilization: To keep the model from drifting into invalid graph structures (graphs with loops), the authors incorporate a stabilization matrix based on the Moore-Penrose pseudoinverse of the DAG constraint function. This nudges the solution trajectory back toward the space of valid DAGs without requiring computationally expensive hard constraints.
  3. Latent Space Dynamics: For high-dimensional data, solving an ODE for every possible edge ($d^2$) is too slow. DyCAST uses an Encoder-Processor-Decoder architecture. It compresses the causal structure into a lower-dimensional latent state, evolves that state using a Latent Neural ODE, and then decodes it back into a full causal matrix.
  4. Hybrid Extensions: While DyCAST focuses on intra-slice dynamics, it can be combined with other models (like CUTS+) to handle complex, nonlinear inter-slice (time-lagged) dependencies.

Experimental Validation and Key Results

The authors evaluated DyCAST against several baselines (DYNOTEARS, NTS-NOTEARS, TECDI) across a variety of settings, including synthetic datasets with smoothly transitioning causal structures, simulated fMRI data (NetSim), real-world benchmarks (CausalTime), and human motion datasets (Human3.6M).

Key Findings: * Superior Accuracy: On synthetic dynamic datasets, DyCAST consistently achieved F1 scores near 1.0, while baselines dropped toward zero as the system evolved. * High-Dimensional Robustness: In large-scale tests ($d=300$ variables), DyCAST maintained an F1 score of 0.56, whereas all other baselines failed to converge or produced unusable results. * Efficiency: Operating in a latent space allowed DyCAST to reduce running time by more than 20% compared to the next-best performing models across various dimensions. * Real-World Utility: In the Human3.6M case study, DyCAST successfully identified that causal links between the "elbow" and "head" joints appear specifically during the "smoking" action and disappear afterward—a nuance entirely missed by static models.

Limitations and Future Directions

While DyCAST represents a significant step forward, it has a few limitations. The core model focuses primarily on the dynamics of contemporaneous (intra-slice) edges. Although it can be extended to handle time-lagged edges, a unified latent ODE framework for both types of edges remains a promising future direction.

Additionally, the model assumes causal structures change smoothly over time. It may struggle with discrete or instantaneous structural breaks (e.g., a sudden system shock) unless the ODE is adapted to handle jumps. Finally, exploring different neural architectures for the latent dynamics could further improve performance on specific domains like climate modeling or high-frequency finance.

Summary updated

BibTeX
@inproceedings{cheng2025dycast,
  author = {Yue Cheng and Bochen Lyu and Weiwei Xing and Zhanxing Zhu},
  title = {{DyCAST: Learning Dynamic Causal Structure from Time Series}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=WjDjem8mWE},
}
Figure