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

Calibrate by Moving, Decode by Imagining

Brain-computer interfaces driven by motor imagery read EEG (scalp electrical recordings) while a person imagines moving a hand or foot, and turn the decoded intention into a command. Every new user has to sit through a tedious calibration session of imagined movements, because brain signals differ so much between people and sessions. Imagery is also a poor calibration signal. Nothing observable confirms that the person actually imagined the cued movement, it is tiring, and its EEG signature is weak. Overt movement is easier to perform, easier to verify, and neuroscience says it shares a common core with imagery. We propose to calibrate a new user on a few minutes of real movement and then decode their imagery with no imagery calibration at all. The move from one to the other would be made by snapping together two small learned modules: one describes this person, the other describes imagining rather than doing.

The design is borrowed from multilingual machine translation. There, a shared network plus small language-specific add-on modules lets a system translate between language pairs it never saw together, simply by activating a source-language module and a target-language module at test time (Monolingual Adapters for Zero-Shot Neural Machine Translation). In our setting, "subject" plays the role of the source language and "condition" (movement versus imagery) plays the role of the target language. The motor-cortex evidence suggests this factorization is real. Neural activity splits into a subspace shared by execution and imagery, which encodes the goal, and orthogonal condition-unique subspaces (Motor cortex retains and reorients neural dynamics during motor imagery). The open question is whether that structure survives at the resolution of scalp EEG well enough to support this kind of composition.

Core Claim

We claim that a decoder built as a frozen shared core, a per-subject input module and a per-condition module, with class information confined to a subspace constrained to agree across conditions, can decode a new user's motor imagery after seeing only their labeled movement trials. We further claim that the explicit modular split matters. It should beat three simpler routes: applying a movement-trained decoder directly to imagery, pooling everything into one network that is merely told which condition it is seeing, and forcing all subjects and conditions into one invariant representation. The deliverable is a number most BCI work never reports: how many imagery calibration trials the composed zero-shot decoder is worth.

Why This Intersection, and What Is Already Done

Three findings motivate the idea. The first is a meta-analysis of randomized trials showing that imagery training transfers to the untrained limb as well as physical training does, with an effect-size difference of -0.02, and that the transfer is symmetric in direction (Bilateral transfer of motor performance as a function of motor imagery training). This is behavioral evidence of a centrally shared motor code. The second is an fMRI study in which imagery training altered connectivity in parallel during imagery and execution (Parallel Alterations of Functional Connectivity during Execution and Imagination after Motor Imagery Learning). The third is the intracortical decomposition cited above, in which roughly half of the variance is shared (56% during action, 47% during imagery) and the rest is condition-unique.

That decomposition was a post-hoc factor analysis in two participants. It was never turned into a learning architecture, and never tested on EEG. The same file also constrains the design. The same data show condition-unique dynamics that are not negligible: removing a unique dimension raised neural tangling by about 265%. So a decoder trained on movement and applied naively to imagery should be expected to degrade.

On the machine-translation side, three results supply the method. The first is that attention weights tend to carry shared cross-lingual structure while feed-forward layers carry language-specific transformations (Parameter Sharing Methods for Multilingual Self-Attentional Translation Models). This tells us where to place private modules. The second is that input-side adapters account for most zero-shot gains: +1.69 BLEU against +0.63 BLEU for output-side adapters (Philip et al.). This suggests the subject module belongs early in the network, and it fits the intuition that subject differences are largely about spatial mixing at the scalp. The third is that fine-tuning shared weights lets them "drift" away from the modules, which destroys zero-shot behavior until parts of the network are frozen (mmT5). A related result maps a new input modality, speech, into a frozen translation network through a single adapter (Escolano et al.), which is a precedent for pushing a continuous signal into a frozen shared space.

The research file found no work that combines language-style modularity with motor imagery decoding. The nearest EEG work treats each subject as one undivided domain. It either aligns subjects' distributions with a Maximum Mean Discrepancy penalty, a measure of the gap between two distributions (EEG-DG), or it uses left/right channel mirroring in a contrastive loss (A shallow mirror transformer for subject-independent motor imagery BCI). Neither factorizes subject from condition, and neither composes modules at test time. The closest motor-BCI modularity is gating by transient onset signals, which switches between linear decoders for different effectors (Using transient, effector-specific neural responses to gate decoding). It has no shared learned space and no zero-shot transfer.

