potentialpaper

Brain-OF: An Omnifunctional Foundation Model for fMRI, EEG and MEG

Hanning Guo, Hanwen Bi, Farah Abdellatif, Andrei Galbenus, N. Jon Shah, Abigail Morrison, Jürgen Dammers

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Brain-OF is an omnifunctional brain foundation model that unifies fMRI, EEG, and MEG, leveraging their complementary spatiotemporal dynamics to learn powerful, general-purpose representations.

Abstract. Brain foundation models have achieved remarkable advances across a wide range of neuroscience tasks. However, most existing models are limited to a single functional modality, restricting their ability to exploit complementary spatiotemporal dynamics and the collective data scale across different neuroimaging techniques. This limitation largely arises from severe semantic heterogeneity and resolution discrepancies among modalities. To address these challenges, we propose Brain-OF, an omnifunctional brain foundation model jointly pretrained on fMRI, EEG and MEG, capable of handling both unimodal and multimodal inputs within a unified framework. To reconcile heterogeneous spatiotemporal resolutions, we introduce the Any-Resolution Neural Signal Sampler, which projects diverse brain signals into a shared semantic space. To further manage semantic shifts, the Brain-OF backbone integrates DINT attention with a Sparse Mixture of Experts, where shared experts capture modality-invariant representations and routed experts specialize in modality-specific semantics. Furthermore, to explicitly internalize the characteristics of neural activity through self-supervised learning, we propose Masked Temporal-Frequency Modeling, a dual-domain pretraining objective that jointly reconstructs brain signals in both the time and frequency domains. Brain-OF is pretrained on a large-scale corpus comprising around 40 datasets and demonstrates superior performance across diverse downstream tasks, highlighting the benefits of joint multimodal integration and dual-domain pretraining. Our code and pretrained model weights are available on our project page https://hanningguo.github.io/BrainOF.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
30 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Summary

Brain-OF is a single foundation model trained on three kinds of brain scans: fMRI, EEG, and MEG. It uses one shared backbone and can take one modality alone or several at once. The main parts are a resampler (ARNESS) that turns any input size into a fixed set of tokens, a sparse mixture-of-experts backbone with differential attention, and a self-supervised objective (MTFM) that fills in masked signals in both time and frequency. The team pretrained on 37 public datasets (32,278 participants, about 5.87M samples) and released three model sizes. On nine unimodal settings across seven tasks, the largest model ranks first in 7 of 9, and mixing modalities gives small but steady gains.

Strengths

  • Novel, ambitious scope: the first credible attempt to jointly pretrain a single model across fMRI, EEG, and MEG (Reviewer 4VBD).
  • Large, curated multi-dataset corpus that is a useful resource for the community (all reviewers).
  • Comprehensive evaluation across many downstream tasks and all three modalities, backed by sound ablations (all reviewers).
  • Thoughtful, well-motivated architecture (ARNESS resampler, time/frequency masking, differential attention, sparse MoE) that reviewers found clever (Reviewers LiVB and 4VBD).
  • Evidence of genuine cross-modal benefit when modalities are fused (Reviewers LiVB and 4VBD).
  • Clear writing and reasonably detailed experimental settings that aid reproducibility (Reviewers 4VBD and rbji).

Weaknesses

  • Pretraining overlap and generalization are hard to judge: there is no single clear statement of which downstream datasets were seen during pretraining, and truly out-of-distribution cases (unseen dataset, site, or modality) are not clearly marked (Reviewers LiVB and rbji).
  • Baseline adaptation is not explained: how single-modality baselines are applied to out-of-domain tasks (e.g., EEG models on fMRI) is unclear, and some baselines do surprisingly well, which looks off (Reviewer 4VBD).
  • Capacity versus representation is not separated: the largest model is much bigger than the baselines, and without a linear probe or compute/parameter-matched comparison it is unclear whether gains come from better representations or just scale (Reviewer rbji).
  • No significance testing: results are mean plus or minus std and several SOTA margins are small, so some claimed wins may not be significant; a frozen-backbone linear probe is also missing (Reviewer rbji).
  • Multimodal comparison is not fully fair: multimodal foundation models are left out of the main comparison, and a baseline treated as multimodal is essentially a single-modality fMRI model (Reviewer rbji).
  • Weak interpretability and result placement: the interpretability/visualization section is only qualitative and under-explained, and key material (modality-importance analysis, the fine-tuning protocol, and a limitations discussion) is pushed into the appendix (Reviewers 4VBD and rbji).
  • Minor: applying ARNESS twice at fusion time may push inputs out of distribution (Reviewer 4VBD); a few relevant citations are missing (Reviewer LiVB).

Suggestions

  1. Show per experiment whether each dataset was in pretraining and how overlap was controlled. Then highlight results on the truly unseen datasets so the generalization claim rests on held-out data.
  2. Explain how single-modality baselines are adapted to out-of-domain tasks. Separate capacity from representation.
  3. Add significance testing and strengthen the interpretability section.
Final justification

The broad evaluation and rebuttal address the main concerns. The paper’s novelty, extensive experiments, and potential community value justify acceptance. The AC strongly encourages the authors to discuss the cross-modality applications and include the PCA visualization requested by Reviewer 4VBD in the revision.

Area Chair oDUL · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Summary

Brain-OF is a single foundation model trained on three kinds of brain scans: fMRI, EEG, and MEG. It uses one shared backbone and can take one modality alone or several at once. The main parts are a resampler (ARNESS) that turns any input size into a fixed set of tokens, a sparse mixture-of-experts backbone with differential attention, and a self-supervised objective (MTFM) that fills in masked signals in both time and frequency. The team pretrained on 37 public datasets (32,278 participants, about 5.87M samples) and released three model sizes. On nine unimodal settings across seven tasks, the largest model ranks first in 7 of 9, and mixing modalities gives small but steady gains.

Strengths

  • Novel, ambitious scope: the first credible attempt to jointly pretrain a single model across fMRI, EEG, and MEG (Reviewer 4VBD).
  • Large, curated multi-dataset corpus that is a useful resource for the community (all reviewers).
  • Comprehensive evaluation across many downstream tasks and all three modalities, backed by sound ablations (all reviewers).
  • Thoughtful, well-motivated architecture (ARNESS resampler, time/frequency masking, differential attention, sparse MoE) that reviewers found clever (Reviewers LiVB and 4VBD).
  • Evidence of genuine cross-modal benefit when modalities are fused (Reviewers LiVB and 4VBD).
  • Clear writing and reasonably detailed experimental settings that aid reproducibility (Reviewers 4VBD and rbji).

