cs.LGOct 21, 2026

BrainCodes: A Lightweight EEG Foundation Model over Discrete Neural Codes

Authors: Kleanthis Avramidis, Ivan Tashev, Dimitra Emmanouilidou

Organizations: Signal Analysis and Interpretation Lab, University of Southern California, Los Angeles, CA 90007, USA · Microsoft Research, Redmond, WA, USA

Abstract

Recent electroencephalography (EEG) foundation models increasingly emphasize model scale, potentially limiting their deployment on resource-constrained devices and in everyday environments. We argue that transferable EEG features can instead be learned with a compact architecture and introduce BrainCodes, a lightweight foundation model pretrained through self-supervised learning on more than 800 hours of recordings from over 1,000 participants. Our architecture combines a quantization-based neural tokenizer with a spatiotemporal encoder that supports arbitrary electrode configurations. The pretraining objective explicitly encourages representations that capture spatial connectivity through channel positional encoding, and sensitivity to narrowband neural oscillations through an auxiliary training objective. Our model matches or surpasses the state of the art across diverse neurophysiological monitoring tasks, including sleep staging, attention assessment, and cognitive load estimation. BrainCodes transfers effectively to low-resource wearable devices while using up to 97% fewer trainable parameters than comparable architectures. Beyond predictive accuracy, our evaluation framework characterizes the geometry and invariances of learned EEG representations across measurable spatial, temporal, and spectral signal properties.

Figures & tables

Appendix figures & tables18 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. A Multi-dimensional Framework for Evaluating Generalization in EEG Foundation Models

    May 27, 2026Aditya Kommineni, Emily Zhou, Kleanthis Avramidis +2Neural Network GeneralizationEEG Decoding

  2. BandVQ: Band-Wise Vector-Quantized EEG Foundation Model

    May 24, 2026Jamiyan Sukhbaatar, Satoshi Imamura, Toshihisa TanakaCross-Subject EEG DecodingMasked Autoencoders

  3. Lightweight Semantic EEG Foundation Model for Frozen Cross-Disorder Transfer

    Oct 4, 2026Rita Huan-Ting Peng, Nhat BuiEEG Seizure DetectionSelf-Supervised Pre-Training