Skip to content

PhyMind: Physics-Informed Masked Autoencoding for EEG Foundation Models

A Adith

cs.LG

Abstract

EEG foundation models are pre-trained almost exclusively with masked reconstruction through a free-form decoder, sometimes with hand-crafted spectral targets added, as in MANAS-2. We study what happens when that decoder is replaced by a generative forward model of EEG. PhyMind keeps a standard masked transformer encoder, but its decoder must explain the masked signal through 68 cortical regions, each driven by damped stochastic oscillators and an aperiodic Ornstein-Uhlenbeck process, projected to the recording's own montage by a fixed boundary-element lead field evaluated per derivation. Training combines masked reconstruction with a Whittle spectral likelihood, an oscillator-dynamics residual, a minimum-norm source prior and a penalised neural residual. In a controlled comparison (same encoder, data, steps and seed), the physics decoder produces encoder tokens whose spectral content is far more linearly decodable than with a masked-autoencoder decoder or with the MANAS-2 objective: mean R2 on a token-level spectral probe with amplitude-normalised targets is 0.67/0.77/0.77 on three datasets, against 0.24/0.50/0.50 (MAE) and 0.48/0.67/0.66 (MANAS-2 objective), approaching the released 92.8M-parameter MANAS-2 (0.71/0.81/0.80). Downstream gains in the controlled setting are small (four-task mean balanced accuracy 56.6 vs. 53.8 for MAE frozen, 63.8 vs. 62.7 fine-tuned). Region-level features from the physics decoder raise frozen four-class motor-imagery accuracy by 7-14 points, so a 7.2M-parameter model pre-trained on 3k hours of open EEG is comparable to the released MANAS-2 with frozen features (63.0 vs. 61.6). After full fine-tuning, MANAS-2 remains better (66.8 vs. 65.4 for our best model). The inferred sources do not reproduce the lateralisation that a classical inverse solution finds in motor imagery, so we do not claim anatomical interpretability. Code and weights are released.

Create a lesson