Manuscript Offprint

arXiv:2609.31167

Neural State Prediction: Obstructing Shortcut Learning in EEG Foundation Models

Kieren Yu, Ziyang Liu, Chang Huang, Jintai Chen, Kaishun Wu

ABSTRACT

EEG foundation models increasingly use masked prediction to learn from unlabeled recordings, but optimizing this objective does not ensure transferable neural representations. A central challenge is that stable positional cues and local correlations can make masked regions predictable without integrating distributed neural context. To reduce this reliance on low-information prediction paths, we introduce Neural State Prediction (NSP), a latent-predictive framework that constrains both the prediction target and the available context. NSP uses a Target Encoder updated by an exponential moving average (EMA) to define latent supervision. Identity residualization removes additive effects associated with channel identity and relative time from the targets, while topology-separated context excludes their immediate spatial and temporal neighborhood from the visible input. We pretrain NSP on 2.2 million EEG segments from TUEG and evaluate it across 30 downstream datasets spanning clinical diagnosis, sleep staging, emotion recognition, motor imagery, event-related potentials, cognitive-state decoding, and language retrieval. Under full-parameter multi-task fine-tuning on EEG-FM-Bench, NSP achieves 63.94 macro balanced accuracy across 14 datasets, exceeding the strongest evaluated baseline by 2.35 percentage points. Controlled component ablations assess the contribution of each mechanism, while matched context controls and held-out interventions characterize the role of context geometry, signal content, and positional information. Jointly designing latent targets and their context offers a promising direction for EEG foundation models that learn from distributed signal structure.

1 INTRODUCTION

Electroencephalography (EEG) records millisecond-scale neural dynamics non-invasively and supports applications ranging from clinical monitoring to emotion recognition and brain-computer interfaces (BCIs). Many EEG systems are still developed for individual tasks and datasets from limited labeled cohorts (Lawhern et al., 2018; Song et al., 2022; 2021). These specialized models remain useful, but often transfer imperfectly across acquisition systems, subject populations, and prediction targets. Inspired by self-supervised learning in language (Brown et al., 2020; Devlin et al., 2019) and vision (Dosovitskiy et al., 2020; He et al., 2022), EEG foundation models (EEG-FMs) instead pretrain reusable encoders on broad unlabeled corpora (Kostas et al., 2021; Jiang et al., 2024b; Wang et al., 2024; 2025; Zhou et al., 2025; Yang et al., 2023; El Ouahidi et al., 2025; Panchavati et al., 2026). EEG-FMs have improved cross-dataset transfer, advancing general-

Figure

BENDR BIOT LattAM EOGT C10A Mod C10 Brain REVE NSP

Figure 1: EEG-FM-Bench macro summary.

FMs have improved cross-dataset transfer, advancing general-purpose EEG representations.

Recent EEG-FMs use four main pretraining paradigms (Figure 2): (1) Contrastive learning. These methods learn representations by bringing related EEG views closer while separating unrelated views. BIOT (Yang et al., 2023) aligns representations across biosignal segments and modalities, whereas BENDR (Kostas et al., 2021) contrasts masked contextual representations with their corresponding latent targets. Their success nevertheless depends on how positive views, negatives, and

Figure

Figure 2: Comparison of EEG foundation-model pretraining paradigms. The panels contrast view-level agreement, signal reconstruction, discrete or autoregressive token prediction, and NSP's Target–Context latent prediction.

augmentations define invariance, and view-level agreement does not directly specify which missing neural content should be recovered. (2) Signal reconstruction. Reconstruction objectives mask part of an EEG recording and recover the omitted waveform, spectrum, or patch. EEGPT (Wang et al., 2024) and REVE (El Ouahidi et al., 2025) reconstruct masked waveforms, CBraMod (Wang et al., 2025) reconstructs EEG patches with criss-cross spatial–temporal attention, and CSBrain (Zhou et al., 2025) reconstructs spectrogram representations. Such objectives preserve signal detail, but may devote capacity to amplitude, noise, and other input-level variation that is not useful downstream. (3) Discrete or autoregressive prediction. Discrete approaches encode EEG as codebook tokens, whereas autoregressive approaches predict the next token or patch from preceding context. LaBraM (Jiang et al., 2024b), DeWave (Duan et al., 2023), and CodeBrain (Ma et al., 2025) learn or use discrete EEG tokens, while ECHO (Liu et al., 2026), THD-BAR (Yang et al., 2025), and KAST-BAR (Wang et al., 2026) predict sequential tokens or future patches. Discretization can provide compact supervision, although its quality is bounded by the tokenizer or codebook. (4) Latent prediction. These methods predict learned representations of masked regions, typically through joint-embedding predictive architectures (JEPAs) with a context and a target encoder. EEG2Rep (Mohammadi Foumani et al., 2024) combines latent self-prediction with semantic subsequence preserving (SSP) masking. Brain-JEPA (Dong et al., 2024) models latent brain dynamics, S-JEPA (Guetschel et al., 2024) targets cross-dataset EEG transfer, and Laya (Panchavati et al., 2026), STST-JEPA (Segal et al., 2026), and EEG-JEPA (Li et al., 2026) develop learned-target prediction for EEG with different target construction and masking choices. PATCHCODE (Yu et al., 2026) adds discrete-code supervision from a frozen tokenizer to continuous patch-level latent prediction. These studies make latent prediction a promising alternative to reconstructing every detail of noisy electrophysiological inputs.

