Manuscript Offprint
arXiv:2610.35246NOMAD-EEG: Native Omni-Montage Adaptive Diffusion
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Purpose. Electroencephalography (EEG) montages, channel counts and recording lengths vary widely, but most EEG foundation models are bound to the channel set and input length they were trained on. We aimed to build a generative EEG foundation model independent of the number, identity and order of electrodes and of the input length.
Methods. NOMAD-EEG is a 12.0 M-parameter diffusion model that alternates state-space layers along time, without patches, with attention across electrodes identified only by their 3D scalp position. It was pre-trained on 147 h of unlabelled EEG from a single corpus and evaluated with frozen linear probes on ten datasets with 1 to 64 electrodes against seven foundation models run under one protocol, and on two unseen populations.
Results. Despite its small size (12.0 M parameters against 69 M for REVE) and single pre-training corpus, NOMAD-EEG outperformed all seven foundation models on EEGMMIDB motor imagery (balanced accuracy 0.442), Siena seizure detection (macro F1 0.622) and Bonn seizure detection (AUROC 0.999), had the highest accuracy of the seven compared models on TUEP epilepsy diagnosis (0.640) and, after fine-tuning, the highest (0.635) and weighted F1 (0.814) on TUEV event classification. It was the best of five models on P300 detection in autism with an unseen eight-electrode montage (AUROC 0.718). With only 5 of 19 electrodes, its mean AUROC fell only from 0.942 to 0.891.
Conclusion. Identifying electrodes by position and modelling time without patches let one small model, pre-trained on one corpus, outperform much larger EEG foundation models on seizure detection, epileptiform event classification, epilepsy diagnosis and motor imagery.
Keywords: EEG foundation model; Diffusion model; Montage-agnostic; State-space model; Self-supervised learning; Seizure detection
1 Introduction
Electroencephalography (EEG) is recorded with very different hardware and conventions. A clinical epilepsy study may use the 19–21 electrodes of the international 10–20 system, often re-referenced into a bipolar montage; a motor-imagery study may use a 64-electrode 10–10 cap; a sleep study may record only two bipolar derivations; and some archives hold a single intracranial or scalp channel. Recording lengths vary just as widely, from 4 s trials in brain–computer interfaces to the 30 s epochs of sleep scoring. At the same time, the events clinicians care about are brief: a spike lasts 20–70 ms and a sharp wave 70–200 ms [1]. An EEG foundation model is only broadly useful if one set of pretrained weights can read all of these inputs, at the temporal resolution the events require.
Most EEG foundation models are, however, bound to the format they were trained on. Some identify each channel by a learned embedding looked up in a fixed vocabulary of electrode names or slots, so channels outside that vocabulary cannot be represented (LaBraM [2], EEGPT [3], BIOT [4]). Others mix channels with convolutions along the channel index, so the result depends on the order in which channels are listed (CBraMod [5], EEGMamba [6]). Most tokenise time into non-overlapping patches of about one second, and some cap the number of patches, which fixes a maximum input length.
Generative pre-training has recently emerged as a strong alternative to masked reconstruction for EEG. Denoising diffusion [7] was used by our earlier DiffEEG model [8]; EEGDM [9] combined diffusion with a structured state-space backbone; and B[FM] [10] showed that flow matching [11] on the raw waveform reaches state-of-the-art accuracy on seven of nine downstream tasks while pre-training on only about 307 h of EEG. Yet each of these generative models inherits a fixed input format. DiffEEG maps its input into a fixed 22-channel layout, EEGDM conditions a single-channel network on one of 22 bipolar channel identities, and B[FM] convolves along the electrode index of what it describes as a small, fixed set of electrodes.
Montage-agnostic models do exist, but they take the opposite design choices. REVE [12], LUNA [13] and BrainOmni [14] place every channel by its 3D sensor position and so accept arbitrary electrode sets. All three are trained with masked or tokenised reconstruction objectives on transformers that operate on temporal patches or windows, which trades temporal resolution for tractable attention. No existing model, to our knowledge, combines a generative objective, position-based montage independence and patch-free temporal modelling (Table 1).
We introduce NOMAD-EEG (Native Omni-Montage Adaptive Diffusion), a diffusion foundation model whose architecture has no parameter tied to the number, identity or order of electrodes, and none tied to the input length (Fig. 1). Every block of the network factorises spatio-temporal mixing into two operations. A bidirectional diagonal state-space layer (S4D) [15] mixes information along time within each electrode, at a fixed 20 ms resolution and with a convolution kernel generated for whatever length the input has. Multi-head attention then mixes information across electrodes within each time step, where each electrode is identified only by Fourier features [16] of its 3D scalp coordinate. The network is trained to denoise EEG under a cosine noise schedule [17], and its gated intermediate activations are read out as representations.
Our contributions are:
• A montage- and length-agnostic generative backbone. NOMAD-EEG is, among the models we review, the only EEG foundation model that is simultaneously diffusion-pretrained, places electrodes by 3D position in every block, and models time without patches at 20 ms resolution with no maximum length, pre-trained on 30 s windows (1,500 steps per electrode) with a receptive field spanning the whole input. We show that its outputs are permutation-equivariant in the electrodes and that its parameter count is independent of the number of electrodes and samples (Section 2.4).
• Task heads that keep this independence. We define a frozen feature extractor (windowed mean and standard deviation of gate activations) and a token-based fine-tuning head whose output size does not depend on the montage or the recording length (Section 2.5).
• A controlled comparison of diffusion and flow matching. Because the objective is a single switch in our implementation, we pre-train two models that differ only in the objective and compare them on every downstream task.
• A single-protocol benchmark. We re-run seven published EEG foundation models from their released weights on eight datasets under one evaluation protocol, rather than quoting results obtained under different splits, and add transfer to two populations unseen in pre-training (P300 detection in autism and Parkinson's disease diagnosis).
• Ablations and a scaling study. We measure what pre-training adds over random weights, test electrode-order invariance and missing electrodes, and train a 5.6-times larger model on 47 times more data to test whether scale helps.
Pre-trained on 147 h of unlabelled TUEV recordings, NOMAD-EEG reads datasets with one to 64 electrodes with a single set of weights. Across eight benchmarks it is never ranked below fourth among eight foundation models and is first on Bonn and EEGMMIDB, and it is the best of five models on P300 detection with an eight-electrode montage it never saw. A larger model trained on far more data was not significantly better on any benchmark.
Montage-agnostic EEG models. Several recent models remove the fixed channel vocabulary. MMM [23] maps every montage onto a unified topology of region tokens using electrode geometry. REVE [12], pre-trained on about 60,000 h of EEG, adds a 4D Fourier positional encoding of each electrode's 3D coordinate and patch index, and applies full attention over all channel-patch tokens. LUNA [13] encodes 3D coordinates with a NeRF-style [24] sinusoidal projection and compresses any number of channels into a few learned queries by cross-attention before temporal attention, so its cost grows linearly with channel count. Brain-Omni [14] encodes sensor position, orientation and type to unify EEG and MEG in a discrete tokeniser. DIVER-0 [25] achieves channel-permutation equivariance without coordinates, using attention biases to separate channels. Complementary work adapts fixed-montage models to new channel sets after pre-training, for example by interpolation or learned projections [26]. Compatibility with a new montage does not guarantee robustness to it: Steglich et al. [27] found that montage-agnostic models such as LUNA and REVE can still lose accuracy when the electrode set changes. All of these models are trained with masked or tokenised reconstruction objectives and operate on temporal patches or windows.
Generative pre-training for EEG. Diffusion models [7, 17] and flow matching [11, 28] learn to reverse a noising process and have recently been used as EEG pre-training objectives. Our earlier DiffEEG [8] pre-trained a U-Net to denoise 22-channel EEG and read features from its encoder. EEGDM [9] pre-trains a WaveNet-style [29] network of structured state-space layers as a diffusion model; it processes one channel at a time, conditioned on one of 22 bipolar channel identities, and reads gated activations as features. B[FM] [10] pre-trains a SplitUNet velocity network with flow matching on the raw waveform. Its ablation shows that electrodes should interact in every block and that factorising each block into a temporal and an electrode operation outperforms joint two-dimensional convolution. SplitUNet is electrode-count-invariant, but its electrode convolution treats neighbouring channel indices as neighbouring electrodes, and it down-samples time by a factor of eight. TGSD [30] combines state-space models with diffusion for a different goal, EEG spatial super-resolution, rather than representation learning. NOMAD-EEG adopts the factorised block of B[FM] and the gate-activation features of EEGDM, but replaces index-based electrode mixing with coordinate-conditioned attention and replaces temporal down-sampling with a full-resolution state-space layer.
State-space sequence models. Structured state-space models (S4) [31] model long sequences through a linear recurrence that can be evaluated as a global convolution. The diagonal variant S4D [15] makes the kernel a sum of complex exponentials that can be generated in closed form for any sequence length. Selective state-space models such as Mamba [22] make the recurrence input-dependent. We use S4D because its kernel is defined for every length without a learned position table, which is what makes the time axis of NOMAD-EEG length-agnostic.
Table 1: How EEG foundation models identify channels and handle time. Entries for the eight models we run were checked against their released code; the rest are from the papers. “Any electrode set” means the model accepts channels that were not in its pre-training montage without retraining.
| Model | Objective | Channel identity | Any set? | Order-free? | Time handling |
|---|---|---|---|---|---|
| NOMAD-EEG (ours) | Diffusion | 3D coordinates (Fourier), every block | Yes | Yes | 20 ms steps, no patches, no length cap |
| REVE [12] | Masked AE | 3D coordinates + patch index | Yes | Yes | 1 s patches, full attention |
| LUNA [13] | Masked recon. | 3D coordinates (NeRF-style) | Yes | Yes | Patches; channels compressed to queries |
| BrainOmni [14] | Tokeniser + masked | Sensor position, orientation, type | Yes | Yes | Windows; channels compressed |
| DIVER-0 [25] | Masked recon. | Attention bias, no coordinates | Yes | Yes | 1 s patches |
| LaBraM [2] | Masked codes | Learned embedding per name | Vocabulary | Yes | 1 s patches, 16 patches |
| EEGPT [3] | Masked, aligned | Learned embedding per channel | Vocabulary | Yes | Short windows |
| BIOT [4] | Superv./contrast. | Learned token per slot | 18 slots | No | STFT tokens, any length |
| CBraMod [5] | Masked recon. | Conv. encoding over channel axis | Any count | No | 1 s patches |
| EEGMamba [6] | Masked recon. | As CBraMod | Any count | No | 1 s patches, Mamba |
| EEGDM [9] | Diffusion | One of 22 bipolar channel IDs | No | 5 s chunks | |
| B[FM] [10] | Flow matching | Conv. along electrode index | Any count | No | Time down-sampled 8× |
| DiffEEG [8] | Diffusion | Fixed input slot | No | No | Global pooling over time |
EEGDM processes channels independently, so order does not matter, but channels do not interact in the backbone.
2 Materials and Methods
2.1 Problem setting and input representation
An EEG recording is a matrix of channels and samples, together with a position for every channel . Neither nor is fixed, and channels may be listed in any order. The model sees the pair , with , and never a channel index.
Electrode positions. Positions are looked up by channel name in the standard 10–20 and 10–05 montages of MNE-Python [32]; where the two systems overlap, the 10–20 position is used. A bipolar derivation “A–B” is placed at the midpoint of A and B. All positions are

input: signals at 200 Hz + 3D electrode positions — any , any length T, any channel order
position in the pre-training montage position never seen in pre-training (incl. bipolar midpoints) ○ electrodes of a bipolar pair
Fig. 1 One model, any montage. The same pretrained NOMAD-EEG weights read five electrode layouts used in this work, from a single electrode to a 64-electrode cap. Electrode positions are the 3D coordinates the network receives, projected to 2D (nose up). Blue: positions present in the pre-training montage. Red: positions never seen in pre-training, or the midpoint used for a bipolar derivation (open circles mark its two electrodes).
divided by one fixed constant, the largest norm, in MNE's head coordinate frame, among the 21 electrodes of the pre-training montage. Because this constant does not depend on the montage being read, an electrode receives the same coordinate whether it appears in a 19-electrode or a 64-electrode recording. Channels without a standard position (for example ECG, EMG, and the ROC channel of TUH recordings) are dropped rather than assigned an invented position.
Signal preprocessing. All signals are resampled to 200 Hz. Each channel is normalised with statistics computed per corpus on training data only: the median is subtracted, the result is divided by the inter-quartile range, and values are clipped to . This robust scaling absorbs differences in units and amplitude conventions between corpora while limiting the influence of large artefacts. Each corpus also receives an integer identifier c that conditions the network (Section 2.2.3).
2.2 Architecture
NOMAD-EEG (Fig. 2) consists of a temporal stem, a stack of identical blocks with residual and skip connections, and an output head used only for pre-training. The feature width is throughout, and the model has 11,998,977 parameters.
2.2.1 Stem
Each channel is processed independently by a single one-dimensional convolution with one input channel, d output channels, kernel size 9, stride 4 and padding 4, whose weights are shared by all electrodes:
(1) a Pre-training: denoising diffusion on TUEV (147 h)

b Inside one NOMAD block (16 identical blocks)

C Downstream (clean input)
Fig. 2 Overview of NOMAD-EEG. (a) Pre-training. A clean 30 s TUEV window (21 electrodes, 200 Hz) is corrupted with Gaussian noise following the cosine schedule, and the network, given the electrode positions , the noise level and the corpus , predicts the noise. It consists of a convolutional stem shared by all electrodes (one 256-dimensional feature every 20 ms), 16 identical blocks, and an output head that maps the summed skip outputs back to the sample rate. The flow-matching variant differs only in the objective. (b) One block. The signal is a grid of tokens with one row per electrode and one column per 20 ms step. After layer normalisation and FiLM conditioning on , a bidirectional S4D layer filters each row along time with a kernel that spans the whole segment and is shared by all electrodes (blue); attention then mixes each column across electrodes, every token carrying Fourier features of its electrode's 3D position (red). Because electrodes are identified only by position, the same block reads any electrode set, for example the 21-electrode pre-training montage or two bipolar channels placed at the midpoints of their electrode pairs. A gated activation gives the output , which feeds the next block and the skip sum. (c) Downstream, the input is clean and the gates of blocks 4, 8, 12 and 16 are read. The frozen probe averages them over electrodes and keeps the mean and standard deviation in five time windows (10,240 features) for a linear classifier; the fine-tuning head pools tokens by attention from a learned query (Fig. 4). Waveforms, attention weights and highlighted tokens are illustrative; electrode positions are the coordinates the network receives.
time → (one column every 20 ms; any number of columns)

Time mixer: bidirectional S4D
runs along each row; one shared kernel per feature, generated for the input length L via FFT (cost O(L log L)); receptive field = the whole segment
Electrode mixer: multi-head attention
runs down each column; every token gets , Fourier features of its 3D position; no weight depends on E or on channel order (permutation-equivariant)
Fig. 3 Factorised mixing. Inside the network an EEG segment is a grid with one row per electrode and one column per 20 ms step. Each block mixes information along every row with a bidirectional S4D layer and then down every column with attention across electrodes. Neither operation has a parameter whose size depends on the number of rows or columns, so the grid can have any shape.
At 200 Hz one step of covers 20 ms. The stem is the only temporal down-sampling in the network, so every block operates at this resolution. The result is a tensor : one row per electrode and one column per 20 ms step (Fig. 3).
2.2.2 Conditioning
The noise level is embedded with sinusoidal features of 1000 t and a two-layer MLP with SiLU activation; a learned embedding of the corpus identifier is added:
where is the standard sinusoidal embedding. Downstream, inputs are clean and t is set to the clean end of the noise schedule (Section 2.5).
2.2.3 The NOMAD block
Following the finding of Hwang et al. [10] that electrodes should interact in every block and that factorised temporal and spatial mixing outperforms joint two-dimensional mixing, each block applies one temporal and one spatial operation (Fig. 3). Given the input H of block n, the block computes the following.
FiLM conditioning. After layer normalisation, features are scaled and shifted by functions of the conditioning vector [33]:
where is a linear map of k initialised to zero, so each block starts as an unconditioned residual block.
Temporal mixing with S4D. Each electrode's sequence is filtered, feature by feature, by a bidirectional diagonal state-space layer [15, 31]. For feature channel , the forward kernel of length is
the zero-order-hold discretisation of a diagonal continuous-time state-space model with complex modes , output weights and step size . A second, independently parameterised kernel is applied to the time-reversed sequence, and the two are combined into one non-causal convolution computed with the FFT:
We use the S4D-Lin initialisation and draw uniformly between and . Because the kernel is a closed-form function of , it is generated for the length of each input; there is no learned position table and no maximum length. The layer's receptive field is the whole segment from the first block, and its cost is .
Spatial mixing with coordinate-conditioned attention. At each time step the electrode features form a set of tokens. Each token is augmented with Fourier features [16] of its electrode's position,
projected linearly to d dimensions, and the tokens attend to each other with four-head self-attention [34]:
The positional features enter the attention input only; the residual stream carries the signal features. Electrode identity is therefore defined by position alone, as in REVE [12], but here the positional information is re-injected in every block rather than once at the input. Attention is computed independently at each of the steps, at a cost of per block.
Gated output. A linear map produces two halves [g; f] from V, which are combined with the gated activation of WaveNet [29], also used by EEGDM [9]:
The gate is bounded, which stabilises training at depth, and it is the tensor from which downstream features are read.
2.2.4 Output head
The sum of skip outputs S over all blocks passes through layer normalisation, SiLU and a linear layer, and a transposed convolution (kernel 8, stride 4) initialised to zero maps each electrode back to the sample rate; a final linear interpolation matches the input length T exactly. The head is used only for the pre-training loss.
2.3 Pre-training objective
NOMAD-EEG is pre-trained as a denoising diffusion model [7] with the cosine noise schedule of Nichol and Dhariwal [17] (s = 0.008, 1,000 steps). For a clean window , a step is drawn uniformly, the window is corrupted,
and the network, conditioned on , predicts the noise:
To predict the noise at every level, the network must model what EEG looks like: its rhythms, transients and artefacts, and how signals co-vary across the scalp.
Flow-matching variant. To compare objectives under otherwise identical conditions, we also train the same network with rectified flow [11, 28]: , and target . Architecture, data, optimiser, number of training epochs and downstream task heads are unchanged. We refer to the two models as NOMAD-EEG (diffusion, the default) and NOMAD-EEG-F (flow).
2.4 Montage and length independence
The design gives NOMAD-EEG two properties that do not depend on training.
Proposition 1 (Electrode permutation equivariance). Let be any permutation of the electrodes. Every intermediate tensor, including the gate activations and the output, satisfies , and any output that pools over electrodes is invariant to .
Reason. The stem, layer normalisation, FiLM, S4D, gate and output projections act on each electrode separately with shared weights and therefore commute with . Self-attention without positional indices is permutation-equivariant, and the only electrode-specific input, , moves with its electrode.
Proposition 2 (Size independence). No parameter of NOMAD-EEG has a shape that depends on E or T. The same weights therefore apply to any number of electrodes , to electrodes absent from the pre-training montage, and to any input length.
Reason. The stem and the S4D parameters are per feature, the S4D kernel is generated for the input length, and the attention and positional projection are per token. Per block the cost is : roughly linear in time and quadratic in the number of electrodes, which is small for scalp EEG.
(a) Frozen linear probe

5 equal windows; mean and std in each
4 blocks × 5 windows × 2 stats × 256 = 10,240-d → class-balanced logistic regression
(b) Fine-tuning head

25 windows (adaptive average pooling of T/4 steps)
token = one electrode in one window (E × 25 tokens)
encoder frozen 2 epochs, then trained end-to-end
Fig. 4 Downstream task heads. (a) The frozen feature extractor averages the gate activations over electrodes, splits time into five equal windows and keeps the mean and standard deviation in each, giving 10,240 features whatever the montage or length. (b) The fine-tuning head keeps electrodes separate: each electrode in each of 25 windows is a token, and a learned query pools the tokens by attention. Traces and attention shading are illustrative.
Long context. Size independence also removes the usual ceiling on context length. NOMAD-EEG is pre-trained on 30 s windows, which are 1,500 steps per electrode at 20 ms resolution, and every step can draw on the whole window from the first block onwards, because each S4D kernel spans the entire input. Longer recordings need no architectural change: the kernel is simply generated for the longer length, and the cost grows as in the S4D layers and linearly in the attention layers, which act on one time step at a time. By contrast, LaBraM's temporal embedding covers at most 16 one-second patches [2], and EEGDM folds inputs longer than 5 s into independent 5 s chunks [9], so neither relates events more than 16 s or 5 s apart within one pass. These properties guarantee that any montage and any length can be processed, not that every montage is represented equally well. Electrodes far from the pre-training positions rely on the smoothness of , and robustness to montage changes has to be measured separately [27]. The model still assumes 200 Hz input and a known position for every channel, and a bipolar derivation placed at its midpoint approximates, but does not equal, a sensor at that point.
2.5 Downstream task heads
Downstream, the network receives clean EEG, and is set to the clean end of the trajectory ( for NOMAD-EEG for NOMAD-EEG-F); no noise is added. We read the gates of blocks . The generative output head of pre-training is not used.
Frozen feature extraction. For linear probing (Fig. 4a) each gate is averaged over electrodes, which removes the dependence on E. The steps are divided into equal windows of steps (any remainder is dropped), and the mean and standard deviation of each feature are taken within each window. Concatenating four blocks, five windows, two statistics and 256 features gives a vector of 10,240 dimensions for every input. Windowed statistics keep coarse temporal order and let brief events show up through the standard deviation, which a single global average would dilute. Because the number of windows, not their duration, is fixed, a 5s input gives 1s windows and a 30s input gives 6s windows. A class-balanced linear classifier is trained on these vectors with the encoder frozen.
Fine-tuning head. For fine-tuning (Fig. 4b) the four gates are concatenated to , and adaptive average pooling reduces time to windows per electrode. Each window is projected by a linear layer to 256 dimensions, followed by GELU and layer normalisation, and a learned embedding of the window index is added. The resulting tokens, one per electrode per window, are pooled by four-head attention from a single learned query; the pooled vector is concatenated with the mean of all tokens and mapped to class logits by a linear layer after dropout (0.1). The head's parameters do not depend on or , so the same head applies to every dataset: 21 electrodes give 525 tokens and two bipolar channels give 50. Training has two phases. For the first two epochs only the head is trained, which prevents a randomly initialised head from disturbing the pre-trained encoder; afterwards the whole network is trained, with learning rate for the head and for the encoder, AdamW [35] (weight decay 0.05), 5% linear warm-up followed by cosine decay, and class-weighted cross-entropy. The checkpoint with the best balanced accuracy on a subject-disjoint validation set is evaluated once on the test set.
2.6 Pre-training data and implementation
Data. We pre-train on the TUH EEG Events corpus (TUEV) [18, 36], using the recordings of both its training and evaluation partitions and no labels. Recordings are read from the raw EDF files, reduced to the 21 channels of the 10–20 system that have a standard position (ROC is dropped: it has no standard coordinate and is absent from 40% of TUEV samples), resampled to 200 Hz with a polyphase filter, and cut into non-overlapping 30 s windows that never cross a recording boundary. This yields 17,678 windows (147 h), of which 2% are held out for validation. Thirty-second windows give the state-space layers enough context to see rhythms evolve, and because the architecture is length-agnostic, downstream inputs may be shorter or longer. Pre-training on TUEV means that TUEV downstream results measure in-domain transfer; all other downstream datasets are external to pre-training.
Optimisation. Both models are trained for about 74 epochs over the 17,325 training windows (40,000 weight updates with an effective batch of 32 windows: 8 windows with 4-step gradient accumulation), with AdamW (learning rate , , weight decay 0.01), a linear warm-up over the first two epochs followed by cosine decay to zero, gradient clipping at norm 1.0, and an exponential moving average of the weights with decay 0.999. The moving-average weights are used for all downstream evaluations. Training uses bfloat16 autocasting, with the S4D FFT kept in float32 because the kernel tail underflows in bfloat16, and gradient checkpointing [37] of each block. An update with a non-finite loss or gradient is skipped. Each model trains on a single NVIDIA A100 GPU.
2.7 Downstream datasets
We evaluate on nine downstream datasets that differ in task, montage and segment length, compared with all baselines, and on a tenth, the SEED-V emotion corpus, for NOMAD-EEG alone (Table 2). TUAB, TUSZ, TUEV and TUEP come from the TUH EEG corpus [18]; TUEV was also part of NOMAD-EEG's unlabelled pre-training data, so its results measure in-domain transfer. Siena, Bonn, Mumtaz, EEGMMIDB and Sleep-EDF are external to NOMAD-EEG's pre-training and cover new hardware, montages and tasks; some of them were part of other models' pre-training data (Section 2.8). SEED-V is also external to NOMAD-EEG's pre-training.
TUEP, the TUH Epilepsy Corpus, poses a diagnostic question: whether a patient has epilepsy, judged from routine EEG of 100 patients with and 100 without epilepsy. Each patient contributes 60 random 5 s windows. Because the two classes are equal in size, accuracy equals balanced accuracy and weighted F1 equals macro F1 on this task. Under the SEED-V protocol of CBraMod the test set consists of unseen film clips of the same subjects, and the validation clips are distinct from the training clips.
Table 2: Downstream datasets. Train/val/test counts are segments; all splits are subject-disjoint except TUAB, TUSZ, Siena and Bonn, which reuse the fixed splits of our earlier benchmark, and SEED-V, which follows the CBraMod protocol (film clips 1–5, 6–10 and 11–15 of every session; all 16 subjects in every split). TUEP is evaluated by 5-fold cross-validation over its 200 patients.
| Dataset | Task | Classes | Channels | Segment | Train / val / test |
|---|---|---|---|---|---|
| TUAB | abnormal EEG | 2 | 21 | 5 s | 100,000 / 20,000 / 50,000 |
| TUSZ | seizure | 2 | 21 | 5 s | 100,000 / 20,000 / 50,000 |
| TUEV | EEG events | 6 | 21 | 5 s | 83,932 (5-fold CV) / 29,421 |
| TUEP | epilepsy diagnosis | 2 | 19 | 5 s | 12,000 from 200 patients (5-fold CV) |
| Siena | seizure | 2 | 21 | 5 s | 74,512 / 8,279 / 18,729 |
| Bonn | seizure | 2 | 1 | 5 s | 360 / 40 / 100 |
| Mumtaz | depression | 2 | 19 | 5 s | 4,818 / 1,086 / 1,179 |
| EEGMMIDB | motor imagery | 4 | 64 | 4 s | 6,300 / 1,734 / 1,803 |
| Sleep-EDF-20 | sleep stages | 5 | 2 (bipolar) | 30 s | 29,996 / 3,175 / 9,137 |
| SEED-V | emotion | 5 | 59 | 1 s | 34,432 / 42,960 / 40,352 |
2.8 Baselines and overlap with their pre-training data
We compare NOMAD-EEG with seven EEG foundation models, all run by us from their released weights: EEGDM [9], REVE [12] (base), CBraMod [5], LaBraM [2] (base), BIOT [4], EEGMamba [6] and our earlier DiffEEG [8]. Each model receives the same segments in its own native input format (montage, sampling rate and amplitude scaling as in its authors' code) and keeps its own feature pooling. Where a model's fixed channel vocabulary cannot represent a channel, the channel is mapped to the nearest vocabulary entry by 3D position. B[FM] [10] could not be included because its code and weights have not been released.
Several evaluation datasets, or the corpus they were drawn from, appear in the pre-training data of some models, according to each model's paper, README or released pre-training code [2, 5, 8, 9, 12]. NOMAD-EEG and EEGDM were pre-trained on TUEV, BIOT's checkpoint on the TUAB and TUEV training splits, LaBraM on TUSZ, TUEP, Siena and EEGMMIDB, and DiffEEG on the TUSZ training split. REVE, CBraMod and EEGMamba were pre-trained on the TUH EEG corpus, from which TUAB, TUSZ, TUEV and TUEP are drawn, and REVE and EEGMamba also on Siena; REVE removed the recordings of TUAB, TUEV, EEGMMIDB and Mumtaz from its pre-training data. None of the models saw the labels of our test sets, but results on an overlapping dataset measure in-domain rather than external transfer. Bonn, Mumtaz, Sleep-EDF and the BCIAUT-P300 data do not appear in any model's documented pre-training data. LaBraM is not compared on TUEP because TUEP was part of its pre-training data.
2.9 Evaluation protocol
The main comparison is a frozen linear probe. Encoders are frozen; a class-balanced, L2-regularised logistic regression is trained on the training features, its regularisation strength is chosen on the validation split (by AUROC for binary and balanced accuracy for multi-class tasks), and the test set is scored once. For TUEV we use NOMAD-EEG's own probe (a softmax layer whose L2 strength and number of epochs are chosen by 5-fold subject-grouped cross-validation) for every model. On TUEP the probe is evaluated by 5-fold cross-validation over patients with identical folds for every model; its C is chosen on 20% of the training patients, and a patient's score is the mean probability of their windows. We report a fixed set of metrics for every dataset: AUROC, PR-AUC, balanced accuracy and macro F1 for binary tasks, and balanced accuracy, Cohen's and weighted F1 for multi-class tasks.
For TUEV, TUAB, TUSZ, Mumtaz, EEGMMIDB, Sleep-EDF and SEED-V we additionally fine-tune NOMAD-EEG end to end (Section 2.5): two epochs with the encoder frozen, then 20 epochs end to end (10 for TUEV), the epoch chosen by validation balanced accuracy. The baselines were evaluated as frozen probes only, so a fine-tuned NOMAD-EEG row is compared with frozen baselines. For TUAB and TUSZ the benchmark's validation windows are drawn from the training patients (the stored windows carry no patient identifier), so fine-tuning there selects its epoch on patients it is trained on.
2.10 Statistical analysis
Every reported metric carries a 95% confidence interval from 1,000 bootstrap resamples: of test windows for the fixed-split benchmarks, and of subjects or patients for the cross-validated ones (TUEP, BCIAUT-P300, Parkinson's disease). Differences between two models evaluated on the same test samples (diffusion against flow matching, NOMAD-EEG against a baseline on TUEP and Parkinson's disease) are tested with a paired bootstrap on the same resamples (2,000 resamples for the objective comparison), and a difference is called significant only when its 95% interval excludes zero. Where only unpaired intervals are available, we state whether they overlap and do not call non-overlapping intervals a paired test.
2.11 Transfer to unseen populations
To test whether NOMAD-EEG transfers to a population, task and montage that none of the models saw in pre-training, we evaluate frozen encoders on BCIAUT-P300 [38] and on a Parkinson's disease corpus. No encoder is trained or fine-tuned on any data from these corpora: the pre-trained weights are used as they are, and only a linear classifier is fitted on top (a linear probe), always on subjects other than the ones it is tested on.
BCIAUT-P300 data. BCIAUT-P300 contains EEG from 15 young people with autism spectrum disorder (ASD), each recorded in 7 sessions of a P300-based brain–computer-interface training in which eight objects are flashed and the participant attends to one of them [38]. EEG was recorded at 250 Hz from eight electrodes (C3, Cz, C4, CPz, P3, Pz, P4, POz) and epoched from −200 to 1,200 ms around each flash. Because every participant has ASD, the task is not autism diagnosis but P300 detection: deciding whether a flashed object was the attended target. We use the labelled calibration data of every session: 20 blocks of 10 runs of 8 flashes, 1,600 epochs per session and 168,000 epochs in total, of which 21,000 (12.5%) are targets. Epochs are resampled to 200 Hz (280 samples, 1.4 s) and normalised per channel with a median and inter-quartile range pooled over all epochs without using labels, then clipped at ±20. The Kaggle release also contains labels for the online (test) sessions, which were withheld in the original challenge; we do not use them.
Models and inputs. We compare NOMAD-EEG-D with DiffEEG [8], EEGDM [9], REVE [12] and BIOT [4], each fed in its native input format (Section 1.1). This montage is new to all five models, and they can read different amounts of it. NOMAD-EEG and REVE place all eight electrodes by their 3D positions; CPz and POz are not in NOMAD-EEG's pre-training montage. DiffEEG's fixed 22-channel layout has slots for six of the eight (C3, Cz, C4, P3, Pz, P4). EEGDM's vocabulary of bipolar channels allows four derivations (C3–Cz, C4–Cz, C3–P3, C4–P4), and BIOT's allows two (C3–P3, C4–P4). Two models also need an adaptation to the 1.4 s epoch. EEGDM pools its gate activations over one window spanning the whole epoch instead of 1 s windows. REVE keeps its own 1 s patches, so it reads a single patch covering −200 to 800 ms, which contains the P300 (typically 250–500 ms after the flash).
BCIAUT-P300 protocol. Features are extracted once with each frozen encoder (for NOMAD-EEG, the frozen feature extractor of Section 2.5). The 15 subjects are split into five folds of three (subject-grouped cross-validation). In each fold, a class-balanced, L2-regularised logistic regression is trained on the other twelve subjects; its strength is chosen by AUROC on three of those twelve held out as validation, and the classifier is then refitted on all twelve and applied to the three test subjects. Every epoch is therefore predicted exactly once, by a classifier that never saw its subject. We report, on the pooled out-of-fold predictions, AUROC, balanced accuracy and PR-AUC (chance level equals the target rate, 0.125), with 95% confidence intervals from 1,000 bootstrap resamples of subjects. We also report the decision a P300 speller actually makes: in each block, the object whose flashes receive the highest mean target probability over the first k runs is selected, and we score how often it is the attended object (chance 12.5%) for k = 1, 3 and 10.
Parkinson's disease. We apply the same unseen-participant protocol to a diagnostic task: Parkinson's disease (PD) against healthy controls in OpenNeuro ds004584, 149 participants (100 PD, 49 controls) recorded at rest with eyes open for about two minutes with a 64-channel cap at 500 Hz. We keep the 60 electrodes that have a standard 10-05 position and are present in every recording, convert to microvolts, resample to 200 Hz, remove each window's per-channel median and cut 5 s windows (4,719 in total). The 149 participants are split into five folds stratified by group, identical for every model; in each fold the logistic regression's is chosen by AUROC on 20% of the training participants, and the classifier is refitted on all training participants. The diagnosis is made per participant, as the mean probability of their windows; confidence intervals resample participants.
2.12 Ablation experiments
Pre-trained against random weights. To separate what pre-training contributes from what the architecture and the task head contribute, we evaluate the same network with random weights through the identical feature extraction, probe and fine-tuning protocol, on TUEV, TUAB, Siena, Bonn and Mumtaz.
Diffusion against flow matching. Because the objective is a single switch in our implementation, we trained a second model, NOMAD-EEG-F, that differs from NOMAD-EEG only in the objective (rectified flow, Section 2.3): architecture, data, optimiser and number of training epochs are identical. The two are compared on every downstream dataset with a paired bootstrap on the shared test samples.
Electrode order and missing electrodes. Section 2.4 shows that NOMAD-EEG is equivariant to the order of its electrodes by construction. We test this on the Mumtaz test set (19 electrodes, 1,179 windows) by listing the electrodes in five random orders, each electrode keeping its own position, and comparing every gate activation and every test prediction with those of the original order. As a control, we shuffle the positions while leaving the signals in place. To test missing electrodes, the linear probe is trained once on the full 19-electrode montage and applied, unchanged, to the same test recordings with only 14, 10 or 5 electrodes given, five random subsets for each size; no electrode is imputed.
2.13 Scaling experiment: NOMAD-EEG-Large
NOMAD-EEG was pre-trained on 147 h from one corpus with one montage. To test whether the architecture improves when it is made larger and given more, and more varied, EEG, we trained NOMAD-EEG-Large, which scales the model and the pre-training data together, and evaluated it with exactly the protocols used for Base.
Model. NOMAD-EEG-Large uses the same code and the same block as Base (Section 2.2), widened from to , deepened from 16 to 24 blocks and given 8 instead of 4 attention heads: 67.6 M parameters against 12.0 M ( ). Features are read from blocks
6, 12, 18 and 24 with the same windowed mean and standard deviation, which gives 20,480 dimensions instead of 10,240 (Table 3).
Pre-training data. The pool contains 6,984 h of EEG from seven corpora (47 × Base): Sleep-EDF expanded (2,954 h), TUSZ (1,202 h, training and development splits), TUAB (1,024 h, training split), CHB-MIT (990 h), TUEP (627 h), TUEV (147 h, as for Base) and SEED-V (41 h). Recordings keep their native montages, with every channel that has a standard 10-20 or 10-05 position (bipolar derivations at the midpoint of their two electrodes), which gives 38 distinct channel groups with up to 62 electrodes. Signals are resampled to 200 Hz and cut into 30 s windows, and each window's per-channel median is removed. The evaluation patients of TUSZ and TUAB and the Sleep-EDF subjects used downstream were held out of the pool, as were Siena, Bonn, Mumtaz, EEGMMIDB and BCIAUT. TUEP and SEED-V were included in full, so for Large these two evaluations are in-domain.
Training. Each batch is drawn from one channel group, with a random subset of 2 to 32 of its electrodes and a crop of 30 s half of the time and 5 to 25 s otherwise, capped at 640 electrode-seconds per sample. Corpora are sampled with probability proportional to , so the largest corpora do not dominate. We count one epoch as as many samples as the pool has 30 s windows (about 838,000); because samples are crops of at most 30 s on a subset of electrodes, this is an upper bound on the signal seen. The optimiser, schedule, moving average, precision and effective batch of 32 are those of Base (Section 2.6), with learning rate , a warm-up over the first 0.08 epochs and 2.3 epochs in total (60,000 weight updates). Large was trained on a single 20 GB slice of an A100 GPU (4 samples per update with 8-step gradient accumulation) in 12-hour jobs that resume from the last checkpoint, and training ran to completion. We evaluate two checkpoints, after 1.0 and 1.9 epochs. By 1.9 epochs the learning rate had decayed to 5% of its peak and the probe results changed little between the two checkpoints on most datasets (Table 18), so the final 0.3 epochs, at an even lower learning rate, were not evaluated.
Table 3: Base and Large configurations. An epoch is as many samples as the training set has 30 s windows; for Large, whose samples are crops of at most 30 s, it is an upper bound on the signal seen.
| NOMAD-EEG (Base) | NOMAD-EEG-Large | |
|---|---|---|
| Parameters | 12.0 M | 67.6 M |
| Width / blocks / heads | 256 / 16 / 4 | 512 / 24 / 8 |
| Feature dimension | 10,240 | 20,480 |
| Pre-training data | 147 h, 1 corpus | 6,984 h, 7 corpora |
| Montages | 1 (21 electrodes) | 38 channel groups, 1–62 electrodes |
| Electrodes per sample | 21 | random subset of 2–32 |
| Training windows | 17,325 | ≈838,000 |
| Effective batch | 32 | 32 |
| Training length | 74 epochs | 2.3 epochs |
| Checkpoint evaluated | after 74 epochs | after 1.9 epochs |
| Samples seen at that checkpoint | 1.28 M | 1.63 M |
Evaluation. Large is evaluated after 1.0 and 1.9 epochs on all ten benchmarks, with the frozen linear probes, splits and metrics of Section 2.9; it is not fine-tuned. Its input windows have the per-channel median removed, as in its pre-training; all other preprocessing is that of Base.
2.14 Model interpretation
To see what drives NOMAD-EEG's seizure decisions, we attribute the seizure score of the frozen model with its TUSZ linear probe (Table 5) to the input with Integrated Gradients [39]: the gradient of the probe's seizure logit with respect to the input, integrated over 32 steps along a straight path from a baseline in which every channel is at its median. Positive attributions (evidence for seizure) are summed per electrode over 0.25 s bins and over electrodes per bin. Two 5 s segments are drawn from the TUSZ test set, whose patients the probe never saw, by a rule fixed in advance: a seeded random choice among test windows labelled seizure that the model classifies with probability above 0.9, and one among windows labelled non-seizure with probability below 0.1, so that they are typical correct decisions rather than hand-picked ones.
2.15 Use of AI tools
During the preparation of this work, the authors used Claude to improve language and readability. After using these tools, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article.
3 Results
3.1 Overview
Across the eight benchmarks compared with all baselines (Tables 4 to 6 and 8 to 12), NOMAD-EEG is never ranked below fourth by each dataset's primary metric (AUROC for binary, balanced accuracy for multi-class tasks) and is first on Bonn and EEGMMIDB; REVE and EEGDM lead most often, and NOMAD-EEG ranks ahead of LaBraM, CBraMod, BIOT, EEGMamba and DiffEEG on average. On the five epilepsy tasks (Fig. 5), NOMAD-EEG has the highest macro F1 on Siena (0.622) and Bonn (0.985, level with REVE), the highest on TUEP among the models not pre-trained on it (0.638), the second highest on TUSZ (0.620, behind EEGDM's 0.642), and is behind EEGDM and REVE on TUEV (0.440 against 0.537 and 0.475).
3.2 TUH benchmarks (TUAB, TUSZ, TUEV, TUEP)
On TUEV, NOMAD-EEG fine-tuned end to end reaches 0.635 and weighted F1 0.814, the highest values in Table 6, with confidence intervals above those of every other model; only on balanced accuracy is EEGDM's frozen probe higher (0.647 against 0.597). As a frozen probe, NOMAD-EEG is third on TUEV (balanced accuracy 0.542, 0.465). On TUSZ the top three frozen probes are close: NOMAD-EEG's AUROC of 0.866 is 0.013 below REVE's,

Fig. 5 Summary of the epilepsy tasks. Macro F1 of the frozen linear probe of every model on seizure detection (TUSZ, Siena, Bonn), epileptiform event classification (TUEV, mean of the six per-class F1 values) and epilepsy diagnosis (TUEP, patient level). Macro F1 is shown because it measures decisions at the classifier's threshold, which in seizure detection determines the false alarms; the primary metric of each dataset is given in its table. Red dots: the model's pre-training data contained that dataset (Section 2.8); LaBraM's TUEP value is shown for completeness although it is excluded from Table 7 for that reason. Values come from the same probes as Tables 5 to 9; the TUEV macro F1 is computed from the per-class F1 values of those predictions.
and its macro F1 (0.620) is second only to EEGDM's (0.642); fine-tuned, NOMAD-EEG has the highest macro F1 of all models (0.676), while REVE and EEGDM keep the highest AUROC, PR-AUC and balanced accuracy (Table 5). On TUAB, REVE leads on every metric and NOMAD-EEG is fourth by AUROC (0.838), behind REVE, EEGDM and BIOT (Table 4). Apart from TUSZ's macro F1, fine-tuning does not improve on the frozen probe on these two datasets: TUSZ AUROC 0.854 [0.847, 0.860] against 0.866, with PR-AUC falling from 0.446 to 0.345 and balanced accuracy from 0.787 to 0.773; TUAB AUROC 0.833 against 0.838, balanced accuracy 0.770 for both. The selected fine-tuning epochs reached a validation balanced accuracy of 0.961 (TUSZ) and 0.981 (TUAB).
On TUEP all seven compared models separate the two groups above chance from frozen features (Table 7). NOMAD-EEG has the highest patient-level accuracy (0.640) and F1 (0.638). Only EEGMamba, pre-trained on the TUH corpus that contains TUEP, has a higher AUROC (0.694 against 0.679) and PR-AUC, and no model is significantly better than NOMAD-EEG on either (paired difference with EEGMamba, 95% CI ). Among the four models pre-trained neither on TUEP nor on the full TUH corpus (NOMAD-EEG, EEGDM, BIOT and DiffEEG), NOMAD-EEG is best on every metric.
Table 4: TUAB abnormal-EEG detection (5 s windows; 50,000 test windows), frozen linear probe. Brackets: 95% bootstrap CI. TUAB's training split was in BIOT's pre-training data, and CBraMod and EEGMamba were pre-trained on the TUH corpus it is drawn from (Section 2.8). The indented row is NOMAD-EEG fine-tuned end to end (not part of the bold comparison); its epoch was selected on the benchmark's validation windows, which come from the training patients (Section 2.9).
| Model | Dim | AUROC | PR-AUC | Bal. acc. | Macro F1 |
|---|---|---|---|---|---|
| NOMAD-EEG (ours) | 10,240 | 0.838 [0.834, 0.842] | 0.820 | 0.770 | 0.771 |
| fine-tuned | — | 0.833 [0.830, 0.837] | 0.785 | 0.770 | 0.771 |
| EEGDM [9] | 2,560 | 0.869 [0.865, 0.872] | 0.862 | 0.792 | 0.792 |
| REVE [12] | 512 | 0.870 [0.867, 0.873] | 0.880 | 0.800 | 0.802 |
| CBraMod [5] | 200 | 0.808 [0.804, 0.812] | 0.803 | 0.738 | 0.739 |
| LaBraM [2] | 200 | 0.788 [0.784, 0.792] | 0.785 | 0.713 | 0.714 |
| BIOT [4] | 256 | 0.847 [0.844, 0.850] | 0.849 | 0.771 | 0.772 |
| EEGMamba [6] | 200 | 0.746 [0.742, 0.750] | 0.726 | 0.689 | 0.690 |
| DiffEEG [8] | 2,400 | 0.760 [0.756, 0.764] | 0.718 | 0.695 | 0.696 |
Table 5: TUSZ seizure detection (5 s windows; 50,000 test windows at the true seizure prevalence), frozen linear probe. TUSZ was in LaBraM's and DiffEEG's pre-training data, and REVE, CBraMod and EEGMamba were pre-trained on the TUH corpus it is drawn from (Section 2.8). The indented row is NOMAD-EEG fine-tuned end to end (not part of the bold comparison); its epoch was selected on the benchmark's validation windows, which come from the training patients (Section 2.9).
| Model | Dim | AUROC | PR-AUC | Bal. acc. | Macro F1 |
|---|---|---|---|---|---|
| NOMAD-EEG (ours) | 10,240 | 0.866 [0.860, 0.873] | 0.446 | 0.787 | 0.620 |
| fine-tuned | — | 0.854 [0.847, 0.860] | 0.345 | 0.773 | 0.676 |
| EEGDM [9] | 2,560 | 0.874 [0.866, 0.881] | 0.527 | 0.801 | 0.642 |
| REVE [12] | 512 | 0.879 [0.873, 0.886] | 0.463 | 0.798 | 0.611 |
| CBraMod [5] | 200 | 0.855 [0.847, 0.862] | 0.455 | 0.776 | 0.586 |
| LaBraM [2] | 200 | 0.845 [0.837, 0.851] | 0.416 | 0.765 | 0.589 |
| BIOT [4] | 256 | 0.760 [0.752, 0.768] | 0.279 | 0.691 | 0.544 |
| EEGMamba [6] | 200 | 0.836 [0.829, 0.843] | 0.308 | 0.763 | 0.585 |
| DiffEEG [8] | 2,400 | 0.813 [0.804, 0.820] | 0.301 | 0.745 | 0.575 |
3.3 Seizure detection on external corpora (Siena, Bonn)
On Siena, where seizures make up 0.6% of training windows, NOMAD-EEG has the highest macro F1 (0.622, with a CI that excludes every other model), accuracy (0.979) and weighted F1 (0.984). EEGDM ranks seizures best by AUROC (0.915) and REVE has the highest PR-AUC (Table 8). Bonn is close to saturated: NOMAD-EEG and REVE both reach an AUROC of about 0.998–0.999 and all confidence intervals overlap (Table 9). Fed the single signal-carrying electrode alone, rather than a 22-channel frame, NOMAD-EEG still reaches an AUROC of 0.995.
Table 6: TUEV event classification (6 classes; 29,421 test events; in the pre-training data of NOMAD-EEG, EEGDM and BIOT, and in the TUH corpus on which CBraMod and EEGMamba were pre-trained, Section 2.8), frozen linear probe with 5-fold subject-grouped cross-validation. The indented row is NOMAD-EEG fine-tuned end to end; bold marks the best value in each column including this row, although the baselines were evaluated only as frozen probes.
| Model | Dim | Bal. acc. | Cohen | Weighted F1 |
|---|---|---|---|---|
| NOMAD-EEG (ours) | 10,240 | 0.542 [0.529, 0.554] | 0.465 | 0.719 |
| fine-tuned | — | 0.597 [0.588, 0.605] | 0.635 | 0.814 |
| EEGDM [9] | 2,560 | 0.647 [0.638, 0.657] | 0.568 | 0.783 |
| REVE [12] | 512 | 0.565 [0.553, 0.577] | 0.515 | 0.753 |
| CBraMod [5] | 200 | 0.466 [0.455, 0.477] | 0.346 | 0.635 |
| LaBraM [2] | 200 | 0.521 [0.510, 0.534] | 0.365 | 0.633 |
| BIOT [4] | 256 | 0.519 [0.507, 0.530] | 0.428 | 0.698 |
| EEGMamba [6] | 200 | 0.520 [0.509, 0.530] | 0.374 | 0.664 |
| DiffEEG [8] | 2,400 | 0.329 [0.318, 0.340] | 0.179 | 0.503 |
Table 7: TUEP epilepsy diagnosis (200 patients, 100 with and 100 without epilepsy; 19 electrodes, 60 random 5 s windows per patient), frozen encoders and a linear probe evaluated on unseen patients (5-fold cross-validation stratified by diagnosis, identical folds for every model). A patient's score is the mean probability of their windows. Brackets: 95% CI from 1,000 bootstrap resamples of patients; accuracy and F1 at a 0.5 threshold. LaBraM is not included because TUEP was part of its pre-training data (under the same protocol its patient-level AUROC is 0.741 and accuracy 0.680). The model was pre-trained on the TUH corpus from which TUEP is drawn (Section 2.8). Bold: best among the models whose pre-training did not include TUEP recordings (no mark); underlined: best overall.
| Model | Dim | AUROC | PR-AUC | Accuracy | Weighted F1 | Macro F1 |
|---|---|---|---|---|---|---|
| NOMAD-EEG (ours) | 10,240 | 0.679 [0.607, 0.751] | 0.675 | 0.640 | 0.638 | 0.638 |
| EEGDM [9] | 2,560 | 0.673 [0.599, 0.745] | 0.638 | 0.610 | 0.609 | 0.609 |
| REVE [12] | 512 | 0.671 [0.596, 0.748] | 0.674 | 0.605 | 0.605 | 0.605 |
| CBraMod [5] | 200 | 0.671 [0.591, 0.745] | 0.667 | 0.615 | 0.615 | 0.615 |
| BIOT [4] | 256 | 0.675 [0.605, 0.748] | 0.633 | 0.630 | 0.630 | 0.630 |
| EEGMamba [6] | 200 | 0.694 [0.619, 0.766] | 0.701 | 0.625 | 0.625 | 0.625 |
| DiffEEG [8] | 2,400 | 0.622 [0.542, 0.702] | 0.603 | 0.605 | 0.605 | 0.605 |
3.4 New montages and tasks (Mumtaz, EEGMMIDB, Sleep-EDF, SEED-V)
On EEGMMIDB, the 64-electrode motor-imagery benchmark in which 45 of the electrode positions were never seen in NOMAD-EEG's pre-training, NOMAD-EEG is the best frozen model on all three metrics (balanced accuracy 0.442, chance 0.25; Table 11); the second-best model, DiffEEG (0.418), has an overlapping CI, and NOMAD-EEG's CI excludes REVE (0.371) and every model below it. On Sleep-EDF, with two bipolar channels and 30 s epochs, NOMAD-EEG is third by balanced accuracy (0.757), level with REVE (0.760) and behind EEGDM (0.779), and second by Cohen's (Table 12). On Mumtaz NOMAD-EEG is third by AUROC (0.942)
Table 8: Siena seizure detection (external to NOMAD-EEG; 18,729 test windows, 0.6% seizure in training), frozen linear probe. Siena recordings were in REVE's, LaBraM's and EEGMamba's pre-training data (Section 2.8).
| Model | Dim | AUROC | PR-AUC | Accuracy | Weighted F1 | Macro F1 |
|---|---|---|---|---|---|---|
| NOMAD-EEG (ours) | 10,240 | 0.882 [0.847, 0.914] | 0.306 | 0.979 | 0.984 | 0.622 |
| EEGDM [9] | 2,560 | 0.915 [0.889, 0.938] | 0.248 | 0.916 | 0.950 | 0.534 |
| REVE [12] | 512 | 0.906 [0.872, 0.937] | 0.460 | 0.946 | 0.966 | 0.562 |
| CBraMod [5] | 200 | 0.850 [0.806, 0.888] | 0.189 | 0.872 | 0.925 | 0.502 |
| LaBraM [2] | 200 | 0.797 [0.756, 0.836] | 0.056 | 0.833 | 0.903 | 0.478 |
| BIOT [4] | 256 | 0.707 [0.657, 0.755] | 0.020 | 0.780 | 0.870 | 0.455 |
| EEGMamba [6] | 200 | 0.855 [0.812, 0.893] | 0.252 | 0.828 | 0.899 | 0.482 |
| DiffEEG [8] | 2,400 | 0.777 [0.724, 0.827] | 0.057 | 0.921 | 0.952 | 0.522 |
Table 9: Bonn seizure detection (external; single-channel recordings; 100 test segments), frozen linear probe. All models read the recording in a 22-channel frame; the indented row feeds NOMAD-EEG the one signal-carrying electrode alone.
| Model | Dim | AUROC | PR-AUC | Bal. acc. | Macro F1 |
|---|---|---|---|---|---|
| NOMAD-EEG (ours) | 10,240 | 0.999 [0.996, 1.000] | 0.998 | 0.994 | 0.985 |
| single electrode only | 10,240 | 0.995 [0.981, 1.000] | 0.983 | 0.944 | 0.913 |
| EEGDM [9] | 2,560 | 0.994 [0.982, 1.000] | 0.975 | 0.963 | 0.915 |
| REVE [12] | 512 | 0.998 [0.991, 1.000] | 0.992 | 0.994 | 0.985 |
| CBraMod [5] | 200 | 0.996 [0.986, 1.000] | 0.985 | 0.956 | 0.903 |
| LaBraM [2] | 200 | 0.995 [0.983, 1.000] | 0.982 | 0.950 | 0.890 |
| BIOT [4] | 256 | 0.979 [0.943, 1.000] | 0.949 | 0.938 | 0.900 |
| EEGMamba [6] | 200 | 0.948 [0.867, 1.000] | 0.919 | 0.906 | 0.906 |
| DiffEEG [8] | 2,400 | 0.982 [0.954, 0.999] | 0.937 | 0.944 | 0.913 |
behind REVE and EEGDM, with overlapping CIs (Table 10). Fine-tuning does not improve on the frozen probe on Mumtaz (0.821 against 0.832 balanced accuracy) or Sleep-EDF (0.758 against 0.757), whereas on EEGMMIDB it does (0.596 against 0.442). On SEED-V, five-class emotion recognition from 59 electrodes in 1 s windows evaluated for NOMAD-EEG alone, the frozen probe reaches a balanced accuracy of 0.315 (chance 0.20) and κ 0.136, and fine-tuning raises them to 0.384 and 0.231 (Table 13).
3.5 Transfer to unseen populations
NOMAD-EEG is the best of the five models on every BCIAUT-P300 metric (Table 14). It reaches an AUROC of 0.718 and selects the attended object in 75.5% of blocks after ten runs, against 61.2% for EEGDM and 57.5% for REVE. The advantage holds within subjects: its per-subject AUROC exceeds REVE's in all 15 subjects and EEGDM's in 13. BIOT and DiffEEG are close to chance.
All five models detect Parkinson's disease above chance from frozen features, but here
Table 10: Mumtaz depression vs. healthy (external; 19 electrodes, 5 s windows; 1,179 test windows from 10 held-out subjects), frozen linear probe. The indented row is NOMAD-EEG fine-tuned end to end (no baseline was fine-tuned).
| Model | Dim | AUROC | PR-AUC | Bal. acc. | Macro F1 |
|---|---|---|---|---|---|
| NOMAD-EEG (ours) | 10,240 | 0.942 [0.929, 0.954] | 0.951 | 0.832 | 0.831 |
| fine-tuned | — | 0.872 [0.851, 0.893] | 0.792 | 0.821 | 0.821 |
| EEGDM [9] | 2,560 | 0.946 [0.935, 0.958] | 0.945 | 0.857 | 0.856 |
| REVE [12] | 512 | 0.960 [0.951, 0.968] | 0.962 | 0.842 | 0.841 |
| CBraMod [5] | 200 | 0.860 [0.838, 0.883] | 0.810 | 0.804 | 0.803 |
| LaBraM [2] | 200 | 0.904 [0.887, 0.922] | 0.886 | 0.838 | 0.837 |
| BIOT [4] | 256 | 0.928 [0.912, 0.942] | 0.910 | 0.829 | 0.829 |
| EEGMamba [6] | 200 | 0.867 [0.845, 0.887] | 0.843 | 0.810 | 0.809 |
| DiffEEG [8] | 2,400 | 0.901 [0.883, 0.918] | 0.889 | 0.807 | 0.806 |
Table 11: EEGMMIDB motor imagery (external to NOMAD-EEG; 4 classes, 64 electrodes, 4 s trials; 1,803 test trials from 20 held-out subjects), frozen linear probe. EEGMMIDB was in LaBraM's pre-training data (Section 2.8). The indented row is NOMAD-EEG fine-tuned end to end.
| Model | Dim | Bal. acc. | Cohen | Weighted F1 |
|---|---|---|---|---|
| NOMAD-EEG (ours) | 10,240 | 0.442 [0.419, 0.463] | 0.256 | 0.442 |
| fine-tuned | — | 0.596 [0.574, 0.618] | 0.461 | 0.599 |
| EEGDM [9] | 2,560 | 0.347 [0.325, 0.367] | 0.130 | 0.338 |
| REVE [12] | 512 | 0.371 [0.348, 0.393] | 0.161 | 0.370 |
| CBraMod [5] | 200 | 0.308 [0.287, 0.330] | 0.078 | 0.306 |
| LaBraM [2] | 200 | 0.302 [0.280, 0.324] | 0.070 | 0.301 |
| BIOT [4] | 256 | 0.274 [0.255, 0.294] | 0.032 | 0.269 |
| EEGMamba [6] | 200 | 0.304 [0.283, 0.324] | 0.073 | 0.303 |
| DiffEEG [8] | 2,400 | 0.418 [0.395, 0.439] | 0.224 | 0.417 |
Table 12: Sleep-EDF-20 sleep staging (external; 5 stages, 2 bipolar channels, 30 s epochs; 9,137 test epochs from 4 held-out subjects), frozen linear probe. The indented row is NOMAD-EEG fine-tuned end to end.
| Model | Dim | Bal. acc. | Cohen | Weighted F1 |
|---|---|---|---|---|
| NOMAD-EEG (ours) | 10,240 | 0.757 [0.748, 0.766] | 0.680 | 0.770 |
| fine-tuned | — | 0.758 [0.748, 0.768] | 0.694 | 0.784 |
| EEGDM [9] | 2,560 | 0.779 [0.770, 0.788] | 0.718 | 0.802 |
| REVE [12] | 512 | 0.760 [0.750, 0.770] | 0.675 | 0.771 |
| CBraMod [5] | 200 | 0.725 [0.715, 0.735] | 0.639 | 0.743 |
| LaBraM [2] | 200 | 0.738 [0.729, 0.747] | 0.676 | 0.770 |
| BIOT [4] | 256 | 0.741 [0.731, 0.750] | 0.659 | 0.761 |
| EEGMamba [6] | 200 | 0.722 [0.712, 0.732] | 0.601 | 0.717 |
| DiffEEG [8] | 2,400 | 0.715 [0.704, 0.725] | 0.628 | 0.737 |
Table 13: SEED-V emotion recognition (external; 5 emotions, 59 electrodes, 1 s windows; within every session film clips 1–5 train, 6–10 validation, 11–15 test, all 16 subjects in every split), NOMAD-EEG only. Chance balanced accuracy is 0.20.
| NOMAD-EEG | Bal. acc. | Cohen | Weighted F1 |
|---|---|---|---|
| frozen linear probe | 0.315 [0.310, 0.319] | 0.136 | 0.302 |
| fine-tuned | 0.384 [0.380, 0.389] | 0.231 | 0.392 |
Table 14: P300 detection on BCIAUT-P300 (15 participants with ASD, 168,000 epochs, 12.5% targets). Encoders are frozen and never trained on this corpus; a linear probe is evaluated on subjects it never saw (five folds of three subjects). Brackets: 95% CI from a bootstrap over subjects. “Object acc.” is the rate at which the attended object among eight is selected from the first 1, 3 or 10 runs of a block (chance 12.5%).
| Model | Channels read | AUROC | Bal. acc. | PR-AUC | Object acc. (1/3/10 runs) | Per-subject AUROC range |
|---|---|---|---|---|---|---|
| NOMAD-EEG | 8 | 0.718 [0.695, 0.739] | 0.660 | 0.289 | 32.6 / 51.5 / 75.5% | 0.652–0.805 |
| EEGDM | 4 bipolar | 0.667 [0.631, 0.699] | 0.624 | 0.227 | 27.8 / 42.4 / 61.2% | 0.540–0.805 |
| REVE | 8 | 0.651 [0.626, 0.675] | 0.612 | 0.209 | 24.6 / 37.9 / 57.5% | 0.563–0.752 |
| BIOT | 2 bipolar | 0.530 [0.521, 0.539] | 0.520 | 0.136 | 14.5 / 17.2 / 21.8% | 0.503–0.571 |
| DiffEEG | 6 | 0.522 [0.508, 0.534] | 0.517 | 0.133 | 13.9 / 15.1 / 19.4% | 0.457–0.556 |
NOMAD-EEG is not the best (Table 15). EEGDM reaches a participant-level AUROC of 0.795 [0.714, 0.868], significantly above NOMAD-EEG’s 0.684 [0.590, 0.777] (paired difference -0.111, 95% CI [-0.203, -0.012]); NOMAD-EEG is level with BIOT, DiffEEG and REVE, whose intervals overlap its own. NOMAD-EEG’s selected ranged from to 10 across folds.
Table 15: Parkinson’s disease vs. control (OpenNeuro ds004584; 149 participants, 100 PD / 49 controls; 60 electrodes, 5 s windows), frozen encoders and a linear probe evaluated on unseen participants (5-fold cross-validation stratified by group, identical folds for every model). A participant’s score is the mean probability of their windows. Brackets: 95% CI from 1,000 bootstrap resamples of participants.
| Model | Window AUROC | Participant AUROC | Participant bal. acc. |
|---|---|---|---|
| NOMAD-EEG (ours) | 0.679 [0.609, 0.754] | 0.684 [0.590, 0.777] | 0.620 [0.542, 0.706] |
| EEGDM [9] | 0.783 [0.709, 0.845] | 0.795 [0.714, 0.868] | 0.702 [0.618, 0.782] |
| REVE [12] | 0.653 [0.571, 0.733] | 0.643 [0.547, 0.740] | 0.626 [0.543, 0.705] |
| BIOT [4] | 0.659 [0.583, 0.730] | 0.681 [0.593, 0.771] | 0.672 [0.593, 0.748] |
| DiffEEG [8] | 0.634 [0.585, 0.683] | 0.713 [0.623, 0.794] | 0.672 [0.587, 0.751] |
3.6 Ablations
Pre-trained against random weights. Pre-training improves balanced accuracy on TUEV by 0.107 as a frozen probe and by 0.132 after fine-tuning, improves TUAB AUROC by 0.040, and improves Siena macro F1 by 0.071, all with non-overlapping confidence intervals (Table 16). On Siena the gain is in precision at the decision threshold (macro F1; PR-AUC is also higher, but its CIs overlap) and not in ranking: AUROC is unchanged. On Mumtaz, fine-tuning from random weights matches fine-tuning from the pre-trained model, and Bonn is saturated for both.
Table 16: Effect of pre-training: NOMAD-EEG with its pre-trained weights versus the same architecture with random weights, under the identical feature extraction and protocol. Brackets: 95% bootstrap CI. △ in bold where the two CIs do not overlap.
| Dataset | Setting | Metric | Pre-trained | Random init. | △ |
|---|---|---|---|---|---|
| TUEV | linear probe | Bal. acc. | 0.542 [0.529, 0.554] | 0.434 [0.422, 0.446] | +0.107 |
| TUEV | fine-tuned | Bal. acc. | 0.597 [0.588, 0.605] | 0.465 [0.455, 0.474] | +0.132 |
| TUAB | linear probe | AUROC | 0.838 [0.834, 0.842] | 0.798 [0.794, 0.801] | +0.040 |
| Siena | linear probe | AUROC | 0.882 [0.847, 0.914] | 0.892 [0.858, 0.924] | -0.010 |
| Siena | linear probe | Macro F1 | 0.622 [0.596, 0.646] | 0.551 [0.538, 0.563] | +0.071 |
| Siena | linear probe | PR-AUC | 0.306 [0.221, 0.392] | 0.192 [0.134, 0.262] | +0.114 |
| Bonn | linear probe | AUROC | 0.999 [0.996, 1.000] | 0.997 [0.987, 1.000] | +0.003 |
| Mumtaz | fine-tuned | Bal. acc. | 0.821 [0.798, 0.844] | 0.828 [0.807, 0.851] | -0.007 |
Diffusion against flow matching. Diffusion is better on four datasets (TUEV, TUAB, Siena macro F1 and Sleep-EDF), flow is better on one (TUSZ balanced accuracy, by 0.011), and the remaining comparisons show no difference (Table 17). The largest gaps favour diffusion: 0.086 macro F1 on Siena, 0.055 balanced accuracy on TUEV and 0.041 on Sleep-EDF.
Table 17: Diffusion versus flow matching. Both models share architecture, data, number of steps, optimiser and feature extraction; only the objective differs. Frozen linear probe on each dataset; “Flow – diffusion” is the paired difference on the same test samples with a 95% CI from 2,000 paired bootstrap resamples.
| Dataset | Metric | Diffusion | Flow | Flow — diffusion |
|---|---|---|---|---|
| TUEV | Bal. acc. | 0.542 | 0.486 | -0.055 [-0.067, -0.044] |
| TUAB | AUROC | 0.838 | 0.827 | -0.011 [-0.013, -0.008] |
| TUAB | Bal. acc. | 0.770 | 0.762 | -0.008 [-0.011, -0.004] |
| TUSZ | AUROC | 0.866 | 0.870 | +0.004 [-0.002, 0.010] |
| TUSZ | Bal. acc. | 0.787 | 0.798 | +0.011 [0.003, 0.018] |
| Siena | AUROC | 0.882 | 0.866 | -0.016 [-0.037, 0.004] |
| Siena | Macro F1 | 0.622 | 0.536 | -0.086 [-0.103, -0.068] |
| Bonn | AUROC | 0.999 | 0.996 | -0.003 [-0.010, 0.000] |
| Mumtaz | Bal. acc. | 0.832 | 0.830 | -0.002 [-0.007, 0.003] |
| EEGMMIDB | Bal. acc. | 0.442 | 0.422 | -0.020 [-0.045, 0.006] |
| Sleep-EDF | Bal. acc. | 0.757 | 0.716 | -0.041 [-0.050, -0.033] |
Electrode order and missing electrodes. With the Mumtaz electrodes listed in five random orders, every gate activation equals the original with its rows permuted (largest relative
(a) Which electrodes the model received
(b) Score as electrodes are removed

Fig. 6 Missing-electrode test on Mumtaz (1,179 test windows). The linear probe is trained once on the full montage and applied unchanged. (a) Each scalp shows one test condition: filled dots are the electrodes given to the model, hollow dots those removed; the shading and the label give the AUROC, and BAcc is the balanced accuracy at the probe's threshold. Rows: 19, 14, 10 and 5 electrodes; columns: five random subsets per size. (b) The same results against the number of electrodes given: dots are individual subsets, lines the mean, bands the range over subsets. AUROC stays high as electrodes are removed, while balanced accuracy drops because the scores shift relative to the threshold fitted on the full montage.
difference , floating-point rounding), and no test prediction changes. Shuffling the positions while leaving the signals in place changes 17.5% of the predictions and lowers AUROC from 0.942 to 0.909. With electrodes removed (Fig. 6), the mean AUROC falls from 0.942 with all electrodes to 0.919 with 14, 0.919 with 10 and 0.891 with 5, and no subset falls below 0.877. Balanced accuracy at the probe's fixed threshold degrades more: it stays at 0.826 on average with 14 electrodes but falls to 0.774 with 10 and 0.696 with 5, and to chance (0.501) for one five-electrode subset (Fp1, F7, T5, Fz, Pz) whose AUROC is still 0.877.
3.7 Scaling model size and pre-training data
Table 18 compares the two models on all ten benchmarks with each dataset's primary metric. After 1.9 epochs, no Large interval lies above Base's, so NOMAD-EEG-Large is not significantly better than Base on any dataset; its point estimate is higher on Bonn and TUEP (below). Its interval lies entirely below Base's on EEGMMIDB (balanced accuracy 0.361 against 0.442), Sleep-EDF (0.724 against 0.757) and SEED-V (0.301 against 0.315). It is lower, with intervals that overlap or just touch, on TUSZ (AUROC 0.856 against 0.866), Siena (0.867 against 0.882) and Mumtaz (0.913 against 0.942). It is level on Bonn (1.000 against 0.999), TUAB (0.837 against 0.838), TUEV (balanced accuracy 0.542 against 0.542) and TUEP (patient AU-
ROC 0.694 against 0.679; paired difference 95% CI [-0.061, 0.031]). The highest Large value relative to Base is TUSZ after 1.0 epoch (AUROC 0.878 against 0.866, overlapping intervals), which fell below Base by 1.9 epochs. Between the two checkpoints Large improved on TUEV (0.450 to 0.542), EEGMMIDB (0.326 to 0.361), TUEP (0.658 to 0.694) and TUAB (0.828 to 0.837), and changed little elsewhere.
Table 18: Scaling model size and pre-training data together: NOMAD-EEG (Base, 12.0 M parameters, 147 h of TUEV) against NOMAD-EEG-Large (67.6 M parameters, 6,984 h from seven corpora) at two points of its pre-training, under the identical frozen linear probe and splits used for every other table. Each dataset's primary metric with its 95% bootstrap CI; bold marks the best value in each row. ↓/↑: the Large CI lies entirely below/above Base's (non-overlapping intervals, not a paired test). In Large pre-training: whether that dataset's recordings were in Large's unlabelled pre-training data. patient level. TUEV is also Base's whole pre-training corpus.
| Dataset | Metric | In Large pre-training | Base | Large step 27,000 | Large step 51,000 |
|---|---|---|---|---|---|
| Bonn | AUROC | no | 0.999 [0.996, 1.000] | 0.999 [0.994, 1.000] | 1.000 [1.000, 1.000] |
| TUSZ | AUROC | training patients | 0.866 [0.860, 0.873] | 0.878 [0.872, 0.884] | 0.856 [0.849, 0.862] |
| TUAB | AUROC | training patients | 0.838 [0.834, 0.842] | 0.828 [0.824, 0.831] | 0.837 [0.834, 0.841] |
| Siena | AUROC | no | 0.882 [0.847, 0.914] | 0.867 [0.822, 0.906] | 0.867 [0.823, 0.907] |
| Mumtaz | AUROC | no | 0.942 [0.929, 0.954] | 0.913 [0.895, 0.929] | 0.913 [0.894, 0.929] |
| TUEP | yes, all | 0.679 [0.607, 0.751] | 0.658 [0.583, 0.739] | 0.694 [0.624, 0.766] | |
| TUEV | BAcc | yes, all | 0.542 [0.529, 0.554] | 0.450 [0.437, 0.461] | 0.542 [0.529, 0.554] |
| EEGMMIDB | BAcc | no | 0.442 [0.419, 0.463] | 0.326 [0.303, 0.349] | 0.361 [0.337, 0.383] |
| Sleep-EDF | BAcc | other subjects | 0.757 [0.748, 0.766] | 0.721 [0.711, 0.732] | 0.724 [0.714, 0.733] |
| SEED-V | BAcc | yes, all | 0.315 [0.310, 0.319] | 0.296 [0.291, 0.300] | 0.301 [0.297, 0.306] |
3.8 Model interpretation
In the seizure segment the evidence for seizure concentrates on the sharp, high-amplitude discharges, and its time course peaks where they occur; in the normal segment there is almost no evidence anywhere (Fig. 7).
4 Discussion
4.1 Principal findings
NOMAD-EEG was designed to read any montage and any recording length with one set of weights, and the experiments test that design rather than a single benchmark. The same 12.0 M-parameter model, without any architectural change, read one electrode (Bonn), two bipolar derivations (Sleep-EDF), eight (BCIAUT-P300), 19 (Mumtaz), 21 (TUH corpora) and 64 electrodes (EEGMMIDB), and segments from 1.4 s to 30 s. Across eight benchmarks it ranks never below fourth among eight foundation models, which places a model pre-trained on 147 h
Where NOMAD-EEG finds evidence of a seizure (TUSZ test set, frozen model + linear probe) shading: positive Integrated-Gradients attribution per electrode and 0.25 s; same colour and amplitude scale in both panels
Normal segment: model's seizure probability 0.07
Seizure segment: model's seizure probability 1.00

