Manuscript Offprint
arXiv:2610.01124CortexBridge: Cortical Alignment of EEG Montages for Foundation Models
Abstract
Electroencephalography (EEG) foundation models are often pretrained with a fixed channel vocabulary or a limited set of montages, making transfer difficult when electrode layouts change. We propose CortexBridge, a lightweight adapter that combines EEG features with electrode and atlas coordinates to map arbitrary montages into a shared cortical latent space. Evaluated with three frozen foundation models on five brain-computer interface (BCI) datasets from the Mother of All BCI Benchmarks (MOABB), CortexBridge improves performance in 13 of 15 evaluations. The gains in balanced accuracy average 0.80% for EEGPT, 0.70% for LaBraM, and 3.26% for CBraMod, with a maximum gain of 13.02% on 12-class steady-state visual evoked potential (SSVEP) classification. Visualizations of the learned atlas representations reveal task-dependent spatial patterns, with SSVEP showing a more concentrated representation in the Yeo Visual network than auditory P300. These results establish cortical alignment as a learnable and anatomically grounded routing mechanism from heterogeneous EEG montages to pretrained foundation models.
1 Introduction
Recent advances in EEG representation learning have shifted the field from task-specific decoders toward self-supervised pretraining and large-scale foundation models [8, 1, 12, 7, 19, 20]. Despite this shift, most models still represent EEG in scalp-electrode space. Their spatial interfaces are therefore tied to the acquisition montage rather than to a shared anatomical representation.
A key challenge is montage dependence: electrode number and placement vary across recordings, while many pretrained models rely on fixed or predefined channel interfaces [7, 19, 20]. Coordinate-based interfaces relax channel identity constraints but still operate in scalp space [4, 3, 2]. Classical source imaging maps scalp measurements to anatomy, but relies on explicit forward and inverse modeling [11, 14]. This motivates cortical alignment as a shared representation across heterogeneous montages for foundation models, distinct from biophysical source estimation.
We propose CortexBridge, a lightweight adapter that combines EEG features with electrode and atlas coordinates to map arbitrary montages into a shared cortical latent space. CortexBridge learns sparse electrode-to-ROI routing, models multi-scale interactions among cortical regions, and injects the resulting representation into a frozen foundation model through a residual interface. Evaluated with three frozen foundation models on five MOABB datasets, CortexBridge improves performance in 13 of 15 evaluations.
Our contributions are:
• We introduce cortical alignment as a learnable interface for adapting heterogeneous EEG montages to pretrained foundation models.
Preprint.

Figure 1: Common interfaces for heterogeneous EEG montages. Fixed-layout models assume a consistent channel arrangement, vocabulary-driven models rely on predefined channel identities, and coordinate-driven models accommodate unseen electrode locations but remain in scalp space. CortexBridge instead maps arbitrary montages into a shared atlas-indexed cortical space.
• We develop a lightweight adapter that combines signal content with electrode and atlas geometry for sparse region-of-interest (ROI) routing.
• We demonstrate consistent gains across three frozen foundation models, five public datasets, and three EEG paradigms, while learned atlas representations reveal task-dependent spatial organization.
Montage interfaces. Existing models handle electrode layouts in several ways (Figure 1). Fixed-layout methods assume consistent channel slots across recordings, while vocabulary-driven methods identify electrodes from a predefined channel set. Coordinate-driven models such as NeurIPT and REVE instead encode electrode positions directly and can therefore accommodate previously unseen locations [3, 2]. However, all three approaches ultimately retain a scalp-indexed representation. CortexBridge differs by mapping each montage to the same atlas-indexed cortical space before interfacing with the pretrained backbone.
Cortical representations. Channel selection and interpolation can reconcile input dimensions across montages but remain entirely in sensor space. EEG source imaging instead estimates cortical activity using a forward model and regularized inverse operator [11, 14]. CortexBridge serves a different purpose: it uses cortical anatomy as a representation prior and learns electrode-to-ROI routing directly for downstream adaptation. The Schaefer atlas and Yeo networks provide a common cortical organization [16, 22], while the resulting representation remains a learned latent space rather than a biophysical source estimate.
3 Method
3.1 Coordinate-aware cortical transport
Let contain EEG trials, electrodes, and samples. As illustrated in Figure 2, CortexBridge maps the montage-specific channel dimension to a fixed set of atlas ROIs.

