arXiv:2610.28411cs.CVOct 2026

Manuscript Offprint

arXiv:2610.28411

Brain2Vec: A Self-Supervised 3D Foundation Model for Structural Brain MRI

Spiros Maggioros, Guray Erus, Gareth Harman, George Aidinis, Alexander Getka, Aristeidis Sotiras, Christos Davatzikos

Spiros Maggioros

University of Pennsylvania

George Aidinis

University of Pennsylvania

Guray Erus

University of Pennsylvania

Alexander Getka

University of Pennsylvania

Gareth Harman

University of Pennsylvania

Aristeidis Sotiras

University of Pennsylvania

Christos Davatzikos

University of Pennsylvania

Abstract

Deep learning models have become essential tools in medical imaging, yet training them end-to-end for diverse tasks remains challenging due to limited labeled data and computational constraints. To address this, we introduce Brain2Vec, a foundation model pre-trained on 74,425 T1-weighted Magnetic Resonance Imaging (MRI) scans pooled from multiple studies. Brain2Vec can serve both as a weight initialization backbone for fine-tuning downstream tasks and as a standalone feature extractor. We evaluated Brain2Vec in three tasks: downstream predictive performance, convergence speed, and embedding quality. Using Brain2Vec's pre-trained weights as initialization and fine-tuning on labeled data for a brain age prediction task, results demonstrate improved final accuracy and faster convergence compared to random initialization. Additionally, its frozen embeddings outperform anatomically defined volumetric features on four of five downstream classification tasks and perform competitively with a state-of-the-art foundation model pre-trained on substantially more data. Lastly, we show that Brain2Vec encodes information primarily from a spatially localized and neuroanatomically meaningful set of brain regions, and that manipulating a subset of latent features produces monotonic, region-specific effects on the reconstructed anatomy. Brain2Vec code and trained models are available as an open-source package on https://github.com/CBICA/Brain2Vec. Users can apply Brain2Vec locally by installing the package, or directly through the NiChart cloud platform https://cloud.neuroimagingchart.com, where Brain2Vec features can be derived without requiring local installation or specialized infrastructure.

1 Introduction

Traditional machine learning approaches for deriving imaging biomarkers from structural Magnetic Resonance Imaging (MRI) typically rely on a predefined feature extraction step, such as segmentation or parcellation of regional anatomy, followed by supervised modeling on the resulting measurements [12,3][12, 3]. These pipelines have supported a wide range of neuroimaging applications, including brain age estimation and disease prediction [34][34], but they depend on predefined anatomical segmentations and task-specific model development.

Deep learning (DL) has made it possible to learn predictive representations directly from images, potentially bypassing hand-engineered feature pipelines. In practice, however, training end-to-end models for specific neuroimaging tasks poses significant challenges. MRI volumes are substantially

Preprint. Under review.

more computationally demanding than 2D natural images, with 3D volume-based training incurring considerable memory and computational costs [7, 39]. At the same time, neuroimaging datasets are typically small, labeled datasets are limited, and class distributions are often imbalanced, contrasting sharply with the large-scale labeled datasets available in computer vision, such as ImageNet [10] with over 14 million images for 2D classification. These constraints hinder the development of robust task-specific deep models and motivate the need for transferable representations learned from large, heterogeneous MRI collections.

Self-supervised pre-training offers a practical way to mitigate these limitations by learning transferable image representations from large collections of unlabeled scans [23, 21]. Rather than optimizing directly for a single downstream target, self-supervised models are trained using a generic pretext objective and can then be adapted to classification or regression tasks using substantially smaller labeled datasets. This paradigm is especially appealing in neuroimaging, where large-scale imaging repositories are increasingly available, but task-specific annotations remain expensive, heterogeneous, and often scarce.

In this work, we present Brain2Vec, a self-supervised foundation model pre-trained on 74,425 T1-weighted MRI scans pooled from multiple studies within the iSTAGING harmonized dataset [20]. The training data span a broad range of scanner hardware, acquisition protocols, and clinical populations, allowing the model to learn a high-dimensional representation of neuroanatomy from diverse real-world data. Brain2Vec produces a 768-dimensional embedding for each scan, which can be used in two complementary ways: as initialization for downstream fine-tuning, or as a frozen feature representation for supervised prediction.

Validation experiments demonstrate that Brain2Vec improves both predictive performance and convergence speed when used for encoder fine-tuning. When evaluated as a feature extractor, Brain2Vec outperformed SPARE-BA, a brain age model trained on regional volumes derived from DLMUSE [3] anatomical segmentation, across all tasks except a single AD prediction task. It also outperformed NeuroJEPA [22], a foundation model pre-trained on 1.55M scans (683, 860 T1w), on multiple classification and brain age prediction tasks. This result is particularly notable given that Brain2Vec was pre-trained on ≈9.2×\approx 9.2\times less data. This suggests that learning a strong representation of brain structure may not require pretraining at the scale of millions of scans. Unlike natural-image datasets, where visual content varies enormously across scenes, objects, and viewpoints, preprocessed structural brain MRI is a comparatively low-variance domain: scans are skull-stripped and registered to a common atlas space, so the variability a model must capture is largely confined to inter-individual anatomical differences, including aging and disease related changes, and acquisition effects. Together, these results establish Brain2Vec as an effective self-supervised backbone for structural neuroimaging analysis.

Contributions. This work makes the following contributions:

  1. First, we introduce Brain2Vec, a self-supervised 3D masked autoencoder trained on 74,425 T1-weighted MRI scans drawn from multiple studies, with the goal of learning transferable representations of brain structure.

  2. Second, we demonstrate that pretrained Brain2Vec weights serve as a stronger initialization for downstream task-specific applications than random initialization. We illustrate this here through brain age prediction, where we observe improvements in both convergence speed and final accuracy.

  3. Third, we show that frozen Brain2Vec embeddings support competitive lightweight downstream modeling. They outperform segmentation-based volumetric features on four of five disease and risk-factor classification tasks, performing competitively with NeuroJEPA [22], while achieving strong brain age prediction performance.

  4. Last, we perform an extensive analysis of Brain2Vec latent embeddings, showing that the model encodes information primarily from a spatially localized and neuroanatomically meaningful set of brain regions. We prove that manipulating a subset of latent features produces monotonic, region-specific effects on the reconstructed anatomy, which is important for the interpretability of disease or aging related effects.

Code Availability. The codebase and pre-trained weights in safetensors format for both feature extraction and downstream predictive tasks are released as open-source packages on

GitHub https://github.com/CBICA/Brain2Vec and Hugging Face https://huggingface.co/cbica/Brain2Vec. All tools are also integrated into the NiChart platform https://cloud.neuroimagingchart.com, enabling users to upload raw T1-weighted MRI scans via the cloud and obtain Brain2Vec embeddings (e.g., for custom model development) as well as a set of biomarkers for disease prediction and brain age estimation.

References (38)