Cortically-Resolved Recurrent Architecture for fMRI

Da-Woon Heo, Kwanseok Oh, Adrián Ayuso-Muñoz, Heung-Il SukNeurIPS 2026

TL;DR

Standard deep learning models treat brain scans either like static photographs or uniform streams of text tokens, ignoring the rich, varied rhythms of actual brain anatomy. This paper introduces CoRTeX, a recurrent neural network where every distinct brain region gets its own dedicated state, memory plasticity, and custom "attention span" in time. By wiring basic principles of cortical organization directly into the architecture, CoRTeX decodes visual stimuli and diagnoses brain disorders competitively while offering a transparent window into how different parts of the brain process information over time.

What Problem Does This Paper Address?

Functional MRI (fMRI) measures brain activity by tracking blood-oxygen-level-dependent (BOLD) signals across anatomically distinct regions of interest (ROIs). If you listen to the brain, you quickly realize it isn't a monolith: primary sensory areas react in snappy, rapid bursts, while higher-order associative regions integrate information over much longer timescales. Furthermore, how these regions talk to each other shifts dynamically from moment to moment.

When machine learning researchers try to decode fMRI data—say, to figure out what image a person is looking at or whether they have schizophrenia—they face a modeling mismatch. Standard fMRI decoders often collapse the entire time series into a static "functional connectivity" (FC) matrix before the model even sees it, erasing temporal dynamics. Meanwhile, general-purpose sequence models (like LSTMs or Mamba) treat neural signals like interchangeable tokens, applying the exact same temporal rules uniformly across the entire brain. Nobody was jointly modeling which specific regions integrate over what timescales, alongside how their cross-talk evolves in real time.

Methods

Enter CoRTeX (Cortical Recurrent Trajectory eXchange), an architecture that anchors its learnable parameters directly to brain anatomy. Unfolding step-by-step over the fMRI time series, CoRTeX introduces four main mechanisms inside its recurrent loop:

Figure 1: Overview of CoRTeX. Over T recurrent steps, CoRTeX evolves per-region states zt and a Hebbian memory Ht from the BOLD input xt. (1) RFC computes inter-regional coupling St from the regional trajectories. (2) The Hebbian memory accumulates St with region-wise forgetting and learning rates (γr, ηr) and biases (3) IAA, which uses NeRF coordinates and one-hot identity as positional encoding. The gated cross-region input is combined with zt by a per-region projection, and (4) region-specific temporal integration reads it out over a learned window Mr. After T steps, the final RFC ST is classified by (5) the classifier head.
  • Recurrent Functional Connectivity (RFC): Instead of calculating static correlations across the whole scan, CoRTeX computes an expanding Pearson correlation matrix on the fly from the model's evolving regional states up to the current time step $t$.
  • Hebbian-Inspired Plasticity Memory: Named after the classic neuroscience adage ("cells that fire together, wire together"), a fast-weights memory matrix accumulates these RFC co-activations over time. Crucially, unlike standard fast-weights, each brain region learns its own private learning and forgetting rates.
  • Identity-Aware Attention (IAA): This is the sole communication channel between regions. Queries and keys are stamped with both discrete one-hot regional identities and continuous 3D anatomical coordinates (using NeRF-style sinusoidal encodings), while the Hebbian memory biases the attention scores. A region-specific gate then balances local input against this cross-brain context.
  • Region-Specific Temporal Integration: Each region maintains a first-in-first-out (FIFO) history buffer and learns its own differentiable soft mask ($M_r$) over that buffer. A small $M_r$ means the region only cares about the immediate present; a large $M_r$ means it averages over a longer history. A diversity regularizer prevents all regions from lazily collapsing to the same window length.

After stepping through the whole scan, the final RFC matrix is handed off to a classifier head.

Datasets

The authors evaluate CoRTeX across three public benchmarks—no new datasets are introduced, allowing direct comparison with established baselines:

  • Natural Scenes Dataset (NSD): Task-fMRI from 8 subjects viewing MS-COCO images (parcellated into 360 cortical ROIs, using 6-volume / $\approx$8s trial windows) for 12-class multi-label visual stimulus classification.
  • ABIDE: Resting-state fMRI from 1,072 subjects across 17 sites (200 ROIs) for binary classification of Autism Spectrum Disorder (ASD) vs. typical development.
  • COBRE: Resting-state fMRI from 145 subjects (200 ROIs) for binary classification of Schizophrenia (SZ) vs. healthy controls.

