Granger Causality using Neural Networks

Samuel Horváth, Malik Shahid Sultan, Hernando OmbaoarXiv 2022 · DOI

Abstract

Identifying causal relationships in time series data is a fundamental challenge across disciplines. This paper introduces LeKVAR and a novel decoupling framework designed to identify Granger Causality (GC) in non-linear systems. By separating the importance of specific variables from the importance of their time lags, the proposed methods allow deep learning architectures—such as LSTMs and Transformers—to perform simultaneous causality discovery and lag selection with high computational efficiency.

Introduction

Granger Causality (GC) provides a framework for determining if the past of one variable $X$ helps predict the future of another variable $Y$ better than using the past of $Y$ alone. While traditionally addressed using linear Vector Autoregressive (VAR) models, real-world systems like neural activity or financial markets often exhibit complex non-linear dynamics. Recent "Neural GC" methods attempt to capture these non-linearities but face significant hurdles:

  1. Lag Selection: Difficulty in identifying which specific historical time points are relevant.
  2. Optimization Bottlenecks: Reliance on proximal gradient descent, which is often incompatible with modern optimizers like Adam or mini-batching techniques.

Proposed Methods

The authors introduce two primary innovations to address these challenges.

LeKVAR (Learned Kernel VAR)

Instead of relying on pre-defined mathematical kernels, LeKVAR utilizes a shared neural network to learn the kernel directly from the data. This approach increases model flexibility while maintaining a lean parameter count compared to traditional component-wise models.

The Decoupling Framework

The core innovation is a "wrapper" framework that can be applied to various neural architectures. It introduces two learnable filter layers, $v$ and $t$, which precede the main network:

  • The $v$ filter learns the relative importance of each time series component.
  • The $t$ filter learns the importance of specific time lags.
The decoupling framework utilizes separate filters for variable importance ($v$) and lag importance ($t$) to enable sparse causal discovery.

By applying sparsity penalties (e.g., L1 regularization) to these filters independently, the model can simultaneously identify causal variables and relevant time steps. A weight normalization strategy is employed to ensure the effectiveness of these sparsity constraints.

Experimental Evaluation

The models were tested on three benchmarks:

  • VAR(3): A 10-dimensional linear baseline used to ensure accuracy in simple scenarios.
  • Lorenz-96 Simulation: A 20-dimensional chaotic, non-linear system frequently used in climate modeling.
  • Netsim fMRI: A 15-dimensional dataset simulating brain signals, representing a sparse, data-scarce scenario.

Key Results

The proposed methods demonstrated significant improvements in both efficiency and predictive accuracy. LeKVAR achieved a speedup of at least 30x over LSTM-based models and 3x over other recent neural GC methods.

Performance comparison on the Lorenz-96 dataset, highlighting the superior AUROC and AUPRC of the Transformer-based cTRF model.

In the non-linear Lorenz-96 simulation, the Transformer-based cTRF model achieved a perfect 1.0 AUROC, significantly outperforming the traditional linear VAR model (0.75 AUROC). Furthermore, in the sparse fMRI dataset, the LSTMwVF (a variational decoupled LSTM) showed high robustness, effectively preventing overfitting in data-scarce environments.

Conclusion

This work makes Neural GC more practical by providing a model-agnostic framework for causal inference. While the decoupling trick enables interpretability in complex models like RNNs, challenges remain in automated hyper-parameter tuning for sparsity penalties. Future research will focus on self-tuning optimization techniques to broaden the accessibility of these tools for non-experts.

Summary updated

BibTeX
@misc{horvath2022granger,
  author = {Samuel Horváth and Malik Shahid Sultan and Hernando Ombao},
  title = {{Granger Causality using Neural Networks}},
  year = {2022},
  eprint = {2208.03703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.03703},
}
Figure