TL;DR
Evaluating time-series causal discovery (TSCD) algorithms is a catch-22: real data lacks ground-truth causal graphs, while synthetic data with known graphs is often too simplistic to reflect reality. This paper introduces CausalTime, a novel pipeline that generates highly realistic time-series data paired with exact ground-truth causal graphs. By benchmarking 13 existing algorithms on this new data, the authors reveal that current methods struggle significantly in realistic scenarios, highlighting a critical need for better algorithms.
What Problem Does This Paper Address?
Inferring causal relationships from time-series data—known as Time-Series Causal Discovery (TSCD)—is crucial for fields ranging from healthcare to finance. However, evaluating these algorithms presents a major challenge.
If you test an algorithm on real-world data (like stock prices or patient vitals), you don't actually know the true underlying causal graph, making quantitative evaluation impossible. If you use synthetic data (like simulated physics or simple autoregressive equations), you have the ground truth, but the data is too clean and simplistic. It doesn't reflect the complex, noisy dynamics of the real world. Consequently, algorithms that score perfectly on current synthetic benchmarks often fail in practice. This paper addresses this gap by creating a method to generate data that is both highly realistic and comes with a known, mathematically exact ground-truth causal graph.
Methods
The authors propose the CausalTime pipeline, which transforms real-world observations into a matching benchmark dataset through three main steps:
- Time-Series Fitting: They use a Causally Disentangled Neural Network (CDNN)—specifically, an LSTM architecture—to learn the complex dynamics of a real multivariate time-series. To capture realistic noise distributions, they utilize Normalizing Flows. At this stage, the model is fully connected, meaning every variable is used to predict every other variable.
- Hypothetical Causal Graph (HCG) Extraction: They extract a sparse, "hypothetical" causal graph from the fitted model. This is done either by using domain prior knowledge (e.g., geographic distances between traffic sensors) or by analyzing the neural network's feature importance using DeepSHAP.
- Model Splitting and Generation: This is the core innovation. To avoid losing the fidelity of the fully connected model while enforcing a sparse causal graph, they split the prediction model into three parts: a causal term (based on the HCG), a residual term (everything else), and a noise term. By treating the residual terms as entirely new, independent time-series variables, they expand an $N$-variable system into a $2N$-variable system. This creates an "Actual Causal Graph" (ACG) that perfectly matches the data generation process, allowing them to autoregressively generate highly realistic synthetic data with an exact ground truth.
Datasets
The authors used the CausalTime pipeline to generate three new benchmark datasets based on real-world scenarios, which are hosted on a dedicated platform (causaltime.cc):
- Air Quality Index (AQI): Based on PM2.5 pollution data from 36 monitoring stations in Chinese cities. The prior graph is based on geographic distance.
- Traffic: Based on traffic flow sensors in the San Francisco Bay Area (20 nodes). The prior graph is also based on geographic distance.
- Medical: Based on the MIMIC-IV database, featuring 20 vital signs and chart events from ICU patients. Because medical dynamics are highly complex, the prior graph was extracted using DeepSHAP rather than spatial priors.
Key Insights and Ideas
- The "Splitting" Trick is a Game-Changer: The most novel insight is how to enforce a ground-truth graph without degrading data realism.
By taking the non-causal "residual" effects from a dense neural network and packaging them as separate, independent variables, the authors maintain the complex dynamics of the original data while establishing a strict, known causal structure.
- Synthetic Benchmarks are Too Easy: The benchmarking results serve as a reality check for the TSCD community. Algorithms that achieve near-perfect scores on traditional synthetic datasets (like VAR or Lorenz-96) perform significantly worse on CausalTime datasets.
- Constraint-based vs. Deep Learning Methods: Constraint-based methods (like PCMCI), which rely on conditional independence tests, struggle heavily on this realistic, nonlinear data. Deep learning-based approaches and Convergent Cross Mapping (CCM) fared better, though still leaving massive room for improvement.
Key Results
- High Data Fidelity: The generated data is virtually indistinguishable from real data. A neural network trained to discriminate between the real and generated time-series achieved a discriminative score (measured as $|AUROC - 0.5|$) of just 0.054 on AQI, 0.039 on Traffic, and 0.017 on Medical data. Because a score of 0 indicates perfect confusion (random guessing by the discriminator), this proves the generated data is highly realistic.
- Algorithm Benchmarking: The authors tested 13 state-of-the-art TSCD algorithms.
- Performance was surprisingly low across the board. Most algorithms failed to achieve an AUROC > 0.9.
- Some algorithms even produced inverted classifications (AUROC < 0.5).
- CUTS+ and LCCM were the top performers. For example, on the AQI dataset, CUTS+ achieved an AUROC of 0.8928, and LCCM achieved 0.8565, while traditional methods like Granger Causality (GC) scored around 0.4538.
Limitations and Future Work
- Limitations: The pipeline relies on standard causal discovery assumptions, including causal sufficiency (no unobserved confounders), stationarity, and no instantaneous effects between the primary variables. Furthermore, the generation process uses a Nonlinear Autoregressive (NAR) model, which is a slightly restricted class of the broader Structural Causal Model (SCM).
- Future Work: The authors plan to extend CausalTime to support a richer set of causal models by replacing NAR with full SCMs. They also aim to incorporate multi-scale causal effects (which are common in real-world data) and investigate augmented TSCD algorithms that can actually achieve reliable results on these harder, more realistic benchmarks.
Summary updated