NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SPERA: Spherical Prior EEG Foundation Model with Geometry- and Frequency-Aware Latent Prediction

Minsu Kim, Ye-Sung Kim, Hyeseong Jeon, Wooseok Hyung, Joshua Lee, Chang-Hwan ImNeurIPS 2026

TL;DR

Reading brainwaves (EEG) with a general-purpose AI is notoriously messy: every lab uses different electrode layouts, and raw signals are swamped with biological noise like blinks and jaw clenches. SPERA is a new EEG foundation model that skips reconstructing noisy raw signals, choosing instead to predict abstract representations while mathematically baking the spherical geometry of the human head directly into its attention mechanism. Trained on 80,000 hours of brain data, it outperforms larger, state-of-the-art models across diverse clinical and brain-computer interface tasks.

What Problem Does This Paper Address?

If you want to build a foundation model for text or images, the data format is wonderfully consistent: words are sequences, and images are neat pixel grids. Electroencephalography (EEG)—recording electrical brain activity via scalp sensors—offers no such luxury. One hospital might use a 16-electrode cap, while a neuroscience lab uses a 64-electrode layout. Models trained on one setup struggle to transfer to another.

Furthermore, most existing EEG foundation models learn via masked reconstruction—hiding a chunk of the raw brainwave and trying to redraw it. The catch? Raw EEG is full of non-neural artifacts like eye blinks and muscle twitches. Forcing a model to reconstruct the exact signal wastes capacity memorizing biological static rather than underlying brain states.

Methods

To bypass raw-signal noise, the authors adopt a Joint-Embedding Predictive Architecture (JEPA)—a standard self-supervised framework where a "student" network predicts the abstract latent representations of masked regions generated by a momentum-updated "teacher" network, rather than raw data points.

Figure 1: Overview of the SPERA pretraining framework.

What’s novel is how SPERA adapts this paradigm to the physical realities of EEG:

  • Legendre Spherical Prior: Human heads are roughly spherical. Instead of just feeding raw 3D $(x,y,z)$ sensor coordinates into the network, SPERA computes the angular separation between electrodes on a unit sphere using Legendre polynomials (a mathematical basis naturally suited for spheres). This creates a learnable, dataset-agnostic geometric bias injected into the attention mechanism, allowing seamless adaptation to any electrode layout.
  • Hardware-Aware Hybrid Backbone: SPERA processes 1-second EEG patches using factorized attention (attending across time, then across space) interleaved with periodic full-attention blocks every fourth layer to capture cross-axis interactions. To avoid a massive memory bottleneck during full attention, SPERA swaps pairwise electrode biases for a clever Legendre anchor encoding—comparing sensors against a finite set of learnable anchor points on the sphere—preserving fast, fused FlashAttention paths.
  • Relational Spectral Regularizer (RSReg): Brainwave frequencies (alpha, beta, etc.) matter, but reconstructing exact power spectra brings back raw-signal noise. Instead, RSReg computes the pairwise cosine similarity between the frequency spectra of target patches and forces the predicted latent representations to mirror that relative relational structure via KL divergence.

Datasets

  • Pretraining: The authors compiled the largest multi-domain EEG pretraining corpus reported to date: ~80,000 hours of recordings (9.60 billion tokens) from 29,048 subjects across 106 datasets, spanning clinical (82.1%), cognitive (16.2%), and BCI (1.7%) domains.
  • Evaluation: SPERA is evaluated on nine established public benchmarks (the intersection of the CBraMod and REVE evaluation suites): imagined speech (BCIC2020-3), motor imagery (BCIC-IV-2a, PhysioNet-MI), emotion recognition (FACED), mental stress (MAT), sleep staging (ISRUC), mental disorder diagnosis (Mumtaz), abnormality detection (TUAB), and clinical event classification (TUEV).