Despite these advances, dependence on easily predictable signal structure can hinder the development of EEG representations that generalize across tasks and recording conditions. Pretraining objectives reward agreement with a chosen target, but do not by themselves distinguish transferable neural structure from stable positional cues or local correlations. Motivated by the shared source mixtures that volume conduction induces at neighboring scalp electrodes (Paul, 2005), we examine local interpolation alongside prediction from channel identity, electrode coordinates, and relative time. A masked objective may be reduced through either path without requiring broad neural context. Latent prediction avoids direct waveform reconstruction, but it does not automatically remove these low-information solutions: existing EEG JEPAs define learned targets and masked context, yet generally do not jointly reduce additive channel- and time-conditioned components in the target and exclude the target's nearest spatial and temporal evidence. The central objective-design question is therefore not only whether to predict a waveform, token, or representation, but also what information remains in the prediction target and what evidence is available to infer it.

To address this mismatch between pretraining success and transferable representation learning, we propose Neural State Prediction (NSP), a latent-predictive framework that jointly constrains target content and available context. An EMA-updated Target Encoder first provides stable latent supervision for masked spatiotemporal regions. Identity residualization then removes the additive components associated with channel identity and relative time from each target, reducing position-conditioned predictability. In parallel, topology-separated context withholds the target's nearest-neighbor channels and adjacent time patches from the visible EEG content, requiring the Context Encoder to integrate more distant evidence. The residualized target specifies what is predicted, whereas the topology-separated context specifies from what evidence the prediction is formed. We pretrain NSP on 2.2 million EEG segments from TUEG (Obeid & Picone, 2016) and evaluate transfer across 30 downstream datasets spanning clinical diagnosis, motor imagery, emotion, cognitive workload, event-related potentials, language, and other brain-state decoding tasks. The evaluation comprises 16 selected NeuralBench-EEG-Core v1.0 datasets (Banville et al., 2026) (NeuralBench for short), after removing dataset-task pairs also covered by EEG-FM-Bench, together with the 14-dataset EEG-FM-Bench protocol (Xiong et al., 2025). Figure 1 compares representative EEG-FMs from all four pretraining paradigms under EEG-FM-Bench; NSP achieves 63.94 macro balanced accuracy under full-parameter multi-task fine-tuning, outperforming the strongest evaluated baseline by 2.35 percentage points. Matched component and context-control ablations examine how the proposed mechanisms affect transfer, and held-out signal-content interventions and identity probes characterize sensitivity to EEG content and the positional information retained by component variants.

Our contributions are summarized as follows:

• We identify position-conditioned prediction and local interpolation as two low-information paths in masked EEG latent prediction, motivating joint design of targets and visible context.

• We propose Neural State Prediction (NSP), a latent-predictive EEG-FM pretraining framework. Its EMA Target Encoder supplies supervision, while identity residualization and topology-separated context jointly constrain target content and visible EEG evidence.

• We evaluate NSP across 30 downstream datasets. Under EEG-FM-Bench multi-task full fine-tuning, it achieves 63.94 macro BAC, 2.35 percentage points above the strongest evaluated baseline. Matched ablations, signal-content interventions, and identity probes assess the components and learned representations.