Weaknesses

  • Pretraining overlap and generalization are hard to judge: there is no single clear statement of which downstream datasets were seen during pretraining, and truly out-of-distribution cases (unseen dataset, site, or modality) are not clearly marked (Reviewers LiVB and rbji).
  • Baseline adaptation is not explained: how single-modality baselines are applied to out-of-domain tasks (e.g., EEG models on fMRI) is unclear, and some baselines do surprisingly well, which looks off (Reviewer 4VBD).
  • Capacity versus representation is not separated: the largest model is much bigger than the baselines, and without a linear probe or compute/parameter-matched comparison it is unclear whether gains come from better representations or just scale (Reviewer rbji).
  • No significance testing: results are mean plus or minus std and several SOTA margins are small, so some claimed wins may not be significant; a frozen-backbone linear probe is also missing (Reviewer rbji).
  • Multimodal comparison is not fully fair: multimodal foundation models are left out of the main comparison, and a baseline treated as multimodal is essentially a single-modality fMRI model (Reviewer rbji).
  • Weak interpretability and result placement: the interpretability/visualization section is only qualitative and under-explained, and key material (modality-importance analysis, the fine-tuning protocol, and a limitations discussion) is pushed into the appendix (Reviewers 4VBD and rbji).
  • Minor: applying ARNESS twice at fusion time may push inputs out of distribution (Reviewer 4VBD); a few relevant citations are missing (Reviewer LiVB).

Suggestions

  1. Show per experiment whether each dataset was in pretraining and how overlap was controlled. Then highlight results on the truly unseen datasets so the generalization claim rests on held-out data.
  2. Explain how single-modality baselines are adapted to out-of-domain tasks. Separate capacity from representation.
  3. Add significance testing and strengthen the interpretability section.
Final justification

The broad evaluation and rebuttal address the main concerns. The paper’s novelty, extensive experiments, and potential community value justify acceptance. The AC strongly encourages the authors to discuss the cross-modality applications and include the PCA visualization requested by Reviewer 4VBD in the revision.

1 comment
Authors · CommentOpenReview ↗

Response to Area Chair oDUL

Dear Area Chair oDUL,

We appreciate the clear meta-review and constructive guidance, which helped us focus the rebuttal on the most consequential concerns. We are also grateful that the meta-review recognizes the novel and ambitious scope of Brain-OF, the scale and diversity of the curated pretraining corpus, the broad downstream evaluation, the problem-driven architectural design, and the evidence of multimodal benefit.

During the rebuttal and discussion period, we conducted additional analyses and provided detailed clarifications addressing the concerns raised by the reviewers. We also appreciate that reviewers indicated that their main concerns had been addressed and subsequently increased their scores. The main additions are summarized below:

  • Dataset overlap and OOD evaluation. We provide a dataset-by-dataset table specifying whether each downstream dataset or its parent corpus was included in pretraining, whether downstream training subjects were included, and whether validation/test subjects overlap with pretraining. All downstream validation and test subjects are strictly unseen during pretraining. We also distinguish dataset-level generalization from subject-level generalization and explicitly identify the truly unseen-dataset and unseen-site settings. See our responses to Reviewer LiVB (W2 & Q1) and Reviewer rbji (W4).

  • Finetuning and baseline adaptation. We clarify that Brain-OF and the foundation model baselines are fully finetuned end-to-end for the main experiments, with the exception of the dedicated LoRA study. We also describe how baselines are adapted across modalities and clearly labeled them as exploratory architecture-level references rather than standard in-domain comparisons. See our responses to Reviewer 4VBD (W1, Q1 & Q2).

  • Representation quality versus model capacity. We add frozen-backbone linear probing and matched-architecture no-pretraining controls for Brain-OF Base and Huge. On TUAB and ADNI, frozen pretrained representations outperform the same architectures fully trained from scratch, and pretrained Brain-OF Base also outperforms Brain-OF Huge trained from scratch. These controls indicate that the gains arise substantially from learned representations rather than model size alone. We further complement the original t-SNE visualization with PCA and quantitative analyses. The leading principal components show strong alignment with downstream properties, including chronological age on CamCAN and class separation on TUAB and ADNI. These results provide complementary evidence that Brain-OF learns informative and structured representations beyond the effect of model capacity alone. See our responses to Reviewer rbji (W3 & Q3) and Reviewer 4VBD (W3).

  • Statistical significance. We conduct significance tests across all 11 downstream settings, report Hedges’ gg, and apply Benjamini–Hochberg correction for multiple comparisons. See our response to Reviewer rbji (W1 & Q1).

  • Multimodal baselines and fusion strategies. Because no publicly available foundation model provides a directly comparable pretrained pipeline for fMRI–EEG/MEG fusion, we adapt the BrainHarmonix fusion architecture by replacing its structural-MRI branch with an electrophysiology-compatible branch. We also compare serial ARNESS with concatenation and cross-attention, showing that serial ARNESS provides the strongest overall balance between performance and stability. See our responses to Reviewer rbji (W2 & Q2) and Reviewer 4VBD (Q3).

  • Interpretability analysis. We strengthen the explanation section with clearer descriptions of each visualization, additional neuroscience references, and a quantitative ROI-level agreement analysis between Brain-OF occlusion importance and AD–CN effect sizes. We will clarify that these analyses assess neurobiological plausibility and consistency with the model’s predictions rather than serving as ground-truth validation of the explanations. See our responses to Reviewer 4VBD (W2) and Reviewer rbji (W5).

We thank the Area Chair and all reviewers again for the careful reading, constructive discussion, and follow-up comments. Their feedback has helped us substantially strengthen both the empirical evidence and the presentation of the work.

Best regards,

The Authors

Reviewer rbjiOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This article introduces Brain-OF, a multimodal brain signal foundation model that simultaneously targets fMRI, EEG, and MEG. Its core idea is to use ARNESS to uniformly map brain signals with different channel counts, ROI counts, and time lengths to fixed latent tokens. In the experiment, the author pre-trained on approximately 37 public datasets and evaluated on multiple downstream tasks of EEG, fMRI, and MEG. Overall, the strengths of this article lie in its significant research question, large-scale engineering application, and a model design that addresses heterogeneous brain signals.

Strengths and weaknesses

Strengths

  1. The paper presents a large-scale pretraining effort and is written clearly. The experimental settings are described in reasonable detail, which helps reproducibility.
  2. The empirical evaluation is fairly comprehensive, covering multiple modalities, datasets, and downstream tasks.

Weaknesses

Major

  1. The paper reports mean and standard deviation, but does not provide statistical significance tests. Therefore, some claimed SOTA improvements may not be statistically significant.
  2. The multimodal comparison is not fully clear or fair. Although the paper discusses several multimodal foundation models, these models are not included in the main comparison. In particular, BrainHarmonix-F is used as a baseline, but it is essentially a single-modality fMRI model.
  3. Brain-OF Huge is substantially larger than most baselines. Without linear probing or compute-/parameter-matched comparisons, it is unclear whether the gains mainly come from better representation learning or simply from larger model capacity.

