A Brain Graph Foundation Model: Pre-Training and Prompt-Tuning for Any Atlas and Disorder

Xinxu Wei, Kanhao Zhao, Yong Jiao, Lifang He, Yu Zhang · DOI

Abstract

Functional MRI (fMRI) research is often hindered by small, fragmented datasets and a lack of standardization across brain atlases and clinical targets. We present BrainGFM, a large-scale graph-based foundation model that unifies fMRI analysis. BrainGFM treats the brain as a dynamic graph and employs a dual pre-training strategy—Graph Masked Autoencoders and Graph Contrastive Learning—to learn robust representations. By incorporating language-guided prompt tuning, the model can generalize to unseen disorders and atlases. Our results show that BrainGFM outperforms existing state-of-the-art models across 25 disorders and 8 parcellations, maintaining high accuracy even in zero-shot and few-shot settings.

Introduction

Neuroscience research currently suffers from data "silos." High collection costs lead to small datasets, while the use of varying brain atlases (parcellations) makes cross-study comparison difficult. Existing foundation models often rely on raw time-series data, which is computationally intensive, or static features that ignore the brain's complex connectivity. There is a critical need for an atlas-agnostic model capable of generalizing to new clinical tasks with minimal data.

Methodology

BrainGFM utilizes a Graph Transformer backbone enhanced with Random Walk Structural Encoding (RWSE) to capture the topological nuances of brain networks. The model is trained using a dual strategy: Graph Masked Autoencoders (GMAE) for local feature reconstruction and Graph Contrastive Learning (GCL) for global representation consistency.

The BrainGFM framework: from dataset construction to zero-shot prompt-tuning.

To adapt to specific tasks, we introduce a prompt-tuning framework. Graph Prompts allow the model to adjust to different atlases, while Language Prompts—encoded from clinical descriptions using a medical BERT—provide semantic guidance. This enables the model to perform zero-shot transfer to disorders it has never encountered during training. A meta-learning approach (MAML) is used to optimize these prompts for rapid adaptation.

Datasets

The model was trained and validated on a massive aggregation of 27 neuroimaging datasets, encompassing over 25,000 subjects and 60,000 fMRI scans. This collection covers 25 common disorders and 8 widely-used brain parcellations (e.g., Schaefer, AAL, Shen), totaling approximately 400,000 graph samples. This diversity allows the model to learn "atlas-invariant" patterns that previous models missed.

Results and Key Insights

BrainGFM establishes a new state-of-the-art across 10 major brain disorders, including ADHD, Autism (ASD), and Alzheimer’s (AD).

Comparative performance of BrainGFM against state-of-the-art baselines across multiple clinical disorders.

Key findings include:

  • Zero-Shot Success: Language prompts significantly boost accuracy on unseen disorders by leveraging clinical knowledge. The model can effectively "guess" what an unseen disorder might look like in a brain scan based purely on its clinical description.
  • Few-Shot Robustness: BrainGFM maintains high performance with as little as 1% of training data, where traditional models typically see a massive performance collapse.
  • Efficiency: The graph-based approach is significantly faster and less memory-intensive than time-series models like BrainLM, while outperforming simpler ROI-based models like BrainMass.
  • Interpretability: Attention maps show that the model focuses on frontal and temporal cortical regions—areas known to be clinically relevant in psychiatry—validating that the model is learning real biology.

Discussion and Future Work

BrainGFM demonstrates that pre-training on a mixture of functional and anatomical atlases enhances performance, suggesting that the model learns to leverage complementary structural and functional information. Future work will focus on incorporating task-based fMRI and expanding to multi-modal data (EEG, DTI) to create a more holistic brain foundation model. Current limitations include the focus on resting-state fMRI and the exclusion of some large repositories due to licensing constraints.

Conclusion

BrainGFM represents a significant step toward a unified, generalizable foundation model for neuroimaging, offering a robust tool for clinical discovery across diverse populations and conditions.

Summary updated

BibTeX
@inproceedings{wei2026brain,
  author = {Xinxu Wei and Kanhao Zhao and Yong Jiao and Lifang He and Yu Zhang},
  title = {{A Brain Graph Foundation Model: Pre-Training and Prompt-Tuning for Any Atlas and Disorder}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=PeGHkAaRxs},
}
Figure