Skip to content
jingyingma01Public

About

[ICLR'26] CodeBrain: Bridging Decoupled Tokenizer and Multi-Scale Architecture for EEG Foundation Models

Resources

Stars

31 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

This repository is the official implementation of the ICLR 2026 paper CodeBrain: Bridging Decoupled Tokenizer and Multi-Scale Architecture for EEG Foundation Models.

Introduction

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

Methodology

Visualization

Getting Started

After entering the CodeBrain directory, please run the following commands to ensure correct module referencing:

Stage 1: Pretrain TFDual-Tokenizer

python -m Pretrain.pretrain_TFDual

Stage 2: Pretrain EEGSSM Encoder

python -m Pretrain.pretrain_EEGSSM

Fine-tuning on Downstream Tasks

To start fine-tuning, run:

python -m Downstream.finetune_main

Notes

  • Please make sure all required dependencies are installed.
  • Paths and configurations can be adjusted in the respective training scripts.

Acknowledgement

We gratefully acknowledge the authors of LaBraM, CBraMod and SGConv for their open-source implementation.

Reference

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}
}

About

[ICLR'26] CodeBrain: Bridging Decoupled Tokenizer and Multi-Scale Architecture for EEG Foundation Models

Resources

Stars

31 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages