Large Brain Model for Learning Generic Representations with Tremendous EEG Data in BCI

Weibang Jiang, Liming Zhao, Bao-liang Lu

Abstract

The success of Large Language Models (LLMs) has inspired efforts to develop foundation models for electroencephalogram (EEG) data. However, EEG analysis faces significant challenges, including hardware heterogeneity, low signal-to-noise ratios, and data fragmentation. We present LaBraM (Large Brain Model), a Transformer-based foundation model pre-trained on a massive 2,500-hour EEG corpus. By treating individual brain channels as patches and employing a novel neural tokenizer that predicts spectral features, LaBraM learns generic representations that achieve state-of-the-art performance across diverse Brain-Computer Interface (BCI) tasks, including seizure detection and emotion recognition.

Introduction

While standardized formats exist for text and images, EEG data remains highly variable across different electrode configurations and sampling rates. Current deep learning models for BCI are often task-specific, limiting their scalability and generalizability. The field faces three major hurdles: data fragmentation across labs, hardware heterogeneity (e.g., 64-channel medical caps vs. 4-channel wearables), and a low signal-to-noise ratio (SNR) due to artifacts like muscle movements. LaBraM addresses these issues by introducing a unified framework capable of processing heterogeneous EEG data at scale.

Methodology

LaBraM adopts a Transformer-based architecture designed to handle the inherent complexities of neural signals.

EEG Channel Patching

To accommodate varying electrode counts, LaBraM segments multi-channel EEG signals into "channel patches." Each patch corresponds to a 1-second window from a single electrode. This approach allows the model to treat any number of channels as a sequence of tokens, effectively decoupling the architecture from specific hardware layouts. By adding learnable spatial embeddings that correspond to standard electrode positions (the 10-20 system), the model learns the topography of the brain, helping it generalize across different headset layouts.

Neural Tokenizer and Masked Modeling

Direct reconstruction of raw EEG time-series is often hindered by noise. LaBraM utilizes a Vector-Quantized (VQ) neural tokenizer that maps EEG patches into a discrete vocabulary of neural codes. The tokenizer is specifically trained to predict the Fourier spectrum (amplitude and phase), providing a semantically rich representation that is more stable than raw time-domain signals. Following a masked modeling objective, the Transformer is pre-trained to predict missing neural tokens based on spatial and temporal context.

The two-stage training process: first training the neural tokenizer to predict spectral features, then pre-training the Transformer via masked modeling.

Experimental Results

LaBraM was pre-trained on approximately 20 datasets, totaling over 2,500 hours of EEG recordings. Evaluation was conducted on benchmarks such as TUAB (abnormal detection), TUEV (event classification), SEED-V (emotion recognition), and MoBI (gait prediction).

Scaling Laws in Neural Modeling

A key finding is that scaling laws observed in LLMs also apply to EEG foundation models. The authors scaled LaBraM from 5.8M (Base) to 369M (Huge) parameters. As shown in the pre-training curves, the larger models consistently achieve higher accuracy and lower loss, suggesting that performance has not yet hit a ceiling.

Pre-training loss and masked EEG modeling accuracy across different model scales, demonstrating that larger models achieve superior performance.

Performance Benchmarks

LaBraM-Huge established new state-of-the-art (SOTA) results across the board. In event classification (TUEV), it achieved a balanced accuracy of 0.6616, a significant jump over the previous SOTA (BIOT) at 0.5281. In abnormal detection (TUAB), it reached an AUROC of 0.9162. Notably, the model demonstrated strong generalization capabilities even when test data was completely excluded from the pre-training set, proving it learns universal brain patterns rather than specific dataset artifacts.

Conclusion

LaBraM represents a significant step toward universal foundation models for the brain. By leveraging large-scale data and spectral-based tokenization, it overcomes traditional barriers in BCI research. While 369M parameters is a record for the field, it remains small compared to modern LLMs. Future work will explore multi-modal integration and parameter-efficient fine-tuning to further enhance the model's utility in clinical and research settings.

Summary updated

BibTeX
@inproceedings{jiang2024large,
  author = {Weibang Jiang and Liming Zhao and Bao-liang Lu},
  title = {{Large Brain Model for Learning Generic Representations with Tremendous EEG Data in BCI}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=QzTpTRVtrP},
}
Figure