CSBrain
An EEG foundation model that alternates cross-scale tokenization with structured sparse attention.
Neuroscience signals · 2,645 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Neuroscience signals
- Parameters
- 8.9M
- Operations
- 2,645
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- NeurIPS 2025
- Cited by
- 7 (as of 27 October 2026)
- Authors
- Yuchen Zhou, Jiamin Wu, Zichen Ren and others
- Source
- GitHub: yuchen2199/CSBrain
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15186
- Graph hash
- 40d384cfc1254dbd7f291f705877b6ad31a7a1d5ccf2de60e4209817529ecb2f
- Skeleton hash
- 04de4468c920af00464ec3095a975baee580ce60f949d6ad607bb0d145a3c036
- Architecture hash
- e2d945c111285e7bef7c91233f7a1d335359b9b5b75f80db1d5a3811b184c4b4
- Diagram SHA-256
- 8797bac427cc0392d7b74a7295b0cc8678e603b1e03010343996ac5a50a5d9b8
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
CSBrain is a foundation model for decoding electroencephalography (EEG) signals. The paper argues that earlier EEG foundation models adopt a dense modeling approach that ignores scale, inherited from NLP and vision. EEG task patterns, it notes, range from short bursts to slow rhythms and from localized cortical responses to distributed interactions.
CSBrain alternately stacks two components. Cross-scale Spatiotemporal Tokenization (CST) aggregates multi-scale features from localized temporal windows and anatomical brain regions into compact scale-aware tokens. Structured Sparse Attention (SSA) captures dependencies across windows and across regions while removing spurious correlations.
The model is pretrained with masked autoencoding on unlabeled EEG signals. The paper reports experiments on 11 EEG tasks across 16 datasets in which CSBrain outperformed task-specific and foundation model baselines. The repository provides fine-tuning scripts for the 16 datasets.
Key idea. CSBrain builds cross-scale structure into an EEG foundation model by alternating scale-aware tokenization with structured sparse attention.
- csbrain
- cross-scale spatiotemporal brain foundation model
- eeg foundation model
- eeg decoding
- brain foundation model
- cross-scale spatiotemporal tokenization
- structured sparse attention
- emotion recognition
- motor imagery
- seizure detection
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhou2025csbraincrossscalespatiotemporalbrain,
title={CSBrain: A Cross-scale Spatiotemporal Brain Foundation Model for EEG Decoding},
author={Yuchen Zhou and Jiamin Wu and Zichen Ren and Zhouheng Yao and Weiheng Lu and Kunyu Peng and Qihao Zheng and Chunfeng Song and Wanli Ouyang and Chao Gou},
year={2025},
eprint={2506.23075},
archivePrefix={arXiv},
primaryClass={cs.HC},
url={https://arxiv.org/abs/2506.23075},
}