Minor

  1. The paper does not clearly specify which downstream tasks are truly OOD, such as unseen-dataset, unseen-site, or unseen-modality evaluations.

  2. The “Visualization of Model Explanations” section is mostly qualitative and is not compared with other models or supported by quantitative analysis.

Questions
  1. Could the authors provide statistical significance tests for the main comparisons, especially the claimed SOTA results?

  2. Could the authors include comparisons with some multimodal baselines?

  3. Could the authors provide frozen-backbone linear probing results to assess whether the pretrained representations themselves bring performance gains, rather than the improvements mainly coming from full fine-tuning or increased model capacity?

  4. Why does the proposed pretraining strategy effectively integrate the advantages of different modalities? Could the gains simply come from using more data? It would be helpful to visualize the feature distributions of different modalities on paired multimodal datasets to examine whether the proxy task truly promotes cross-modal alignment and whether the learned representations become closer in the feature space.

Limitations

yes

Final justification

Solid paper. My concerns are solved.

Formatting concerns

no

5 comments
Authors · CommentOpenReview ↗

Response to Reviewer rbji [1/3]

We sincerely thank Reviewer rbji for the understanding of our model and for the constructive suggestions. Below, we provide a point-by-point response to all comments.

Response to W1 & Q1: Statistical Significance

We thank the reviewer for this important suggestion. We have conducted additional statistical significance tests across all 11 downstream task settings. For each task, we compare the Brain-OF Huge reported in the main comparison with the strongest competing baseline using a two-sided Welch’s t-test over five independent runs. We additionally report Hedges’ gg as a bias-corrected effect-size estimate. To account for multiple comparisons, we apply the Benjamini–Hochberg procedure across all 11 tests, controlling the false discovery rate at 0.05.

Positive Hedges’gg values favor Brain-OF, whereas negative values favor the strongest baseline. Brain-OF achieves numerically better performance on 9 of the 11 task settings. After multiple-comparison correction, the improvement remains statistically significant on TUAB, CamCAN-MEG, HAD, and SEED-V. On LEMON-fMRI, the specialized baseline performs significantly better, consistent with our observation of a generalist–specialist trade-off. The remaining differences are not statistically significant after correction.

We will include this statistical analysis in the revised manuscript and distinguish numerical improvements from statistically significant gains when describing the results.

Dataset Hedges'gg p p (BH)
TUAB 5.39 <0.0001 0.0002
CamCAN-MEG 4.56 0.0004 0.0024
HAD 2.82 0.0056 0.0205
SEEDV 2.16 0.0106 0.0291
LEMON-fMRI -2.08 0.0173 0.0380
ADHD200 1.12 0.0858 0.1361
BOLD5000 1.15 0.0866 0.1361
CamCAN-fMRI -0.97 0.1477 0.1955
ADNI 0.89 0.1599 0.1955
CHB 0.66 0.2901 0.3192
LEMON-EEG 0.14 0.8138 0.8138

Response to W2 & Q2: Multimodal Baselines

We thank the reviewer for raising this important concern. BrainHarmonix-F is the fMRI-only component of BrainHarmonix and therefore does not, by itself, constitute a multimodal baseline. It was included in the main comparison to evaluate fMRI representation learning rather than multimodal fusion. A direct multimodal comparison is challenging because, to the best of our knowledge, no publicly available brain foundation model provides a directly comparable pretrained pipeline for fusing fMRI with EEG or MEG on paired downstream datasets. Existing multimodal foundation models address different modality combinations. BrainHarmonix jointly models structural MRI and fMRI, BrainOmni jointly pretrains on EEG and MEG, while BIOT models heterogeneous biosignals such as EEG and ECG. These settings do not directly address fusion between hemodynamic fMRI and electrophysiological EEG/MEG signals. We will add the following summary to clarify this distinction:

Model Pretraining modalities Paired fusion Joint fMRI + electrophysiology
BrainHarmonix fMRI + sMRI ✓ ✗
BrainOmni EEG + MEG ✗ ✗
BIOT EEG +ECG ✗ ✗
Brain-OF fMRI + EEG + MEG ✓ ✓

To provide the multimodal comparison, we additionally adapt the BrainHarmonix fusion architecture to the target setting. Specifically, we replace its sMRI branch with a second fMRI branch, so that one stream receives fMRI and the other receives MEG or EEG. The complete two-branch model and fusion module are then fine-tuned end-to-end on the corresponding paired downstream training set. Under this adaptation protocol, BrainHarmonix fusion does not outperform its strongest unimodal branch on either dataset: its multimodal result is weaker than MEG alone on CamCAN and weaker than EEG alone on LEMON. In contrast, Brain-OF Base and Large improve over their corresponding strongest unimodal results on both benchmarks. Brain-OF also consistently outperforms the adapted fusion baseline in the multimodal setting. These results suggest that a fusion mechanism designed and pretrained for structurally aligned sMRI–fMRI inputs does not directly transfer to heterogeneous fMRI–electrophysiology fusion. This observation also highlights the distinct challenge addressed by Brain-OF.

Model CamCAN-fMRI↓ CamCAN-MEG↓ CamCAN-MM↓ LEMON-fMRI↑ LEMON-EEG↑ LEMON-MM↑
BrainHarmonix (adapted) 14.81±0.49 8.73±0.09 11.61±0.75 63.11±1.32 77.95±2.36 74.43±0.98
Brain-OF Base 12.09±0.78 8.99±0.1 8.87±0.09 58.95±2.13 76.05±0.44 76.77±0.60
Brain-OF Large 11.71±0.67 8.86±0.21 8.78±0.07 62.85±4.29 78.04±1.59 78.32±1.64
Brain-OF Huge 9.51±0.51 7.87±0.22 8.21±0.11 61.79±1.29 80.39±0.59 81.10±0.54
Authors · CommentOpenReview ↗

Response to Reviewer rbji [2/3]

Response to W3 & Q3: Frozen-Backbone Linear Probing

We agree that the effects of model capacity and pretrained representation quality should be disentangled. We therefore conduct frozen-backbone linear probing and same-architecture, no-pretraining controls on three representative tasks spanning EEG, fMRI, and MEG.

The controlled comparison is an identical architecture trained from scratch, which holds parameter count and varies only pretraining. First, Brain-OF Base with pretraining outperforms Brain-OF Huge trained from scratch on TUAB (81.88 vs 80.82) and ADNI (68.23 vs 64.85), so a substantially smaller pretrained model beats a substantially larger non-pretrained one. Second, at matched size, removing pretraining costs 4.29 BAC on TUAB and 4.84 on ADNI at Base, and 2.05 and 6.94 at Huge. Increasing capacity without pretraining does not recover this.