Key Insights and Ideas

  • Physics-informed priors beat generic MLPs: Replacing the structured Legendre polynomial prior with a generic learnable MLP on pairwise coordinates actually hurt performance compared to simple coordinate embeddings (62.71% vs. 65.25% accuracy in ablations). Baking the true biophysical geometry of the scalp into the math gives the model a massive head start.
  • Smart math saves throughput: Directly applying pairwise spatial biases in full-attention blocks breaks modern GPU optimizations (FlashAttention), tanking throughput to 20,260 tokens/sec. Switching to anchor-based Legendre encodings in full-attention blocks while keeping pairwise biases in factorized blocks restores throughput to 92,866 tokens/sec (a 1.78× speedup over a bias-only hybrid) and cuts peak memory by 14%, with virtually zero accuracy loss.
  • Frequency structure without reconstruction: Removing RSReg drops sleep-staging accuracy by 2.1%, showing you can teach a latent-prediction model about brainwave rhythms purely by aligning similarity matrices rather than predicting raw spectral values.

Key Results

Evaluated across four scales—Tiny (18M), Small (48M), Base (194M), and Large (396M)—SPERA sets a new state of the art across the nine downstream tasks:

  • Under linear probing followed by fine-tuning (LPFT), SPERA-Base achieves an average balanced accuracy of 75.02%, beating the strongest prior foundation model baseline (REVE-Base at 71.50%) by +3.52%, while SPERA-Large reaches 76.65%.
  • The biggest jumps appear in complex, fine-grained multi-class tasks: SPERA-Base beats prior baselines by +7.8% on 6-class clinical event classification (TUEV) and +5.0% on 5-class imagined speech (BCIC2020-3).
  • Under frozen linear probing (testing raw representation quality), SPERA-Base (194M) outperforms REVE-Large (408M) by +1.3% despite using less than half the parameters.

Limitations and Future Work

  • Scaling plateaus: Performance gains begin to show diminishing returns moving from 194M to 396M parameters, suggesting that billion-parameter EEG models will likely require even larger datasets rather than compute alone.
  • Surface-only geometry: The spherical head assumption works for scalp EEG, but fails for intracranial electrodes implanted deep inside the brain, which will require incorporating radial depth coordinates.
  • Task scope & fairness: Downstream evaluations only tested fixed-length (3–30s) classification tasks—leaving continuous decoding and long-horizon clinical forecasting untested. Additionally, inconsistent demographic metadata across the 106 training datasets prevented a thorough fairness audit across age, sex, and ethnicity.

Summary updated

Abstract

Electroencephalography (EEG) provides a non-invasive measure of ongoing neural activity, but building general-purpose EEG models remains challenging due to the heterogeneity of subjects, devices, and electrode montages. Existing EEG foundation models predominantly rely on reconstruction-based objectives defined on the observed signal, which contains both neural and non-neural components. We introduce the Spherical Prior EEG Representation Architecture (SPERA), an EEG foundation model that adopts the joint-embedding predictive architecture (JEPA) to predict in latent space. SPERA introduces a Legendre-polynomial spatial prior, incorporated into attention to encode varying scalp electrode geometries. Two further components adapt the model to EEG: factorized temporal and spatial attention interleaved with periodic full-attention blocks, and a relational spectral regularizer aligning latent similarity structure with spectral views. Pretrained on approximately 80,000 hours of EEG from 29,048 subjects across 106 datasets, SPERA achieves the highest average balanced accuracy across nine downstream tasks spanning clinical, cognitive, and BCI applications. SPERA further exhibits strong parameter efficiency under linear probing and robustness across varying recording conditions, suggesting its potential as a general-purpose backbone for diverse EEG analyses.
BibTeX
@inproceedings{kim2026spera,
  author = {Minsu Kim and Ye-Sung Kim and Hyeseong Jeon and Wooseok Hyung and Joshua Lee and Chang-Hwan Im},
  title = {{SPERA: Spherical Prior EEG Foundation Model with Geometry- and Frequency-Aware Latent Prediction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=71zbNNbFKV},
}
Figure