Brain-Semantoks: Learning Semantic Tokens of Brain Dynamics with a Self-Distilled Foundation Model

Sam Gijsen, Marc-Andre Schulz, Kerstin Ritter

Introduction

Functional MRI (fMRI) data is notoriously difficult to analyze. It is high-dimensional, extremely noisy, and varies significantly depending on scanner hardware and acquisition protocols. Most current "foundation models" for fMRI attempt to adapt successful recipes from Natural Language Processing (NLP) or Computer Vision, such as "mask-and-reconstruct" objectives.

However, because the raw Blood-Oxygen-Level-Dependent (BOLD) signal is so noisy, reconstruction-based models often waste capacity modeling low-level fluctuations rather than the high-level phenotypic signatures (like disease markers or cognitive traits) that researchers actually care about. This results in models that require extensive, expensive fine-tuning for every new task.

Brain-Semantoks is a new self-supervised foundation model for fMRI that shifts the focus from reconstructing noisy raw signals to learning abstract "semantic tokens" of brain activity. By grouping brain regions into functional networks and using a self-distillation training objective, the model creates stable representations that achieve state-of-the-art performance on clinical and cognitive tasks—even when the model's weights are frozen.

Methods: Architecture and Training

Brain-Semantoks relies on two core architectural innovations designed specifically for the nuances of brain data:

Brain-Semantoks Architecture

1. The Semantic Tokenizer ($G$) Instead of treating every small brain region (ROI) as an independent data point, the model uses a neuroscientific prior to group regions into functional networks (e.g., the Default Mode Network). It uses multi-scale convolutions to aggregate these noisy regional signals into a single, robust "semantic token" for each network. This abstraction makes the data much more manageable for the subsequent Transformer layers, treating functional networks as the "words" of brain dynamics.

2. Self-Distillation with a Temporal Regularizer The model uses a "Student-Teacher" framework. It takes two different temporal segments (views) of the same brain scan. The Student network tries to match its output to a Teacher network, which is a moving average of the Student.

To prevent the model from collapsing into a useless solution during the early stages of training on noisy data, the authors introduce a Teacher-guided Temporal Regularizer (TTR). This curriculum-based loss forces the model to first learn the stable, time-averaged signature of each network before trying to model complex temporal dynamics. The model also employs "Slice Masking," hiding entire networks or blocks of time to force the Transformer to learn how different brain systems interact.

Datasets and Evaluation

The model was pretrained on a massive corpus of 39,139 resting-state fMRI recordings from the UK Biobank (UKB). To prove its status as a foundation model, it was evaluated across a diverse battery of downstream datasets:

  • UKB: Sex and age prediction.
  • SRPBS: Clinical diagnosis of Schizophrenia and Major Depressive Disorder (MDD).
  • ABIDE: Autism Spectrum Disorder classification.
  • HBN: Language (CELF) and cognitive (WISC) scores in children.
  • LEMON: Mood and cognitive task scores.

Key Insights and Results

The biggest takeaway from Brain-Semantoks is that abstraction over reconstruction yields better real-world predictions. By abstracting the signal into network-level tokens, the model ignores static noise and captures meaningful phenotypic signatures.

Performance Comparison Table
  • State-of-the-Art Performance: Brain-Semantoks significantly outperforms existing fMRI foundation models like BrainLM and Brain-JEPA across nearly all tasks.
  • Linear Probing as the Gold Standard: The authors emphasize "linear probing"—attaching a simple linear layer to a frozen model. On the ABIDE (Autism) dataset, Brain-Semantoks achieved 65.13% accuracy with a simple linear probe, compared to ~53% for competing foundation models. In many cases, the frozen model outperformed specialized models trained from scratch.
  • Zero-Shot Robustness & Scaling: Because the model is trained to find stable signatures, it generalizes remarkably well to out-of-distribution data (different scanners, different age groups) without domain adaptation. The authors also demonstrated clear scaling laws: as more unlabeled pretraining data is added, the model's performance on completely different datasets improves predictably.

Limitations and Future Work

Currently, the model relies on a predefined anatomical atlas to group regions into networks; future versions could learn these groupings directly from the data. Additionally, while the model was tested on some task-based data, the bulk of pretraining used resting-state fMRI. Integrating more diverse task-based fMRI during pretraining could further improve its semantic understanding. Finally, exploring higher temporal resolutions (beyond the current 2-second downsampled resolution) might unlock more fine-grained cognitive insights.

Summary updated

BibTeX
@inproceedings{gijsen2026brain,
  author = {Sam Gijsen and Marc-Andre Schulz and Kerstin Ritter},
  title = {{Brain-Semantoks: Learning Semantic Tokens of Brain Dynamics with a Self-Distilled Foundation Model}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ANkm27vNuk},
}
Figure