Linear probing with a frozen backbone outperforms the same architecture fully finetuned from scratch on both classification tasks, that is, 79.14 vs 77.59 (Base) and 81.92 vs 80.82 (Huge) on TUAB, and 65.22 vs 63.39 and 70.76 vs 64.85 on ADNI. Since the from-scratch model has identical capacity and strictly more trainable parameters, the frozen representation, not the capacity, is what carries the improvement.

The pretraining effect is significant on TUAB and ADNI at both scales (two-sided Welch’s t-test, corrected p < 0.01). On CamCAN-MEG, it is not. Full finetuning still benefits from pretraining (8.99 vs 9.69; 7.87 vs 8.59), but linear probing is weaker than training from scratch, and the differences are within run-to-run variance. This suggests that the pretrained MEG representation is useful but requires nonlinear backbone adaptation for this regression task.

Model Training setting TUAB↑ ADNI↑ CamCAN-MEG ↓
Brain-OF Base Pretraining + Full finetuning 81.88 ± 0.17 68.23 ± 2.07 8.99 ± 0.14
Pretraining +Linear probing 79.14±0.24 65.22±1.47 10.92±0.22
No pretraining + Full finetuning 77.59±0.27 63.39±2.36 9.69±1.07
Brain-OF Huge Pretraining + Full finetuning 82.87 ± 0.18 71.79 ± 2.19 7.87 ± 0.22
Pretraining +Linear probing 81.92±0.21 70.76±1.22 9.02±0.11
No pretraining + Full finetuning 80.82±0.18 64.85±1.03 8.59±0.94

Response to W4: Clarification of OOD Evaluation Settings

We thank the reviewer for requesting this clarification. All three modalities evaluated downstream, namely fMRI, EEG, and MEG, are represented during pretraining. Therefore, we do not claim unseen-modality generalization. Our evaluations instead cover two settings: dataset-level generalization, where the downstream dataset is entirely absent from pretraining, and subject-level generalization, where the dataset or a related parent corpus contributes training subjects but all validation and test subjects are excluded from pretraining. Further details are provided in our response to Reviewer LiVB, Q1.

Dataset Pretraining Relation Train subjects in PT Val./test overlap Evaluation setting
SEED-V ✗ Independent ✗ ✗ Unseen dataset and subjects
CHB-MIT ✗ Independent ✗ ✗ Unseen dataset, site and subjects
TUAB △ Partial ✓ ✗ Unseen subjects
ADNI ✗ Independent ✗ ✗ Unseen dataset, site and subjects
ADHD-200 ✗ Independent ✗ ✗ Unseen dataset, site and subjects
CamCAN △ Partial ✓ ✗ Unseen subjects
LEMON △ Partial ✓ ✗ Unseen subjects
HAD ✗ Independent ✗ ✗ Unseen dataset, site and subjects
BOLD5000 ✗ Independent ✗ ✗ Unseen dataset, site and subjects

Response to W5: Quantitative Analysis of Model Explanations

We thank the reviewer for this important comment. We clarify that Section 4.6 is intended as a neurobiological plausibility check, examining whether Brain-OF makes its predictions on biologically meaningful signals rather than artifacts or dataset-specific shortcuts. It is not intended, by itself, to demonstrate the benefit of foundation model pretraining.

To provide quantitative support, we conduct an ROI-wise data–model agreement analysis on ADNI. For each ROI, we compute the pooled-variance Cohen’s dd of the AD-CN difference and correlate the absolute effect size with the corresponding occlusion importance. The two measures exhibit a significant positive correlation (Spearman’s ρ=0.26\rho=0.26, p=4.61×10−5p=4.61\times10^{-5}). This result indicates that ROIs receiving greater importance from Brain-OF tend to contain stronger AD–CN discriminative signals in the underlying data. We interpret the modest correlation as meaningful but not as ground-truth validation: Cohen’s dd measures each ROI independently, whereas Brain-OF may exploit multivariate interactions among regions.

We will also strengthen Section 4.6 with clearer explanations and neuroscience references for each visualization, as detailed in our response to Reviewer 4VBD (W2).

Authors · CommentOpenReview ↗

Response to Reviewer rbji [3/3]

Response to Q4: Sources of Multimodal Gains and Cross-Modal Representation Structure

We thank the reviewer for this important question. We clarify that the integration of complementary modality information is not driven by the proxy task alone, but jointly by the shared–routed expert architecture. Each modality is processed by shared experts that encourage the extraction of modality-general structure, while routed experts retain modality-specific information. Brain-OF does not impose an explicit contrastive alignment objective. Instead, cross-modal organization emerges through joint pretraining within the shared representation space. To examine this organization quantitatively, we analyze the representation similarity from shared- and routed-expert. The averaged pairwise similarity of sample-level embeddings shows that the shared branch is strongly cross-modally aligned (0.91 within-modality vs. 0.86 cross-modality; Δ=0.05\Delta=0.05). In contrast, the routed branch exhibits substantially stronger modality-dependent separation (0.43 vs. 0.11; Δ=0.32\Delta=0.32).

We agree that increased data volume may contribute to the gains. However, the improvements are unlikely to be explained by data quantity alone. In the modality ablation of Table 3 (Line 283), removing fMRI leads to performance degradation across several downstream tasks, even though fMRI represents only a relatively small fraction of the overall pretraining corpus. This suggests that fMRI contributes useful information beyond merely increasing the number of training samples.

Reviewer 4VBDOpenReview ↗
Rating
5/6
Confidence
5/5
Quality
3/4
Clarity
2/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

Brain-OF introduces a multimodal foundation model of the brain. Trained to reconstruct neural signals across three neuro devices (EEG, MEG, fMRI) on a particularly large corpus of openly available studies, it shows impressive performance across downstream tasks, in particular on hybrid datasets where it leverages synergies between modalities.

Strengths and weaknesses

