Causal Discovery from Conditionally Stationary Time Series

Carles Balsells Rodas, Xavier Sumba, Tanmayee Narendra, Ruibo Tu, Gabriele Beate Schweikert, Hedvig Kjellström, Yingzhen Li

TL;DR

This paper introduces State-Dependent Causal Inference (SDCI), a novel framework for discovering causal relationships in time series data that exhibit non-stationary behavior due to underlying, potentially hidden, state changes. SDCI offers a more robust approach than traditional methods by explicitly modeling these state-dependent dynamics, leading to improved causal structure recovery and forecasting performance across various domains.

What Problem Does This Paper Address?

Inferring causal relationships from observational data is a cornerstone of scientific understanding and AI interpretability. However, this task becomes significantly harder when dealing with time series data that isn't stationary – meaning its statistical properties change over time. Traditional causal discovery methods often assume stationarity or very specific forms of non-stationarity, limiting their applicability to real-world scenarios where systems naturally evolve through different "states" (e.g., a stock market during different economic conditions, or a biological system undergoing differentiation). This paper tackles the challenge of causal discovery in conditionally stationary time series, where the underlying causal structure itself changes based on a set of discrete state variables, which may or may not be directly observed.

Methods

The core innovation is the State-Dependent Causal Inference (SDCI) framework. Key components include:

  • Conditional Summary Graph (CSG): A novel representation that compactly summarizes the causal structure across different states, addressing the exponential complexity of modeling every state independently.
  • State-Dependent Causal Inference (SDCI) Algorithm: This probabilistic approach leverages Graph Neural Networks (GNNs) and interactive systems to model the joint dynamics of states, edge types (representing causal influences), and observations.
  • Amortized Inference: SDCI uses a variational autoencoder (VAE)-based approach to efficiently learn the causal structure and state dependencies, allowing it to handle multiple samples with potentially different underlying structures.
  • Handling Hidden States: The framework is designed to work even when the state variables are not directly observed, inferring them alongside the causal structure.

Datasets

The authors evaluate SDCI on several datasets:

  • Semi-synthetic Data:
    • Nonlinear particle interaction data.
  • Gene Regulatory Networks (GRNs) simulated using DynGen, modeling cellular differentiation.
  • Springs and magnets system, modified to include state-dependent interactions.
  • Real-world Data:
    • NBA player movement trajectories.

Key Insights and Ideas

  • Causality is State-Dependent: The paper strongly argues that for many real-world systems, causal relationships are not static but dynamically change based on the system's underlying state. SDCI provides a principled way to uncover these state-dependent causal links.
  • Conditional Summary Graph is Key: The CSG is a crucial conceptual and practical contribution. It allows for a compact and interpretable representation of complex, state-varying causal structures, overcoming the combinatorial explosion of modeling each state's graph separately.
  • Hidden States are Discoverable: A significant achievement is SDCI's ability to infer causal structures even when the state variables driving these changes are unobserved, demonstrating the power of their probabilistic modeling approach.
  • Beyond Stationarity: SDCI moves beyond the limitations of stationary time series models, opening up causal discovery to a much broader range of dynamic systems.

Key Results

  • Superior Performance: SDCI demonstrated superior performance in identifying underlying causal structures compared to baseline methods on synthetic and real-world datasets, including GRNs and NBA player movements.
  • Accurate Forecasting: For NBA player trajectories, SDCI achieved improved forecasting accuracy over non-causal RNNs, highlighting the benefit of incorporating causal insights.
  • Identifiability Guarantees: The paper provides theoretical guarantees for the identifiability of the learned causal structures under certain assumptions, strengthening the validity of the approach.
  • Effective State Recovery: SDCI successfully recovers state dynamics in various scenarios, including "determined" and "recurrent" states, showcasing its flexibility.

Limitations and Future Work

  • Consistency: While identifiability is established, the authors note that the consistency of SDCI (i.e., converging to the true structure with infinite data) remains an open challenge, especially for variational objectives.
  • Number of States (K): While the theoretical framework doesn't require knowing K beforehand, accurately determining the optimal number of states in practice can still be challenging. The paper suggests heuristics like the elbow method for model selection.
  • Computational Cost: For "recurrent" state cases, exact inference can still be computationally expensive, though the proposed methods aim to mitigate this.
  • Future Work: The authors suggest exploring more complex state dependencies, extending the framework to continuous states, and further investigating the consistency guarantees. They also highlight the potential for applying SDCI to a wider range of scientific domains.

Summary updated

Abstract

Causal discovery, i.e., inferring underlying cause-effect relationships from observations of a scene or system, is an inherent mechanism in human cognition, but has been shown to be highly challenging to automate. The majority of approaches in the literature aiming for this task consider constrained scenarios with fully observed variables or data from stationary time-series. In this work we aim for causal discovery in a more general class of scenarios, scenes with non-stationary behavior over time. For our purposes we here regard a scene as a composition objects interacting with each other over time. Non-stationarity is modeled as stationarity conditioned on an underlying variable, a state, which can be of varying dimension, more or less hidden given observations of the scene, and also depend more or less directly on these observations. We propose a probabilistic deep learning approach called State-Dependent Causal Inference (SDCI) for causal discovery in such conditionally stationary time-series data. Results in two different synthetic scenarios show that this method is able to recover the underlying causal dependencies with high accuracy even in cases with hidden states.
BibTeX
@inproceedings{rodas2025causal,
  author = {Carles Balsells Rodas and Xavier Sumba and Tanmayee Narendra and Ruibo Tu and Gabriele Beate Schweikert and Hedvig Kjellström and Yingzhen Li},
  title = {{Causal Discovery from Conditionally Stationary Time Series}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=j88QAtutwW},
}
Figure