Key Insights and Ideas

  • Spatial coordinates matter more than names: In ablations, removing 3D NeRF coordinates caused a much steeper performance drop than removing one-hot region IDs. Because adjacent brain regions tend to share functions, giving the attention mechanism physical 3D geometry is remarkably effective—if paired with region-indexed recurrent states.
  • Timescale assignments aren't arbitrary: When the authors took a trained NSD model and randomly shuffled the learned temporal windows ($M_r$) across brain regions at test time, macro-AUC dropped from 0.849 to 0.819 across all 40 checkpoints. Getting the right timescale on the right anatomical region genuinely drives decoding.
  • Emergent visual hierarchies: Without being told about neuroscience, CoRTeX's learned windows on NSD naturally clustered into three regimes (short, mid, and long). Early visual areas (like V1–V4 and MT) landed in the short, rapid-response regime, aligning neatly with sensory biology. Furthermore, gradient attributions for specific image categories (like Person, Sports, or Outdoor) lit up the exact face-, motion-, and scene-selective brain regions established in neuroscience literature.

Key Results

CoRTeX beats all raw BOLD-based sequence baselines (including Mamba, Titans, CTM, and BolT) in AUC across all three datasets:

  • NSD: Achieves the highest overall Macro-AUC (0.849) and Micro-AUC (0.877), outperforming all BOLD baselines and matching classical GLM $\beta$-estimate classifiers (which rely on pre-computed trial summaries).
  • COBRE: Takes first place across the board with 0.797 AUC and 78.6% accuracy, beating both raw BOLD models (e.g., BolT at 0.727 AUC) and static FC methods (Kernel-LR at 0.757 AUC).
  • ABIDE: Achieves the highest AUC among BOLD-based models (0.730), statistically tying BolT (0.729) and approaching the top static FC baseline, Kernel-LR (0.740).
  • Ablations: On COBRE, stripping away positional encoding (-0.200 AUC) or region-specific temporal windows (-0.187 AUC) severely degrades the model, while removing Hebbian plasticity yields a smaller (-0.062 AUC) drop.

Limitations and Future Work

The authors are admirably careful not to overclaim biological magic: the learned windows ($M_r$) reflect task-conditioned dynamics in sluggish blood-flow (BOLD) space—which mixes neural activity with regional differences in blood vessel responses—not pure, intrinsic neuronal firing constants. Practically, CoRTeX does not consistently beat top static FC or $\beta$-map classifiers on every metric, suggesting that combining raw recurrent trajectories with full-scan summary features is a ripe next step. Finally, the maximum buffer size ($M_{\max}$) must be hand-tuned per dataset, and performance shows higher variance on smaller cohorts like COBRE. Future work aims to relax fixed buffer bounds and explicitly model hemodynamic response variability to untangle true neural timing from blood-flow lag.

Summary updated

Abstract

Decoding cognitive functions and brain disorders from functional magnetic resonance imaging (fMRI) has benefited from deep learning, including fMRI-specific decoders and neuroscience-inspired sequence models. Cortical regions are functionally specialized, integrate information over heterogeneous timescales, and interact through time-varying coupling. We propose CoRTeX, a cortically-resolved recurrent architecture that reflects these properties in its learnable structure. Each region maintains its own recurrent state and learns a temporal integration window, while a memory with region-specific learning and forgetting rates accumulates co-activation among regional trajectories and biases identity-aware attention. We evaluate CoRTeX on task-fMRI stimulus classification (NSD) and resting-state fMRI disease diagnosis (ABIDE and COBRE). CoRTeX achieves competitive performance against strong baselines, including the highest area under the curve on NSD and COBRE. Further analyses show that the regional assignments of learned temporal integration windows influence predictive performance, while class-specific attributions on NSD are consistent with known category-selective regions. Code is available at https://github.com/ku-milab/CoRTeX.
BibTeX
@inproceedings{heo2026cortically,
  author = {Da-Woon Heo and Kwanseok Oh and Adrián Ayuso-Muñoz and Heung-Il Suk},
  title = {{Cortically-Resolved Recurrent Architecture for fMRI}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TIdiRMJ2QV},
}
Figure