SLIM-Brain: A Data- and Training-Efficient Foundation Model for fMRI Data Analysis

Mo Wang, Junfeng Xia, Wenhao Ye, Enyu Liu, Kaining Peng, Jianfeng Feng, Quanying Liu, Hongkai Wen · DOI

Introduction

Analyzing functional Magnetic Resonance Imaging (fMRI) data presents a significant computational challenge. A single scan generates a massive four-dimensional (4D) sequence representing 3D space over time. Traditionally, researchers have relied on two main approaches: atlas-based methods, which group voxels into predefined regions of interest (ROIs) but sacrifice fine-grained detail, and atlas-free (voxel-level) methods, which preserve detail but require immense GPU memory and extensive training data.

SLIM-Brain (Sample-efficient, Low-memory fMRI Foundation Model) is a novel "atlas-free" foundation model that breaks this trade-off. By utilizing a two-stage adaptive design that prunes non-brain background and selects only the most informative temporal windows, it achieves state-of-the-art performance using 90% less pre-training data and only 30% of the memory required by previous voxel-level models.

Methods

SLIM-Brain employs a selective compute approach to focus on high-signal areas in both space and time through a two-stage pipeline:

  1. Stage 1: The Global Sweep: A lightweight temporal extractor performs a rapid pass over the entire fMRI sequence. It uses a "Mutual Masked Reconstruction" score to rank temporal windows, identifying the segments most representative of overall brain activity.
  2. Stage 2: The 4D Hierarchical Encoder (Hiera-JEPA): Instead of processing the entire brain volume, SLIM-Brain prunes approximately 70% of voxels that constitute non-brain background. The top-ranked temporal windows are then processed by a hierarchical Joint Embedding Predictive Architecture (JEPA).

Datasets and Evaluation

The model was pre-trained on a combined pool of 4,129 sessions from diverse sources, including the Human Connectome Project (HCP), the Chinese Human Connectome Project (CHCP), the Amsterdam Open MRI Collection (AOMIC), and the Adolescent Brain Cognitive Development Study (ABCD).

To test its "out-of-distribution" performance, SLIM-Brain was evaluated on several external benchmarks:

  • ABIDE: Autism diagnosis and age classification.
  • ADHD-200: ADHD classification.
  • ADNI: Alzheimer’s Disease diagnosis.
  • PPMI: Parkinson’s Progression Markers Initiative.

Key Insights

  • Efficiency through Pruning: By not tokenizing the ~70% of an fMRI volume that is empty background space, SLIM-Brain significantly reduces memory usage without losing biological information.
  • Temporal Saliency: The "Top-K" selection strategy for temporal windows proved superior to random or uniform sampling, suggesting that models learn more efficiently by focusing on representative brain states.
  • Neural Scaling Laws: SLIM-Brain exhibits scaling behavior similar to Large Language Models. Performance continues to improve as model size (from 22M to 87M parameters) and data volume increase.
  • Neurobiological Alignment: Using Integrated Gradients, researchers found that the model's attention naturally aligns with brain regions associated with specific disorders, such as the executive control network for ADHD, enhancing interpretability.

Key Results

SLIM-Brain demonstrates remarkable efficiency and performance gains over existing baselines:

  • Data Efficiency: The model achieved state-of-the-art (SOTA) results with only 4,000 pre-training sessions, whereas competing models like Brain-JEPA or BrainMass typically require 32,000 to 64,000 sessions.
  • Superior Accuracy: It set new records across benchmarks, including 64.5% accuracy on ABIDE age classification and 63.5% on ADHD-200.
  • Hardware Accessibility: Requiring only ~30% of the GPU memory of traditional Swin-transformer voxel models, SLIM-Brain can be trained in approximately 20 hours on a single A100 GPU.

Limitations and Future Work

While SLIM-Brain represents a significant step forward, several challenges remain. Disk I/O remains a bottleneck for scaling due to the massive size of 4D fMRI files. Additionally, while the current Top-K selector favors "representative" windows, future iterations may need to balance this with "rare" event detection for task-based fMRI. Finally, moving toward ultra-high-field (7T) MRI with sub-millimeter resolution will require further architectural refinements to handle the increased data density.

Summary updated

BibTeX
@misc{wang2025slim,
  author = {Mo Wang and Junfeng Xia and Wenhao Ye and Enyu Liu and Kaining Peng and Jianfeng Feng and Quanying Liu and Hongkai Wen},
  title = {{SLIM-Brain: A Data- and Training-Efficient Foundation Model for fMRI Data Analysis}},
  year = {2025},
  eprint = {2512.21881},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.21881},
}
Figure