NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A VAE-based Framework for Learning Multi-Level Neural Granger-Causal Connectivity

Jiahe Lin, Huitian Lei, George Michailidis

Abstract

Identifying causal relationships in complex systems is a fundamental challenge across scientific disciplines. While Granger causality (GC) provides a robust framework for single-system analysis, extending it to collections of related systems—such as multiple subjects in a clinical trial—remains difficult due to heterogeneity and non-linearity. This paper introduces a hierarchical Variational Autoencoder (VAE) framework that jointly learns a shared "common backbone" and individual-level idiosyncrasies. By treating the causal graph as a latent variable, the model "borrows strength" from the group to improve individual estimates, demonstrating superior performance on synthetic benchmarks and real-world EEG data.

Introduction

Understanding "who influences whom" in systems like neural networks or economic sectors is often approached through Granger causality: variable A Granger-causes B if the past of A helps predict the future of B better than B’s own history alone. However, real-world data often comes from collections of entities (e.g., 20 different patients) that share a general structure but possess unique individual patterns.

Traditional methods struggle with this two-fold challenge: extracting shared structure without ignoring individual differences (heterogeneity) and managing the high data requirements of non-linear causal discovery. This work proposes a multi-level VAE to address these issues, providing a scalable and interpretable solution for multi-subject causal inference.

Methodology

Hierarchical Generative Model

The core of the framework is a two-layer generative process. Instead of treating the causal graph as a fixed parameter, it is modeled as a latent variable. As shown in the generative diagram below, a global latent variable $\bar{\mathbf{z}}$ represents the shared group structure, which serves as a prior for individual latent graphs $\mathbf{z}^{[m]}$. These individual graphs then dictate the dynamics of the observed time-series trajectories $\mathbb{X}^{[m]}$.

Hierarchical generative model for multi-level causal discovery.

VAE Architecture and Inference

The implementation utilizes a specialized VAE architecture consisting of a hierarchical encoder and a node-centric decoder.

  • Hierarchical Encoder: Maps raw time-series data to hidden representations, inferring both the entity-specific causal graphs and the "grand common" graph for the group.
  • Node-Centric Decoder: Unlike standard Graph Neural Networks that are often edge-centric, this decoder uses inferred graphs as "gates." If the latent graph indicates a connection from node A to node B, the decoder allows information from A to influence the prediction of B. This approach provides greater stability for time-series reconstruction.
  • Conjugacy Adjustment: The model employs a Bayesian weighting mechanism to merge information from the group-level prior and individual-level data, allowing for robust inference even when individual data is sparse.
The VAE architecture featuring hierarchical encoding and node-centric decoding.

Experimental Evaluation

Synthetic Benchmarks

The framework was tested against several complex systems, including Linear and Non-linear Vector Autoregression (VAR), Multi-species Lotka-Volterra dynamics, and chaotic Lorenz96 systems. In non-linear VAR tests, the model achieved near-perfect performance, with an AUROC of 99% and AUPRC of 96% for the common structure, significantly outperforming individual-learning baselines like NGC and TCDF.

Real-World EEG Application

The model was applied to a multi-subject EEG dataset (22 subjects, 72 electrodes). It successfully identified increased brain connectivity during "Eyes Closed" states compared to "Eyes Open" states. Notably, it pinpointed the OZ channel in the primary visual cortex as a major causal emitter, a finding that aligns with established neuroscientific literature.

Key Insights and Conclusion

  1. Joint Learning Advantage: Learning causal links for an entire group simultaneously acts as a powerful regularizer, leading to higher accuracy than individual analysis.
  2. Signed Estimates: Unlike many neural methods that only detect the presence of a connection, this VAE framework provides signed estimates, distinguishing between activating (positive) and inhibiting (negative) influences.
  3. Robustness: The model remains accurate even with low sample sizes per individual by leveraging the shared group "backbone."

While the current model assumes a static causal structure, future work may extend this to time-varying connectivity. Overall, this hierarchical VAE provides a significant step forward in making non-linear causal discovery practical for complex, multi-level datasets.

Summary updated

BibTeX
@article{lin2024vae,
  author = {Jiahe Lin and Huitian Lei and George Michailidis},
  title = {{A VAE-based Framework for Learning Multi-Level Neural Granger-Causal Connectivity}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
  url = {https://openreview.net/forum?id=idBT2NRh2z},
}
Figure