References (100)

  • Increased conflict-induced slowing, but no differences in conflict-induced positive or negative prediction error learning in patients with schizophrenia
  • Inter-database validation of a deep learning approach for automatic sleep scoring
  • Self-supervised learning from images with a joint-embedding predictive architecture
  • V-JEPA 2: Self-Supervised Video Models Enable Understanding, Prediction and Planning
  • Data2vec: A general framework for self-supervised learning in speech, vision and language
  • LeJEPA: Provable and scalable self-supervised learning without the heuristics (opens arXiv in a new tab)
  • A unifying framework to benchmark neuroai models (opens arXiv in a new tab)
  • V-jepa: Latent video prediction for visual representation learning, 2024
  • Advances in neural information processing systems, 33:1877–1901, 2020
  • EEG synchronization analysis for seizure prediction: A study on data of noninvasive recordings
  • Bert: Pre-training of deep bidirectional transformers for language understanding
  • LUNA: Efficient and topology-agnostic foundation model for EEG signal analysis
  • Brain-JEPA: Brain dynamics foundation model with gradient positioning and spatiotemporal masking
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Dewave: Discrete encoding of eeg waves for eeg to text translation
  • Reve: A foundation model for EEG-adapting to any setup with large-scale pretraining on 25,000 subjects
  • A large and rich EEG dataset for modeling human visual object recognition
  • Advances in neural information processing systems, 33:21271–21284, 2020
  • S-jepa: towards seamless cross-dataset transfer through dynamic spatial attention
  • Improved EEG event classification using differential energy
  • Masked autoencoders are scalable vision learners
  • Open multisession and multi-task EEG cognitive dataset for passive brain-computer interface applications
  • ZuCo, a simultaneous EEG and eye-tracking resource for natural sentence reading
  • LoRA: Low-Rank Adaptation of Large Language Models
  • Multimodal signal dataset for 11 intuitive movement tasks from single upper extremity during multiple recording sessions
  • SEED-VII: A multimodal dataset of six basic emotions with continuous labels for emotion recognition
  • Large brain model for learning generic representations with tremendous eeg data in bci
  • Bids chb-mit scalp eeg database, 2023
  • ERP CORE: An open resource for human event-related potential research
  • Bendr: Using transformers and a contrastive self-supervised learning task to learn from massive amounts of EEG data
  • Data augmentation for deep-learning-based electroencephalography (opens the publisher in a new tab)
  • Eegnet: a compact convolutional neural network for eeg-based brain–computer interfaces
  • 2, 2022-06-27
  • EEG-JEPA: Structured latent prediction for EEG foundation models, 2026
  • STEW: Simultaneous task EEG workload data set (opens the publisher in a new tab)
  • ECHO: Toward contextual seq2seq paradigms in large EEG models
  • Comparing recognition performance and robustness of multimodal deep learning models for multimodal emotion recognition
  • Automated identification of abnormal adult EEGs
  • Decoupled weight decay regularization
  • Code-Brain: Bridging decoupled tokenizer and multi-scale architecture for EEG foundation model (opens arXiv in a new tab)
  • EEG2Rep: Enhancing self-supervised EEG representation through informative masked inputs (opens the publisher in a new tab)
  • A machine learning framework involving eeg-based functional connectivity to diagnose major depressive disorder (mdd)
  • eLife, 7:e33468, 2018
  • The temple university hospital EEG data corpus (opens the publisher in a new tab)
  • Laya: A LeJEPA approach to EEG via latent prediction over reconstruction (opens arXiv in a new tab)
  • Data augmentation for learning predictive models on EEG: A systematic comparison (opens the publisher in a new tab)
  • BCI2000: a general-purpose brain-computer interface (BCI) system
  • Individually adapted imagery improves brain-computer interface performance in end-users with disability
  • A new auditory multi-class brain-computer interface paradigm: Spatial hearing as an informative cue
  • STST-JEPA: Shallow-target spatio-temporal joint embedding prediction architecture for EEG self-supervised learning, 2026
  • Grad-CAM: Visual explanations from deep networks via gradient-based localization
  • Timing variability and midfrontal 4 Hz rhythms correlate with cognition in parkinson's disease
  • Transformer-based spatial-temporal feature learning for EEG decoding (opens arXiv in a new tab)
  • Eeg conformer: Convolutional transformer for eeg decoding and visualization
  • Simultaneous encoding of speed, distance, and direction in discrete reaching: an EEG study
  • RoFormer: Enhanced transformer with rotary position embedding (opens the publisher in a new tab)
  • Review of the BCI competition IV. Frontiers in Neuroscience, 6:55, 2012 (opens the publisher in a new tab)
  • From full calibration to zero training for a code-modulated visual evoked potentials brain computer interface
  • Joint embedding vs reconstruction: Provable benefits of latent space prediction for self supervised learning (opens arXiv in a new tab)
  • Visualizing data using t-SNE
  • Electroencephalographic slowing: A primary source of error in automatic seizure detection
  • Eegpt: Pretrained transformer for universal and reliable representation of EEG signals
  • Kast-bar: Knowledge-anchored semantically-dynamic topology brain autoregressive modeling for universal neural interpretation
  • Cbramod: A criss-cross brain foundation model for eeg decoding
  • A benchmark dataset for ssvep-based brain–computer interfaces
  • Eeg-fm-bench: A comprehensive benchmark for the systematic evaluation of eeg foundation models (opens arXiv in a new tab)
  • Biot: Biosignal transformer for cross-data learning in the wild
  • THD-BAR: Topology hierarchical derived brain autoregressive modeling for EEG generic representations
  • Patchcode: Discrete latent predictive learning for eeg foundation model
  • Investigating critical frequency bands and channels for EEG-based emotion recognition with deep neural networks
  • CSBrain: A cross-scale spatiotemporal brain foundation model for EEG decoding
  • Electroencephalograms during mental arithmetic task performance
  • Reconstruction-based models differ in what they ask the encoder to preserve
  • I-JEPA established masked latent prediction for images (Assran et al., 2023), V-JEPA extended feature prediction to video (Bardes et al., 2024), and data2vec developed a related target-representation objective across speech, vision, and language (Baevski et al., 2022)
  • This result is deliberately limited: residualization removes the best additive channel and relative-time main effects under the current batch weighting, but it does not remove nonlinear identity information or channel–time interactions, and it does not imply channel invariance
  • Target blocks cover 50% of the token grid, with temporal spans of 2–10 patches and spatial spans of 3–7 coordinate-near channels
  • We map each usable recording to 19 standard electrodes from the international 10–20 system and resample it to 200 Hz
  • The diagnostic sequence compares a temporal shared-target predictor, a spatiotemporal shared-target predictor, an EMA Target Encoder, identity-residualized targets, Full NSP, and NSP without state regularization
  • Full NSP instead retains a rank of 470.9 with near-zero mean cosine
  • We evaluate 16 selected datasets with single-task adaptation: 14 classification tasks contribute to the BAC macro, while two language tasks use Top-5 retrieval accuracy and are reported separately
  • The 19-channel, 200-Hz specification above describes NSP pretraining, not a requirement that every downstream source recording have this montage or sampling rate
  • Tasks are not forced to 200 Hz or 19 channels; configurations vary by dataset
  • Learning rate and pooling head hidden dimension are searched per task
  • Figures 5 and 6 use the equivalent 0–1 BAC scale
  • Balanced accuracy averages class recall
  • BAC gives each class equal weight under imbalance
  • AUROC measures threshold-independent ranking over both classes, while AUCPR is particularly informative when the positive class is rare
  • EEG-FM-Bench uses a distinct comparison set that replaces LUNA with EEGPT and CSBrain (Xiong et al., 2025)
  • Its unsupervised objective predicts an original-signal embedding from a channel- and token-dropped view with a contrastive loss
  • Its pretraining corpus contains approximately 2,500 hours collected from about 20 datasets, and the model achieves strong transfer on medical tasks
  • Its criss-cross Transformer applies separate spatial (cross-channel) and temporal (cross-time) attention to the patch grid
  • CSBrain (Zhou et al., 2025) operates on EEG spectrograms and reconstructs masked spectral regions with specialized spatial–temporal attention
  • It is pretrained on TUEG and Siena with masked-patch reconstruction
  • Its pre-training corpus aggregates recordings from 92 sources and approximately 25,000 subjects
  • NSP follows the same task identities and metric definitions, with validation-selected task-specific readouts
  • This is the primary protocol for NeuralBench-EEG-Core and EEG-FM-Bench Full FT single-task and multi-task evaluations
  • Rank is set to 8 for all experiments
  • BAC for classification and Top-5 accuracy for retrieval
  • We retain 16 datasets after removing dataset-task pairs also evaluated by EEG-FM-Bench, yielding four clinical and neurological-disease tasks, four BCI and sensorimotor tasks, four event-related or evoked-response tasks, and four cognitive-state or language-decoding tasks
  • CHB-MIT (the Dan2023 benchmark task) is the larger seizure-detection task, with 707,683 windows from 23 participants (Jonathan & Shoeb, 2023)

Couldn't load all references. Reload the page to try again.