time (s)
time (s)
Fig. 7 Where NOMAD-EEG finds evidence of a seizure. Two 5s segments from the TUSZ test set, scored by the frozen NOMAD-EEG with the TUSZ linear probe of Table 5. The segments were chosen by a rule fixed in advance: a random (seeded) test window labelled seizure that the model classifies with probability above 0.9, and a random normal window classified with probability below 0.1, i.e. typical correct decisions rather than hand-picked ones. Shading behind each trace: positive Integrated-Gradients attribution (evidence for seizure) per electrode and 0.25 s; bottom: its sum over electrodes. Both panels share the colour and amplitude scales. The figure illustrates single decisions and is not a quantitative test of seizure localisation.
of EEG among models trained on far more data: REVE-base has 69M parameters and was pre-trained on about 60,000 h. It is the best model where the montage departs most from its pre-training: on EEGMMIDB, where most electrode positions are new to it (and which LaBraM saw in pre-training, Section 2.8), and on BCIAUT-P300, a new population, task and eight-electrode montage, where it detects the attended object in 75.5% of blocks against 61.2% for the next-best model. We read this as evidence that identifying electrodes by position in every block, rather than by name or slot, transfers to unseen layouts. Reading the single Bonn electrode on its own, which still gives an AUROC of 0.995, is an input that no fixed-montage model can be given. On Siena, a seizure corpus external to NOMAD-EEG (but part of REVE's, LaBraM's and EEGMamba's pre-training data), NOMAD-EEG is the most precise detector: with 99.3% of test windows free of seizures, its highest accuracy, weighted F1 and macro F1, the last with a confidence interval that excludes every other model, mean the fewest false alarms at the decision threshold.
4.2 Where NOMAD-EEG trails, and why
REVE and EEGDM lead on TUAB, where BIOT is also ahead of NOMAD-EEG (AUROC 0.847 against 0.838); on TUSZ's AUROC, PR-AUC and balanced accuracy, where CBraMod also has a higher PR-AUC (0.455 against 0.446); on Sleep-EDF; and on Mumtaz, where LaBraM also has a higher balanced accuracy (0.838 against 0.832). On TUEV only EEGDM's balanced accuracy exceeds fine-tuned NOMAD-EEG, which is best on and weighted F1. EEGDM's TUEV results should be read in light of its pre-training, which, like ours, includes TUEV recordings. On TUEP EEGMamba has a higher patient-level AUROC (0.694 against 0.679), although the paired difference is not significant. On Siena EEGDM and REVE rank seizure windows better than NOMAD-EEG (AUROC 0.915 and 0.906 against 0.882; REVE also has the highest PR-AUC), so NOMAD-EEG's Siena advantage lies in fewer false alarms rather than in ranking. Two factors are plausible. First, scale: REVE-base has about six times as many parameters as NOMAD-EEG and was pre-trained on roughly 400 times as much EEG. Second, domain (Section 2.8): REVE, CBraMod and EEGMamba were pre-trained on the TUH corpus from which TUAB, TUSZ, TUEV and TUEP are drawn (REVE without the TUAB and TUEV recordings), BIOT's checkpoint used the TUAB and TUEV training splits, EEGDM was pre-trained on TUEV, LaBraM on TUSZ and TUEP, and REVE saw Siena, whereas NOMAD-EEG saw only TUEV. TUEP illustrates the second factor: the only compared model with a higher AUROC there was pre-trained on the TUH corpus that contains TUEP, and among the models pre-trained neither on TUEP nor on the full TUH corpus, NOMAD-EEG is best on every metric. Scale alone did not close this gap in our hands: NOMAD-EEG-Large, with 5.6 times the parameters and 47 times the pre-training data, including the TUH corpora, was not significantly better than Base on any benchmark; its point estimate was higher only on Bonn and TUEP, with overlapping intervals, equal on TUEV and lower on the other seven (Section 4.6).
4.3 Transfer to unseen populations
On BCIAUT-P300, BIOT and DiffEEG are close to chance. We attribute this mainly to how little of the montage they can read: two bipolar pairs for BIOT, and six of eight electrodes for DiffEEG. Bipolar derivations also cancel part of a P300 that is broad and similar across these closely spaced electrodes. On Parkinson's disease NOMAD-EEG is not the best model, and EEGDM's lead is significant. NOMAD-EEG's selected probe strength varied by five orders of magnitude across folds, a sign that its probe is unstable with about 24 validation participants per fold. One possible reason for the gap, which we have not tested, is that the resting-state changes reported in PD are spectral properties of the whole recording rather than transient events like those in NOMAD-EEG's pre-training data.
4.4 Pre-training, objective and fine-tuning
The random-weights control shows that pre-training adds a large, significant gain on TUEV, TUAB and Siena, but also that the architecture with random weights is already competitive on small or saturated tasks: on Mumtaz, fine-tuning from random weights matches fine-tuning from the pre-trained model, which suggests that this two-class task is solvable by the architecture alone, and Bonn is saturated for both. Results on such tasks should therefore not be credited to pre-training without this control.
In a controlled comparison, denoising diffusion gave better frozen representations than flow matching on four datasets and worse on one, so we use diffusion for NOMAD-EEG. This does not contradict reports that flow matching pre-trains EEG models efficiently [10], which used a different architecture, more data and fine-tuning; it shows that the choice of objective matters and should be tested rather than assumed for a given backbone.
End-to-end fine-tuning helped on TUEV, EEGMMIDB and SEED-V but not on Mumtaz, Sleep-EDF, TUAB or TUSZ, where the frozen probe was as good or better. In both failure cases the choice of the fine-tuning epoch is the weak point. On Mumtaz, validation accuracy approached 1.0 while test accuracy stayed near 0.82, a sign that a validation set of nine subjects cannot pick a checkpoint that generalises to new people. On TUAB and TUSZ the validation windows come from the training patients themselves (Section 2.9), and validation balanced accuracy reached 0.98 and 0.96 against test values of 0.77, so the selection rewarded fitting those patients rather than generalising to new ones. On SEED-V, by contrast, the validation clips are distinct from the training clips. Selecting checkpoints on enough held-out subjects, or by cross-validation over subjects, is therefore a precondition for a fair fine-tuning comparison.
4.5 Electrode order and missing electrodes
The order test confirms in practice what Section 2.4 proves, and the position-shuffling control shows that the invariance does not come from ignoring spatial information. Removing electrodes leaves the probe's ranking of test windows largely intact but shifts the scores relative to the threshold learned on the full montage, because the probe reads the average over electrodes; this is why balanced accuracy falls faster than AUROC. A threshold recalibrated on the reduced montage, or a probe trained with electrodes dropped at random, would address this. Base was pre-trained on a single 21-electrode montage and never saw a reduced one, which is one reason NOMAD-EEG-Large was pre-trained on random electrode subsets of 2 to 32 electrodes.
4.6 Scaling model size and pre-training data
Four findings follow from Table 18. First, scaling model and data together did not improve the frozen features: with 5.6 times the parameters and 47 times the pre-training data, NOMAD-EEG-Large was not significantly better than Base on any benchmark after 1.9 epochs and was clearly worse on three. Its point estimate was higher than Base's on only two datasets, Bonn (AUROC 1.000 against 0.999, where both are at the ceiling) and TUEP (0.694 against 0.679, paired difference not significant), and after 1.0 epoch on TUSZ (0.878 against 0.866, overlapping intervals). Second, the largest losses are on the tasks least like clinical EEG: motor imagery (EEGMMIDB, -0.081 balanced accuracy), sleep staging (Sleep-EDF, -0.033), emotion (SEED-V, -0.014) and depression (Mumtaz, -0.029 AUROC), although Large was pre-trained on many montages, on random electrode subsets and, for SEED-V and Sleep-EDF, on the same corpora. Third, seeing the evaluation corpus in pre-training did not help: SEED-V and TUEP were in Large's pre-training data and not in Base's, yet Large is below Base on SEED-V and level on TUEP. Fourth, longer training did not improve every task: from 1.0 to 1.9 epochs TUEV and EEGMMIDB improved while TUSZ dropped from above Base's point estimate to below it, so a single intermediate checkpoint can over- or understate a model.
These results agree with recent EEG studies in which larger models or more pre-training data did not reliably improve downstream performance. Across more than 20,000 evaluations of 30 EEG foundation models, parameter count showed no consistent positive relationship with downstream performance [40]. EEG-FM-Bench found that model or data scale alone does not explain transfer, and pointed to the pre-training objective and EEG-specific design instead [41]. Fine-tuned large brainwave models improved on much smaller conventional networks by only about one percentage point while using far more parameters [42]. In a channel-adaptation benchmark the 5 M-parameter CBraMod outperformed models up to 31 times larger on four of five datasets [26]. HEAR's base model gained little over its tiny variant, which its authors attributed to saturation of the available pre-training data [43], and CodeBrain reported consistent but diminishing returns with model size [44]. The evidence on data is more mixed: under a fixed architecture, more pre-training data gave sustained gains in Chen et al. [40].
That study held the architecture fixed while varying data, whereas we changed model size and data together on a fixed training budget. Large saw 1.63 M samples against Base's 1.28 M, at most about two epochs over its pool against about 74 for Base over TUEV (Table 3), so it may be under-trained relative to its data, and its features are twice as wide for the same linear probe. We have not tested which of these explains the result. Our result is therefore evidence that scale does not help this architecture without a matching increase in compute, not that scale cannot help; a study that scales compute with model and data, and that varies model size and data size separately, is needed to settle it.
4.7 What the model responds to
In the attribution example, the evidence for seizure falls on the sharp, high-amplitude discharges that a clinician would point to, and almost none falls on the normal segment. The two segments were chosen by a rule fixed in advance, but they illustrate single decisions: they show that the probe's decision can be traced to plausible parts of the signal, not that NOMAD-EEG localises seizures, which would require a quantitative comparison with annotated onsets and channels.
4.8 Limitations
• Single pre-training corpus. NOMAD-EEG was pre-trained on 147 h of TUEV only, with one montage. Positions outside that montage rely on the smoothness of the positional features. The larger multi-corpus model was not significantly better on any benchmark
(Section 4.6), but it changed model size and data together, on one GPU slice and without a matching increase in training compute.
• Compatibility is not robustness. Accepting any montage does not guarantee equal accuracy on every montage [27]. Channel order does not affect NOMAD-EEG, and with electrodes removed it still ranks examples well, but the decision threshold of a probe fitted on the full montage no longer fits (Section 4.5).
• Inputs. The model assumes 200 Hz input and a known 3D position for every channel; channels without a standard position are dropped, and a bipolar derivation is approximated by a sensor at its midpoint.
• Context length. The architecture accepts inputs longer than its 30 s pre-training window, but we have not yet evaluated inputs longer than 30 s.
• Evaluation. Baselines were evaluated only with frozen linear probes; each with its own pooling, so their probe input sizes differ (200 to 10,240 dimensions). Fine-tuned comparisons with the baselines remain to be run.
4.9 Conclusion
NOMAD-EEG shows that a diffusion-pretrained EEG model can identify electrodes only by their 3D position and model time without patches, and still be competitive with foundation models that are larger and trained on far more data. With one set of weights pre-trained on 147 h of one corpus, it read montages from one to 64 electrodes and was never ranked below fourth on eight benchmarks. It was the best model on the layouts furthest from its pre-training (EEGMMIDB and BCIAUT-P300) and on three epilepsy tasks: seizure detection on Siena (macro F1) and Bonn, and epilepsy diagnosis on TUEP among the models not pre-trained on it; after fine-tuning it also had the highest and weighted F1 on TUEV event classification. Scaling the model and its data together, without scaling compute, did not significantly improve it on any benchmark. Pre-training on more diverse montages with a compute budget that grows with the data, and recalibrating task heads for reduced montages, are the most direct next steps.
Declarations
Funding. This work was supported by the LAU President's Intramural Research Fund-10084 Competing interests. The authors declare no conflict of interest.
Ethics approval. This study used only publicly available, de-identified EEG datasets (TUH EEG corpora, Siena Scalp EEG, Bonn, Mumtaz, EEGMMIDB, Sleep-EDF, SEED-V, BCIAUT-P300 and OpenNeuro ds004584), each collected under the ethics approval stated by its original authors.
Consent to participate. Not applicable; informed consent was obtained by the original data collectors.
Data availability. All datasets are publicly available from their original sources
Code availability. Repository link for code and model weights will be shared once the manuscript is published.
References
[1] Nick Kane, Jayant Acharya, Sandor Beniczky, Luis Caboclo, Simon Finnigan, Peter W. Kaplan, Hiroshi Shibasaki, Ronit Pressler, and Michel J.A.M. van Putten. A revised glossary of terms most commonly used by clinical electroencephalographers and updated proposal for the report format of the EEG findings. Revision 2017. Clinical Neurophysiology Practice, 2017. doi: 10.1016/j.cnp.2017.07.002.
[2] Wei-Bang Jiang, Li-Ming Zhao, and Bao-Liang Lu. Large Brain Model for Learning Generic Representations with Tremendous EEG Data in BCI. arXiv preprint arXiv:2405.18765, 2024.
[3] Guagnyu Wang, Wenchao Liu, Yuhong He, Cong Xu, Lin Ma, and Haifeng Li. EEGPT: Pretrained Transformer for Universal and Reliable Representation of EEG Signals. Advances in Neural Information Processing Systems 37, 2024. doi: 10.52202/079017-1239.
[4] Chaoqi Yang, M. Brandon Westover, and Jimeng Sun. BIOT: Cross-data Biosignal Learning in the Wild. arXiv preprint arXiv:2305.10351, 2023.
[5] Jiquan Wang, Sha Zhao, Zhiling Luo, Yangxuan Zhou, Haiteng Jiang, Shijian Li, Tao Li, and Gang Pan. CBraMod: A Criss-Cross Brain Foundation Model for EEG Decoding. arXiv preprint arXiv:2412.07236, 2024.
[6] Jiquan Wang, Sha Zhao, Zhiling Luo, Yangxuan Zhou, Shijian Li, and Gang Pan. EEGMamba: An EEG foundation model with Mamba. Neural Networks, 2025. doi:10.1016/j.neunet.2025.107816.
[7] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising Diffusion Probabilistic Models. arXiv preprint arXiv:2006.11239, 2020.
[8] Abdulkader Helwan, Lina Abou-Abbas, Hussein El Amouri, Belkacem Chikhaoui, and Khadidja Henni. DiffEEG: A Self-Supervised Denoising Diffusion Model for Learning EEG Generic Representations. arXiv preprint arXiv:2607.11578, 2026.
[9] Jia Hong Puah, Sim Kuan Goh, Ziwei Zhang, Zixuan Ye, Chow Khuen Chan, Kheng Seang Lim, Si Lei Fong, Kok Sin Woon, and Cuntai Guan. EEGDM: EEG Representation Learning via Generative Diffusion Model. arXiv preprint arXiv:2508.14086, 2025.
[10] Jaedong Hwang, Kathleen Zhang, Wei Dai, Konstantinos Kontras, Maarten Vanmarcke, Maarten De Vos, Ila Fiete, and Paul Pu Liang. B[FM] : Brain Foundation Model via Flow Matching with SplitUNet. arXiv preprint arXiv:2606.20812, 2026.
[11] Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow Matching for Generative Modeling. arXiv preprint arXiv:2210.02747, 2022.
[12] Yassine El Ouahidi, Jonathan Lys, Philipp Thölke, Nicolas Farrugia, Bastien Pasdeloup, Vincent Gripon, Karim Jerbi, and Giulia Lioi. REVE: A Foundation Model for EEG – Adapting to Any Setup with Large-Scale Pretraining on 25,000 Subjects. arXiv preprint arXiv:2510.21585, 2025.
[13] Berkay Döner, Thorir Mar Ingolfsson, Luca Benini, and Yawei Li. LUNA: Efficient and Topology-Agnostic Foundation Model for EEG Signal Analysis. arXiv preprint arXiv:2510.22257, 2025.
[14] Qinfan Xiao, Ziyun Cui, Chi Zhang, Siqi Chen, Wen Wu, Andrew Thwaites, Alexandra Woolgar, Bowen Zhou, and Chao Zhang. BrainOmni: A Brain Foundation Model for Unified EEG and MEG Signals. arXiv preprint arXiv:2505.18185, 2025.
[15] Albert Gu, Ankit Gupta, Karan Goel, and Christopher Ré. On the Parameterization and Initialization of Diagonal State Space Models. arXiv preprint arXiv:2206.11893, 2022.
[16] Matthew Tancik, Pratul P. Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan T. Barron, and Ren Ng. Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domains. arXiv preprint arXiv:2006.10739, 2020.
[17] Alex Nichol and Prafulla Dhariwal. Improved Denoising Diffusion Probabilistic Models. arXiv preprint arXiv:2102.09672, 2021.
[18] Iyad Obeid and Joseph Picone. The Temple University Hospital EEG Data Corpus. Frontiers in Neuroscience, 2016. doi: 10.3389/fnins.2016.00196.
[19] Gayal Kuruppu, Neeraj Wagh, Vaclav Kremen, Sandipan Pati, Gregory Worrell, and Yogatheesan Varatharajah. EEG Foundation Models: A Critical Review of Current Progress and Future Directions. arXiv preprint arXiv:2507.11783, 2025.
[20] Xinliang Zhou, Chenyu Liu, Zhisheng Chen, Kun Wang, Yi Ding, Ziyu Jia, and Qingsong Wen. Brain Foundation Models: A Survey on Advancements in Neural Signal Processing and Brain Discovery. arXiv preprint arXiv:2503.00580, 2025.
[21] Demetres Kostas, Stephane Aroca-Ouellette, and Frank Rudzicz. BENDR: using transformers and a contrastive self-supervised learning task to learn from massive amounts of EEG data. arXiv preprint arXiv:2101.12037, 2021.
[22] Albert Gu and Tri Dao. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. arXiv preprint arXiv:2312.00752, 2023.
[23] Ke Yi, Yansen Wang, Kan Ren, and Dongsheng Li. Learning Topology-Agnostic EEG Representations with Geometry-Aware Modeling. Advances in Neural Information Processing Systems 36, 2023. doi: 10.52202/075280-2344.
[24] Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, and Ren Ng. NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis. arXiv preprint arXiv:2003.08934, 2020.
[25] Danny Dongyeop Han, Ahhyun Lucy Lee, Taeyang Lee, Yonghyeon Gwon, Sebin Lee, Seongjin Lee, David Keetae Park, Shinjae Yoo, Jiook Cha, and Chun Kee Chung. DIVER-0 : A Fully Channel Equivariant EEG Foundation Model. arXiv preprint arXiv:2507.14141, 2025.
[26] Kuntal Kokate, Bruno Aristimunha, Dung Truong, and Arnaud Delorme. Channel Adaptation for EEG Foundation Models: A Systematic Benchmark Across Architectures, Tasks, and Training Regimes. arXiv preprint arXiv:2604.23091, 2026.
[27] Jakob Steglich, Justus Meyer zu Bexten, Shakiba Moradi, Laure Ciernik, Simon M. Hofmann, and Mina Jamshidi Idaji. Representational and Functional Robustness to Electrode Montages in EEG Foundation Models. arXiv preprint arXiv:2609.36288, 2026.
[28] Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow. arXiv preprint arXiv:2209.03003, 2022.
[29] Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. WaveNet: A Generative Model for Raw Audio. arXiv preprint arXiv:1609.03499, 2016.
[30] Zijian Kang, Weiming Zeng, Yueyang Li, Shengyu Gong, Hongjie Yan, Wai Ting Siok, and Nizhuan Wang. TGSD: Topology-Guided State-Space Diffusion Framework for EEG Spatial Super-Resolution. arXiv preprint arXiv:2606.03998, 2026.
[31] Albert Gu, Karan Goel, and Christopher Ré. Efficiently Modeling Long Sequences with Structured State Spaces. arXiv preprint arXiv:2111.00396, 2021.
[32] Alexandre Gramfort. MEG and EEG data analysis with MNE-Python. Frontiers in Neuroscience, 2013. doi: 10.3389/fnins.2013.00267.
[33] Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual Reasoning with a General Conditioning Layer. arXiv preprint arXiv:1709.07871, 2017.
[34] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention Is All You Need. arXiv preprint arXiv:1706.03762, 2017.
[35] Ilya Loshchilov and Frank Hutter. Decoupled Weight Decay Regularization. arXiv preprint arXiv:1711.05101, 2017.
[36] A. Harati, M. Golmohammadi, S. Lopez, I. Obeid, and J. Picone. Improved EEG event classification using differential energy. 2015 IEEE Signal Processing in Medicine and Biology Symposium (SPMB), 2015. doi: 10.1109/spmb.2015.7405421.
[37] Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. Training Deep Nets with Sublinear Memory Cost. arXiv preprint arXiv:1604.06174, 2016.
[38] Marco Simões, Davide Borra, Eduardo Santamaría-Vázquez, GBT-UPM, Mayra Bittencourt-Villalpando, Dominik Krzemiński, Aleksandar Miladinović, Neural Engineering Group, Thomas Schmid, Haifeng Zhao, Carlos Amaral, Bruno Direito, Jorge Henriques, Paulo Carvalho, and Miguel Castelo-Branco. BCIAUT-P300: A Multi-Session and Multi-Subject Benchmark Dataset on Autism for P300-Based Brain-Computer-Interfaces. Frontiers in Neuroscience, 2020. doi: 10.3389/fnins.2020.568104.
[39] Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic Attribution for Deep Networks. In International Conference on Machine Learning (ICML), pages 3319–3328, 2017.
[40] Zhige Chen, Shu Peng, Chengxuan Qin, Rui Liu, Rui Yang, Kay Chen Tan, and Jibin Wu. Benchmarking EEG Foundation Models at Scale: Lessons from 20,000 Evaluations. arXiv preprint arXiv:2609.32743, 2026.
[41] Wei Xiong, Jiangtong Li, Jie Li, Kun Zhu, and Changjun Jiang. EEG-FM-Bench: A Comprehensive Benchmark for the Systematic Evaluation and Diagnostic Analyses of EEG Foundation Models. In International Conference on Machine Learning (ICML), 2026. arXiv:2508.17742.
[42] Na Lee, Konstantinos Barmpas, Yannis Panagakis, Dimitrios Adamos, Nikolaos Laskaris, and Stefanos Zafeiriou. Are Large Brainwave Foundation Models Capable Yet? Insights from Fine-tuning. In International Conference on Machine Learning (ICML), 2025. arXiv:2507.01196.
[43] Zhige Chen, Chengxuan Qin, Wenlong You, Rui Liu, Congying Chu, Rui Yang, Kay Chen Tan, and Jibin Wu. HEAR: An EEG Foundation Model with Heterogeneous Electrode Adaptive Representation. arXiv preprint arXiv:2510.12515, 2025.
[44] Jingying Ma, Feng Wu, Qika Lin, Yucheng Xing, Chenyu Liu, Ziyu Jia, and Mengling Feng. CodeBrain: Bridging Decoupled Tokenizer and Multi-Scale Architecture for EEG Foundation Model. In International Conference on Learning Representations (ICLR), 2026. arXiv:2506.09110.