The obvious version of this intersection, "put per-subject adapters on an EEG network", is not the proposal. That idea is ordinary parameter-efficient fine-tuning, and per-subject normalization statistics already achieve much of it. What is new here is two-factor composition across a missing cell: subject × imagery, where the subject has never produced labeled imagery.

Research Program

The backbone follows the small-data lesson from the mirror-transformer paper, where a single windowed temporal attention block beat deeper stacks. It has a temporal convolution stage, a spatial mixing stage and one local-window attention block, followed by a linear readout. The shared parts are the temporal filters, the attention weights and the readout.

The first private module is a subject module $A_s$. It is a low-rank correction to the spatial mixing layer, placed at the input side, following the input-adapter result of Philip et al. The second is a condition module $B_c$ for $c \in \{\text{execution}, \text{imagery}\}$. It is a bottleneck adapter placed after the feed-forward sublayer of the attention block, following Sachan and Neubig's finding that feed-forward layers carry the domain-specific transformations.

The representation $z = f(x; A_s, B_c)$ is read out only through a rank-$k$ projection $P$. This mirrors the intracortical picture: $Pz$ is the "goal" subspace and the complement absorbs condition-unique activity. Training on source subjects, who contribute both labeled execution and labeled imagery, minimizes

$$ \mathcal{L} = \mathrm{CE}\big(W P z,\, y\big) + \lambda \sum_{s,y} \big\| \mu^{\text{exec}}_{s,y} - \mu^{\text{imag}}_{s,y} \big\|^2 , $$

Here $W$ is the class readout, $y$ is the cued movement class, $\mathrm{CE}$ is cross-entropy, and $\mu^{c}_{s,y}$ is the mean of $Pz$ over subject $s$'s trials of class $y$ in condition $c$. The second term forces the shared subspace to place the same intended movement in the same location whether it is performed or imagined, while $B_c$ is free to absorb what differs between the two conditions.

For a new user, the shared core, the readout and both condition modules are frozen, following the mmT5 lesson about drift. Only $A_s$ is fitted, on that user's labeled execution trials. At test time the system composes $A_s$ with $B_{\text{imag}}$.

The Yao meta-analysis raises one scientific risk, and we treat it as a hypothesis to test rather than as noise. People differ greatly in how they imagine: first-person kinesthetic imagery gave effect sizes of 2.03–2.17 against 0.49–0.95 for third-person visual imagery. If the imagery module is strongly subject-dependent, additive composition should fail, and the failure should be concentrated in poor imagers. We will test this by relating each target subject's composition error to how far their imagery representation sits from the population imagery module. That analysis uses held-out imagery data reserved for evaluation only.

The data come in two parts. BCI Competition IV 2a (22 channels, four imagery classes, nine subjects) and 2b (three bipolar channels, two classes) are imagery-only. We use them for a necessary sanity check: the modular backbone with subject modules must be competitive with existing subject-transfer methods on imagery before any composition claim means anything. The composition test itself needs subjects who performed both real and imagined movements of the same effectors. The research file contains no such EEG benchmark. We will therefore use a public EEG dataset with paired execution and imagery runs of the same hand and foot movements; the PhysioNet EEG Motor Movement/Imagery set is the natural candidate. We state plainly that no reported result was found on Lacuna for execution-to-imagery transfer on any dataset. If collaboration permits, the intracortical recordings of Dekleva et al. would allow a second test in a signal where the shared/unique split is already documented.

Baselines

The naive reference point is a population model trained on source subjects' imagery and applied to the target's imagery with no target data at all. The proposal must beat it, or target movement data is useless.

The second reference is the functional-equivalence baseline. The same backbone is trained end-to-end on the target's execution trials, starting from the pooled model, and then applied unchanged to imagery. If the EEG-level shared code is strong, this could already be good.

