TL;DR
SLIM-Brain is an atlas-free 4D fMRI foundation model that breaks the dual bottlenecks of massive data requirements and excessive compute costs in neuroimaging AI. By pairing a lightweight global sequence scanner with a fine-grained, background-pruning 4D Hiera-JEPA encoder on only the most informative time windows, it sets state-of-the-art results on clinical benchmarks using just ~4,000 pretraining sessions and roughly 30% of the GPU memory required by Swin-based architectures.
What Problem Does This Paper Address?
Functional Magnetic Resonance Imaging (fMRI) records whole-brain Blood Oxygenation Level Dependent (BOLD) signals over time, producing massive 4D volumes (3D space $\times$ time). Applying deep learning foundation models to this data currently runs into two opposing dead ends:
- Atlas-based models: To manage dimensionality, practitioners aggregate voxel signals into predefined anatomical regions of interest (ROIs). While memory-efficient, parcellation discards sub-regional spatial details, biases representations to arbitrary atlas boundaries, and requires tens of thousands of scans (e.g., 30k–65k+) to generalize well.
- Atlas-free (voxel-level) models: Processing raw voxels preserves native neuroanatomy, but standard 3D/4D Transformers suffer from quadratic computational complexity. Crucially, up to 70% of an fMRI volume is empty non-brain space, and long temporal sequences cause memory footprints to explode.
SLIM-Brain resolves this tension by proposing a selective, coarse-to-fine framework that models raw voxels without drowning in compute or requiring massive cohorts.
Methods
SLIM-Brain operates through a two-stage adaptive pipeline:
[Raw 4D fMRI Sequence]
│
├──► 1. Global Branch (Lightweight 2D ViT + SimMIM)
│ • Spatial patch-averaging & background pruning
│ • Captures full-sequence temporal dynamics
│ • Scores windows via Mutual Masked Reconstruction
│
└──► 2. Top-k Window Selector
• Picks the most informative temporal windows
│
▼
3. Voxel-Level Path (4D Hiera-JEPA)
• Prunes ~70% non-brain background units
• Joint-Embedding Predictive Architecture (JEPA) predicts
latent targets rather than reconstructing dense raw voxels
• Fuses local fine-grained features with global context
- Global Context & Saliency Ranking: The 4D volume is partitioned into coarse spatial patches where non-brain regions are discarded and remaining voxels are averaged. A lightweight 2D Vision Transformer pre-trained with masked autoencoding (SimMIM-style) captures sequence-wide temporal context. It evaluates temporal windows using mutual masked reconstruction—measuring how effectively a single temporal window reconstructs the rest of the sequence—to select the $k$ most representative windows.
- 4D Voxel-Level Hiera-JEPA: The selected top-$k$ raw windows are routed into a 4D Hierarchical Vision Transformer (Hiera). Unlike shifted-window designs (Swin), Hiera operates on discrete mask units, allowing the outright deletion of ~70% non-brain background and masked tokens before attention is computed.
- Latent Prediction (JEPA): Instead of using a memory-heavy decoder to reconstruct raw, noisy 4D voxel intensities, the model uses a Joint Embedding Predictive Architecture (JEPA) optimized with Smooth-$\ell_1$ loss to predict representations directly in latent feature space against an exponential-moving-average (EMA) target encoder.
Datasets
- Pretraining Cohort (4,129 sessions): Sourced across four public repositories: Human Connectome Project (HCP), Chinese Human Connectome Project (CHCP), Amsterdam Open MRI Collection (AOMIC: PIOP1 & PIOP2), and the Adolescent Brain Cognitive Development (ABCD) study.
- Downstream External Benchmarks: Evaluated out-of-distribution across four independent datasets:
- ADHD-200 (ADHD vs. healthy control classification)
- ADNI (Mild Cognitive Impairment [MCI] vs. control classification; AD vs. CN scaling experiments)
- PPMI (3-class Parkinson’s disease progression classification)
- ABIDE (Autism Spectrum Disorder cohort; age classification and regression)
- Internal HCP Benchmarks: Evaluated on HCP sex prediction and a 100-class cross-session brain fingerprinting (subject identification) task.
Key Insights and Ideas
- Raw voxels dramatically boost sample efficiency: Voxel-level modeling retains subtle, fine-grained localized dynamics that ROI parcellations wash out. As a result, SLIM-Brain matches or exceeds models trained on 30,000–65,000 sessions using only ~4,000 sessions.
- Eliminating spatial and temporal redundancy: Rather than processing every frame and every voxel uniformly, selective compute (ranking temporal segments via global MAE and dropping non-brain background via Hiera) cuts per-sample memory from ~8.0 GB to 2.3 GB.
- Feature-space prediction avoids pixel hallucination: Voxel BOLD signals have low signal-to-noise ratios. Predicting representations in latent space (JEPA) rather than pixel-space reconstruction prevents the network from wasting capacity on noisy high-frequency raw voxel values.
Key Results
- Clinical Classification & Transfer: SLIM-Brain achieved top performance across all external OOD benchmarks:
- ADHD-200: 63.53% accuracy (surpassing NeuroSTORM at 62.35% and BrainMass at 60.78%).
- ADNI (MCI): 69.12% accuracy (vs. 66.67% NeuroSTORM and 64.53% Brain-JEPA).
- PPMI: 70.40% accuracy (vs. 69.12% NeuroSTORM).
- ABIDE Age Regression: Achieved the lowest Mean Squared Error (0.2175 vs. SwiFT's 0.4137 and BrainMass's 0.5129).
- HCP Subject Identification: Reached 98.5% accuracy on 100-class brain fingerprinting, substantially outperforming BrainMass (86.0%, trained on 65k sessions) and Brain-JEPA (57.0%).
- Compute Efficiency: Pretraining converges in ~20 hours on a single NVIDIA A100 GPU (80 GB), compared to 150 hours across 8$\times$ V100s for BrainMass or ~13 days on 4$\times$ A6000s for NeuroSTORM.
- Scaling Behavior: Accuracy on ADNI (AD vs. CN) scaled predictably from 77.32% (22M params) to 85.50% (87M params) without saturating.
- Interpretability: Integrated gradients mapped back to voxel space strongly aligned with meta-analytic brain activations from Neurosynth, highlighting disease-relevant hubs in the prefrontal cortex, anterior cingulate, and striatum.
Limitations and Future Work
- I/O Storage Bottlenecks: Although GPU compute and memory are reduced by ~70–80%, randomly reading non-contiguous top-$k$ 4D frames places heavy demands on disk I/O, requiring high-throughput SSD storage layouts.
- Representativeness vs. Novelty Bias: The mutual masked reconstruction selector chooses windows that best represent the overall recording. While effective for resting-state scans, this could inadvertently filter out brief, transient task-evoked responses that are distinct from background activity. Developing hybrid selection scores is an open direction.
Summary updated