Strengths:

  • Originality: this is the first paper to introduce cross-device pretraining. While the idea in itself is quite natural, this is to my knowledge the first paper giving a sound attempt at this paradigm
  • Quality: the paper is particularly impressive from a technical perspective. The authors have managed to curate an unprecedentedly large dataset (over 40 different studies across modalities. and the architectural choices seem very sound to me. Additionally, there are four non-trivial choices which I find quite clever: the perceiver-style resampling, the hybrid masking strategy (time and spatial frequencies for fMRI, time and temporal frequencies for EEG/MEG), the differential attention mechanism and the sparse mixture of experts. The authors include extensive downstream evaluation and ablations to support their choices
  • Significance: combining the high spatial resolution of fMRI with the high temporal resolution of EEG/MEG is a very compelling selling point, and the authors include cross-modal downstream tasks to demonstrate the synergy of the cross-modal training. While the performance improvements are not huge in this setting, I feel like this is an important stepping stone for the field
  • Clarity: the paper is well written and easy to follow

Weaknesses:

  • My main concern is that the authors do not explain the finetuning procedure and the adaptation of existing baselines, which seems fishy to me (in particular, how are EEG foundation models adapted to fMRI tasks and vice versa? see questions). This needs to be addressed.
  • I do not find the interpretability section particularly convincing: these kind of topomaps could likely be obtained using very simple linear models, and do not really justify the relevance of a foundation model. Also, no reference is cited to justify the topomaps obtained for Fig2a and 2c, so it is unclear what to expect, and Fig2b is not properly explained (what are we looking at?)
  • In regard of interpretability, I feel like the authors should include more analyses on the representation space of their model, such as t-SNE plots of the model embeddings colored by various properties of the neuro signals (e.g. dataset, task, healthy/unhealthy, age etc), to show that clustering naturally emerges from the pretraining task. EDIT: upon second reading, I found t-SNE plots at the very end of the Supplementary Material, which does not seem like an adequate position. I suspect that the reason for this is that these plots are not very convincing: in particular, the age is not reflected at all in the learnt embeddings, which seems a bit odd to me
  • In general, I feel like the paper is too focused on methods and not enough on results. Quite a few interesting results (for example the modality importance of Figure 3) are deferred to the Appendix: I feel like these could be exchanged with some of the methodological details which are only of interest to the specialized audience (eg section 4.2)
Questions
  • How is finetuning implemented? The methods sections explains the pretraining in great detail but does not mention finetuning. Is the whole model finetuned on the downstream task? Or is a linear probe trained, if so on which representations? For how many epochs?

  • What I am particular dubious about is how the authors applied EEG models like EEGNet to fMRI tasks and conversely for models like LaBram. EEGNet expects a completely different type of signal than fMRI, with two orders of magnitude higher frequency... This is particularly surprising as they actually seem to perform quite well: for example BrainNetCNN is SOTA on LEMON fMRI, which seems fishy?

  • The process of applying ARNESS twice sequentially for multimodal fusion seems surprising to me. Since this is only performed at inference, I would expect the model to be completely out of distribution upon the second pass through ARNESS. A more sensible procedure to me would be to concatenate the tokens from the various modalities, could the authors comment on this?

  • Define C in line 172

Limitations

The authors do not discuss limitations, and this is a shame

Final justification

The clarifications provided by the authors somewhat reassured me about the soundness of the finetuning+sequential ARNESS procedure and that of the baseline adaptations (although the latter still seems a bit unconventional to me...) I am increasing my score on the understanding that the authors will explain these things in a lot more detail in the final manuscript, and will provide PCA plots (see answer).

Formatting concerns

None

5 comments
Authors · CommentOpenReview ↗

Response to Reviewer 4VBD [1/3]

We sincerely thank Reviewer 4VBD for the careful assessment and valuable suggestions, which will help us improve the manuscript. Below, we provide a point-by-point response to all comments.

Response to W1 & Q1: Finetuning Protocol

We thank the reviewer for requesting this clarification. For all main downstream tasks, Brain-OF is initialized from the pretrained checkpoint and fully finetuned end-to-end, including the signal encoder, ARNESS, DINT Transformer backbone, and task head. The final hidden representations are aggregated by global average pooling and passed to the newly initialized linear head for classification or regression. Similarly, all foundation model baselines are also fully finetuning. All models are evaluated using the same subject-wise data splits and five random seeds. For each run, the best checkpoint is selected based on validation performance, and the corresponding result is reported on the held-out test set.

Finetuning of Brain-OF is performed for 50 epochs by default, with the exact dataset-specific hyperparameters and training configurations reported in Appendix J.2. The LoRA experiments in Appendix O are the only parameter-efficient setting where the pretrained backbone is frozen and only the LoRA parameters and prediction head are updated.

We will add an explicit description of this protocol to the main text of the revised manuscript.

Response to W1 & Q2: Baseline Adaptation Across Modalities

We thank the reviewer for raising this important concern. Our study includes two types of baseline and the adaptation procedure differs between them.

Task-specific models (EEGNet, EEGConformer, etc.) carry no pretrained weights and are trained from scratch on every downstream task, in every modality. Their input layers can therefore be reconfigured freely to the target number of channels or ROIs and the target sequence length, and every such model receives the same N×TN \times T input. This includes the connectivity-based models: for BrainNetCNN and BrainNetTF, the connectivity matrix is computed inside the model's own input pipeline, so they consume the same raw inputs as all other baselines. Since no weights are transferred across modalities, the only question is whether an architecture's inductive bias suits the target signal.

We agree that for some architectures it does not, and we prefer to state this plainly. EEGNet's temporal kernel is defined in samples, so the 64-sample kernel spans roughly 0.3 s at typical EEG rates but on the order of a hundred seconds at fMRI TRs. This mismatch cannot be repaired by rescaling, since reproducing EEGNet's intended sub-second receptive field at a TR of ~2 s would require a kernel of a single sample. We deliberately did not retune a competitor's architecture with hyperparameters of our own choosing, and we therefore report such entries as architecture-level reference points obtained under a common training protocol rather than as competitively tuned baselines. We note that the outcome is architecture-dependent in an interpretable way: EEGConformer transfers to fMRI considerably better than EEGNet, consistent with the limiting factor being a hard-coded temporal scale rather than the modality gap as such.

For brain foundation models (LaBraM, CBraMod, etc.) we take the opposite approach, because here the aim is to preserve as much of the pretrained model as possible. Rather than reconfiguring and reinitializing the input layer, we leave the architecture untouched and instead crop or pad the input signal to a shape the pretrained model accepts. For example, the inputs to LaBraM and CBraMod are adjusted to the length that is a multiple of their 200-sample patch size. These entries should therefore be read as the transfer of a fully pretrained model to an out-of-domain input, with no pretrained parameters discarded. To verify that this procedure preserves the pretrained representation rather than merely reusing the architecture, we ran a targeted control on LEMON-EEG with BrainHarmonix-F, comparing the pretrained model adapted as described above against the identical architecture trained from scratch under the same protocol. BAC drops from 77.95 to 73.13 when the pretrained weights are discarded.

Regarding BrainNetCNN on LEMON-fMRI, its compact architecture and strong connectivity-related inductive bias may be particularly suitable for the relatively small LEMON dataset. We report it as-is. We do not claim that Brain-OF is best on every individual dataset, and we regard cases where a specialized baseline outperforms a general-purpose pretrained model as evidence that the benchmark is reported faithfully.

Authors · CommentOpenReview ↗

Response to Reviewer 4VBD [2/3]

Response to W2: Interpretation and Validation of Model Explanations

We thank the reviewer for this important comment. We agree that topographic similarity to known neurobiological patterns alone does not establish the superiority of a foundation model over a simple linear model. This section is not intended to justify the use of a foundation model by itself; rather, it provides a complementary plausibility check to examine whether Brain-OF makes its predictions on neurobiologically meaningful signals rather than obvious artifacts or dataset-specific shortcuts. The relevance of foundation model pretraining is evaluated quantitatively through the downstream, cross-modal, low-data, and scaling experiments.

To strengthen this section, we will provide clearer descriptions of all three subfigures, add supporting neuroscience references.

Figure 2(a), TUAB EEG abnormality detection. TUAB contains heterogeneous pathological EEG patterns, including focal and generalized abnormalities, and therefore no single scalp topography is expected to characterize all abnormal recordings. Brain-OF assigns relatively high importance to frontal and central electrodes. This pattern is compatible with generalized or rhythmic slowing, which can be bilateral and anteriorly prominent [1]. Previous work on TUAB further showed that pathological EEG classification relies strongly on low-frequency delta and theta activity, particularly from temporal channels, while clinical reports also contain descriptions of both temporal and rhythmic frontal slowing [2]. We therefore interpret Figure 2(a) as neurobiologically plausible, but not as evidence that the model has identified one specific abnormality subtype.

Figure 2(b), ADNI Alzheimer’s disease classification. This subfigure projects the top 10% most influential ROIs onto the cortical surface. The highlighted regions are concentrated in the fusiform gyrus and the middle and inferior temporal gyri. These regions are relevant to visual and memory-related processing and are among the temporal neocortical regions reported to exhibit atrophy associated with progression toward Alzheimer’s disease [3,4]. Thus, the visualization suggests that Brain-OF uses disease-relevant temporal patterns for classification and we regard this correspondence as evidence of biological plausibility.

Figure 2(c), CamCAN-MEG brain-age prediction. This panel shows sensor-level attribution scores for MEG-based age prediction. The most influential sensors are primarily located over temporal and parietal scalp areas. Prior MEG studies have shown that age can be predicted from electrophysiological dynamics that temporal and visual cortical signals contain particularly informative age-related features [5,6]. The observed sensor distribution is therefore consistent with known age-related changes, further supporting the neurobiological plausibility for MEG.

We will revise the section accordingly and make the purpose of each visualization explicit.

[1] J.W. Britton et al., “Electroencephalography (EEG): An Introductory Text and Atlas of Normal and Abnormal Findings in Adults, Children, and Infants”. American Epilepsy Society, 2016.

[2] R.T. Schirrmeister et al., “Deep learning with convolutional neural networks for decoding and visualization of EEG pathology,” IEEE SPMB, 2017.

[3] N. Vockert et al., “Cognitive reserve against Alzheimer’s pathology is linked to brain activity during memory formation,” Nature Communications, 2024.

[4] A. Convit et al., “Atrophy of the medial occipitotemporal, inferior, and middle temporal gyri in non-demented elderly predicts decline to Alzheimer’s disease,” Neurobiology of Aging, 2000.

[5] C. Stier et al., “Temporal autocorrelation is predictive of age: An extensive MEG time-series analysis,” PNAS, 2025.

[6] J. Lee et al., “Deep learning-based brain age prediction in normal aging and dementia,” Nature Aging, 2022.

Authors · CommentOpenReview ↗

Response to Reviewer 4VBD [3/3]

Response to W3: Representation Space Analysis

We thank the reviewer for drawing attention to this analysis. The t-SNE visualizations were placed near the end of the supplementary material to follow the order in which the appendices are referenced in the main text, rather than because of their perceived effectiveness. Nevertheless, we agree that their current placement may reduce the visibility of the representation space analysis. In the revised manuscript, we will present this analysis more prominently and complement the t-SNE visualizations with PCA and quantitative measurements.

We first note that chronological age is a continuous variable and is therefore not necessarily expected to form discrete clusters. A more appropriate question is whether age is systematically aligned with the global geometry of the learned representation. To examine this, we analyzed the principal structure of the embeddings on CamCAN, TUAB, and ADNI.

On CamCAN, the first principal component of Brain-OF Huge explains 90.6% of the embedding variance and is strongly correlated with chronological age (Pearson r=0.805r=0.805; Spearman ρ=0.772\rho=0.772). On TUAB, the first principal component explains 73.1% of the variance and independently separates normal and abnormal recordings with an AUC of 0.905. The corresponding effect is weaker but remains evident on ADNI, where the first component explains 49.5% of the variance and achieves an AUC of 0.786. A similar pattern is observed for Brain-OF Base, although with weaker age alignment on CamCAN (r=0.746r=0.746), consistent with the scaling trend reported in Appendix L.

These results indicate that the downstream target properties are strongly aligned with the leading global directions of the representation space. In particular, chronological age is not absent from the CamCAN embeddings, rather, it is strongly associated with their dominant direction of variation.

The apparent discrepancy with the t-SNE visualization arises because t-SNE primarily preserves local neighborhood relationships and does not reliably preserve global distances or continuous trajectories. Consequently, a smooth age-related gradient may be less visually apparent in t-SNE even when it is strongly represented along a global direction. We therefore regard PCA and the associated correlation/AUC measurements as more appropriate complementary evidence for this type of structure.

Response to W4: Rebalancing Methodological Detail and Empirical Analysis

We thank the reviewer for this suggestion. In the revised manuscript, we will move the modality importance analysis (Figure 3) and its key findings from Appendix D into Experiments Section. Further, we will also condense Section 4.2 to its essential description and relocate the more specialized technical details to the appendix.

Response to Q3: Multimodal Fusion Strategy

We thank the reviewer for raising this important concern. The serial application of ARNESS is not introduced only at inference time. During multimodal downstream fine-tuning, the complete serial fusion pipeline is optimized end-to-end, including both passes through ARNESS and the prediction head. Therefore, the second ARNESS pass is exposed during training to the latent representations produced by the first pass and is not out of distribution at inference.

We also explored alternative fusion strategies using Brain-OF Base. Serial ARNESS performs best on CamCAN and remains competitive on LEMON, while exhibiting lower variance than the alternative strategies. Naive concatenation performs poorly, whereas an additional cross-attention module introduces more parameters and may be more susceptible to overfitting on relatively small multimodal datasets. Overall, serial ARNESS provides the strongest balance between predictive performance and stability across the two benchmarks.

Fusion strategy CamCAN↓ LEMON↑
ARNESS 8.87±0.09 76.77±0.60
Concat 10.21±0.11 76.39±0.92
Cross-Attention 10.45±0.61 78.37±1.01

Response to Q4: Notation

Thank you for pointing this out. Here, CC denotes the number of tokens. We will explicitly define it in the revised manuscript.

Response to the Limitation Discussion

We thank the reviewer for raising this point. The manuscript includes a dedicated Limitations and Future Work section in Appendix Q. We agree that this discussion may not have been sufficiently visible, and we will add a clear reference to it in the main text of the revised manuscript.

Reviewer LiVBOpenReview ↗
Rating
5/6
Confidence
5/5
Quality
4/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper introduces a model that is jointly trained on fMRI, MEG, and EEG data. The model is trained using a self-supervised objective in which the model reconstructs a time series and frequency representation of a masked signal. The signal is masked by either removing temporal or spatial frequency bands. Many modern transformer innovations are included in the training, such as a perceiver backbone, differential attention, and sparse mixture of experts. Pretraining is done on 37 datasets. Evaluation on downstream tasks is done on 11 tasks. An ablation study finds that each modality is useful for improving performance.

Strengths and weaknesses

Strengths

  • Overall, this is a strong contribution. The presented model was trained on a large number of heterogenous datasets, which represents considerable effort and is a useful artifact for the community.
  • Many recent developments in foundation model training, e.g., differential attention are included in this model. And their inclusion is well motivated. For example, the attention weights discussed in 4.6 are only interpretable because of the use of differential attention.
  • Evaluation is thorough and carried out across an impressive number of downstream tasks
  • Ablation study is sound

Weaknesses

  • Novelty is perhaps limited by the fact that many foundation models for brain activity already exist. But this is not a major weakness, since this paper introduces a couple modifications to pretraining. But the authors should also cite BrainWave, which is another model than can handle multi modalities. It used to be called Brant. Also worth citing is DANCE that also uses a perceiver backbone.
  • Can the authors clarify if there is overlap between the datasets used during pretraining and during the finetuning on the downstream tasks? If there is, it would be good to do an experiment showing performance on datasets not seen during pretraining.
Questions

Major questions

  • Section 4.1: Is there overlap between the 37 datasets used for pretraining and the datasets used on the 11 evaluation tasks? How is performance on datasets and subjects that are never seen during pretraining time?

Minor Questions

  • Line 133: Does this mean that the spatial dimension is flattened? How are position embeddings handled? Line 175 says RoPE, but are any modifications made to handle the fact that both spatial and temporal position need to be represented?
  • Line 165. Just to be clear, the "splitting in half" happens along the feature dimension, not along the sequence dimension, correct? It might be worth clarifying that somewhere.
  • Line 167: I'm curious, why do you reparameterize λ\lambda like this? I read the original differential attention paper and I couldn't find a reason there either.
  • Section 3.2: I had a hard time understanding MTFM. To check my understanding. In particular, I had a tricky time reconciling it with line 128-137. Can I check my understanding? For FMRI, EEG, and MEG, the input is an N×TN\times T matrix. For FMRI, you take the FFT along the spatial dimension. For EEG and MEG, you take the FFT along the temporal dimension. Masking is performed. Then you take the IFFT to get back to an N×TN\times T matrix. Is this correct?
  • Line 212: Is there a reason to do FFT -> masking -> iFFT rather than using a time-frequency representation like STFT as an input?
  • Line 220: To check my understanding for FMRI, the self supervised task is to reproduce the spatial frequencies? And for EEG the task is to reconstruct the temporal frequencies?
  • Section 4.5: Is fusion ever learned during pre-training or only during the downstream task?
  • Lines 343-344: Why are temporal-parietal regions useful for brain-age prediction?

Small things

  • 186: typo: The nn should be a subscript
Limitations

Yes

Final justification

I still believe this paper is a good modeling advance. My concerns about generalization were answered adequately during the rebuttal. I would encourage the authors to include a few of the clarifications they provided during the rebuttal in the main text, particularly around position encoding.

Formatting concerns

NA

4 comments
Authors · CommentOpenReview ↗

Response to Reviewer LiVB [1/2]

We sincerely thank Reviewer LiVB for carefully reading our work, understanding its motivation, and providing a thoughtful assessment. Below, we provide a point-by-point response.

Response to W1: Related Work

We thank the reviewer for highlighting these relevant studies. We agree that BrainWave and DANCE should be discussed in the Related Work section. These studies are closely related to Brain-OF but differ in scope. We note that DANCE became publicly available after the submission of our manuscript and should therefore be regarded as relevant concurrent work rather than prior work. Nevertheless, we agree that it is important to discuss it in the revised manuscript.

BrainWave primarily focuses on electrical neural recordings, whereas Brain-OF jointly models cross-physics modalities spanning hemodynamic fMRI and electromagnetic EEG/MEG. DANCE focuses on asynchronous EEG event decoding rather than multimodal foundation model pretraining, although its use of Perceiver-based resampling is relevant to the architectural context of ARNESS. We will add both studies and clarify these distinctions in the revised manuscript.

Response to W2 & Q1: Dataset Overlap and Generalization to Unseen Data

We distinguish between dataset-level generalization, where the entire downstream dataset is absent from pretraining, and subject-level generalization, where a dataset contributes training subjects to pretraining but all downstream validation and test subjects are strictly excluded.

Among the nine datasets used for the 11 downstream tasks in the main paper and the two additional tasks in Appendix G, most are completely absent from the 37-dataset pretraining corpus and therefore provide evaluation on truly unseen datasets. Specifically, TUAB is derived from the larger TUEG corpus. To prevent leakage, we identify all subjects assigned to the TUAB test splits and remove their recordings from TUEG before pretraining. CamCAN and LEMON are valuable paired multimodal datasets, so we retain as much of them as possible: only subjects belonging to the downstream training split are included in pretraining, while all validation and test subjects are removed entirely from the pretraining corpus (Line 850). Since all splits are defined subject-wise, this setting ensures generalization to unseen subjects without any recording-level overlap during pretraining. We add a dataset-by-dataset table to make this explicit:

Dataset Pretraining Relation Train subjects in PT Val./test overlap Evaluation setting
SEED-V ✗ Independent ✗ ✗ Unseen dataset and subjects
CHB-MIT ✗ Independent ✗ ✗ Unseen dataset and subjects
TUAB △ Partial ✓ ✗ Unseen subjects
ADNI ✗ Independent ✗ ✗ Unseen dataset and subjects
ADHD-200 ✗ Independent ✗ ✗ Unseen dataset and subjects
CamCAN △ Partial ✓ ✗ Unseen subjects
LEMON △ Partial ✓ ✗ Unseen subjects
HAD ✗ Independent ✗ ✗ Unseen dataset and subjects
BOLD5000 ✗ Independent ✗ ✗ Unseen dataset and subjects

Response to Q2: Spatial and Temporal Positional Encoding

Yes, the channel/ROI axis and the temporal axis are flattened. For CC channels/ROIs and TT temporal segments, the input tokens are arranged in a fixed channel-major order

[x1,1,…,x1,T,  x2,1,…,x2,T,  …,  xC,1,…,xC,T],[x_{1,1},\ldots,x_{1,T},\; x_{2,1},\ldots,x_{2,T},\; \ldots,\; x_{C,1},\ldots,x_{C,T}],

so that the flattened index/position is i(c,t)=(c−1)T+ti(c,t)=(c-1)T+t. Under the fixed channel/ROI ordering within each dataset due to preprocessing, this mapping is bijective so each sequence position can be uniquely associated with a channel/ROI–time pair. Flattening therefore preserves the discrete channel and temporal indices, although it does not explicitly preserve anatomical distances or spatial topology. Specifically, tokens from the same channel/ROI are contiguous (Δi=Δt\Delta i=\Delta t) and tokens from different channels are separated by Δi=Δc⋅T+Δt\Delta i=\Delta c\cdot T+\Delta t. Thus, the relative offset seen by RoPE still carries the spatiotemporal ordering, but it does not explicitly factorize spatial and temporal coordinates.

Moreover, the spatial dimensions of EEG, MEG, and fMRI do not share a common regular two-dimensional grid. EEG and MEG use different sensor layouts, while fMRI is represented by anatomically defined ROIs. Their spatial resolutions and topologies also vary across datasets. An improved 2D RoPE would therefore require modality-specific spatial coordinate systems, which would weaken the modality-agnostic positional encoding in Brain-OF. After ARNESS resampling, latent tokens no longer correspond one-to-one to (channel, time) pairs, so a two-dimensional encoding is not well defined at this stage. 1D RoPE is the natural choice. Nonetheless, we agree that an axial or factorized positional encoding that separately models temporal position and modality-specific spatial structure is a promising extension.

Authors · CommentOpenReview ↗

Response to Reviewer LiVB [2/2]

Response to Q3: Clarification of Feature-Dimension Splitting

Yes, the tensor is split into two equal parts along the feature dimension rather than the sequence dimension. Specifically, for an embedding �0��0�, we obtain �1��1�, while the sequence length NN remains unchanged. We will clarify this in the revised manuscript.

Response to Q4: λ\lambda Reparameterization

The primary motivation is that the form of λ\lambda mirrors that of the softmax it multiplies. λ\lambda scales a softmax map whose unnormalized entries are exp⁡(q⋅k)\exp(q \cdot k); writing λ\lambda as exp⁡(λq⋅λk)\exp(\lambda_q \cdot \lambda_k) gives it exactly the same functional form. Its underlying parameters λq,λk∈Rd\lambda_q, \lambda_k \in \mathbb{R}^{d} live in the same dd-dimensional geometry as the query and key vectors, and receive gradients of the same structure. The difference of two positive exponentials allows the learnable correction to move in either direction relative to λinit\lambda_{\mathrm{init}}, whereas a single term of the form exp⁡(⋅)+λinit\exp(\cdot) + \lambda_{\mathrm{init}} could only ever push λ\lambda above its initial value. Since the four vectors are drawn independently from the same distribution, the two exponentials share the same expectation and cancel in expectation at initialization. Training therefore begins centered on the intended depth-dependent value λinit\lambda_{\mathrm{init}}, while λ\lambda remains free to move in either direction thereafter. The authors of DIFF Transformer have elaborated on this reasoning in a public discussion on Hugging Face.

Response to Q5 & Q7: Clarification of MTFM

The reviewer’s understanding is largely correct. For all modalities, the input is represented as an N×TN\times T matrix, where NN denotes the number of channels or ROIs and TT denotes the number of temporal samples or segments. For EEG and MEG, we apply the FFT along the temporal dimension, whereas for fMRI, we apply it along the ROI dimension. Frequency domain components are then masked, and an inverse FFT transforms the corrupted representation back to the original N×TN\times T matrix. We subsequently mask temporal segments and flatten the resulting matrix into the sequence described in Lines 128-137.

During self-supervised pretraining, the decoder output is reshaped into an N×TN\times T matrix. The model is then trained to reconstruct both the masked segments in the temporal domain and the corresponding components in the frequency domain. Consistent with the preceding transformation and masking procedure, the frequency domain targets correspond to temporal-frequency components for EEG and MEG, whereas for fMRI they are obtained by applying the FFT along the ROI axis.

Response to Q6: Justification for FFT

FFT is chosen to maintain a unified, modality-agnostic pretraining pipeline. STFT requires modality-dependent choices such as window length and hop size, which are difficult to share across EEG, MEG, and fMRI, especially because MTFM applies the transform along the temporal axis for EEG/MEG but along the ROI axis for fMRI.

In MTFM, the transform is used as a corruption mechanism rather than as a separate input. After masking frequency components and applying the inverse FFT, the sample retains its original N×TN \times T shape and can be processed by the same encoder. Full-signal FFT masking also creates a more global corruption, whereas overlapping STFT windows may introduce redundancy that makes reconstruction easier through neighboring windows.

Response to Q8: Clarification of Fusion

Multimodal fusion is performed only on downstream tasks and is not explicitly included in the pretraining stage. During pretraining, Brain-OF learns a unified representation space across fMRI, EEG, and MEG through joint unimodal pretraining. The learned modality-general representations are then fused during downstream multimodal tasks.

Response to Q9: Relevance of Temporoparietal Regions to Brain-Age Prediction

Temporal and parietal regions exhibit age-related structural and functional changes that can provide informative markers for brain aging. Prior brain-age research has also reported age-dependent regional importance, including prominent age-related changes in the temporal and parietal regions [1]. These findings are consistent with the temporoparietal patterns in Brain-OF. We emphasize that this convergence establishes neurobiological plausibility rather than validating the explanation itself. We will clarify this interpretation and strengthen Section 4.6.

[1] J. Lee et al., “Deep learning-based brain age prediction in normal aging and dementia,” Nature Aging, 2022.

Response to Typo

Thank you for pointing this out. We will correct the notation in the revised manuscript.

Reviewer LiVB · CommentOpenReview ↗

Acknowledgement of Author Response

I thank the authors for their thorough response. My concerns regarding generalization have been addressed to satisfaction. I also thank the authors for taking the time to clear up the motivation/methods questions that I had. I will continue to recommend acceptance.

Authors · CommentOpenReview ↗

Appreciation for Reviewer LiVB's Follow-up

We sincerely thank the reviewer for the follow-up and continued positive assessment. We greatly appreciate the reviewer’s recommendation for acceptance.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…