Figure 2: Overview of CortexBridge. The adapter maps montage-specific EEG to atlas ROIs, models cortical interactions in a latent space, and projects the result to the input of a frozen foundation model.
Electrode coordinates are , and atlas centroids are . Each electrode is summarized by its temporal mean, standard deviation, root mean square (RMS), line length, and four spectral power ratios. A small network combines these statistics with an embedding of , while the same position network embeds . Multi-head cross-attention then produces
where h indexes attention heads and is the dimension of each head. Electrode and atlas coordinates are independently centered and divided by their mean pairwise distance. The second term provides a learned geometric bias rather than a fixed inverse solution.
For each head, we apply alternating row and column normalizations to the exponentiated logits, retain the largest entries for each ROI, and normalize each row. Averaging the head-specific matrices gives . Because every is nonnegative and row stochastic, is also nonnegative and row stochastic. The atlas signals are
Each ROI signal is therefore a convex mixture of electrode signals. A column-balance penalty discourages the routing from relying on only a small subset of electrodes.
3.2 Deeper cortical latent space
A single atlas projection does not model interactions among cortical regions. We construct row-normalized Gaussian kernels from distances between atlas centroids at three spatial scales. Learned weights combine the resulting short-, medium-, and long-range diffusion:
Learned latent queries define a row-stochastic matrix that pools the ROIs into latent channels. A sigmoid gate combines the direct and diffused representations:
This separates atlas alignment from the representation width required by a foundation model. We use , , four heads, and in all experiments.
3.3 Foundation model adaptation
The raw EEG and cortical representation are projected to the channel width required by each backbone. The resulting foundation-model input is
Table 1: Balanced accuracy (%) under subject-grouped three-fold cross-validation. Blue cells use CortexBridge; arrows show the change from the corresponding raw interface. Bold marks the best result in each row.
| Dataset | EEGPT | CBraMod | LaBraM | |||
|---|---|---|---|---|---|---|
| Raw | +CortexBridge | Raw | +CortexBridge | Raw | +CortexBridge | |
| BNCI2014-008 | 55.49 | 54.53 ↓0.96 | 64.92 | 65.68 ↑0.76 | 50.43 | 52.16 ↑1.72 |
| BNCI2015-003 | 55.84 | 56.57 ↑0.72 | 57.43 | 58.18 ↑0.75 | 50.62 | 51.48 ↑0.86 |
| Nakanishi2015 | 61.67 | 65.06 ↑3.40 | 56.48 | 69.51 ↑13.02 | 15.56 | 16.23 ↑0.68 |
| Liu2024 | 51.88 | 52.50 ↑0.62 | 54.35 | 55.20 ↑0.85 | 49.56 | 49.89 ↑0.33 |
| Huebner2017 | 83.74 | 83.94 ↑0.20 | 78.11 | 79.00 ↑0.89 | 51.63 | 51.52 ↓0.11 |
| Average | 61.72 | 62.52 ↑0.80 | 62.26 | 65.51 ↑3.26 | 43.56 | 44.26 ↑0.70 |
where and are projections and is a channel-wise residual gate. We initialize to zero, giving the raw and cortical models the same input when the cortical branch is introduced. The same interface is used for LaBraM, EEGPT, and CBraMod. We freeze each backbone and optimize the projections, CortexBridge, and the classification head.
Training combines the task loss with a column-balance term that discourages a small channel subset from receiving all routing mass. The balance weight is fixed across datasets. Top- selection already limits entropy, so no additional entropy penalty is used. Full objective and implementation details are provided in Appendix B.
4 Experiments
Datasets. We evaluate on five public datasets from MOABB [6], spanning motor imagery, P300, and SSVEP paradigms. Liu2024 contains left- and right-hand motor imagery from 50 acute stroke patients [10]. BNCI2014-008 contains visual P300 data from eight participants with amyotrophic lateral sclerosis [15], while BNCI2015-003 uses an auditory P300 spelling task [17]. Nakanishi2015 is a 12-class SSVEP dataset [13], and Huebner2017 contains visual P300 spelling data [5]. None of these datasets appears in the published pretraining sets of EEGPT, LaBraM, or CBraMod [7, 19, 20].
Preprocessing and protocol. We use the event-specific windows defined by MOABB, apply a 0.5–45 Hz band-pass filter, and resample all datasets to 200 Hz. Additional model-specific resampling and padding are applied when required by each backbone's patch structure. Normalization statistics are computed from training subjects only. We use subject-grouped three-fold cross-validation, with test subjects held out from both training and validation. Balanced accuracy is reported for all experiments. Dataset details are provided in Appendix A.
Baselines and training. We evaluate EEGPT, CBraMod, and LaBraM on all five datasets. The raw baseline uses a learned channel projection, while CortexBridge augments this interface with the cortical path. Paired runs use identical subject folds, initialization, classifier, and training schedule. CortexBridge adds approximately 0.10M trainable parameters. Full training and implementation details are provided in Appendix B.
5 Results and Discussion
Transfer across foundation models. CortexBridge improves 13 of the 15 dataset and model pairs in Table 1. Average balanced accuracy increases by for EEGPT, for CBraMod, and for LaBraM. CBraMod improves on all five datasets, while EEGPT and LaBraM improve on four. LaBraM gives the lowest absolute accuracy, which may reflect the difficulty of transferring its channel-wise tokenization and predefined channel interface to unseen montages [7]. Nevertheless, CortexBridge improves four of the five LaBraM results, showing that cortical alignment remains beneficial under this stronger interface constraint.
Left lateral
Left medial
Right lateral
Right medial




