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

Efficient Constraint-based Window Causal Graph Discovery in Time Series with Multiple Time Lags

Yewei Xia, Yixin Ren, Hong Cheng, Hao Zhang, Jihong Guan, Minchuan Xu, Shuigeng Zhou

Introduction

Causal discovery in time series aims to uncover the underlying mechanisms governing dynamic systems. While temporal precedence provides a natural constraint—causes must precede effects—real-world scenarios often involve complex dependencies where one variable influences another across multiple distinct time delays, known as lags. For instance, in biological or economic systems, a single cause might trigger both immediate and delayed responses.

Most existing constraint-based methods struggle with this complexity. They either assume a single lag or face a combinatorial explosion in computational cost as the number of variables ($d$) and maximum lag ($\tau$) increase. Specifically, methods like PCMCI rely on numerous Conditional Independence (CI) tests, leading to a complexity of $O(d^3)$, which limits their applicability to high-dimensional data.

The CDiT Algorithm

To address these challenges, researchers have introduced CDiT (Causal Discovery in Time series), a novel constraint-based algorithm designed for efficiency and accuracy in multi-lag environments. The core innovation of CDiT is its two-phase approach that leverages the concept of "minimum trek lags" to prune the search space.

Illustration of a window causal graph with multiple time lags between variables $X^p, X^q$, and $X^r$.

Phase 1: Minimum Trek Lag Detection

Instead of an exhaustive search, CDiT first identifies the shortest temporal distance—the minimum trek lag—at which two variables exhibit a dependency. A "trek" is defined as a collider-free path in the causal graph. By pinpointing these minimal distances early, the algorithm can effectively "prune" unnecessary edges and avoid thousands of redundant statistical tests.

Phase 2: Targeted Causal Discovery

In the second phase, the algorithm uses the identified minimum lags to perform targeted CI tests. This allows it to distinguish between direct causal links, self-connections (autocorrelation), and indirect dependencies. This strategy reduces the number of required CI tests to $O(d^2)$, reaching the theoretical lower bound for constraint-based discovery.

Experimental Evaluation

The performance of CDiT was rigorously tested against state-of-the-art baselines using both synthetic and real-world datasets.

Synthetic Benchmarks

The algorithm was evaluated on three classic causal structures adapted for time series: Cancer (4 nodes), Sachs (11 nodes), and Child (20 nodes). These simulations included multiple time lags and varying signal-to-noise ratios (SNR).

Performance comparison (F1 score and SHD) of CDiT against baselines on Cancer, Sachs, and Child synthetic datasets.

As shown in the results, CDiT consistently outperformed baselines like DYNOTEARS and VarLiNGAM. It achieved higher F1 scores, indicating a superior balance of precision and recall, and lower Structural Hamming Distance (SHD), reflecting more accurate graph reconstructions.

Real-World Performance

  • NETSIM (fMRI data): CDiT demonstrated remarkable speed, completing the discovery process in just 0.9 seconds, compared to 159 seconds for PCMCI—a 175x speedup.
  • DREAM3 (Gene expression): In scenarios with extremely limited samples ($T=80$), CDiT maintained a precision of 0.50, whereas many competing methods failed to produce meaningful results.

Discussion and Future Work

CDiT represents a significant leap in scaling causal discovery to larger systems. Its $O(d^2)$ complexity makes it feasible for high-dimensional time series that were previously computationally prohibitive. Furthermore, its reliance on CI tests makes it robust to various data distributions and noise levels.

However, some limitations remain. The current implementation assumes "causal sufficiency" (no unobserved confounders) and the absence of contemporaneous links (effects occurring within the same time step). Future research will focus on extending CDiT to handle latent variables and instantaneous causal relationships, further broadening its applicability to real-world high-frequency data.

Summary updated

BibTeX
@inproceedings{xia2025efficient,
  author = {Yewei Xia and Yixin Ren and Hong Cheng and Hao Zhang and Jihong Guan and Minchuan Xu and Shuigeng Zhou},
  title = {{Efficient Constraint-based Window Causal Graph Discovery in Time Series with Multiple Time Lags}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/1011},
}
Figure