DYNOTEARS: Structure Learning from Time-Series Data

Roxana Pamfil, Nisara Sriwattanaworachai, Shaan Desai, Philip Pilgerstorfer, Konstantinos Georgatzis, Paul Beaumont, Bryon Aragam

Abstract

We revisit the structure learning problem for dynamic Bayesian networks and propose a method that simultaneously estimates contemporaneous (intra-slice) and time-lagged (inter-slice) relationships. By transforming the acyclicity constraint into a continuous optimization problem, DYNOTEARS provides a scalable and accurate approach for discovering causal structures in high-dimensional time-series data.

Introduction

Understanding how variables influence one another over time is a fundamental challenge in fields ranging from finance to genomics. These relationships are typically modeled using Dynamic Bayesian Networks (DBNs), which consist of two types of edges: intra-slice (contemporaneous) dependencies between variables at the same time step, and inter-slice (time-lagged) dependencies where a variable at time $t-1$ influences a variable at time $t$.

Structure of a Dynamic Bayesian Network (DBN) showing intra-slice (solid) and inter-slice (dashed) dependencies.

Traditional structure learning methods face significant hurdles. Constraint-based methods are sensitive to statistical errors, while score-based methods are computationally NP-hard due to the need to search through a vast space of possible graphs while ensuring the intra-slice graph remains a Directed Acyclic Graph (DAG). Most existing tools either ignore contemporaneous effects or estimate the two types of edges separately, leading to cascading errors.

The DYNOTEARS Methodology

DYNOTEARS builds upon the "NOTEARS" framework by transforming the combinatorial problem of graph acyclicity into a continuous optimization task. The core innovation is an algebraic characterization of acyclicity as a smooth equality constraint: $h(W) = \text{tr}(e^{W \circ W}) - d = 0$.

The method utilizes a Structural Vector Autoregressive (SVAR) model: $X = XW + YA + Z$, where $W$ represents intra-slice weights and $A$ represents inter-slice weights. The objective is to minimize a least-squares loss function combined with $\ell_1$ penalties to encourage sparsity. By solving this using the Augmented Lagrangian method, DYNOTEARS can handle high-dimensional data efficiently using standard gradient-based solvers like L-BFGS-B.

Performance and Real-World Application

The authors evaluated DYNOTEARS against synthetic benchmarks and real-world datasets, including S&P 100 stock returns and the DREAM4 gene regulatory network challenge. A key advantage of DYNOTEARS is its ability to estimate contemporaneous and lagged effects simultaneously, preventing the error propagation common in two-stage methods. In simulations, it consistently achieved higher F1 scores than competitors like tsGFCI and LiNGAM, particularly as the number of variables increased.

Estimated intra-slice matrix for S&P 100 stock returns, revealing industry sector clusters.

In the S&P 100 experiment, the algorithm automatically recovered a block-diagonal structure in the $W$ matrix that aligned with industry sectors (e.g., tech stocks influencing other tech stocks), despite having no prior knowledge of those sectors. This demonstrates the model's capability for latent structure recovery in complex systems. Furthermore, on the DREAM4 dataset, DYNOTEARS ranked 1st in AUPR among six specialized DBN methods.

Limitations and Future Directions

While powerful, DYNOTEARS currently assumes linear relationships and stationarity (a "frozen" network structure). Future work could incorporate non-linear kernels or neural networks to capture more complex interactions. Additionally, the model assumes frequent sampling and the absence of unobserved confounders, which are common but strong assumptions in causal discovery. Addressing these factors would further enhance the robustness of structure learning in dynamic systems.

Summary updated

BibTeX
@inproceedings{pamfil2020dynotears,
  author = {Roxana Pamfil and Nisara Sriwattanaworachai and Shaan Desai and Philip Pilgerstorfer and Konstantinos Georgatzis and Paul Beaumont and Bryon Aragam},
  title = {{DYNOTEARS: Structure Learning from Time-Series Data}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
  url = {https://openreview.net/forum?id=vwCcBbispIp},
}
Figure