[ICLR 2026] CodeBrain: Bridging Decoupled Tokenizer and Multi-Scale Architecture for EEG Foundation Models
This repository is the official implementation of the ICLR 2026 paper CodeBrain: Bridging Decoupled Tokenizer and Multi-Scale Architecture for EEG Foundation Models.
CodeBrain is a two-stage EEG foundation model designed to learn generalizable decoupled and multi-scale representations from large-scale EEG data. It consists of:
- Stage 1: TFDual-Tokenizer for decoupled time-frequency tokenization
- Stage 2: EEGSSM encoder trained via masked self-supervised learning
After entering the CodeBrain directory, please run the following commands to ensure correct module referencing:
python -m Pretrain.pretrain_TFDual
python -m Pretrain.pretrain_EEGSSM
To start fine-tuning, run:
python -m Downstream.finetune_main
- Please make sure all required dependencies are installed.
- Paths and configurations can be adjusted in the respective training scripts.
We gratefully acknowledge the authors of LaBraM, CBraMod and SGConv for their open-source implementation.
If you find this work helpful, please cite:
@inproceedings{ma2026codebrain,
title={Codebrain: Bridging decoupled tokenizer and multi-scale architecture for eeg foundation model},
author={Ma, Jingying and Wu, Feng and Lin, Qika and Xing, Yucheng and Liu, Chenyu and Jia, Ziyu and Feng, Mengling},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026}
}

