AXON: axis-factorized EEG foundation model
AXON (AXis-factorized Operator Network) is a transformer encoder for EEG, pretrained with masked autoencoding. Each recording window is cut into tokens, one per electrode per one-second patch, so the tokens form a grid of electrodes by time steps. Instead of dense attention over all tokens, every layer runs two attention paths in parallel: a temporal path (each token attends to its own electrode across time) and a spatial path (each token attends to all electrodes at the same time step). A small per-token gate mixes the two.
- Parameters: 118.6M (encoder 118.56M + default head). The 141.9M in the paper include the pretraining decoder and auxiliary head, which are not part of this model.
- Code:
braindecode.models.AXON(Apache-2.0). - Paper: Adaptive Anisotropic Attention for Axis-Structured Signals (arXiv:2609.08788).
How to use
AXON is part of braindecode (2.0 and later):
pip install "braindecode[hub]>=2.0"
import mne
from braindecode.models import AXON
from braindecode.util import resolve_montage_name
raw = mne.io.read_raw_edf("recording.edf", preload=True)
raw.set_montage(resolve_montage_name("standard_1020"), match_case=False) # AXON needs 3D electrode positions
raw.resample(200) # AXON expects 200 Hz
model = AXON.from_pretrained(
"MannasAI/axon-eeg",
chs_info=raw.info["chs"], # any montage, any channel order
n_outputs=4, # the head is not pretrained
n_times=800, # window length in samples (here 4 s)
)
logits = model(x) # x: (batch, n_chans, n_times), volts or µV
features = model(x, return_features=True)["features"] # (batch, 512) pooled embedding
tokens = model.encode(x) # (batch, n_chans, n_patches, 512)
Linear probing: freeze everything except model.final_layer.
Fine-tuning (reference recipe): encoder learning rate 0.1× the head's,
3 head-only epochs first, and the two gates (*.axis_gate, *.scale_gate) kept frozen.
Input requirements
| Sampling rate | 200 Hz |
| Window length | at least 200 samples (1 s); patches of 1 s with a 0.9 s stride |
| Channels | any number and order; each needs a 3D position |
| Positions | chs_info[i]["loc"][:3] (MNE head coordinates). Channels without a position are looked up by name in MNE's 10-20 / 10-05 montages |
| Scaling | none needed: each channel is z-scored within each window inside the model; volts and microvolts give the same output |
Pretraining
- Preprocessing: resample to 200 Hz, notch 50/60 Hz, band-pass 0.5–99.5 Hz, per-channel z-score, clip at ±15σ, non-overlapping 10 s windows.
- Objective: masked autoencoding, 55% spatio-temporal block masking, L1 on masked patches plus an auxiliary pooled reconstruction loss (weight 0.5); a 4-layer dense decoder (not included).
- Optimisation: AdamW (β = 0.9/0.95, weight decay 0.05), peak LR 2.4e-4 with cosine decay, batch 4,096, bfloat16, 20 epochs; this is the epoch-10 checkpoint.
- Augmentation: token dropout 0.3, electrode-position noise σ = 0.25 cm.
- During pretraining, electrode positions came from MNE's
standard_1020montage; the downstream evaluation below (and this package) use the same montage in MNE head coordinates, which are offset by about 5 cm. The reported numbers use the head-coordinate convention.
Evaluation
NeuralBench (34 EEG tasks, 18 models)
AXON ranks 1st of 18 models on NeuralBench, Meta FAIR's open EEG benchmark, with the best mean rank (3.74) over 34 of its 36 EEG tasks: 1st on 9 tasks and top 3 on 20.
| # | Model | Type | Mean rank ↓ | #1 on | Top 3 on |
|---|---|---|---|---|---|
| 1 | AXON | Foundation | 3.74 | 9 | 20 |
| 2 | REVE | Foundation | 5.06 | 7 | 18 |
| 3 | LaBraM | Foundation | 5.26 | 3 | 10 |
| 4 | LUNA | Foundation | 6.53 | 1 | 5 |
| 5 | CTNet | Task-specific | 6.82 | 2 | 4 |
| 6 | CBraMod | Foundation | 7.06 | 2 | 7 |
| 7 | SimpleConvTimeAgg | Task-specific | 7.62 | 0 | 6 |
| 8 | Deep4Net | Task-specific | 8.61 | 1 | 6 |
| 9 | ShallowFBCSPNet | Task-specific | 8.62 | 2 | 7 |
| 10 | EEGConformer | Task-specific | 9.06 | 0 | 2 |
| 11 | EEGNet | Task-specific | 9.29 | 0 | 4 |
| 12 | ATCNet | Task-specific | 10.97 | 1 | 3 |
| 13 | BENDR | Foundation | 11.06 | 1 | 2 |
| 14 | Handcrafted features | Baseline | 11.15 | 3 | 5 |
| 15 | BIOT | Foundation | 12.26 | 1 | 2 |
| 16 | BDTCN | Task-specific | 13.62 | 1 | 1 |
| 17 | Dummy | Baseline | 16.68 | 0 | 0 |
| 18 | Chance | Baseline | 17.06 | 0 | 0 |
Per task (AXON mean ± SD over 3 seeds; rank among the models with a published score on that task):
| Category | Task | Dataset | Metric | AXON | Rank | Best other model |
|---|---|---|---|---|---|---|
| BCI | SSVEP | Tsinghua benchmark | Bal. acc. (%) | 96.7 ± 0.9 | 1 / 18 | LaBraM 96.5 |
| BCI | c-VEP | Thielen 2021 | Bal. acc. (%) | 84.3 ± 1.5 | 4 / 18 | LaBraM 87.6 |
| BCI | P300 | Schreuder 2010 | Bal. acc. (%) | 65.5 ± 0.7 | 4 / 18 | CTNet 67.4 |
| BCI | Motor imagery | Stieger 2021 | Bal. acc. (%) | 66.2 ± 1.1 | 2 / 18 | REVE 68.0 |
| BCI | Motor execution | Srisrisawang 2024 | Bal. acc. (%) | 56.0 ± 0.3 | 2 / 18 | REVE 58.8 |
| BCI | Mental imagery | Scherer 2015 | Bal. acc. (%) | 26.4 ± 1.3 | 6 / 18 | ShallowFBCSPNet 33.1 |
| Clinical | Seizure | Dan 2023 | Bal. acc. (%) | 73.6 ± 0.7 | 15 / 18 | BDTCN 85.5 |
| Clinical | Parkinson's | Singh 2021 | Bal. acc. (%) | 75.2 ± 0.6 | 2 / 18 | BIOT 77.2 |
| Clinical | Dementia | Miltiadous 2023 | Bal. acc. (%) | 44.4 ± 3.3 | 3 / 18 | Handcrafted 47.5 |
| Clinical | Schizophrenia | Albrecht 2019 | Bal. acc. (%) | 64.2 ± 5.9 | 6 / 18 | ATCNet 72.9 |
| Clinical | Depression | Mumtaz 2018 | Bal. acc. (%) | 83.9 ± 4.8 | 10 / 18 | CBraMod 87.3 |
| Clinical | Pathology† | TUAB | Bal. acc. (%) | 79.7 ± 0.6 | 6 / 18 | BENDR 81.8 |
| Clinical | Clinical event†‡ | TUEV | Macro F1 | 0.588 ± 0.038 | 1 / 18 | REVE 0.547 |
| Misc | Artifact† | TUAR | Macro F1 | 0.552 ± 0.014 | 1 / 18 | REVE 0.539 |
| Cognitive | Sentence | ZuCo | Top-5 retrieval (%) | 13.7 ± 0.4 | 1 / 18 | REVE 11.3 |
| Cognitive | Word | Nieuwland 2018 | Top-5 retrieval (%) | 21.6 ± 0.3 | 2 / 18 | LaBraM 22.6 |
| Cognitive | Speech | Brennan 2019 | Top-5 retrieval (%) | 3.9 ± 0.3 | 5 / 18 | REVE 5.5 |
| Cognitive | Typing | Levy 2026 | Bal. acc. (%) | 3.9 ± 0.1 | 5 / 18 | REVE 6.4 |
| Evoked responses | ERN | ERP CORE | Bal. acc. (%) | 82.3 ± 1.7 | 4 / 18 | LaBraM 83.3 |
| Evoked responses | LRP | ERP CORE | Bal. acc. (%) | 80.0 ± 1.2 | 1 / 18 | Deep4Net 79.5 |
| Evoked responses | MMN | ERP CORE | Bal. acc. (%) | 58.6 ± 0.5 | 5 / 18 | CTNet 59.8 |
| Evoked responses | N170 | ERP CORE | Bal. acc. (%) | 74.2 ± 1.8 | 2 / 18 | REVE 75.5 |
| Evoked responses | N2pc | ERP CORE | Bal. acc. (%) | 63.5 ± 0.9 | 3 / 18 | Deep4Net 65.3 |
| Evoked responses | N400 | ERP CORE | Bal. acc. (%) | 66.0 ± 1.9 | 2 / 18 | Handcrafted 66.2 |
| Evoked responses | Audiovisual | MNE sample | Bal. acc. (%) | 57.4 ± 10.5 | 3 / 18 | Handcrafted 62.3 |
| Internal state | Emotion§ | FACED | Bal. acc. (%) | 39.8 ± 0.6 | 1 / 18 | LUNA 32.3 |
| Internal state | Mental arithmetic | Zyma 2019 | Bal. acc. (%) | 70.3 ± 1.4 | 2 / 18 | REVE 73.9 |
| Internal state | Mental workload | Hinss 2023 | Bal. acc. (%) | 67.2 ± 4.2 | 7 / 18 | ShallowFBCSPNet 74.8 |
| Sleep | Sleep stage | Sleep-EDF | Bal. acc. (%) | 73.0 ± 0.5 | 1 / 18 | CBraMod 72.9 |
| Sleep | Sleep arousal | PhysioNet 2018 | Bal. acc. (%) | 56.6 ± 0.2 | 9 / 18 | LUNA 59.5 |
| Phenotyping | Sex | HBN-EEG | Bal. acc. (%) | 92.1 ± 0.6 | 1 / 18 | ShallowFBCSPNet 91.0 |
| Phenotyping | Age | HBN-EEG | Pearson r | 0.721 ± 0.008 | 2 / 17 | REVE 0.721 |
| Phenotyping | Psychopathology | HBN-EEG | Pearson r | 0.068 ± 0.006 | 7 / 15 | CBraMod 0.137 |
| Misc | Reaction time | HBN-EEG | Pearson r | 0.545 ± 0.010 | 1 / 17 | REVE 0.523 |
Protocol. NeuralBench v0.2.3's standard protocol, the same for every model: full fine-tuning,
mean pooling and a linear head, subject-disjoint test sets, seeds 33/34/35. AXON's preprocessing
matches pretraining (200 Hz, 0.5–99.5 Hz band-pass, 50/60 Hz notch, per-channel z-score, clip at ±15σ).
AXON scores are our own runs; the other 17 models' scores are NeuralBench's published results, and
each task ranks all models by mean score. Image and video, NeuralBench's other two EEG tasks, are not
yet evaluated. AXON's NeuralBench integration (-m axon) is proposed in
facebookresearch/neuroai#339.
† TUAB, TUAR and TUEV are part of the TUH EEG Corpus (TUEG), which AXON saw during pretraining. ‡ Uses NeuralBench's current task definition (one segment per event onset). § FACED read from NEMAR's BIDS release of the same recordings (nm000112).
Paper evaluation (linear probe)
Six subject-disjoint tasks (motor imagery on PhysioNet MMI and BCI Competition IV-2a, STEW workload, HMC sleep staging, Siena seizure detection, ADFTD dementia), balanced accuracy, mean over 3 downstream seeds. For each downstream run the checkpoint is selected on validation subjects only.
| Linear probe | motor | bcic | workload | hmc | siena | adftd |
|---|---|---|---|---|---|---|
| AXON | 0.456 | 0.283 | 0.673 | 0.650 | 0.866 | 0.492 |
Citation
@misc{jain2026adaptiveanisotropicattentionaxisstructured,
title={Adaptive Anisotropic Attention for Axis-Structured Signals},
author={Mahir Jain and Parshva Runwal and Aditya Ray Mishra and Arvasu Kulkarni and Jeet Bandhu Lahiri and Sandeep Singh and Siddharth Panwar},
year={2026},
eprint={2609.08788},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2609.08788},
}