BrainCodes: A Lightweight EEG Foundation Model over Discrete Neural Codes

Kleanthis Avramidis, Ivan Tashev, Dimitra Emmanouilidou
10/21/2026
cs.LGcs.NE

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{avramidis2026braincodes,
  title  = {BrainCodes: A Lightweight EEG Foundation Model over Discrete Neural Codes},
  author = {Kleanthis Avramidis and Ivan Tashev and Dimitra Emmanouilidou},
  year   = {2026},
  eprint = {2610.29320},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.29320v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.29320.svg)](https://codeofpaper.com/paper/2610.29320)

Discussion