DYNOTEARS: Structure Learning from Time-Series Data

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

Introduction

DYNOTEARS is a scalable algorithm designed to learn dynamic Bayesian networks (DBNs) from time-series data. By transforming the traditionally discrete task of searching for directed acyclic graphs (DAGs) into a continuous optimization problem, it identifies both contemporaneous and time-lagged relationships between variables. This approach significantly outperforms existing methods, particularly in high-dimensional settings where the number of variables may exceed the number of observations.

The Challenge of Structure Learning

Understanding how variables influence each other over time is critical in fields like finance, genomics, and neuroscience. DBNs, often referred to as Structural Vector Autoregressive (SVAR) models in econometrics, are the standard framework for these relationships.

However, learning the structure of these networks is computationally intensive. A valid DBN must satisfy an "acyclicity constraint," meaning the graph of contemporaneous relationships cannot contain loops. Historically, enforcing this required searching through a massive, discrete space of possible graphs—a process that scales poorly. Furthermore, many traditional methods employ a two-step approach: first estimating time-lagged effects and then estimating real-time effects. This sequential process often leads to error propagation, where inaccuracies in the first step compromise the second.

The DYNOTEARS Approach

DYNOTEARS builds upon the NOTEARS framework, which replaced discrete combinatorial constraints with a smooth mathematical function (the trace exponential). The key innovation in DYNOTEARS is the formulation of a single, joint objective function that simultaneously estimates two types of weights:

  1. Intra-slice weights ($W$): Contemporaneous (real-time) relationships within the same time step.
  2. Inter-slice weights ($A$): Time-lagged relationships where a variable at time $t-k$ influences a variable at time $t$.
A Dynamic Bayesian Network (DBN) representation showing intra-slice (solid) and inter-slice (dashed) dependencies.

By minimizing a least-squares loss function subject to a smooth acyclicity constraint on the intra-slice weights, the algorithm ensures the resulting graph is a DAG. $L_1$ regularization is applied to promote sparsity, making the discovered networks more interpretable. The resulting problem is solved using standard second-order optimization solvers like L-BFGS-B.

Experimental Performance

The authors evaluated DYNOTEARS using extensive simulations across various graph models (Erdős–Rényi, Barabási–Albert, and Stochastic Block Models) and noise distributions (Gaussian and Exponential).

F1 scores for structure recovery across different graph models and noise types, comparing DYNOTEARS to existing methods.

As shown in the performance benchmarks, DYNOTEARS consistently achieves higher F1 scores for structure recovery compared to baseline algorithms such as tsGFCI, LiNGAM, and a naive NOTEARS+Lasso combination. Its advantage is most pronounced in high-dimensional regimes (e.g., $d=100$ variables with only $n=50$ samples), where traditional methods often fail to produce accurate results.

Real-World Applications

Beyond simulations, the algorithm was tested on two diverse real-world datasets:

  • Finance (S&P 100): Analyzing five years of daily returns for 97 stocks, DYNOTEARS found that current returns are the best predictors of future returns (finding zero lagged edges), supporting the Efficient Market Hypothesis. However, it uncovered a dense web of real-time connections that accurately grouped stocks into industry sectors with a high Normalized Mutual Information (NMI) score of 0.79.
  • Biology (DREAM4): In this gene expression benchmark, DYNOTEARS ranked 1st in Area Under the Precision-Recall curve (AUPR) among six DBN methods, demonstrating its competitiveness against complex non-parametric models.

Conclusion and Future Work

DYNOTEARS represents a significant step forward in time-series structure learning by leveraging continuous optimization to handle high-dimensional data. While the current model assumes linear relationships and stationarity, the framework provides a foundation for future extensions into non-linear dependencies (via neural networks) and time-varying network structures.

Summary updated

BibTeX
@inproceedings{pamfil2020dynotears,
  author = {Roxana Pamfil and Nisara Sriwattanaworachai and Shaan Desai and Philip Pilgerstorfer and Paul Beaumont and Konstantinos Georgatzis 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