Abstract
While most classical approaches to Granger causality detection repose upon linear time series assumptions, many interactions in neuroscience and economics applications are nonlinear. We develop an approach to nonlinear Granger causality detection using multilayer perceptrons where the input to the network is the past time lags of all series and the output is the future value of a single series. A sufficient condition for Granger non-causality in this setting is that all of the outgoing weights of the input data, the past lags of a series, to the first hidden layer are zero. For estimation, we utilize a group lasso penalty to shrink groups of input weights to zero. We also propose a hierarchical penalty for simultaneous Granger causality and lag estimation. We validate our approach on simulated data from both a sparse linear autoregressive model and the sparse and nonlinear Lorenz-96 model.
Introduction
Granger causality is a cornerstone of time series analysis, defining causality through predictability: variable $X$ "Granger-causes" variable $Y$ if the past values of $X$ improve the prediction of $Y$'s future beyond what is possible using the past of $Y$ alone. Traditionally, Vector Autoregressive (VAR) models have been the standard for this task. However, VAR models are inherently linear, whereas real-world systems in fields like neuroscience and economics often exhibit complex, nonlinear dynamics.
This paper, originally presented at the NIPS 2017 Time Series Workshop, introduces a framework that bridges the gap between the predictive power of deep learning and the interpretability required for causal discovery.
Methods: Interpretable Multilayer Perceptrons
The core challenge in using neural networks for causality is their "black-box" nature. In a standard network, signals from all inputs are mixed in hidden layers, making it impossible to determine which specific input drove the prediction. The authors overcome this through three key architectural choices:
- Component-wise MLPs: Instead of a single network for the entire system, a separate MLP is trained for each individual time series. This isolation ensures that the model for series $i$ only considers the past of other series as potential predictors.
- Encoding Selection via Group Lasso: To identify causality, the model focuses on the first hidden layer (the "encoding" layer). By applying a Group Lasso penalty to all outgoing weights from the past lags of a specific series $j$, the model can shrink those weights to exactly zero if series $j$ is not predictive of series $i$. If the weights are zero, information from $j$ cannot pass the "gate" to influence the output.
- Hierarchical Lag Selection: The authors also introduce a hierarchical group lasso penalty. This specialized regularizer encourages the model to prune older, less relevant time lags before more recent ones, providing automatic lag-order selection alongside causality detection.
Key Insights and Validation
The model's effectiveness was tested on two distinct datasets:
- Sparse Linear VAR: Serving as a baseline, the neural network approach matched the performance of classical linear methods.
- Lorenz-96 Model: A chaotic, nonlinear dynamical system used in climate modeling. This provided a rigorous test for discovering sparse, nonlinear interactions.
A critical insight of this work is that interpretability does not require understanding the entire network. By controlling the input gate, the researchers can maintain the model's ability to learn complex, non-additive interactions in deeper layers while still being able to "shut off" non-causal inputs definitively.
Results and Future Directions
The model achieved high AUC (Area Under the Curve) scores for graph recovery across both linear and nonlinear datasets. As the length of the time series ($T$) increased, the results showed statistical consistency, with AUC values approaching 1.0.
Visual discovery of the causal graphs confirmed that the model successfully identified the underlying structure of the Lorenz-96 system (often a ring-like dependency) while filtering out noise as the regularization parameter ($\lambda$) was tuned.
While computationally more intensive than linear models due to the need for multiple MLPs, this framework provides a robust path forward for causal discovery in high-dimensional, nonlinear systems. Future work may extend these concepts to recurrent architectures like LSTMs to better capture long-term dependencies.
Summary updated