Omni-fMRI: A Universal Atlas-Free fMRI Foundation Model

Mo Wang, Wenhao Ye, Junfeng Xia, Junxiang Zhang, Xuanye Pan, Minghao Xu, Haotian Deng, Hongkai Wen, Quanying Liu · DOI

Abstract

Self-supervised fMRI foundation models have shown promising transfer performance, yet most rely on predefined region-level parcellations that discard fine-grained voxel information and introduce atlas-dependent biases. We propose Omni-fMRI, an atlas-free foundation model that operates directly on voxel-level signals. To enable scalable pretraining on 49,497 fMRI sessions across nine datasets, Omni-fMRI introduces a dynamic patching mechanism that substantially reduces computational cost while preserving informative spatial structure. To support reproducibility and fair comparison, we establish a comprehensive benchmark suite spanning 11 datasets and a diverse set of resting-state and task-based fMRI tasks. Experimental results demonstrate that Omni-fMRI consistently outperforms existing foundation models, providing a scalable and reproducible framework for atlas-free brain representation learning.

Introduction: Moving Beyond Fixed Atlases

Functional Magnetic Resonance Imaging (fMRI) captures brain activity in 4D (3D space over time). Traditionally, the "dominant paradigm" in neuroimaging relies on atlases—predefined maps that group millions of voxels (3D pixels) into a few hundred Regions of Interest (ROIs). While this reduces dimensionality, it introduces significant drawbacks: it discards fine-grained details, introduces biases based on group averages, and locks models into specific mappings that fail to account for individual structural variability.

Omni-fMRI is a first-of-its-kind "atlas-free" foundation model designed to learn brain representations directly from raw voxel-level signals. By bypassing artificial boundaries, it preserves the full resolution of neural activity.

Methodology: Dynamic Patching for Scalable Learning

The primary challenge of voxel-level modeling is the massive dimensionality of 4D data. Omni-fMRI addresses this through a Dynamic Patching mechanism, which allows a Vision Transformer (ViT) to process high-resolution data efficiently.

Omni-fMRI Architecture Overview: The model utilizes content-adaptive patch allocation, dual-path multi-scale embedding, and scale-aware reconstruction to process voxel-level fMRI data efficiently.

Key Innovations:

  • Content-Adaptive Allocation: Using a "Complexity Gate," the model prunes non-brain background patches and assigns smaller, high-resolution patches to active regions while using larger patches for simpler, redundant areas. This reduces token sequence length from ~14,000 to approximately 4,300.
  • Dual-Path Multi-Scale Embedding: A specialized layer aligns mixed-resolution patches into a unified latent space, ensuring the model can integrate fine and coarse information seamlessly.
  • Scale-Aware Masked Autoencoding (MAE): The model is trained to reconstruct masked brain regions. The loss function is modified to be "scale-aware," preventing large, easy-to-predict patches from dominating the learning signal over detail-rich small patches.

Datasets and Benchmarking

Omni-fMRI was pretrained on a massive scale, utilizing 49,497 fMRI sessions from nine major datasets, including the UK Biobank and the Chinese Human Connectome Project (CHCP). To evaluate its performance, the authors established a comprehensive benchmark suite spanning 11 datasets and 16 tasks, including clinical diagnosis (Alzheimer’s and Parkinson’s), demographics (age and sex), and cognitive state prediction.

Key Results and Insights

Omni-fMRI consistently outperforms existing voxel-level models like NeuroSTORM and SwiFT, as well as ROI-based models like BrainMASS.

Performance Comparison: Omni-fMRI consistently outperforms existing foundation models across a wide range of clinical and cognitive benchmarks.

Notable Findings:

  • The "Amplitude" Matters: Unlike standard computer vision, normalizing fMRI patches hurts performance. The raw amplitude of the BOLD signal carries critical biological meaning; normalizing it treats neural signal and background noise as equal, confusing the model.
  • Data Efficiency: The model is remarkably resilient in few-shot scenarios. When trained on only 10% of available data, it maintained high accuracy, whereas traditional models suffered catastrophic degradation.
  • Computational Efficiency: Despite its 157M parameters, Omni-fMRI pretrained in just 32 hours on 4 NVIDIA A10G GPUs—significantly faster than many smaller, ROI-based models.
  • Interpretability: Using Integrated Gradients, the model's attention was shown to align with known pathology. In Alzheimer’s tasks, for instance, the model naturally focused on the hippocampus and temporal lobes.

Conclusion and Future Work

Omni-fMRI provides a scalable, reproducible, and atlas-free framework for brain representation learning. While it currently uses a variance-based heuristic for patching, future work may explore learned or differentiable patch selection to further optimize tokenization. Additionally, exploring different temporal masking strategies could enhance the model's ability to capture long-range brain dynamics.

Summary updated

BibTeX
@inproceedings{wang2026omni,
  author = {Mo Wang and Wenhao Ye and Junfeng Xia and Junxiang Zhang and Xuanye Pan and Minghao Xu and Haotian Deng and Hongkai Wen and Quanying Liu},
  title = {{Omni-fMRI: A Universal Atlas-Free fMRI Foundation Model}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=Rc8th2rXXe},
}
Figure