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

Introduction

The standard approach to analyzing functional Magnetic Resonance Imaging (fMRI) data relies heavily on "parcellation"—the practice of grouping millions of individual 3D pixels (voxels) into a few hundred predefined Regions of Interest (ROIs) based on a brain atlas. While parcellation makes high-dimensional fMRI data computationally manageable, it introduces significant drawbacks: it discards fine-grained spatial details, imposes systematic biases by relying on group-averaged atlases that ignore individual variability, and creates atlas dependency, where models trained on one atlas fail to transfer to another.

The ideal alternative is to model every voxel directly. However, a single 4D fMRI volume contains millions of voxels. Applying standard architectures, such as Transformers that scale quadratically with input size, to raw voxel data has traditionally been computationally prohibitive at scale. Enter Omni-fMRI, a new foundation model that abandons predefined brain atlases to operate directly on raw voxel-level signals, achieving state-of-the-art performance while remaining highly computationally efficient.

Methodology: Making Voxel-Level Modeling Tractable

To overcome the computational nightmare of voxel-level modeling, Omni-fMRI employs three innovative architectural mechanisms:

  • Dynamic Patching: Rather than using a uniform grid, Omni-fMRI utilizes a "spatiotemporal complexity map" based on signal variance to determine where to focus computational resources. Non-informative background regions are pruned, simple regions are assigned large patches, and complex, highly active brain regions are divided into fine-grained, small patches. This dynamic approach reduces the token count from approximately 14,000 to just 4,300 per time frame.
  • Dual-Path Multi-Scale Embedding: To process heterogeneous patch sizes, the model features a dual-path projection system. This aligns the different patches into a unified latent space, allowing them to be processed by a standard Vision Transformer (ViT) encoder.
  • Scale-Aware Masked Autoencoding (MAE): Omni-fMRI is trained by masking parts of the brain and tasking the model with reconstructing them. Crucially, the loss function is normalized by patch size, ensuring that large, simple patches do not dominate the training process at the expense of small, detail-rich ones.

Datasets and Benchmarking

The scope of Omni-fMRI's training and evaluation is massive. Pre-training leveraged 49,497 fMRI sessions across major cohorts, including the UK Biobank, AOMIC, CHCP, and ISYB.

To ensure reproducibility and fair comparison, the authors established a comprehensive downstream benchmark suite spanning 11 datasets (such as ABCD, ABIDE, HCP, ADNI, and PPMI). This suite covers 16 diverse resting-state and task-based fMRI tasks, including sex classification, age regression, disease diagnosis (e.g., Alzheimer’s and Parkinson’s), and image retrieval from brain activity.

Key Insights

The development of Omni-fMRI yielded several critical insights into brain representation learning:

  • Voxel-Level Outperforms ROI-Level: Preserving fine-grained spatial information generates more expressive and transferable representations than regional averages.
  • Variance as a Proxy for Salience: Temporal variance serves as a highly effective, non-parametric metric to distinguish "interesting" brain tissue from background noise.
  • The "No Patch-Norm" Discovery: While normalizing individual patches is standard in computer vision, the authors found that removing patch normalization actually improved fMRI performance. Absolute BOLD signal intensity (after global Z-scoring) carries vital biological meaning that local normalization inadvertently erases.
  • Reconstruction over Joint-Embedding: Despite the popularity of Joint-Embedding Predictive Architectures (JEPA), Masked Autoencoders (MAE) proved superior for fMRI. This is likely because fMRI data lacks the robust, semantic-preserving augmentations (like color jittering) that JEPA relies on.

Results and Performance

Omni-fMRI demonstrates remarkable capabilities across multiple dimensions:

  • State-of-the-Art Accuracy: The model consistently outperformed existing foundation models, such as NeuroSTORM and SwiFT, across almost all 16 benchmark tasks.
  • Superior Linear Probing: In many instances, the "frozen" features of Omni-fMRI (linear probing) outperformed the fully fine-tuned versions of competing models, indicating that it has learned a highly robust foundational "language" of the brain.
  • Extreme Efficiency: Despite boasting 157 million parameters, Omni-fMRI can be pre-trained in just 32 hours using only 4 NVIDIA A10G GPUs. By contrast, some ROI-based methods require up to 150 hours on more powerful hardware.
  • Data Efficiency: In few-shot scenarios, Omni-fMRI maintained high accuracy on the HCP task using only 10% of the training data, whereas baseline models experienced a collapse in performance.

Limitations and Future Directions

While Omni-fMRI represents a significant methodological leap, the authors note a few limitations. The current dynamic patching mechanism relies on a manual variance threshold; transitioning to a fully learned, differentiable patch selection strategy could yield even better results. Additionally, the image retrieval task was evaluated using GLM-estimated responses rather than raw, continuous BOLD signals, meaning the model's capacity to process raw continuous visual stimuli remains partially untested. Finally, the authors emphasize that Omni-fMRI is currently a research tool and methodological advancement, not yet a validated clinical diagnostic system.

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