The strongest existing method is EEG-DG (Zhong et al.). It reports 81.79% accuracy (kappa 0.7572) on 2a and 87.12% on 2b. We will run it with each subject × condition cell treated as a source domain, so that it is given the same information our model sees. The mirror transformer reports 66.48% on 2a and 75.62% on 2b in its subject-independent setting (MCL-SWT). The gap between these figures almost certainly reflects different evaluation protocols. We will therefore rerun both under a single leave-one-subject-out protocol rather than compare against the published numbers.

The classical reference is Filter Bank Common Spatial Pattern, which extracts band-specific spatial filters and selects features per subject. It reports mean kappa 0.569 on 2a and 0.600 on 2b (Filter Bank Common Spatial Pattern Algorithm on BCI Competition IV Datasets 2a and 2b). In the composition experiment it is trained on the target's execution trials and applied to imagery.

The most dangerous competitor is a pooled network of identical size given a learned condition embedding, which is fine-tuned on target execution trials. It isolates whether private, frozen modules add anything beyond "tell the model the condition".

Three ablations isolate the key ingredients. The first drops the cross-condition alignment term and the rank-$k$ readout. The second unfreezes the shared core during target fitting, which tests drift. The third swaps module placement, making attention private and feed-forward layers shared.

All methods get the same backbone capacity where applicable, the same target trial counts, and an equal hyperparameter search budget tuned on source-subject folds only. Results are reported over at least five seeds. Beating a baseline means a higher mean target-imagery kappa under a paired test across subjects, with the margin exceeding seed-to-seed spread.

Why not just…?

Why not just train on the user's movements and apply the decoder to imagery? Behavioral transfer between execution and imagery is strong (Yao et al.). However, the intracortical data show that almost half of imagery variance is condition-unique (Dekleva et al.), so a decoder fitted to execution will partly be reading dimensions that imagery does not share. This is a real threat, and the functional-equivalence baseline tests it directly. If it matches the composed model, the honest conclusion is that at EEG resolution the shared code already suffices and modularity is unnecessary.

Why not just pool all data and add a condition token? This is the alternative most likely to succeed, because a condition embedding is itself a tiny module. The translation evidence against it is indirect. Dense shared models produced the correct target language only 7% of the time in zero-shot generation, against 99% for modular pretraining with frozen feed-forward layers (mmT5). A fully shared model collapsed to 1.97 BLEU where a model with language-specific routing reached 20.56 (Qu and Watanabe). Those are text results. The matched condition-token baseline, and the ablation that unfreezes the core, are what will settle the question for EEG.

Why not force invariance across subjects and conditions, as EEG-DG does? Invariance losses try to erase the difference between domains, but the imagery-versus-execution difference is structured rather than noise. Erasing it may also erase class information carried in condition-unique dynamics. EEG-DG also offers no way to use a specific target user's execution data without retraining. Running it with subject × condition domains tests whether this matters in practice.

Why not just collect a few imagery trials and fine-tune? Sometimes that will be the right answer, so we measure it rather than dismiss it. We build a curve of target-imagery kappa against the number of labeled imagery trials used for fine-tuning, and report where the composed zero-shot decoder crosses it. If the crossover is near zero trials, the method saves nothing and we will say so.

Decisive Checks

The main experiment is leave-one-subject-out on the paired execution/imagery EEG set. Each target subject contributes only labeled execution runs; their imagery runs are held out entirely for evaluation. The primary metric is target imagery kappa, with accuracy as a secondary metric. A secondary check on BCI IV 2a and 2b requires the modular backbone with fitted subject modules to be within seed noise of rerun EEG-DG on imagery-only subject transfer. Otherwise any composition gain could simply reflect a weaker backbone.

The proposal succeeds if four things hold together. The composed decoder beats the functional-equivalence baseline and the condition-token baseline on target imagery. Its advantage disappears when the alignment term or core freezing is removed. The trial-equivalence curve shows it is worth a meaningful number of imagery trials. And the residual error concentrates in subjects whose imagery deviates from the population imagery module, which would link failures to the internal-versus-external imagery distinction rather than leave them unexplained.

If direct transfer already matches composition, the result is still informative. It would mean that scalp EEG shows only the shared goal code and not the condition-unique structure seen intracortically. The Dekleva recordings, if accessible, would then show whether that is a limit of the signal or of the idea.