How Neural Granger Causality works
masterThe library implements three neural network architectures—cMLP, cLSTM, and cRNN—to discover Granger causality in multivariate time series.
Core Mechanism
The models forecast each time series in the multivariate set separately. During training, sparse penalties are applied to the input layer's weight matrix. When groups of parameters are driven to zero by these penalties, it indicates Granger non-causality between the variables.
Architectures and Penalties
- cMLP: Supports three penalty types:
group lasso,group sparse group lasso, andhierarchical. - cLSTM and cRNN: Both use a
group lassopenalty, differing only in the underlying RNN cell type.
Optimization
Because the loss functions are non-convex and penalties are non-smooth, the library uses ISTA (Iterative Soft-Thresholding Algorithm), a proximal gradient descent approach. While the library uses ISTA, the original research notes that GISTA (proximal gradient descent with line search) and Adam (which requires an additional thresholding parameter) provide comparable performance.