NeuroLM (neural language model for EEG)
A GPT-2 based language model that reads tokenized EEG and handles several EEG tasks through instructions.
Neuroscience signals · 619 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
- 255.1M
- Operations
- 619
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2025
- Cited by
- 8 (as of 24 October 2026)
- Authors
- Wei-Bang Jiang, Yansen Wang, Bao-Liang Lu, Dongsheng Li
- Source
- GitHub: 935963004/NeuroLM
- License
- MIT
- 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
- m18879
- Graph hash
- 8e22d234028473b881c34bf4ee63cae86709485cb40afe78a8b54ff5adb06196
- Skeleton hash
- b07d5580c505558fb7c8b628d0508ae974a3584a3d2144f6d6e5e8cbc5c626db
- Architecture hash
- 00ed29322e0163000655f993bcec124068622a52d25f79479c100941ef1185fa
- Diagram SHA-256
- 3de99897a45be354672a20c64fa55b8bfb9eca4195a3c7424aedd3a2a5c19afc
- 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
NeuroLM is a multi-task foundation model for EEG that hands the signals to a large language model, treating them as a foreign language. The motivation is that earlier pre-trained EEG models often need full fine-tuning on each downstream task, which the paper says limits their versatility and usability.
Training has three stages. First, a neural tokenizer is trained with vector-quantized temporal-frequency prediction to encode continuous EEG into discrete codes, with adversarial training used to align the EEG and text spaces. Next, the tokenizer's VQ encoder is frozen and its embeddings become the input to the language model. The language model is then pre-trained with multi-channel autoregression, which mimics autoregressive language modeling but is tailored to multi-channel EEG. Finally, multi-task instruction tuning adapts the model to downstream tasks.
The base language model is GPT-2. The paper describes three sizes, NeuroLM-B, NeuroLM-L and NeuroLM-XL, and reports 254M, 500M and 1696M parameters for them, counting the VQ encoder. It evaluates on six tasks: abnormal detection, event type classification, emotion recognition, sleep stage classification, cognitive workload prediction and slowing type classification. The authors caution that comparing NeuroLM directly with single-task baselines is not entirely fair, because those baselines are trained and tested on individual datasets.
Key idea. NeuroLM treats EEG signals as a foreign language for a large language model and unifies diverse EEG tasks within a single model through instruction tuning.
- NeuroLM
- NeuroLM-B
- NeuroLM-L
- NeuroLM-XL
- EEG foundation model
- EEG language model
- EEG
- brain-computer interface
- neural tokenizer
- multi-task instruction tuning
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{jiang2025neurolmuniversalmultitaskfoundation,
title={NeuroLM: A Universal Multi-task Foundation Model for Bridging the Gap between Language and EEG Signals},
author={Wei-Bang Jiang and Yansen Wang and Bao-Liang Lu and Dongsheng Li},
year={2025},
eprint={2409.00101},
archivePrefix={arXiv},
primaryClass={eess.SP},
url={https://arxiv.org/abs/2409.00101},
}