1.0
0.8
0.6
0.4
0.2
Normalized ROI output RMS
0.0
(a) BNCI2015-003 auditory P300.
Left lateral
Left medial
Right lateral
Right medial




1.0
0.8
0.6
0.4
0.2
Normalized ROI output RMS
0.0
(b) Nakanishi2015 SSVEP.
Figure 3: Atlas representations learned by CBraMod with CortexBridge. ROI-output RMS is normalized within each task using the 5th and 98th percentiles and clipped to [0, 1]; colors indicate relative spatial distributions.
Transfer across EEG paradigms. The largest gain occurs on Nakanishi2015, where CortexBridge improves CBraMod by 13.02% and EEGPT by 3.40% on 12-class SSVEP. This result suggests that mapping sparse scalp measurements to a structured cortical representation is particularly useful for its eight-channel montage. All three models improve on BNCI2015-003 auditory P300, and smaller gains extend to Liu2024 motor imagery. The two decreases are limited to 0.96% for EEGPT on BNCI2014-008 and 0.11% for LaBraM on Huebner2017. The gains across motor imagery, P300, and SSVEP show that the learned routing is not limited to one EEG paradigm.
Task-dependent cortical representations. Figure 3 compares atlas representations learned from two eight-channel datasets using the same backbone and adapter. SSVEP is elicited by periodic visual stimulation, and its representation is more concentrated in regions associated with the Yeo Visual network. This network captures the locally coupled organization of visual cortex in the seven-network parcellation [16, 22]. This correspondence suggests that CortexBridge retains task-relevant cortical organization. The maps show learned ROI representations rather than biophysical source estimates.
6 Conclusion
We introduced CortexBridge, a lightweight adapter that maps heterogeneous scalp EEG montages to an atlas-indexed cortical representation through signal- and coordinate-aware electrode-to-ROI routing. Across EEGPT, LaBraM, and CBraMod, CortexBridge improves 13 of 15 evaluations on five unseen datasets, with a maximum gain of 13.02% on 12-class SSVEP. The learned ROI representations retain task-dependent spatial organization, with SSVEP concentrated in the Yeo Visual network. These results show that CortexBridge improves adaptation to unseen montages and provides a common, anatomically indexed interface across EEG foundation models.
References
[1] Hsiang-Yun Sherry Chien, Hanlin Goh, Christopher M. Sandino, and Joseph Y. Cheng. MAEEG: Masked auto-encoder for EEG representation learning. arXiv preprint arXiv:2211.02625, 2022. NeurIPS 2022 Workshop on Learning from Time Series for Health.
[2] Yassine El Ouahidi, Jonathan Lys, Philipp Thölke, Nicolas Farrugia, Bastien Pasdeloup, Vincent Gripon, Karim Jerbi, and Giulia Lioi. REVE: A foundation model for EEG—adapting to any setup with large-scale pretraining on 25,000 subjects. In Advances in Neural Information Processing Systems, 2025.
[3] Zitao Fang, Chenxuan Li, Hongting Zhou, Shuyang Yu, Guodong Du, Ashwaq Qasem, Yang Lu, Jing Li, Junsong Zhang, and Sim Kuan Goh. NeurIPT: Foundation model for neural interfaces. In Advances in Neural Information Processing Systems, 2025. arXiv:2510.16548.
[4] Jiazhen Hong, Geoffrey Mackellar, and Soheila Ghane. Samba: Toward a long-context EEG foundation model via spatial embedding and differential mamba. arXiv preprint arXiv:2511.18571, 2025.
[5] David Hübner, Thibault Verhoeven, Konstantin Schmid, Klaus-Robert Müller, Michael Tangermann, and Pieter-Jan Kindermans. Learning from label proportions in brain-computer interfaces: Online unsupervised learning with guarantees. PLOS ONE, 12(4):e0175856, 2017. doi:10.1371/journal.pone.0175856.
[6] Vinay Jayaram and Alexandre Barachant. MOABB: Trustworthy algorithm benchmarking for BCIs. Journal of Neural Engineering, 15(6):066011, 2018. doi: 10.1088/1741-2552/aadea0.
[7] Wei-Bang Jiang, Li-Ming Zhao, and Bao-Liang Lu. Large brain model for learning generic representations with tremendous EEG data in BCI. In International Conference on Learning Representations, 2024.
[8] Demetres Kostas, Stephane Aroca-Ouellette, and Frank Rudzicz. BENDR: Using transformers and a contrastive self-supervised learning task to learn from massive amounts of EEG data. Frontiers in Human Neuroscience, 15:653659, 2021. doi: 10.3389/fnhum.2021.653659.
[9] Vernon J. Lawhern, Amelia J. Solon, Nicholas R. Waytowich, Stephen M. Gordon, Chou P. Hung, and Brent J. Lance. EEGNet: A compact convolutional neural network for EEG-based brain–computer interfaces. Journal of Neural Engineering, 15(5):056013, 2018. doi:10.1088/1741-2552/aace8c.
[10] Haijie Liu, Penghu Wei, Haochong Wang, Xiaodong Lv, Wei Duan, Meijie Li, Yan Zhao, Qingmei Wang, Xinyuan Chen, Gaige Shi, Bo Han, and Junwei Hao. An EEG motor imagery dataset for brain computer interface in acute stroke patients. Scientific Data, 11:131, 2024. doi:10.1038/s41597-023-02787-8.
[11] Christoph M. Michel and Denis Brunet. EEG source imaging: A practical review of the analysis steps. Frontiers in Neurology, 10:325, 2019. doi: 10.3389/fneur.2019.00325.
[12] Navid Mohammadi Foumani, Geoffrey Mackellar, Soheila Ghane, Saad Irtza, Nam Nguyen, and Mahsa Salehi. EEG2Rep: Enhancing self-supervised EEG representation through informative masked inputs. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 5544–5555, 2024. doi: 10.1145/3637528.3671600.
[13] Masaki Nakanishi, Yijun Wang, Yu-Te Wang, and Tzyy-Ping Jung. A comparison study of canonical correlation analysis based methods for detecting steady-state visual evoked potentials. PLOS ONE, 10(10):e0140703, 2015. doi: 10.1371/journal.pone.0140703.
[14] Roberto D. Pascual-Marqui. Standardized low-resolution brain electromagnetic tomography (sLORETA): Technical details. Methods and Findings in Experimental and Clinical Pharmacology, 24(Suppl D):5–12, 2002.
[15] Angela Riccio, Luca Simione, Francesca Schettini, Alessia Pizzimenti, Maurizio Inghilleri, Marta Olivetti Belardinelli, Donatella Mattia, and Febo Cincotti. Attention and P300-based BCI performance in people with amyotrophic lateral sclerosis. Frontiers in Human Neuroscience, 7:732, 2013. doi: 10.3389/fnhum.2013.00732.
[16] Alexander Schaefer, Ru Kong, Evan M. Gordon, Timothy O. Laumann, Xi-Nian Zuo, Avram J. Holmes, Simon B. Eickhoff, and B. T. Thomas Yeo. Local-global parcellation of the human cerebral cortex from intrinsic functional connectivity MRI. Cerebral Cortex, 28(9):3095–3114, 2018. doi: 10.1093/cercor/bhx179.
[17] Martijn Schreuder, Thomas Rost, and Michael Tangermann. Listen, you are writing! speeding up online spelling with a dynamic auditory BCI. Frontiers in Neuroscience, 5:112, 2011. doi: 10.3389/fnins.2011.00112.
[18] Yonghao Song, Qingqing Zheng, Bingchuan Liu, and Xiaorong Gao. EEG conformer: Convolutional transformer for EEG decoding and visualization. IEEE Transactions on Neural Systems and Rehabilitation Engineering, 31:710–719, 2022. doi: 10.1109/TNSRE.2022.3230250.
[19] Guangyu Wang, Wenchao Liu, Yuhong He, Cong Xu, Lin Ma, and Haifeng Li. EEGPT: Pretrained transformer for universal and reliable representation of EEG signals. In Advances in Neural Information Processing Systems, volume 37, 2024. doi: 10.52202/079017-1239.
[20] Jiquan Wang, Sha Zhao, Zhiling Luo, Yangxuan Zhou, Haiteng Jiang, Shijian Li, Tao Li, and Gang Pan. CBraMod: A criss-cross brain foundation model for EEG decoding. In International Conference on Learning Representations, 2025.
[21] Chaoqi Yang, M. Brandon Westover, and Jimeng Sun. BIOT: Biosignal transformer for cross-data learning in the wild. In Advances in Neural Information Processing Systems, volume 36, 2023.
[22] B. T. Thomas Yeo, Fenna M. Krienen, Jorge Sepulcre, Mert R. Sabuncu, Danial Lashkari, Marisa Hollinshead, Joshua L. Roffman, Jordan W. Smoller, Lilla Zöllei, Jonathan R. Polimeni, Bruce Fischl, Hesheng Liu, and Randy L. Buckner. The organization of the human cerebral cortex estimated by intrinsic functional connectivity. Journal of Neurophysiology, 106(3):1125–1165, 2011. doi: 10.1152/jn.00338.2011.
[23] Ke Yi, Yansen Wang, Kan Ren, and Dongsheng Li. Learning topology-agnostic EEG representations with geometry-aware modeling. In Advances in Neural Information Processing Systems, volume 36, pages 53875–53891, 2023.
A Dataset details
| Dataset | Subjects | Ch. | Classes | Native Hz | Task |
|---|---|---|---|---|---|
| Liu2024 | 50 | 29 | 2 | 500 | Motor imagery |
| BNCI2014-008 | 8 | 8 | 2 | 256 | P300, amyotrophic lateral sclerosis |
| BNCI2015-003 | 10 | 8 | 2 | 256 | Auditory P300 |
| Nakanishi2015 | 9 | 8 | 12 | 256 | SSVEP |
| Huebner2017 | 13 | 31 | 2 | 1000 | Visual P300 |
Liu2024. This dataset contains left- and right-hand grip motor imagery from 50 acute stroke patients. MOABB provides 29 EEG channels recorded at , with 20 trials per class and four-second task epochs [10].
BNCI2014-008. Eight participants with amyotrophic lateral sclerosis performed a visual row-column P300 spelling task. The binary target and non-target responses were recorded from eight channels at 256 Hz [15].
BNCI2015-003. Ten participants used an auditory P300 speller based on spatial auditory cues. The dataset contains binary target and non-target responses from eight channels sampled at 256 Hz [17].
Nakanishi2015. The MOABB release contains nine participants viewing 12 joint frequency-phase modulated SSVEP targets. Each class has 15 trials recorded from eight channels at 256 Hz [13].
Huebner2017. Thirteen participants performed a visual matrix-speller task. MOABB provides binary target and non-target responses from 31 channels recorded at 1000 Hz [5].
B Implementation details
We use 300 Schaefer atlas regions, 64 latent channels, four attention heads, four alternating normalization steps, and top-k routing with k = 8. The objective is
For each fold, we first train the raw projection and classification head for two epochs. The resulting state initializes both the raw and CortexBridge conditions, which are then trained for up to five epochs. We use AdamW with weight decay , a learning rate of for shared parameters, and for the cortical path. The pretrained encoder remains frozen. Validation subjects are selected only from the training fold, and model selection uses validation balanced accuracy. All experiments use seed 2026.
C Limitations
Our evaluation covers five public datasets, three EEG paradigms, and three foundation models. Future work will extend CortexBridge to more recording systems, participant populations, and model architectures. Evaluation on larger mixed-montage collections and different atlas resolutions will further establish its generality. Theoretical analysis of the learned cortical mapping is another direction for future work.