CausalMamba: Scalable Conditional State Space Models for Neural Causal Inference

Sangyoon Bae, Jiook Cha · DOI

Introduction

Inferring effective connectivity—the directed causal interactions between brain regions—from functional Magnetic Resonance Imaging (fMRI) data remains a fundamental challenge in neuroscience. The primary obstacle lies in the nature of the signal: fMRI does not measure neural activity directly. Instead, it captures the Blood-Oxygen-Level-Dependent (BOLD) signal, which is a delayed and spatially blurred representation of underlying neural spikes, filtered through a complex Hemodynamic Response Function (HRF).

Existing methodologies generally fall into two categories, each with significant drawbacks. Dynamic Causal Modeling (DCM) is biophysically grounded but computationally intensive, scaling quadratically with the number of regions of interest (ROIs). This makes whole-brain analysis practically impossible. Conversely, Granger Causality is computationally efficient but often fails to account for biological variability, frequently misinterpreting differences in blood flow timing between regions as actual neural causality.

CausalMamba addresses these limitations by introducing a scalable, biophysically informed framework that leverages a novel Conditional Mamba architecture and a two-stage deconvolution process.

The CausalMamba Framework

CausalMamba decomposes the causal inference problem into two tractable stages within a unified curriculum learning framework. This separation allows the model to first address the "blood flow problem" (deconvolution) before tackling the "causality problem" (graph inference).

The CausalMamba architecture overview, illustrating the two-stage process from BOLD signal to causal graph inference.

Stage 1: BOLD Deconvolution

In the first stage, the model "unblurs" the BOLD signal to recover latent neural activity. This is achieved through two primary components: an HRF Generator and a BOLD Deconvolver. The HRF Generator estimates region-specific blood flow parameters, while the BOLD Deconvolver extracts the underlying neural "spikes" or Local Field Potential (LFP)-like signals.

Detailed view of the BOLD deconvolution stage, including the HRF Generator (a) and BOLD Deconvolver (b) components.

Stage 2: Causal Graph Inference

The recovered neural signals are then passed to the Causality Mapper. This module utilizes a Conditional Mamba backbone to map temporal patterns to a directed causal graph. The output defines "coupling strengths" (the magnitude of influence between regions) and "delay timings."

Innovation: Conditional Mamba

Standard State Space Models (SSMs) like Mamba are efficient at processing long sequences but assume uniform dynamics. However, brain regions are biologically heterogeneous. CausalMamba introduces a parallel, adaptive stream to the Mamba block that incorporates ROI-specific parameters. This allows the model to learn universal temporal dynamics while adjusting for the unique biological "fingerprint" of each specific brain region.

Experimental Results

The model was evaluated using both synthetic benchmarks and real-world data from the Human Connectome Project (HCP).

  • Synthetic Benchmarks: On a large-scale dataset of 10,000 samples simulating realistic neural mass models, CausalMamba achieved a 38.7% accuracy gain over traditional DCM variants. Crucially, while DCM performance plummeted as the number of ROIs increased, CausalMamba maintained high performance and demonstrated linear scalability ($O(N)$).
  • Human Connectome Project (HCP): Using task fMRI data from 1,081 subjects, the model recovered canonical visual pathways (V1→V2→V4) with 88% fidelity. Traditional methods like DCM and Granger Causality failed to identify these basic circuits in over 99% of subjects.
  • Dynamic Hub Shifting: In working memory tasks, CausalMamba revealed that the brain's primary causal hub is not fixed. It shifts strategically depending on the stimulus—recruiting the Left Insula for face recognition and the DLPFC/preSMA for body images. Traditional methods typically report only uniform connectivity changes, missing these nuanced dynamics.

Discussion and Future Work

CausalMamba represents a significant leap forward by making whole-brain causal inference computationally feasible. By separating deconvolution from causal mapping and introducing ROI-specific conditioning, it achieves superior accuracy and robustness compared to existing biophysical and statistical models.

Future work will focus on expanding the model to handle bi-directional and multi-lag dynamics, as well as explicitly modeling HRF uncertainty with calibrated confidence intervals. Additionally, the authors aim to refine the framework to isolate specific, event-locked neural processes beyond block-level contrasts.

Summary updated

BibTeX
@misc{bae2025causalmamba,
  author = {Sangyoon Bae and Jiook Cha},
  title = {{CausalMamba: Scalable Conditional State Space Models for Neural Causal Inference}},
  year = {2025},
  eprint = {2510.17318},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.17318},
}
Figure