Brain-JEPA: Brain Dynamics Foundation Model with Gradient Positioning and Spatiotemporal Masking

Zijian Dong, Ruilin Li, Yilei Wu, Thuan Tinh Nguyen, Joanna Su Xian Chong, Fang Ji, Nathanael Ren Jie Tong, Christopher Li Hsian Chen, Juan Helen Zhou · DOI

Introduction

Functional magnetic resonance imaging (fMRI) provides a non-invasive window into human brain activity, yet the data is characterized by a low signal-to-noise ratio (SNR). Traditional foundation models often rely on generative reconstruction, which can lead the model to "learn the noise" rather than underlying neural dynamics. Brain-JEPA introduces a shift toward predicting abstract brain states in a latent space, utilizing a Joint-Embedding Predictive Architecture (JEPA) to filter noise and capture semantic patterns.

Methodology: Latent Prediction and Functional Coordinates

Brain-JEPA moves away from pixel-level or signal-level reconstruction. Instead, it predicts the representation of masked target blocks from context blocks within a high-level latent space. This approach is supported by two primary innovations:

  1. Brain Gradient Positioning: Unlike standard models that use anatomical (Euclidean) coordinates, Brain-JEPA employs "connectivity gradients." This functional coordinate system places regions that exhibit synchronized activity closer together in the embedding space, regardless of their physical distance.
  2. Spatiotemporal Masking: To capture the complex dependencies in fMRI data, the model uses a three-way masking strategy: Cross-ROI (spatial), Cross-Time (temporal), and Double-Cross (both). This forces the model to learn both the evolution of activity over time and the inter-regional influences.
Overview of the Brain-JEPA architecture, highlighting the spatiotemporal masking and latent prediction process.

The architecture utilizes a Vision Transformer (ViT) backbone, scaled from 22M to 307M parameters, and was pre-trained on the massive UK Biobank (UKB) dataset comprising over 40,000 participants.

Results and Performance

Brain-JEPA demonstrates state-of-the-art (SOTA) performance across a variety of downstream tasks, including age and sex prediction, and clinical diagnosis for Alzheimer’s disease.

The Superiority of Functional Positioning

A key finding is that functional organization serves as a more effective "map" for AI models than physical anatomy. Experimental results show that Brain Gradient Positioning consistently outperforms traditional sine/cosine or anatomical location encodings across multiple benchmarks.

Comparison of positional encoding methods, showing that Brain Gradient Positioning yields superior Pearson correlation for age prediction and higher accuracy for sex and clinical classification.

Clinical and Demographic Benchmarks

  • Age Prediction: The model achieved a Mean Squared Error (MSE) of 0.501 on the UKB dataset, significantly outperforming previous models like BrainLM (0.612).
  • Clinical Utility: In the ADNI dataset, the model reached 71.00% accuracy in predicting amyloid positivity, a 4% improvement over the next best baseline.
  • Generalizability: The model showed robust performance on the Asian MACC dataset despite being pre-trained on a predominantly Caucasian cohort (UKB), suggesting it captures fundamental biological features rather than site-specific artifacts.

Conclusion

Brain-JEPA establishes a new benchmark for brain dynamics foundation models. By prioritizing latent space prediction and functional connectivity gradients, it overcomes the noise limitations of fMRI data. Future work will explore multi-modal integration—combining fMRI with EEG or structural imaging—and deeper interpretation of attention maps to uncover new neurological insights.

Summary updated

BibTeX
@inproceedings{dong2024brain,
  author = {Zijian Dong and Ruilin Li and Yilei Wu and Thuan Tinh Nguyen and Joanna Su Xian Chong and Fang Ji and Nathanael Ren Jie Tong and Christopher Li Hsian Chen and Juan Helen Zhou},
  title = {{Brain-JEPA: Brain Dynamics Foundation Model with Gradient Positioning and Spatiotemporal Masking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=HWIcR2Tu1W},
}
Figure