betaFeedback

WorksComputer Science

ZeroMAG: Zero-Shot Multimodal Adapter Generation for Plug-and-Play EEG Foundation Models

Abstract

EEG foundation models (EFMs) capture reusable knowledge from large-scale EEG data, while many EEG recordings also include companion physiological signals that provide complementary information beyond the EEG-only interface. The challenge is to preserve this pretrained knowledge while extending the EFM to heterogeneous multimodal recordings through an adaptation inferred from unlabeled target data. We introduce ZeroMAG, a zero-shot multimodal adapter generation framework that extends a frozen EEG encoder and prediction head using unlabeled target recordings, without target labels or target-side optimization. The target datasets are held out from all model training and selection in the ZeroMAG pipeline. ZeroMAG organizes companion modalities around a configuration-invariant adapter, constructs a modality-subject-task condition from unlabeled recordings and task context, and generates adapter weights in a function-constrained latent space learned from source adapters. Across six held-out target datasets and three EFM backbones, ZeroMAG improves balanced accuracy by 7.22 percentage points over EEG-only inference and 4.89 points over direct weight regression, while coming within 0.50 points of supervised multimodal adaptation on average. Ablations further show that removing functional supervision from either representation learning or conditional generation degrades generated-adapter performance, confirming the contribution of both components.

Introduction

Electroencephalography (EEG) is a non-invasive and widely used modality across clinical, cognitive, and brain–computer interface applications [8, 49, 24]. Its large and growing body of mostly unlabeled recordings has enabled EEG foundation models (EFMs) that learn reusable representations across downstream tasks [23, 16, 47, 46, 31, 57].

EEG is increasingly recorded alongside companion signals that capture complementary physiological information, such as eye movements, muscle activity, and cardiac dynamics (Figure 1(a)). Between 2016 and 2024, at least 124 deep learning studies combined EEG with EOG, EMG, ECG, or GSR [24], and concurrent EEG–fNIRS studies increased markedly after 2016 [51]; yet the number and type of available signals vary widely across datasets (Figure 1(b)).

Figure 1. Multimodal EEG landscape and representative results. (a) Physiological information captured by common companion signals. (b) Publication trends, task-wise multimodal prevalence, and companion modality availability, based on prior surveys ([24, 51]). (c) Balanced accuracy on six held-out target datasets, comparing three EFM backbones with and without ZeroMAG against SleepFM and PhysioOmni.

A common approach to exploiting these signals is multimodal physiological or general time-series foundation models [43, 54] (Fu et al. 2025). However, this often means training a new multimodal backbone instead of reusing the strong EEG representations already learned by existing EFMs, while also fixing the supported modality set in advance. Adapting an existing EFM is cheaper, but new recordings often arrive unlabeled because annotation requires expert review, making supervised adaptation for each target dataset impractical. Label-free adaptation can avoid target labels, but typically still requires target-side optimization ([27, 45]). This raises the central question of this work:

Can multimodal capabilities be added to an existing EFM without target-side training?

Answering this question requires addressing three challenges.

C1: Heterogeneous modality configurations. EEG datasets differ in their companion signals: sleep recordings often include EOG and EMG, whereas emotion-recognition datasets may include eye movement. An adapter must accommodate these differences while allowing the available signals to contribute complementary information. The challenge is to accommodate arbitrary configurations across datasets within a single unified framework, without per-dataset redesign.

C2: Adaptation needs are target-dependent but labels are often unavailable. Even with the same companion signals, the appropriate adaptation differs across datasets and prediction tasks, so it must be determined for each target. However, target labels are usually unavailable because annotation is costly and requires expert review. The challenge is therefore to infer the target-specific adaptation from unlabeled recordings together with the task context.

C3: Parameter reconstruction does not ensure functional consistency. The generator is trained to reproduce adapters fitted on the source datasets. Two adapters with similar weights can still make different predictions, because the output is much more sensitive to some parameters than to others. A generator trained only to minimize parameter error may therefore produce adapters that are close to the targets in weight space but behave differently. The challenge is to make the generated adapters agree with the source adapters in their predictions.

To address these challenges, we propose ZeroMAG, which treats multimodal extension as personalized parameter generation: given unlabeled target recordings and task context, it directly generates a target-specific adapter while keeping the EFM fixed. A configuration-aware adapter organizes reusable modality-specific blocks around a fixed EEG anchor (C1); a modality–subject–task condition captures target-specific information without dataset identifiers (C2); and function-constrained generation maps this condition to adapter parameters through a block-aligned latent space learned from fitted source adapters (C3).

Across six held-out target datasets and three EFM backbones, ZeroMAG improves balanced accuracy by 7.22 and 4.89 percentage points over EEG-only inference and direct weight regression, respectively, while coming within 0.50 points of supervised multimodal adaptation on average, and remains competitive with multimodal foundation models that require multimodal pretraining (Figure 1(c)).

Preliminaries

EEG Foundation Model

Let XEEG\mathbf{X}^{\mathrm{EEG}} denote an EEG sample. An EEG foundation model consists of an encoder f(⋅)f(\cdot) and a prediction head h(⋅)h(\cdot), so that

Z=f(XEEG),L=h(Z)∈RK,(1)\mathbf{Z}=f(\mathbf{X}^{\mathrm{EEG}}), \qquad\mathbf{L}=h(\mathbf{Z})\in\mathbb{R}^{K}, \tag*{(1)}

where Z\mathbf{Z} is the EEG representation, L\mathbf{L} the corresponding prediction logits, and KK the number of classes. We directly load the EFM encoder checkpoint and pair it with the compatible prediction head trained on source data for the supported task. Both ff and hh remain frozen during source adapter fitting, both generator-training stages, and target inference.

Adapter-Based Multimodal Integration

Let A\mathcal{A} denote the available companion physiological modalities, with corresponding signals XA={Xm}m∈A\mathbf{X}^{\mathcal{A}}=\{\mathbf{X}^{m}\}_{m\in\mathcal{A}}. To incorporate these signals without modifying the EFM, an adapter a(⋅;ω)a(\cdot;\omega) is inserted between f(⋅)f(\cdot) and h(⋅)h(\cdot):

ZA=a(Z,XA;ω),LA=h(ZA),(2)\mathbf{Z}^{\mathcal{A}}=a(\mathbf{Z},\mathbf{X}^{\mathcal{A}};\omega), \qquad\mathbf{L}^{\mathcal{A}}=h(\mathbf{Z}^{\mathcal{A}}), \tag*{(2)}

where ω∈RP(A)\omega\in\mathbb{R}^{P(\mathcal{A})} denotes the adapter parameters, ZA\mathbf{Z}^{\mathcal{A}} the multimodal representation, and LA\mathbf{L}^{\mathcal{A}} the prediction logits returned by the frozen head h(⋅)h(\cdot).

Problem Formulation

Given a frozen EFM, we aim to adapt it to downstream datasets with a single framework. These datasets differ in which modalities they record and in the tasks they target, so each one requires a different adaptation. We formulate this problem through three objectives.

C1: Define a unified adapter architecture. Let M\mathcal{M} denote the set of companion physiological modalities. The adapter should maintain a shared internal organization consisting of modality-specific parameters and shared parameters:

ω=({ωm}m∈A,ωsh),a(Z,XA;{ωm}m∈A,ωsh),∀A⊆M.(3)\omega=\left(\{\omega^{m}\}_{m\in\mathcal{A}},\omega^{\mathrm{sh}}\right), \qquad a\left(\mathbf{Z},\mathbf{X}^{\mathcal{A}};\{\omega^{m}\}_{m\in\mathcal{A}},\omega^{\mathrm{sh}}\right), \qquad\forall\mathcal{A}\subseteq\mathcal{M}. \tag*{(3)}

Only the modality-specific components associated with m∈Am\in\mathcal{A} participate for a given configuration, while the overall adapter organization remains unchanged.

C2: Define a label-free mapping from target data to adapter parameters. Let R={(XiEEG,XiA)}i\mathcal{R}=\{(\mathbf{X}^{\mathrm{EEG}}_{i},\mathbf{X}^{\mathcal{A}}_{i})\}_{i} denote the unlabeled target samples, and let τ\tau denote the prediction task associated with the frozen EFM. We seek a generator

g:(R,τ)↦ω^∈RP(A),(4)g:(\mathcal{R},\tau)\mapsto\hat{\omega}\in\mathbb{R}^{P(\mathcal{A})}, \tag*{(4)}

where ω^\hat{\omega} denotes the generated adapter parameters. The generator does not use target labels or dataset identifiers.

C3: Learn the generator from source reference adapters. Let S\mathcal{S} be a set of source triples (R,τ,ω∗)(\mathcal{R},\tau,\omega^{*}), where ω∗\omega^{*} is a reference adapter fitted on labeled source data. The generator is trained so that its outputs match these references in both parameters and predictions through the frozen EFM:

min⁡g E(R,τ,ω∗)∼S[∥g(R,τ)−ω∗∥2+λ δfun(ω∗,g(R,τ))],(5)\min_{g}\ \mathbb{E}_{(\mathcal{R},\tau,\omega^{*})\sim\mathcal{S}}\left[\left\lVert g(\mathcal{R},\tau)-\omega^{*}\right\rVert^{2}+\lambda\,\delta_{\mathrm{fun}}\left(\omega^{*},g(\mathcal{R},\tau)\right)\right], \tag*{(5)}

where δfun\delta_{\mathrm{fun}} measures the discrepancy between the predictions induced by two adapters through the same frozen EFM. At deployment, gg produces the target adapter in a single forward pass, without any target-side optimization.

Methodology

Framework Overview

Given an unseen multimodal recording and a supported prediction task, ZeroMAG generates a plug-in adapter that adds multimodal capability to a frozen EFM without target labels or target-side optimization. As illustrated in the upper part of Figure 2, unlabeled target samples are first encoded into a recording-specific condition. This condition guides adapter generation in a learned latent space, and a frozen decoder maps the generated latent representation to adapter parameters:

Figure 2. Overview of ZeroMAG. The framework combines a configuration-invariant multimodal adapter, target-derived condition construction, and function-constrained conditional generation for zero-shot adapter synthesis.

ω^=d(sθ(ϵ,Econd(Rcond,τ;ξ));ψ),ϵ∼N(0,I).(6)\widehat{\omega}=d\left(s_{\theta}\left(\epsilon,E_{\mathrm{cond}}\left(\mathcal{R}^{\mathrm{cond}},\tau;\xi\right)\right);\psi\right), \qquad\epsilon\sim\mathcal{N}(0,I). \tag*{(6)}

Here, Rcond\mathcal{R}^{\mathrm{cond}} is the unlabeled conditioning subset, τ\tau specifies the task. The condition extractor EcondE_{\mathrm{cond}}, conditional diffusion sampler sθs_{\theta}, and decoder dd are parameterized by ξ\xi, θ\theta, and ψ\psi, respectively; ϵ\epsilon is the initial Gaussian noise. The sampler sθs_{\theta} runs 50 deterministic DDIM steps [39] with the conditional denoiser ϵθ\epsilon_{\theta} of § 3.4.

The adapter architecture (§ 3.2) defines what is generated, the target condition (§ 3.3) specifies what to adapt to, and the two-stage procedure (§ 3.4) learns a structured adapter space and conditionally generates within it.

Multimodal Adapter Architecture

Intuition. To generate adapters for heterogeneous modality configurations with a single generator, the adapters must share a common parameter structure. Without it, each configuration would require its own output space. This suggests a 1+N1+N organization, where the frozen EEG representation serves as the invariant anchor and modality-specific companion branches provide configuration-dependent extensions. Operationalization. Following the 1+N1+N intuition, we treat the frozen EEG representation as the fixed anchor (1) and attach one modality-specific branch for each available companion modality (N). Regardless of modality type, each companion branch follows the same integration pathway: Temporal–Spectral Encoding, Feature Projection, and Shared Coordination. The first two components extract and align modality-specific features, while the shared coordinator integrates them with the EEG representation.

Temporal–Spectral Encoding. For each available companion modality, a temporal encoder extracts patterns from the signal over time, while a spectral encoder processes its frequency-domain representation:

Htempm=Tm(Xm;ωtempm),Hspecm=Sm(FFT⁡(Xm);ωspecm),m∈A.(7)\begin{aligned} \mathbf{H}^{m}_{\mathrm{temp}} &= \mathcal{T}^{m}\left(\mathbf{X}^{m};\omega^{m}_{\mathrm{temp}}\right),\\ \mathbf{H}^{m}_{\mathrm{spec}} &= \mathcal{S}^{m}\left(\operatorname{FFT}\left(\mathbf{X}^{m}\right);\omega^{m}_{\mathrm{spec}}\right), \qquad m \in\mathcal{A}. \tag*{(7)} \end{aligned}

Here, Htempm\mathbf{H}^{m}_{\mathrm{temp}} and Hspecm\mathbf{H}^{m}_{\mathrm{spec}} are temporal and spectral features. The encoders Tm\mathcal{T}^{m} and Sm\mathcal{S}^{m} have parameters ωtempm\omega^{m}_{\mathrm{temp}} and ωspecm\omega^{m}_{\mathrm{spec}}, respectively, and FFT denotes the fast Fourier transform.

Feature Projection. The temporal and spectral features are concatenated and mapped into the EFM representation space, providing a common interface for heterogeneous companion signals:

Fm=Pm(Concat⁡(Htempm,Hspecm);ωprojm),m∈A.(8)\mathbf{F}^{m} = \mathcal{P}^{m}\left(\operatorname{Concat}\left(\mathbf{H}^{m}_{\mathrm{temp}},\mathbf{H}^{m}_{\mathrm{spec}}\right);\omega^{m}_{\mathrm{proj}}\right), \qquad m \in\mathcal{A}. \tag*{(8)}

Here, Pm\mathcal{P}^{m} is the projection block with parameters ωprojm\omega^{m}_{\mathrm{proj}}, and Concat denotes feature concatenation. Its output Fm\mathbf{F}^{m} is the projected feature of modality mm.

Shared Coordination. A shared coordinator K\mathcal{K} jointly processes the frozen EEG representation and available companion features to produce the adapted representation:

ZA=K(Z,{Fm}m∈A;ωsh).(9)\mathbf{Z}^{\mathcal{A}} = \mathcal{K}\left(\mathbf{Z},\left\{\mathbf{F}^{m}\right\}_{m\in\mathcal{A}};\omega^{\mathrm{sh}}\right). \tag*{(9)}

Here, ωsh\omega^{\mathrm{sh}} denotes the shared coordinator parameters. Together, these components define the adapter mapping a(Z,XA;ω)a(\mathbf{Z},\mathbf{X}^{\mathcal{A}};\omega). Only available companion branches are evaluated, while the block schema and functional block identities remain fixed, satisfying C1.

Unified Condition Construction

Intuition. At deployment, the source-trained generator infers the adapter from unlabeled target recordings and the supported task. Modality information alone cannot distinguish these cases: recordings with the same modalities may exhibit different subject-specific physiology, while the same physiological information may serve different prediction tasks. This suggests conditioning adapter generation on modality, subject, and task information.

Operationalization. Following this intuition, the condition encoder EcondE_{\mathrm{cond}} builds one factor for each source of variation (modality, subject, and task) and combines them through a fusion module FcondF_{\mathrm{cond}}:

C=Econd(Rcond,τ;ξ)=Fcond([Cmod;Csub;Cτ]).(10)\mathbf{C}=E_{\mathrm{cond}}\left(\mathcal{R}^{\mathrm{cond}},\tau;\xi\right)=F_{\mathrm{cond}}\left([\mathbf{C}_{\mathrm{mod}};\mathbf{C}_{\mathrm{sub}};\mathbf{C}_{\tau}]\right). \tag*{(10)}

Here, Rcond\mathcal{R}^{\mathrm{cond}} denotes the unlabeled target subset used for condition construction, τ\tau specifies the prediction task, and C\mathbf{C} is the resulting target condition. Cmod\mathbf{C}_{\mathrm{mod}}, Csub\mathbf{C}_{\mathrm{sub}}, and Cτ\mathbf{C}_{\tau} denote the modality, subject, and task factors, respectively, while ξ\xi contains all trainable parameters of EcondE_{\mathrm{cond}}.

Factor Construction. Let ii index samples in Rcond\mathcal{R}^{\mathrm{cond}}. For each modality m∈{EEG}∪Am \in\{\mathrm{EEG}\}\cup\mathcal{A}, Vim\mathbf{V}^{m}_{i} denotes its sample-level feature and Vm\mathbf{V}^{m} the corresponding recording-level feature. The three factors are constructed as

Cmod=Fmod({Vm+emodm}m∈{EEG}∪A),Csub=Fsub(qsub,{Vim}m∈{EEG}∪A,i),Cτ=Etask(τ).(11)\begin{aligned} \mathbf{C}_{\mathrm{mod}} &= F_{\mathrm{mod}}\left(\left\{\mathbf{V}^{m}+ \mathbf{e}^{m}_{\mathrm{mod}}\right\}_{m\in\{\mathrm{EEG}\}\cup\mathcal{A}}\right),\\ \mathbf{C}_{\mathrm{sub}} &= F_{\mathrm{sub}}\left(\mathbf{q}_{\mathrm{sub}},\left\{\mathbf{V}^{m}_{i}\right\}_{m\in\{\mathrm{EEG}\}\cup\mathcal{A},i}\right),\\ \mathbf{C}_{\tau} &= E_{\mathrm{task}}(\tau). \tag*{(11)} \end{aligned}

Here, FmodF_{\mathrm{mod}} is permutation-invariant set pooling [52] over recording-level features tagged with learned modality embeddings emodm\mathbf{e}^{m}_{\mathrm{mod}}; FsubF_{\mathrm{sub}} is attention pooling [44] of all sample-level features with a learned, task-independent query qsub\mathbf{q}_{\mathrm{sub}}; and EtaskE_{\mathrm{task}} is a learned embedding of the supported task. All are part of ξ\xi; details and invariance properties are given in Appendix B.

Adapter Generator Training

Intuition. Fitted reference adapters reveal how heterogeneous blocks can be jointly configured to work with the frozen EFM. Their shared architecture and fitting objective suggest that these configurations contain recurring structure, making it unnecessary to model every degree of freedom in the raw weight space. Learning a compact, block-aligned representation can capture this structure while retaining the distinct roles and dependencies of adapter components. Conditional generation can then focus on variations within this learned representation, while functional supervision keeps both the decoded and the generated adapters in predictive agreement with their references.

Operationalization. We implement this design in two stages: function-preserving representation learning followed by function-constrained conditional generation. Both use the functional discrepancy δfun\delta_{\mathrm{fun}} introduced in C3, which we evaluate on a source subset Rfun\mathcal{R}^{\mathrm{fun}} held out from reference-adapter fitting:

δfun(ω,ω′)=1∣Rfun∣∑ri∈RfunDKL(σ(LiA(ω))∥σ(LiA(ω′))),(12)\delta_{\mathrm{fun}}(\omega,\omega') = \frac{1}{\lvert\mathcal{R}^{\mathrm{fun}}\rvert}\sum_{r_i\in\mathcal{R}^{\mathrm{fun}}}D_{\mathrm{KL}}\left(\sigma\left(L_i^A(\omega)\right)\mathbin\Vert\sigma\left(L_i^A(\omega')\right)\right), \tag*{(12)}

where LiA(ω)L_i^A(\omega) denotes the logits of sample rir_i produced with adapter parameters ω\omega, and σ\sigma denotes softmax. This label-free measure compares two adapters solely through the predictions they induce in the same frozen EFM.

Stage 1: Function-Preserving Representation Learning

Block-Wise Latent Encoding. Let ω∗=[ωb∗]b=1B\omega^*=[\omega_b^*]_{b=1}^B denote a fitted reference adapter partitioned into the functional blocks of § 3.2. A VAE encoder maps each block to a latent token Ub,preU_{b,\mathrm{pre}}, which is combined with a learned block embedding EbE_b and contextualized by a cross-block transformer (CBT):

U=CBT⁡([  Ub,pre+Eb  ]b=1B),(13)U=\operatorname{CBT}\left([\;U_{b,\mathrm{pre}}+E_b\;]_{b=1}^B\right), \tag*{(13)}

whose bb-th token is denoted UbU_b. We denote the resulting stochastic encoder by e(⋅;η)e(\cdot;\eta).

MoE Decoding. To share capacity across heterogeneous block types while respecting their distinct output forms, each token is routed to shared experts {rj}\{r_j\} according to its content and block identity, followed by a block-type-specific output head:

πb=softmax⁡(route⁡([  Ub;Eb  ];ψr)),\pi_b=\operatorname{softmax}\left(\operatorname{route}([\;U_b;E_b\;];\psi_r)\right),
ω~b=head⁡type⁡(b)(∑j∈TopK⁡(πb)πb,jrj(Ub)),(14)\widetilde{\omega}_b=\operatorname{head}_{\operatorname{type}(b)}\left(\sum_{j\in\operatorname{TopK}(\pi_b)}\pi_{b,j}r_j(U_b)\right), \tag*{(14)}

where type⁡(b)∈{temp,spec,proj,shared}\operatorname{type}(b)\in\{\mathrm{temp},\mathrm{spec},\mathrm{proj},\mathrm{shared}\}. Collectively, the decoder gives ω~=d(U;ψ)\widetilde{\omega}=d(U;\psi).

Function-Preserving Reconstruction. Since parameter reconstruction alone does not guarantee that adapter behavior is preserved, Stage 1 combines parameter-level and function-level objectives:

LAE=Lblk+λcosLcos+λfunδfun(ω∗,ω~)+βLKL+λbalLbal,(15)\mathcal{L}_{\mathrm{AE}}=\mathcal{L}_{\mathrm{blk}}+\lambda_{\mathrm{cos}}\mathcal{L}_{\mathrm{cos}}+\lambda_{\mathrm{fun}}\delta_{\mathrm{fun}}(\omega^*,\widetilde{\omega})+\beta\mathcal{L}_{\mathrm{KL}}+\lambda_{\mathrm{bal}}\mathcal{L}_{\mathrm{bal}}, \tag*{(15)}

where Lblk\mathcal{L}_{\mathrm{blk}} and Lcos\mathcal{L}_{\mathrm{cos}} reconstruct adapter parameters, δfun\delta_{\mathrm{fun}} preserves predictive behavior, LKL\mathcal{L}_{\mathrm{KL}} regularizes the latent posterior, and Lbal\mathcal{L}_{\mathrm{bal}} balances expert utilization. After training, the encoder and decoder are frozen, and U0=e‾(ω∗;η)U_0=\overline{e}(\omega^*;\eta), obtained by contextualizing posterior means, serves as the deterministic target latent for Stage 2.

Stage 2: Function-Constrained Conditional Generation

Conditional Latent Diffusion. For each source triple (R,τ,ω∗)(\mathcal{R},\tau,\omega^*), a condition C=Econd(Rcond,τ;ξ)\mathbf{C}=E_{\mathrm{cond}}(\mathcal{R}^{\mathrm{cond}},\tau;\xi) is constructed from an unlabeled subset Rcond⊆Rft\mathcal{R}^{\mathrm{cond}}\subseteq\mathcal{R}^{\mathrm{ft}}, where Rft\mathcal{R}^{\mathrm{ft}} is the subset used to fit ω∗\omega^*. In the frozen Stage 1 latent space, a DiT denoiser [34] ϵθ(Ut,τ,C)\epsilon_\theta(U_t,\tau,\mathbf{C}) predicts the noise added to U0U_0. Its prediction yields the clean-latent estimate U^0=(Ut−1−αˉtϵθ)/αˉt\widehat{U}_0=(U_t-\sqrt{1-\bar{\alpha}_t}\epsilon_\theta)/\sqrt{\bar{\alpha}_t}, which the frozen decoder maps to ω~=d(U^0;ψ)\widetilde{\omega}=d(\widehat{U}_0;\psi).

Function-Constrained Generation. The condition encoder and denoiser are jointly optimized by

Lgen=Ldiff+λlatLlat+λwLw+λgfδfun(ω∗,ω~),(16)\mathcal{L}_{\mathrm{gen}}=\mathcal{L}_{\mathrm{diff}}+\lambda_{\mathrm{lat}}\mathcal{L}_{\mathrm{lat}}+\lambda_w\mathcal{L}_w+\lambda_{\mathrm{gf}}\delta_{\mathrm{fun}}(\omega^*,\widetilde{\omega}), \tag*{(16)}

where Ldiff\mathcal{L}_{\mathrm{diff}} supervises denoising, Llat\mathcal{L}_{\mathrm{lat}} and Lw\mathcal{L}_{w} align U^0\hat{U}_0 and ω^\hat{\omega} with their references, and δfun\delta_{\mathrm{fun}} aligns predictive behavior, with gradients passing through the frozen decoder. Because the division by αˉt\sqrt{\bar{\alpha}_t} amplifies noise-prediction errors at high noise levels, the latent, weight, and functional terms are applied only at low-noise timesteps (Appendix § 16.§ 1), whereas Ldiff\mathcal{L}_{\mathrm{diff}} is applied at all timesteps.

After training, EcondE_{\mathrm{cond}}, ϵθ\epsilon_\theta, and dd are fixed and realize the label-free mapping of C2 (Eq. (6)).

Experiments

Experimental Setup

Datasets and Tasks. We evaluate ZeroMAG on a multi-dataset benchmark spanning sleep staging, emotion recognition, cognitive load, motor imagery, and freezing-of-gait detection. The recordings cover EOG, EMG, ECG, eye movement, acceleration, and skin conductance, including settings in which modality combinations or modality types are excluded from generator training. Table 1 reports results on six target datasets that are disjoint from the source training datasets; FoG is also a task-holdout target with no source adapter for its task. Task coverage, the remaining targets, and further analyses are in Appendix § 11.

MethodISRUC-S3HMCMASSSEED-VEEGMATFoG
CBraMod
EEG-only75.83±0.7675.83\pm0.7672.78±0.5072.78\pm0.5074.29±0.5874.29\pm0.5840.62±1.2440.62\pm1.2473.38±2.4873.38\pm2.4876.61±1.3576.61\pm1.35
Supervised tuning84.04±0.8884.04\pm0.8880.81±0.4180.81\pm0.4182.41±0.6882.41\pm0.6845.44±1.5845.44\pm1.5881.46±1.9381.46\pm1.9385.02±1.2185.02\pm1.21
Mean source weights74.31±0.8274.31\pm0.8272.93±0.4972.93\pm0.4975.91±0.6375.91\pm0.6339.83±1.1339.83\pm1.1373.52±0.9273.52\pm0.9276.73±0.7876.73\pm0.78
Nearest source weights76.63±0.6176.63\pm0.6173.18±0.5273.18\pm0.5276.35±0.5176.35\pm0.5140.68±1.3740.68\pm1.3774.63±0.8174.63\pm0.8177.52±0.7377.52\pm0.73
Direct MLP76.89±0.7376.89\pm0.7373.43±0.5573.43\pm0.5577.48±0.6577.48\pm0.6540.99±1.0540.99\pm1.0575.21±1.0275.21\pm1.0278.03±0.6278.03\pm0.62
ZeroMAG83.59±0.5983.59\pm0.5980.29±0.4280.29\pm0.4282.03±0.5282.03\pm0.5244.83±1.2244.83\pm1.2280.99±0.8180.99\pm0.8184.47±0.7284.47\pm0.72
CSBrain
EEG-only75.94±0.9375.94\pm0.9373.31±0.4873.31\pm0.4875.89±0.5475.89\pm0.5441.38±1.3241.38\pm1.3275.38±2.6775.38\pm2.6775.96±1.5275.96\pm1.52
Supervised tuning84.10±1.4384.10\pm1.4381.39±0.3981.39\pm0.3984.15±0.6284.15\pm0.6246.32±1.1746.32\pm1.1783.57±1.4383.57\pm1.4385.13±1.3185.13\pm1.31
Mean source weights75.42±0.6275.42\pm0.6273.51±0.4573.51\pm0.4577.72±0.5877.72\pm0.5841.75±0.6241.75\pm0.6275.91±0.7175.91\pm0.7177.08±0.6577.08\pm0.65
Nearest source weights76.74±0.5576.74\pm0.5573.82±0.5273.82\pm0.5277.98±0.6377.98\pm0.6342.28±0.5542.28\pm0.5575.83±0.6675.83\pm0.6678.73±0.5978.73\pm0.59
Direct MLP79.18±0.7179.18\pm0.7174.21±0.4874.21\pm0.4880.45±0.7280.45\pm0.7242.69±0.4842.69\pm0.4878.12±0.5878.12\pm0.5880.02±0.5280.02\pm0.52
ZeroMAG83.67±0.6183.67\pm0.6180.83±0.5280.83\pm0.5283.74±0.8383.74\pm0.8345.74±0.4445.74\pm0.4483.08±0.7183.08\pm0.7184.60±0.6584.60\pm0.65
CodeBrain
EEG-only76.57±0.7376.57\pm0.7372.95±0.4972.95\pm0.4977.24±0.5177.24\pm0.5141.52±1.4641.52\pm1.4676.62±2.8376.62\pm2.8376.77±1.2676.77\pm1.26
Supervised tuning84.92±1.6184.92\pm1.6180.93±0.3880.93\pm0.3885.67±0.5885.67\pm0.5846.39±1.3446.39\pm1.3485.02±1.6385.02\pm1.6385.25±1.3385.25\pm1.33
Mean source weights77.02±0.6877.02\pm0.6873.28±0.4273.28\pm0.4279.12±0.7279.12\pm0.7241.88±0.5841.88\pm0.5877.22±0.6677.22\pm0.6677.85±0.7177.85\pm0.71
Nearest source weights77.22±0.6277.22\pm0.6273.65±0.4873.65\pm0.4880.21±0.6880.21\pm0.6842.35±0.5242.35\pm0.5277.98±0.5977.98\pm0.5979.22±0.6579.22\pm0.65
Direct MLP79.92±0.5579.92\pm0.5573.92±0.5173.92\pm0.5181.65±0.6181.65\pm0.6142.87±0.4542.87\pm0.4579.28±0.5279.28\pm0.5280.55±0.5880.55\pm0.58
ZeroMAG84.44±0.7784.44\pm0.7780.43±0.4880.43\pm0.4885.25±0.7285.25\pm0.7245.84±0.5545.84\pm0.5584.51±0.6384.51\pm0.6384.65±0.5884.65\pm0.58
Multimodal physiological models
PhysioOmni84.62±0.6384.62\pm0.6381.05±0.4281.05\pm0.4285.50±0.6585.50\pm0.6546.04±1.3246.04\pm1.3284.81±2.1384.81\pm2.1384.93±0.5384.93\pm0.53
SleepFM83.27±0.6183.27\pm0.6180.01±0.4780.01\pm0.4781.61±0.5281.61\pm0.5244.48±0.5844.48\pm0.5880.54±0.7280.54\pm0.7284.09±0.6884.09\pm0.68
Brant-X85.19±0.5485.19\pm0.5481.51±0.4681.51\pm0.4686.07±0.5986.07\pm0.5946.49±0.6346.49\pm0.6385.31±0.6185.31\pm0.6185.37±0.7285.37\pm0.72

Table 1. Balanced accuracy (%, mean±\pmstd over five seeds) on six held-out target datasets. Within each EEG-backbone group, ZeroMAG and the label-free baselines use the same frozen encoder and prediction head, without target labels or target-side optimization. Supervised multimodal fine-tuning is a separate reference using target training labels and all available modalities. Bold entries indicate the best target-label-free result in each group.

Backbones and Baselines. We use three frozen EEG foundation models: CBraMod ([47]), CSBrain ([57]), and CodeBrain ([31]). Each backbone has a separately trained generator. ZeroMAG and the target-label-free baselines use the same frozen EEG encoder and prediction head. These baselines include EEG-only inference, mean and nearest source weights, and Direct MLP. A separate supervised multimodal fine-tuning experiment uses target training labels to measure the gap to supervised adaptation on the same query split; it is not part of the ZeroMAG pipeline. PhysioOmni ((Fu et al., 2025)), SleepFM ([43]), and Brant-X ([54]) serve as cross-paradigm references.

Protocol. Evaluation uses a dataset-disjoint source–target split: all target datasets are excluded from EEG encoder/head training, source adapter fitting, both generator-training stages, and model selection. For each target subject, calibration and query subsets are disjoint. ZeroMAG uses only unlabeled calibration signals and the supported task to generate an adapter, then predicts on query inputs with all model parameters fixed. Query labels are used only to compute evaluation metrics. Dataset lists and split details are given in Appendix § 16.§ 3.

Metrics and Implementation. We report balanced accuracy (B-ACC) averaged over five matched seeds. Both stages use AdamW (learning rate 10−410^{-4}, batch size 64); the CBT and DiT have 2 and 4 layers of width 256, the decoder uses 4 experts with top-2 routing, and latent tokens have width 128. Loss weights are λcos=λlat=λw=0.1\lambda_{\mathrm{cos}}=\lambda_{\mathrm{lat}}=\lambda_w=0.1, λfun=λgf=1\lambda_{\mathrm{fun}}=\lambda_{\mathrm{gf}}=1, β=10−4\beta=10^{-4}, and λbal=0.01\lambda_{\mathrm{bal}}=0.01, with the low-noise gate αˉt>0.5\bar{\alpha}_t>0.5. The source bank holds 311 adapters per backbone, and each target subject provides 64 unlabeled calibration windows. Full settings are in Appendix § 16 (Table H.1).

Performance Comparison with Baselines

Comparison with label-free and supervised adaptation. ZeroMAG ranks first among target-label-free methods in all 18 backbone–dataset evaluations, improving B-ACC on average by 7.22 points over EEG-only inference, 6.78 over mean source weights, 6.00 over nearest source weights, and 4.89 over Direct MLP, the strongest competing generator. Despite using neither target labels nor target-side optimization, it remains only 0.38–0.61 points below full-modality supervised tuning in every setting (0.50 on average), recovering 93.50% of the supervised gain over EEG-only inference.

Backbone and cross-paradigm generalization. The gain over EEG-only inference is stable across CBraMod, CSBrain, and CodeBrain at 7.12, 7.30, and 7.24 points; the range is approximately 0.19 points. With CodeBrain, ZeroMAG exceeds SleepFM on all six displayed targets by 1.85 points on average, trails PhysioOmni by only 0.31 points, and trails Brant-X by 0.80 points on average.

Ablation Study

We ablate the condition, generator, adapter, and functional supervision while keeping the source adapter bank, source training splits, frozen backbone, prediction heads, and evaluation protocol fixed. Table 2 reports CBraMod results averaged across all held-out evaluation settings.

ComponentVariantB-ACC ↑\uparrowΔ↓\Delta\downarrow
ConditionTask + modality only62.32±0.4162.32 \pm0.4111.09±0.7211.09 \pm0.72
Shuffled subject condition64.17±0.5364.17 \pm0.539.24±0.989.24 \pm0.98
GeneratorDirect weight MLP62.34±0.6762.34 \pm0.6711.07±0.8811.07 \pm0.88
Modular latent MLP65.23±0.6265.23 \pm0.628.18±0.838.18 \pm0.83
Modular latent DiT (w/o MoE)68.34±0.2168.34 \pm0.215.07±0.715.07 \pm0.71
AdapterShared modality encoder69.25±0.3369.25 \pm0.334.16±0.814.16 \pm0.81
Temporal branch only65.29±0.7265.29 \pm0.728.12±1.038.12 \pm1.03
Mean fusion66.83±0.3266.83 \pm0.326.58±0.716.58 \pm0.71
Functionalw/o Stage 1 functional72.26±0.7672.26 \pm0.761.151.15
w/o Stage 2 functional71.83±0.7971.83 \pm0.791.581.58
w/o both70.54±0.8670.54 \pm0.862.872.87
Full ZeroMAG73.41±0.7173.41 \pm0.71—

Table 2. Ablation results with CBraMod, averaged over all nine held-out datasets (% B-ACC, mean±\pmstd over five seeds). Ablated results are shaded blue, and Δ\Delta denotes the decrease from Full ZeroMAG in the same run. Ablations use a separate run under the same protocol, so Full differs from the Table 1 average.

Condition. Removing the subject factor and retaining only task and modality information lowers B-ACC by 11.09 points. Shuffling subject conditions produces a similarly large 9.24-point drop, although the representations retain the same marginal distribution and dimensionality. The condition must therefore encode subject-specific information aligned with the target recording.

Generator. Direct weight regression decreases B-ACC by 11.07 points. The modular latent space raises B-ACC from 62.34 to 65.23, DiT to 68.34, and the MoE decoder to 73.41.

Adapter. Sharing the modality encoder reduces B-ACC by 4.16 points, removing the spectral branch by 8.12 points, and replacing learned coordination with mean fusion by 6.58 points, supporting modality-specific encoding, temporal–spectral processing, and learned fusion.

Functional supervision. Removing functional supervision from Stage 1, Stage 2, or both lowers B-ACC by 1.15, 1.58, and 2.87 points. Without the Stage 1 term, reconstruction error falls by 6% while prediction KL to the reference adapter rises by 31%: closer parameter reconstruction need not yield closer predictions (Appendix G.§ 3).

Generalization and Efficiency

Unseen modalities. On unseen combinations of known modalities and modality types in M\mathcal{M} excluded from generator training, ZeroMAG recovers 89.7% and 82.6% of the gain achieved by supervised multimodal adaptation, respectively. It outperforms mean source transfer, nearest-source retrieval, and direct weight regression in both settings.

Data and target-side efficiency. Performance saturates at approximately 64 unlabeled calibration windows. Moreover, using only 50% of the source adapter bank retains 97.2% of the full multimodal gain. ZeroMAG constructs the condition and generates an adapter in 2 minutes, compared with 15 minutes for supervised target adaptation under the same hardware and protocol (7.5×\times faster); offline training cost is amortized across targets (Appendix § 14).

Related Work

EEG foundation and multimodal physiological models. EEG foundation models provide transferable backbones across downstream tasks ([23, 16, 47, 46, 50, 53]), but largely retain EEG-centered interfaces. Prior multimodal physiological work integrates signals through multimodal foundation-model pretraining or EEG-to-physiology alignment ([43, 54] (Fu et al. 2025)). ZeroMAG generates a plug-in adapter for an existing EFM while keeping its encoder and prediction head frozen.

Adaptation and weight generation. Parameter-efficient adaptation methods ([14, 15, 26, 12, 41]) still require target-side optimization, whereas hypernetworks generate parameters from task descriptors or unlabeled prompts ([11, 17, 29] (Chakraborty et al. 2025)). ZeroMAG instead generates a modular physiological adapter from unlabeled target information in a structured latent space. Unlike test-time adaptation ([28, 45, 27]), deployment requires no pseudo-labels, gradients, or iterative optimization (Appendix § 18.§ 1).

Conclusion

We introduced ZeroMAG, a zero-shot framework that extends frozen EFMs to heterogeneous multimodal recordings through generated plug-in adapters. Combining configuration-invariant adaptation, target-derived conditioning, and function-constrained latent generation, it consistently improves over target-label-free baselines and approaches supervised multimodal adaptation, requiring no target labels or target-side optimization for the added adapter and no repeated multimodal pretraining. ZeroMAG relies on a supplied fine-tuned EFM and adequate source-bank coverage, and cannot incorporate modality types outside M\mathcal{M} without retraining.

AI USE STATEMENT

We used ChatGPT, Codex, and Claude to draft, edit, and polish manuscript text; retrieve and verify references; prepare and refine figures; organize existing experimental outputs into tables and summaries; discuss research framing and related-work positioning; review and optimize auxiliary code to reduce repetitive workflow tasks; and check the manuscript for internal consistency. The authors made the final research and methodological decisions. AI assistance with code was limited to auxiliary workflow tasks; AI tools were not used to design or implement the ZeroMAG method or baselines, design the experimental protocol, run experiments, generate or alter experimental measurements, or interpret the findings. The authors checked AI-assisted text, figures, code-related changes, and output summaries against the manuscript and original experiment files, and are responsible for the accuracy of all claims, citations, figures, code, and results.

REPRODUCIBILITY STATEMENT

Implementation details and hyperparameters are listed in Table H.1; datasets are listed in Appendix § 11, and split details are given in Appendix § 16.§ 3. An initial implementation snapshot is available at https://anonymous.4open.science/r/ZeroMAG-795E/.

Notation and Model Scope

EEG representations

EEG representation learning has progressed from task-specific supervised networks [8] to foundation models trained across recordings [23]. These models differ in tokenization, objectives, and recording domains. LaBraM uses neural signal tokenization [16]; EEGPT learns EEG representations through self-supervised transformer pretraining [46]. BIOT addresses heterogeneous biosignal inputs [50], whereas Brant focuses on intracranial neural recordings [53]. These differences matter when defining the adapter’s input and output interface. Our experiments use the three backbone instantiations described below.

Frozen models and separate generators

For each backbone, we directly load the EFM encoder checkpoint and pair it with a compatible prediction head trained on source data for the supported task. The head has a shared feature layer and task-specific linear output layers, and it is kept frozen throughout; no target labels are used. The Daphnet Freezing of Gait dataset [36], introduced in the associated study [3], provides source supervision for the freezing-of-gait output; it is used to train the compatible head, not to fit reference adapters or train the adapter generator. EEG-only inference sets the auxiliary residual to zero; multimodal inference adds the adapter-generated residual before the shared head layer. Other source labels are used offline to fit reference adapters.

For a fused representation zfused=zEEG+Δzauxz^{\mathrm{fused}} = z^{\mathrm{EEG}} + \Delta z^{\mathrm{aux}}, the head is

u=GELU⁡(WsLN⁡(zfused)+bs),u∈R128,(17)\mathbf{u} = \operatorname{GELU}(W_s\operatorname{LN}(z^{\mathrm{fused}}) + b_s), \qquad\mathbf{u} \in\mathbb{R}^{128}, \tag*{(17)}
ℓt=Wtu+bt∈RKt,pt=softmax⁡(ℓt).(18)\ell_t = W_t\mathbf{u} + b_t \in\mathbb{R}^{K_t}, \qquad p_t = \operatorname{softmax}(\ell_t). \tag*{(18)}

The shared projection (Ws,bs)(W_s, b_s) is specific to a backbone, as are the task output layers (Wt,bt)(W_t, b_t). For a given task tt, the same output layer is used across its datasets. The adapter and the frozen head therefore share the same prediction path in EEG-only and multimodal evaluation.

We train the generators for CBraMod [47], CSBrain [57], and CodeBrain [31] separately. The results across these backbones evaluate separate instantiations of the same framework. They do not represent the transfer of one shared generator checkpoint from one backbone architecture to another. Within each instantiation, the adapter layout, decoder output, frozen EEG representation, and prediction head form the applicable model interface. The block schema is shared within an interface, but the number of blocks and total parameter count depend on the active modalities.

Throughout the appendix, ff, hh, ee, dd, EcondE_{\mathrm{cond}}, and sθs_{\theta} refer to the selected backbone instantiation. The conditioning input remains the recording and task; the selected generator determines the backbone interface.

Signals and adapter parameters

Tables A.1 and A.2 collect the notation used below. As in the main text, KK denotes the number of classes and CC the fused condition.

SymbolMeaning
XEEGX^{\mathrm{EEG}}EEG input to the frozen encoder.
M\mathcal{M}Complete set of supported companion modalities.
A⊆MA \subseteq\mathcal{M}Companion modalities available in a particular recording.
XAX^ACollection {Xm:m∈A}\{X^m : m \in A\} of available companion inputs.
R={ri}R = \{r_i\}Recording samples, with ri=(XiEEG,XiA)r_i = (X_i^{\mathrm{EEG}}, X_i^A).
SymbolMeaning
RfitR^{\mathrm{fit}}Source samples whose labels are used to fit a reference adapter.
RcondR^{\mathrm{cond}}Unlabeled samples used to construct the condition.
RfunR^{\mathrm{fun}}Source samples used for functional supervision, disjoint from fitting and conditioning.
RqryR^{\mathrm{qry}}Target query samples, disjoint from target conditioning.
τ\tauSupported prediction task associated with the frozen head.
f,hf,hFrozen EEG encoder and prediction head.
Z=f(XEEG)Z=f(X^{\mathrm{EEG}})EEG representation before the adapter.
a(Z,XA;ω)a(Z,X_A;\omega)Multimodal adapter, with parameter vector ω∈RP(A)\omega\in\mathbb{R}^{P(A)}.
ZA,LA(ω)Z_A,L_A(\omega)Adapted representation and logits h(ZA)h(Z_A).
ω∗,ω~,ω^\omega^\ast,\widetilde{\omega},\widehat{\omega}Fitted reference, reconstructed reference, and generated adapter.
ωsh\omega^{\mathrm{sh}}Parameters of the shared coordinator.
ωtempm,ωspecm,ωprojm\omega_{\mathrm{temp}}^m,\omega_{\mathrm{spec}}^m,\omega_{\mathrm{proj}}^mTemporal, spectral, and projection parameters for modality mm.
B,pb,P(A)B,p_b,P(A)Active block count B=3∣A∣+1B=3\lvert A\rvert+1, block size, and configuration-specific parameter count.

Table A.1. Signal and adapter notation. Dimensions are symbolic here; numerical settings are listed in Table H.1.

Latents and conditioning

The pre-contextual adapter token is denoted Ub,preU_{b,\mathrm{pre}}, following the main text. It is distinct from the signal features VimV_i^m and VmV^m used for conditioning. The deterministic latent U0U_0 is obtained by substituting posterior means before the cross-block transformer; it is not a new encoder architecture.

SymbolMeaning
e(⋅;η)e(\cdot;\eta)Stochastic block encoder, including the cross-block transformer.
eˉ(⋅;η)\bar{e}(\cdot;\eta)Deterministic encoder path using posterior means.
μb,ℓb\mu_b,\ell_bMean and log variance of the Gaussian for block bb; ℓb\ell_b is introduced here for the posterior expansion.
Ub,preU_{b,\mathrm{pre}}Sampled block token before contextualization.
Eb,CBTE_b,\mathrm{CBT}Block identity embedding and cross-block transformer.
U,U0,UtU,U_0,U_tContextualized sample, canonical latent, and noise-corrupted canonical latent.
U^0\widehat{U}_0Clean-latent estimate computed from a noisy latent and predicted noise.
d(⋅;ψ)d(\cdot;\psi)MoE decoder mapping latent tokens to adapter weights.
πb,j,rj\pi_{b,j},r_jRouting weight and reconstruction expert for expert jj.
Vim,VmV_i^m,V^mSample-level and recording-level condition features for modality mm.
emodm,qsube_{\mathrm{mod}}^m,q_{\mathrm{sub}}Modality embedding and task-independent attention query.
Fmod,Fsub,EtaskF_{\mathrm{mod}},F_{\mathrm{sub}},E_{\mathrm{task}}Set pooling, attention pooling, and task embedding.
Cmod,Csub,CτC_{\mathrm{mod}},C_{\mathrm{sub}},C_\tauModality, subject, and task factors.
C,Econd(⋅;ξ),FcondC,E_{\mathrm{cond}}(\cdot;\xi),F_{\mathrm{cond}}Fused condition, complete condition encoder, and factor-fusion function.
ϵ,ϵθ,sθ\epsilon,\epsilon_\theta,s_\thetaGaussian noise, conditional noise predictor, and 50-step deterministic DDIM sampler using ϵθ\epsilon_\theta.
t,αˉtt,\bar{\alpha}_tDiffusion timestep and cumulative signal coefficient.
δfun\delta_{\mathrm{fun}}Reference-to-student predictive KL averaged on RfunR^{\mathrm{fun}}.
LAE,Lgen\mathcal{L}_{\mathrm{AE}},\mathcal{L}_{\mathrm{gen}}Stage 1 and Stage 2 objectives.

Table 3. Latent, condition, and optimization notation.

Parameter ownership

The learning stages update different parameter sets. Table A.3 separates parameter updates from differentiable use. A frozen decoder remains part of the computational graph for a loss on its output, even though the optimizer does not change its parameters.

ComponentReference fittingStage 1Stage 2Deployment
EEG encoder and headFixedFixedFixedFixed
Reference adapter ω∗\omega^{*}UpdatedFixedFixedNot required
Encoder η\etaNot usedUpdatedFixedNot required
Decoder ψ\psiNot usedUpdatedFixedFixed
Condition encoder ξ\xiNot usedNot usedUpdatedFixed
Denoiser θ\thetaNot usedNot usedUpdatedFixed

Table A.3. Parameter updates in the ZeroMAG pipeline. “Fixed” describes parameter values, not a zero input Jacobian.

Each generated ω^\hat{\omega} is an output of the trained system, rather than an optimizer state fitted to the target. Generation can involve repeated denoiser evaluations without any target-side gradient update. This distinction separates iterative sampling from iterative supervised adaptation.

Adapter and Condition

Variable-length block layout

Within a backbone instantiation, only the active companion set A⊆MA \subseteq\mathcal{M} contributes modality-specific parameters:

ω=[ωsh;{ωtempm,ωspecm,ωprojm}m∈A]∈RP(A).(19)\omega= \left[\omega^{\mathrm{sh}};\left\{\omega_{\mathrm{temp}}^{m},\omega_{\mathrm{spec}}^{m},\omega_{\mathrm{proj}}^{m}\right\}_{m\in A}\right]\in\mathbb{R}^{P(A)}. \tag*{(19)}

Each active modality contributes three blocks, with one additional shared block:

M=∣A∣,B=3M+1,U∈RB×128.(20)M = \lvert A\rvert,\qquad B = 3M + 1,\qquad U\in\mathbb{R}^{B\times128}. \tag*{(20)}

Thus M=1,2,3M=1,2,3 gives B=4,7,10B=4,7,10, respectively; ten is not a universal block count. Missing modalities create neither parameter blocks nor placeholder latent tokens. Block-type and modality conditioning, together with attention masks, support variable-length sequences while preserving the same functional block schema.

With block size pbp_b, the parameter count is

P(A)=psh+∑m∈A(ptempm+pspecm+pprojm)=∑b=1Bpb.(21)P(A)=p_{\mathrm{sh}}+\sum_{m\in A}\left(p_{\mathrm{temp}}^{m}+p_{\mathrm{spec}}^{m}+p_{\mathrm{proj}}^{m}\right)=\sum_{b=1}^{B}p_b. \tag*{(21)}

For the active sequence, let ob=∑r<bpro_b=\sum_{r<b}p_r and ωb=ω[ob:ob+pb]\omega_b=\omega[o_b:o_b+p_b]. Offsets are defined within that configuration; semantic block identity is determined by type and modality, not by a universal vector position.

Temporal and spectral branches

An active companion modality m∈Am\in A contributes two feature streams:

Htempm=Tm(Xm;ωtempm),(22)H_{\mathrm{temp}}^{m}=T^{m}\left(X^{m};\omega_{\mathrm{temp}}^{m}\right), \tag*{(22)}
Hspecm=Sm(FFT⁡(Xm);ωspecm),(23)H_{\mathrm{spec}}^{m}=S^{m}\left(\operatorname{FFT}\left(X^{m}\right);\omega_{\mathrm{spec}}^{m}\right), \tag*{(23)}
Fm=Pm([Htempm;Hspecm];ωprojm).(24)F^{m}=P^{m}\left(\left[H_{\mathrm{temp}}^{m};H_{\mathrm{spec}}^{m}\right];\omega_{\mathrm{proj}}^{m}\right). \tag*{(24)}

The temporal stream represents variation in the input sequence, while the spectral stream provides frequency-domain information. Projection combines the two streams into the interface consumed by the shared coordinator. The distinct parameter groups allow weight generation to preserve the functional role of each block instead of treating the entire adapter as an unstructured vector.

The companion projection is distinct from the EFM encoder. It changes how additional signals enter the frozen representation, while the original EEG mapping ff remains unchanged. The generated weights therefore specify a multimodal extension of an existing representation rather than a replacement EEG backbone.

Shared coordination and masking

The coordinator processes the EEG representation and available companion features to produce an auxiliary residual:

ΔZaux=K(Z,{Fm:m∈A};ωsh),ZA=Z+ΔZaux.(25)\Delta Z_{\mathrm{aux}} = K(Z, \{F^{m}: m \in\mathcal{A}\}; \omega^{\mathrm{sh}}), \qquad Z_{\mathcal{A}} = Z + \Delta Z_{\mathrm{aux}}. \tag*{(25)}

Only available branches contribute. For an empty companion set, the adapter returns the EEG representation directly:

a(Z,∅;ω)=Z,Lt∅(ω)=ht(f(XEEG)).(26)a(Z, \varnothing; \omega) = Z, \qquad L^{\varnothing}_{t}(\omega) = h_t(f(X^{\mathrm{EEG}})). \tag*{(26)}

For EEG-only inference, the auxiliary residual is zero and the frozen EEG path is unchanged. Unavailable modalities have no parameter blocks or latent tokens, and therefore make no contribution to the prediction path.

Three condition factors

The condition encoder uses unlabeled calibration signals and the supported task:

Cmod=Fmod({Vm+emodm}m∈{EEG}∪A),(27)C_{\mathrm{mod}} = F_{\mathrm{mod}}(\{V^{m} + e^{m}_{\mathrm{mod}}\}_{m \in\{\mathrm{EEG}\} \cup\mathcal{A}}), \tag*{(27)}
Csub=Fsub(qsub,{Vim}m∈{EEG}∪A,i),(28)C_{\mathrm{sub}} = F_{\mathrm{sub}}(q_{\mathrm{sub}}, \{V^{m}_{i}\}_{m \in\{\mathrm{EEG}\} \cup\mathcal{A},i}), \tag*{(28)}
Cτ=Etask(τ;ξτ),(29)C_{\tau} = E_{\mathrm{task}}(\tau; \xi_{\tau}), \tag*{(29)}
C=Econd(Rcond,τ;ξ)=Fcond([Cmod;Csub;Cτ]).(30)C = E_{\mathrm{cond}}(R^{\mathrm{cond}}, \tau; \xi) = F_{\mathrm{cond}}([C_{\mathrm{mod}}; C_{\mathrm{sub}}; C_{\tau}]). \tag*{(30)}

Here VimV^{m}_{i} is a sample-level feature and VmV^{m} aggregates a recording’s features for modality mm. The embeddings emodme^{m}_{\mathrm{mod}} identify signal types. The subject query qsubq_{\mathrm{sub}} is task-independent; the task enters separately through CτC_{\tau} and the fusion function FcondF_{\mathrm{cond}}.

The subject factor is inferred from the observed recording, not retrieved from a target-subject identifier. Its role is to represent recording-specific physiology that is absent from modality availability alone. Shuffling this factor across recordings preserves a collection of feature vectors but breaks their correspondence to the recording for which an adapter is generated, as examined in Appendix G.

Order and identity

Set pooling follows the permutation-invariant viewpoint of Deep Sets [52]. Reordering signal-feature/identity pairs leaves the modality factor unchanged. This invariance does not apply to exchanging signal identities while holding the feature values fixed: assigning an ECG identity to an eye-movement feature changes the meaning of the condition.

For attention pooling [44] with a fixed query and consistently permuted key/value pairs, a permutation only reorders the terms in the weighted sum. To see this, write c=∑iaivic = \sum_i a_i v_i, where ai=exp⁡(si)/∑jexp⁡(sj)a_i = \exp(s_i)/\sum_j \exp(s_j). A permutation ρ\rho gives

∑iexp⁡(sρ(i))∑jexp⁡(sρ(j))vρ(i)=∑iaivi.(31)\sum_i \frac{\exp(s_{\rho(i)})}{\sum_j \exp(s_{\rho(j)})}v_{\rho(i)} = \sum_i a_i v_i. \tag*{(31)}

This identity explains the distinction between order invariance and semantic identity. It assumes that scores and values are permuted together, as required for pooling a set of features.

Support of the condition

The task factor identifies a supported prediction task rather than a dataset identifier. Dataset holdout and task holdout are distinct: a new dataset can share a task with source data, whereas a task-holdout target has no source adapter for its task. FoG is the task-holdout target in our benchmark; its task factor CτC_{\tau} is a learned unspecified-task embedding. Similarly, a new combination of supported signals differs from a signal type outside M\mathcal{M}. The supported block schema defines the modality interface; it does not by itself create a new encoder for an arbitrary signal type.

Datasets and Additional Results

Evaluation targets

The displayed benchmark covers six targets and four task families: ISRUC-S3 [20], HMC [2], and MASS [33] for sleep staging; SEED-V [30] for emotion recognition; EEGMAT (Zyma et al., 2019) for cognitive-load estimation; and FoG [55] for freezing-of-gait detection. This section analyzes the six held-out target datasets in main Table 1. The full evaluation additionally includes CAP, DREAMER, and BCI-IV. The CBraMod ablation average in main Table 2 and Appendix G covers all nine target datasets; results on CAP, DREAMER, and BCI-IV are reported in Table C.1.

MethodCAPDREAMERBCI-IV
CBraMod
EEG-only53.86±0.8353.86 \pm0.8343.91±1.0443.91 \pm1.0437.82±1.3137.82 \pm1.31
Supervised tuning68.16±0.6468.16 \pm0.6460.20±0.9860.20 \pm0.9851.11±0.8951.11 \pm0.89
Mean source weights53.68±0.9753.68 \pm0.9743.45±1.3543.45 \pm1.3537.54±1.7037.54 \pm1.70
Nearest source weights54.78±0.5554.78 \pm0.5545.08±1.2345.08 \pm1.2339.26±0.9139.26 \pm0.91
Direct MLP55.93±0.6555.93 \pm0.6546.05±0.7446.05 \pm0.7441.00±1.6141.00 \pm1.61
ZeroMAG66.11±0.6966.11 \pm0.6958.07±0.9858.07 \pm0.9849.69±1.7249.69 \pm1.72
CSBrain
EEG-only54.23±0.7954.23 \pm0.7944.38±0.9844.38 \pm0.9838.57±1.2638.57 \pm1.26
Supervised tuning66.30±0.9766.30 \pm0.9759.77±1.0559.77 \pm1.0552.62±1.0652.62 \pm1.06
Mean source weights54.67±1.0254.67 \pm1.0243.71±1.0743.71 \pm1.0738.41±1.2138.41 \pm1.21
Nearest source weights55.59±1.0655.59 \pm1.0645.92±0.9445.92 \pm0.9439.54±1.5039.54 \pm1.50
Direct MLP56.91±1.0756.91 \pm1.0746.85±1.3446.85 \pm1.3440.29±1.7740.29 \pm1.77
ZeroMAG64.49±0.5664.49 \pm0.5658.10±1.0558.10 \pm1.0551.24±1.1151.24 \pm1.11
CodeBrain
EEG-only53.12±0.9153.12 \pm0.9143.46±1.1143.46 \pm1.1137.24±1.3837.24 \pm1.38
Supervised tuning67.50±0.5967.50 \pm0.5955.46±0.9655.46 \pm0.9650.23±1.2750.23 \pm1.27
Mean source weights52.50±0.7052.50 \pm0.7043.40±0.9743.40 \pm0.9737.02±0.9337.02 \pm0.93
Nearest source weights53.77±0.5553.77 \pm0.5544.37±0.7844.37 \pm0.7838.48±1.3338.48 \pm1.33
Direct MLP54.19±1.0354.19 \pm1.0345.14±0.9545.14 \pm0.9538.87±1.7638.87 \pm1.76
ZeroMAG65.60±0.7465.60 \pm0.7454.51±1.1454.51 \pm1.1448.09±1.7148.09 \pm1.71

Table C.1. B-ACC (%, mean±\pmstd over five seeds) on CAP, DREAMER, and BCI-IV. Protocol and layout as in main Table 1.

TargetTaskHoldout
ISRUC-S3Sleep stagingDataset
HMCSleep stagingDataset
MASSSleep stagingDataset
SEED-VEmotion recognitionDataset
EEGMATCognitive-load estimationDataset
FoGFreezing-of-gait detectionTask
CAPSleep stagingDataset
DREAMEREmotion recognitionDataset
BCI-IV-2a (BCI-IV)Motor imageryDataset

Table C.2. Task coverage and holdout type of the target datasets.

Controlled comparisons

Within each backbone group, the EEG-only model provides the original frozen prediction path. Mean source weights and nearest source weights reuse fitted source adapters; Direct MLP predicts weights from the condition. These methods and ZeroMAG use the same frozen EEG encoder and head. The supervised reference is a separate multimodal fine-tuning experiment using the labeled target training split and all available modalities. Its purpose is to measure the gap between ZeroMAG and supervised adaptation; it is not a step in ZeroMAG training or inference and is not a mathematical upper bound.

The cross-paradigm comparisons use PhysioOmni (Fu et al., 2025), the original ICML 2024 SleepFM [43], and Brant-X [54]. These models have native backbones and different multimodal learning procedures. Their scores are the evaluations reported in this paper, rather than scores taken from the cited publications. In particular, the SleepFM reference here is the original sleepfm-codebase model, not the later clinical model.

Results by task family

Tables C.3 and C.4 collect all means and standard deviations from main Table 1 in two task-family views. Both tables use the same method order.

MethodISRUC-S3HMCMASS
CBraMod
EEG-only75.83 ±0.76\pm0.7672.78 ±0.50\pm0.5074.29 ±0.58\pm0.58
Supervised reference84.04 ±0.88\pm0.8880.81 ±0.41\pm0.4182.41 ±0.68\pm0.68
Mean source weights74.31 ±0.82\pm0.8272.93 ±0.49\pm0.4975.91 ±0.63\pm0.63
Nearest source weights76.63 ±0.61\pm0.6173.18 ±0.52\pm0.5276.35 ±0.51\pm0.51
Direct MLP76.89 ±0.73\pm0.7373.43 ±0.55\pm0.5577.48 ±0.65\pm0.65
ZeroMAG83.59 ±0.59\pm0.5980.29 ±0.42\pm0.4282.03 ±0.52\pm0.52**
CSBrain
EEG-only75.94 ±0.93\pm0.9373.31 ±0.48\pm0.4875.89 ±0.54\pm0.54
Supervised reference84.10 ±1.43\pm1.4381.39 ±0.39\pm0.3984.15 ±0.62\pm0.62
Mean source weights75.42 ±0.62\pm0.6273.51 ±0.45\pm0.4577.72 ±0.58\pm0.58
Nearest source weights76.74 ±0.55\pm0.5573.82 ±0.52\pm0.5277.98 ±0.63\pm0.63
Direct MLP79.18 ±0.71\pm0.7174.21 ±0.48\pm0.4880.45 ±0.72\pm0.72
ZeroMAG83.67 ±0.61\pm0.6180.83 ±0.52\pm0.5283.74 ±0.83\pm0.83
CodeBrain
EEG-only76.57 ±0.73\pm0.7372.95 ±0.49\pm0.4977.24 ±0.51\pm0.51
Supervised reference84.92 ±1.61\pm1.6180.93 ±0.38\pm0.3885.67 ±0.58\pm0.58
Mean source weights77.02 ±0.68\pm0.6873.28 ±0.42\pm0.4279.12 ±0.72\pm0.72
Nearest source weights77.22 ±0.62\pm0.6273.65 ±0.48\pm0.4880.21 ±0.68\pm0.68
Direct MLP79.92 ±0.55\pm0.5573.92 ±0.51\pm0.5181.65 ±0.61\pm0.61
ZeroMAG84.44 ±0.77\pm0.7780.43 ±0.48\pm0.4885.25 ±0.72\pm0.72
Multimodal physiological models
PhysioOmni84.62 ±0.63\pm0.6381.05 ±0.42\pm0.4285.50 ±0.65\pm0.65
SleepFM83.27 ±0.61\pm0.6180.01 ±0.47\pm0.4781.61 ±0.52\pm0.52
Brant-X85.19 ±0.54\pm0.5481.51 ±0.46\pm0.4686.07 ±0.59\pm0.59

Table C.3. Sleep staging: balanced accuracy (%, mean ±\pm reported SD over five seeds). Bold identifies ZeroMAG in each backbone group.

Sleep staging. ZeroMAG improves over EEG-only by 7.48–7.87 points on ISRUC-S3 and HMC, and by 7.74–8.01 points on MASS. Its smallest supervised-reference gap in the displayed benchmark is 0.38 points for CBraMod on MASS. Improvements occur for all three separately trained backbone instantiations, although their absolute scores differ.

Emotion recognition. SEED-V has smaller absolute improvements over EEG-only, at 4.21, 4.36, and 4.32 points for CBraMod, CSBrain, and CodeBrain. Its recovery of supervised gain is also lower than that of the other displayed targets, ranging from 87.34% to 88.71%. Thus, the lower gain is not explained solely by a smaller supervised-minus-EEG baseline interval. The table does not identify the source of this task-dependent gap.

MethodSEED-VEEGMATFoG
CBraMod
EEG-only40.62 ± 1.2473.38 ± 2.4876.61 ± 1.35
Supervised reference45.44 ± 1.5881.46 ± 1.9385.02 ± 1.21
Mean source weights39.83 ± 1.1373.52 ± 0.9276.73 ± 0.78
Nearest source weights40.68 ± 1.3774.63 ± 0.8177.52 ± 0.73
Direct MLP40.99 ± 1.0575.21 ± 1.0278.03 ± 0.62
ZeroMAG44.83 ± 1.2280.99 ± 0.8184.47 ± 0.72
CSBrain
EEG-only41.38 ± 1.3275.38 ± 2.6775.96 ± 1.52
Supervised reference46.32 ± 1.1783.57 ± 1.4385.13 ± 1.31
Mean source weights41.75 ± 0.6275.91 ± 0.7177.08 ± 0.65
Nearest source weights42.28 ± 0.5575.83 ± 0.6678.73 ± 0.59
Direct MLP42.69 ± 0.4878.12 ± 0.5880.02 ± 0.52
ZeroMAG45.74 ± 0.4483.08 ± 0.7184.60 ± 0.65
CodeBrain
EEG-only41.52 ± 1.4676.62 ± 2.8376.77 ± 1.26
Supervised reference46.39 ± 1.3485.02 ± 1.6385.25 ± 1.33
Mean source weights41.88 ± 0.5877.22 ± 0.6677.85 ± 0.71
Nearest source weights42.35 ± 0.5277.98 ± 0.5979.22 ± 0.65
Direct MLP42.87 ± 0.4579.28 ± 0.5280.55 ± 0.58
ZeroMAG45.84 ± 0.5584.51 ± 0.6384.65 ± 0.58
Multimodal physiological models
PhysioOmni46.04 ± 1.3284.81 ± 2.1384.93 ± 0.53
SleepFM44.48 ± 0.5880.54 ± 0.7284.09 ± 0.68
Brant-X46.49 ± 0.6385.31 ± 0.6185.37 ± 0.72

Table C.4. Emotion, cognitive load, and gait: balanced accuracy (%, mean ± reported SD over five seeds). Bold identifies ZeroMAG in each backbone group.

Cognitive load and gait. On EEGMAT, the improvements over EEG-only are 7.61, 7.70, and 7.89 points. The corresponding FoG improvements are 7.86, 8.64, and 7.88 points. CSBrain on FoG has the largest displayed gain over EEG-only, whereas CodeBrain has the highest absolute ZeroMAG score on both targets. The best absolute score and the largest incremental gain therefore need not identify the same backbone.

Gains across backbones

Fig. C.1 compares the improvement over EEG-only and Direct MLP with a common color scale. All 18 backbone–dataset settings have positive mean differences for both comparisons. The largest advantage over Direct MLP occurs on HMC with CBraMod (6.86 points); the smallest occurs on SEED-V with CodeBrain (2.97 points).

Aggregate comparisons

Let eje_j, zjz_j, sjs_j, mjm_j be EEG-only, ZeroMAG, supervised, and Direct MLP balanced-accuracy means for setting jj. Values are in percentage points. Define

ΔjEEG=zj−ej,ΔjMLP=zj−mj,Gjsup=sj−zj.(32)\Delta^{\mathrm{EEG}}_j = z_j - e_j,\qquad\Delta^{\mathrm{MLP}}_j = z_j - m_j,\qquad G^{\mathrm{sup}}_j = s_j - z_j. \tag*{(32)}

Table C.5 lists differences between reported means. Paired uncertainty requires the seed-wise covariance.

Figure C.1. Gains in balanced accuracy over EEG-only and Direct MLP, in percentage points. Both panels use the same scale. Values are differences of means from main Table 1; no paired uncertainty or significance is inferred.

BackboneTargetΔEEG\Delta^{\mathrm{EEG}}ΔMLP\Delta^{\mathrm{MLP}}GsupG^{\mathrm{sup}}Recovery (%)
CBraModISRUC-S37.766.700.4594.52
CBraModHMC7.516.860.5293.52
CBraModMASS7.744.550.3895.32
CBraModSEED-V4.213.840.6187.34
CBraModEEGMAT7.615.780.4794.18
CBraModFoG7.866.440.5593.46
CSBrainISRUC-S37.734.490.4394.73
CSBrainHMC7.526.620.5693.07
CSBrainMASS7.853.290.4195.04
CSBrainSEED-V4.363.050.5888.26
CSBrainEEGMAT7.704.960.4994.02
CSBrainFoG8.644.580.5394.22
CodeBrainISRUC-S37.874.520.4894.25
CodeBrainHMC7.486.510.5093.73
CodeBrainMASS8.013.600.4295.02
CodeBrainSEED-V4.322.970.5588.71
CodeBrainEEGMAT7.895.230.5193.93
CodeBrainFoG7.884.100.6092.92

Table C.5. Arithmetic derived from main Table 1; no additional experimental runs. Recovery is 100(z−e)/(s−e)100(z-e)/(s-e) for each row.

Aggregate gain recovery

Averaging the 18 displayed means with equal weight yields 69.6133 for EEG-only, 76.8322 for ZeroMAG, 77.3344 for the supervised reference, and 71.9383 for Direct MLP. The corresponding gains are 7.22 and 4.89 points, with a 0.50-point supervised gap. The corresponding advantages over mean and nearest source weights are 6.7772 and 5.9989 points, rounding to 6.78 and 6.00.

Recovery can be aggregated in two ways:

Rratio=100∑j(z~j−ej)∑j(sj−ej)(33)R_{\mathrm{ratio}} = 100\frac{\sum_j(\tilde{z}_j-e_j)}{\sum_j(s_j-e_j)} \tag*{(33)}
Rmean=100J∑jz~j−ejsj−ej.(34)R_{\mathrm{mean}} = \frac{100}{J}\sum_j\frac{\tilde{z}_j-e_j}{s_j-e_j}. \tag*{(34)}

The ratio of aggregate gains is 93.50%; averaging row-wise recovery gives 93.12%. We use the ratio of aggregate gains for the 93.50% summary. The row-wise ratios are listed separately in Table C.5. All displayed supervised gains are positive.

The fraction of the Direct MLP gap closed by ZeroMAG is

100∑j(zj−mj)∑j(sj−mj)=90.6929%,(35)100\frac{\sum_j(z_j-m_j)}{\sum_j(s_j-m_j)} = 90.6929\%, \tag*{(35)}

This 90.69% value measures the fraction of the supervised-minus-MLP performance gap closed by ZeroMAG.

Backbone comparison

The mean improvement over EEG-only is 7.1150 points for CBraMod, 7.3000 for CSBrain, and 7.2417 for CodeBrain. Their rounded values are 7.12, 7.30, and 7.24. Their range is 0.185 points (approximately 0.19 points), calculated before rounding the backbone means.

The backbone-wise ratios of aggregate gains are 93.47%, 93.59%, and 93.42%. Across the 18 rows, the supervised-minus-ZeroMAG margin ranges from 0.38 to 0.61 points. ZeroMAG’s displayed mean is higher than the EEG-only, source-transfer, and Direct MLP means in every setting. Significance is not inferred from these means.

Reported variation and the supervised gap

Fig. C.2 preserves the reported standard deviations for EEG-only, Direct MLP, ZeroMAG, and supervised fitting. These summarize seed-to-seed variation. They are not confidence intervals for pairwise differences, and overlapping whiskers do not establish either significance or equivalence.

The supervised-reference gap ranges from 0.38 to 0.61 points across the 18 settings, with mean 0.5022 points. This is a small residual difference in the displayed averages, but it is not a formal equivalence result. The corresponding gain-recovery ratios describe the position of ZeroMAG between EEG-only and supervised fitting, rather than the probability of recovering the fitted adapter parameters.

Cross-paradigm comparisons

With CodeBrain, ZeroMAG exceeds the original SleepFM on all six targets by an average of 1.8533 points. The average gaps to PhysioOmni and Brant-X are 0.3050 and 0.8033 points, respectively. These comparisons place the generated-adapter framework alongside native multimodal models; they do not isolate backbone architecture, pretraining exposure, or target adaptation as a single controlled factor.

PhysioOmni explicitly supports missing modalities, while Brant-X studies physiological-signal alignment and SleepFM learns multimodal sleep representations. The distinguishing question here is how a separately trained generator equips an existing frozen EEG model with an adapter. Missing-modality support alone does not separate these approaches.

Training and Deployment

Two training stages

ZeroMAG has two learned stages followed by deployment. Stage 1 learns the adapter representation and decoder; Stage 2 learns the conditional diffusion model and condition encoder while retaining the Stage 1 representation. Fig. D.1 shows their inputs, outputs, and update boundaries. The target deployment path is an inference procedure, not a third training stage.

Figure C.2. Means and reported ±1\pm1 SD for four methods within each target. Marker shapes identify backbones. Horizontal limits vary by target to show within-target differences; all values are balanced accuracy (%).

Figure D.1. Training and deployment within one separately trained backbone instantiation. Stage 1 produces the encoder and decoder. Stage 2 uses a fixed canonical latent and propagates auxiliary-loss gradients through the frozen decoder. Deployment uses unlabeled calibration data and fixed model parameters.

Reference adapters

For a source recording, the reference adapter solves the supervised fitting problem with the EFM encoder and head fixed:

ω∗=arg⁡min⁡ω∈RP(A) ∑ri∈Rfitℓ(LiA(ω),Yi).(36)\omega^{*} = \underset{\omega\in\mathbb{R}^{P(A)}}{\arg\min}\ \sum_{r_i \in R^{\mathrm{fit}}} \ell\left(L_i^{A}(\omega), Y_i\right). \tag*{(36)}

Its weights provide the parameter target for representation learning and conditional generation. Its predictions on the disjoint source subset RfunR^{\mathrm{fun}} provide the functional target. Thus, reference fitting and functional supervision use different source samples, and the latter still belongs to offline training rather than to target evaluation.

Stage 1: representation learning

For each block, the encoder predicts a Gaussian mean and variance, samples a pre-contextual token, and applies the cross-block transformer:

Ub,pre=μb+exp⁡(ℓb/2)⊙ϵb,ϵb∼N(0,I),(37)U_{b,\mathrm{pre}} = \mu_b + \exp(\ell_b/2) \odot\epsilon_b,\qquad\epsilon_b \sim\mathcal{N}(0,I), \tag*{(37)}
U=CBT⁡([Ub,pre+Eb]b=1B),(38)U = \operatorname{CBT}\left([U_{b,\mathrm{pre}} + E_b]_{b=1}^{B}\right), \tag*{(38)}
ω~=d(U;ψ).(39)\widetilde{\omega} = d(U;\psi). \tag*{(39)}

The representation follows variational encoding [21]; the shared block schema and functional objective specify how it is applied to adapter weights. Stage 1 combines block reconstruction, direction alignment, functional agreement, posterior regularization, and expert balancing [9]:

LAE=Lblk+0.1Lcos+10−4LKL+1.0δfun(ω∗,ω~)+0.01Lbal.(40)\mathcal{L}_{\mathrm{AE}} = \mathcal{L}_{\mathrm{blk}} + 0.1\mathcal{L}_{\mathrm{cos}} + 10^{-4}\mathcal{L}_{\mathrm{KL}} + 1.0\delta_{\mathrm{fun}}(\omega^{*},\widetilde{\omega}) + 0.01\mathcal{L}_{\mathrm{bal}}. \tag*{(40)}

The reconstruction term acts on block parameters, the cosine term on direction, the KL term on the Gaussian posterior, and the balancing term on expert use. Functional supervision constrains the decoded adapter’s predictions through the frozen EFM. The terms address different properties and do not turn the whole objective into a pure likelihood bound.

Algorithm D.1 Stage 1: adapter representation learning

Require: Source references ω∗\omega^{*} and associated RfunR^{\mathrm{fun}}; fixed ff, hh.

Ensure: Learned encoder η\eta, decoder ψ\psi, and canonical targets U0U_0.

  1. while Stage 1 training continues do

  2. Sample source reference adapters and associated functional inputs.

  3. Encode blocks into (μb,ℓb)(\mu_b,\ell_b) and sample Ub,preU_{b,\mathrm{pre}}.

  4. U←CBT⁡([Ub,pre+Eb]b=1B)U \leftarrow\operatorname{CBT}([U_{b,\mathrm{pre}} + E_b]_{b=1}^{B}).

  5. ω~←d(U;ψ)\widetilde{\omega} \leftarrow d(U;\psi).

  6. Evaluate LAE\mathcal{L}_{\mathrm{AE}} in Eq. (D.5).

  7. Update η\eta, ψ\psi; keep ff, hh, ω∗\omega^{*} fixed.

  8. end while

  9. Freeze η\eta, ψ\psi.

  10. for each source reference ω∗\omega^{*} do

  11. U0←eˉ(ω∗;η)=CBT⁡([μb+Eb]b=1B)U_0 \leftarrow\bar{e}(\omega^{*};\eta) = \operatorname{CBT}([\mu_b + E_b]_{b=1}^{B}).

  12. end for

Stage 2: conditional generation

The canonical target fixes a deterministic coordinate for each reference adapter:

U0=eˉ(ω∗;η)=CBT⁡([μb+Eb]b=1B).(41)U_0 = \bar{e}(\omega^{*};\eta) = \operatorname{CBT}([\mu_b + E_b]_{b=1}^{B}). \tag*{(41)}

The condition C=Econd(Rcond,τ;ξ)C = E_{\mathrm{cond}}(R^{\mathrm{cond}},\tau;\xi) guides the diffusion-transformer noise predictor [34]. The noise-prediction, latent, weight, and functional terms jointly train θ\theta and ξ\xi. The latter three are active only when αˉt>0.5\bar{\alpha}_t > 0.5.

Lgen=Ldiff+1[αˉt>0.5](0.1Llat+0.1Lw+1.0δfun(ω∗,ω^)).(42)\mathcal{L}_{\mathrm{gen}} = \mathcal{L}_{\mathrm{diff}} + \mathbf{1}[\bar{\alpha}_t > 0.5]\left(0.1\mathcal{L}_{\mathrm{lat}} + 0.1\mathcal{L}_{w} + 1.0\delta_{\mathrm{fun}}(\omega^{*},\widehat{\omega})\right). \tag*{(42)}

The diffusion term is active at every timestep. Expert balancing is used only in Stage 1; neither stage uses a diversity loss.

Algorithm D.2 Stage 2: conditional adapter generation

Require: Source triples (R,τ,ω∗)(R,\tau,\omega^*); fixed η\eta, ψ\psi, ff, hh and U0U_0.

Ensure: Learned denoiser θ\theta and condition encoder ξ\xi.

  1. while Stage 2 training continues do

  2. Sample a source triple and unlabeled Rcond⊆RfitR^{\mathrm{cond}} \subseteq R^{\mathrm{fit}}.

  3. C←Econd(Rcond,τ;ξ)C \leftarrow E_{\mathrm{cond}}(R^{\mathrm{cond}},\tau;\xi).

  4. Sample a training timestep tt and ϵ∼N(0,I)\epsilon\sim\mathcal{N}(0,I).

  5. Ut←αˉtU0+1−αˉtϵU_t \leftarrow\sqrt{\bar{\alpha}_t}U_0+\sqrt{1-\bar{\alpha}_t}\epsilon.

  6. Predict ϵθ(Ut,t,C)\epsilon_\theta(U_t,t,C) and evaluate Ldiff\mathcal{L}_{\mathrm{diff}}.

  7. if αˉt>0.5\bar{\alpha}_t > 0.5 then

  8. Estimate U^0\hat{U}_0 using Eq. (E.9).

  9. ω^←d(U^0;ψ)\hat{\omega} \leftarrow d(\hat{U}_0;\psi).

  10. Add weighted latent, weight, and functional losses.

  11. end if

  12. Update θ\theta, ξ\xi, propagating auxiliary gradients through fixed dd.

  13. end while

Deployment

For an unseen recording, generation requires only the unlabeled calibration subset, the supported task, and the selected backbone’s trained generator and decoder. No reference adapter is required. Query samples are excluded from condition construction.

Algorithm D.3 Target inference with fixed parameters

Require: Unlabeled RcondR^{\mathrm{cond}}, task τ\tau, query inputs RqryR^{\mathrm{qry}}; fixed model components.

Ensure: Query predictions with a generated adapter.

  1. C←Econd(Rcond,τ;ξ)C \leftarrow E_{\mathrm{cond}}(R^{\mathrm{cond}},\tau;\xi).

  2. Draw ϵ∼N(0,I)\epsilon\sim\mathcal{N}(0,I).

  3. ω^←d(sθ(ϵ,C);ψ)\hat{\omega} \leftarrow d(s_\theta(\epsilon,C);\psi).

  4. for each query sample (XiEEG,XiA)(X_i^{\mathrm{EEG}},X_i^{A}) do

  5. Zi←f(XiEEG)Z_i \leftarrow f(X_i^{\mathrm{EEG}})

  6. Y^i←arg⁡max⁡h(a(Zi,XiA;ω^))\hat{Y}_i \leftarrow\arg\max h(a(Z_i,X_i^{A};\hat{\omega})).

  7. end for

The sampled initial noise makes adapter generation stochastic even when the remaining inference operations are fixed. This differs from posterior sampling during Stage 1: deployment samples a conditional adapter latent, whereas Stage 1 samples a representation of a known reference vector. Neither process requires target labels.

Objective Analysis

Canonical latent coordinates

The block posterior is defined before cross-block contextualization. Let FηF_\eta denote adding block embeddings and applying CBT. For pre-contextual tokens UpreU_{\mathrm{pre}}, the stochastic output is Fη(Upre)F_\eta(U_{\mathrm{pre}}) and the canonical output is Fη(μ)F_\eta(\mu). In general,

Fη(E[Upre])≠E[Fη(Upre)].(43)F_\eta\left(\mathbb{E}[U_{\mathrm{pre}}]\right) \ne\mathbb{E}[F_\eta(U_{\mathrm{pre}})]. \tag*{(43)}

For example, a scalar nonlinear map F(u)=u2F(u)=u^2 gives F(E[u])=μ2F(\mathbb{E}[u])=\mu^2 but E[F(u)]=μ2+σ2\mathbb{E}[F(u)]=\mu^2+\sigma^2. The same distinction applies to nonlinear contextualization. The Stage 2 target is the explicit means-before-CBT path in Eq. (D.6), not an estimate of the exact mean after a nonlinear transformer.

Posterior regularization

For a diagonal Gaussian posterior qb=N(μb,diag⁡(exp⁡ℓb))q_b = \mathcal{N}(\mu_b, \operatorname{diag}(\exp\ell_b)), its KL to a standard normal has the closed form

DKL(qb∥N(0,I))=12∑r=1d(μb,r2+exp⁡ℓb,r−1−ℓb,r).(44)D_{\mathrm{KL}}(q_b \mathbin\Vert\mathcal{N}(0,I)) = \frac{1}{2}\sum_{r=1}^{d}\left(\mu_{b,r}^{2} + \exp\ell_{b,r} - 1 - \ell_{b,r}\right). \tag*{(44)}

Here dd is token width and rr indexes a token coordinate. This identity concerns the pre-contextual posterior. It does not imply that the distribution after CBT is diagonal Gaussian. It also does not specify whether a training implementation sums or averages over blocks; a change of reduction changes the scale of the corresponding loss coefficient.

For one coordinate, the partial derivatives are ∂DKL/∂μ=μ\partial D_{\mathrm{KL}}/\partial\mu= \mu and ∂DKL/∂ℓ=(exp⁡ℓ−1)/2\partial D_{\mathrm{KL}}/\partial\ell= (\exp\ell- 1)/2. The minimum occurs at zero mean and unit variance when this term is considered alone. Reconstruction and functional objectives compete with that regularizer, so a trained posterior is not expected to minimize the KL term independently of the other losses.

Block reconstruction and direction

Parameter reconstruction and cosine alignment provide distinct constraints. A positive rescaling of a nonzero reference block, ω~b=cωb∗\widetilde{\omega}_b = c\omega_b^* with c>0c > 0, has cosine similarity one even when c≠1c \ne1. Its squared reconstruction error is (c−1)2∥ωb∗∥22(c-1)^2\lVert\omega_b^*\rVert_2^2. Conversely, a small error in a large block can dominate a coordinate-wise reconstruction sum while a smaller block has a larger relative discrepancy.

Thus, block structure carries information that a whole-vector direction score alone does not recover. The reconstruction and direction objectives complement predictive supervision through the frozen EFM. Neither imposes a direct bound on target accuracy.

Functional discrepancy and its derivative

On a fixed source functional subset, write the reference probability vector as pi=softmax⁡(LiA(ω∗))p_i = \operatorname{softmax}(L_i^A(\omega^*)) and the student vector as qi=softmax⁡(LiA(ω′))q_i = \operatorname{softmax}(L_i^A(\omega')). The main discrepancy is

δfun(ω∗,ω′)=1n∑i=1n∑c=1Kpi,clog⁡pi,cqi,c.(45)\delta_{\mathrm{fun}}(\omega^*,\omega') = \frac{1}{n}\sum_{i=1}^{n}\sum_{c=1}^{K}p_{i,c}\log\frac{p_{i,c}}{q_{i,c}}. \tag*{(45)}

Reference probabilities are constants for the student update. For a student logit zi,cz_{i,c}, the derivative is

∂δfun∂zi,c=1n(qi,c−pi,c).(46)\frac{\partial\delta_{\mathrm{fun}}}{\partial z_{i,c}} = \frac{1}{n}(q_{i,c}-p_{i,c}). \tag*{(46)}

This follows by expressing the cross-entropy term as −∑cpczc+log⁡∑cexp⁡zc-\sum_c p_c z_c+\log\sum_c\exp z_c and using ∑cpc=1\sum_c p_c = 1. It shows that the objective aligns distributions, not just the most likely class.

No labels are required to compute this discrepancy. Nonetheless, its reference predictions inherit the behavior of an adapter that was fitted using source labels. Functional matching is therefore not an unsupervised proof of correctness: it transfers the source reference’s useful behavior and its errors. A confident but wrong teacher prediction is still a target of the KL term.

The direction of KL also matters. The main text uses reference-to-student KL; reversing its arguments produces a different objective. The expression uses the untempered softmax in the main formulation. Stable log-softmax evaluation preserves this objective without taking logarithms of rounded probabilities.

Prediction agreement

A small parameter distance alone does not ensure a small predictive error. Locally, for a differentiable logit map LL,

L(ω+Δω)−L(ω)=JL(ω)Δω+o(∥Δω∥2).(47)L(\omega+ \Delta\omega) - L(\omega) = J_L(\omega)\Delta\omega+ o(\lVert\Delta\omega\rVert_2). \tag*{(47)}

Sensitivity depends on the Jacobian and on the direction of the error. Two equally sized perturbations can have different functional effects. Conversely, multiple parameter vectors can implement the same predictions, so exact weight recovery is not necessary for functional agreement.

Prediction agreement admits a simple margin condition. Suppose pp and qq are two class-probability vectors, the reference winning class is c∗c^*, and its margin is

m=pc∗−max⁡c≠c∗pc>0.(48)m = p_{c^*} - \max_{c\ne c^*} p_c > 0. \tag*{(48)}

If ∥p−q∥∞<m/2\lVert p-q\rVert_\infty< m/2, the student has the same unique winning class. Indeed, for any competitor cc,

qc∗−qc≥pc∗−pc−2∥p−q∥∞>0.(49)q_{c^*} - q_c \ge p_{c^*} - p_c - 2\lVert p-q\rVert_\infty> 0. \tag*{(49)}

This statement concerns agreement with the reference, not agreement with the true label. It also does not convert a mean training-subset KL into a uniform target-query bound. A new dataset can shift both margins and discrepancies. Functional consistency is an objective evaluated through predictive behavior, rather than a universal guarantee of target generalization.

Forward diffusion and clean-latent estimation

Following the Gaussian diffusion formulation [13], for schedule coefficients αt=1−βt\alpha_t = 1-\beta_t and αˉt=∏r=1tαr\bar{\alpha}_t = \prod_{r=1}^{t}\alpha_r, the forward marginal is

Ut=αˉtU0+1−αˉtϵ,ϵ∼N(0,I).(50)U_t = \sqrt{\bar{\alpha}_t}U_0 + \sqrt{1-\bar{\alpha}_t}\epsilon,\qquad\epsilon\sim\mathcal{N}(0,I). \tag*{(50)}

The conditional denoiser predicts ϵθ(Ut,t,C)\epsilon_\theta(U_t,t,C). Solving the forward relation for U0U_0 after substituting this prediction gives

U^0=Ut−1−αˉtϵθ(Ut,t,C)αˉt.(51)\widehat{U}_0 = \frac{U_t-\sqrt{1-\bar{\alpha}_t}\epsilon_\theta(U_t,t,C)}{\sqrt{\bar{\alpha}_t}}. \tag*{(51)}

No new assumption is needed for this algebra beyond αˉt>0\bar{\alpha}_t>0. The estimator’s quality does depend on learned noise prediction and numerical stability.

Low-noise supervision

Subtract the true U0U_0 from its estimator to obtain the exact identity

U^0−U0=1−αˉtαˉt(ϵ−ϵθ(Ut,t,C)).(52)\widehat{U}_0-U_0=\sqrt{\frac{1-\bar{\alpha}_t}{\bar{\alpha}_t}}\left(\epsilon-\epsilon_\theta(U_t,t,C)\right). \tag*{(52)}

Thus squared clean-latent error multiplies squared noise-prediction error by (1−αˉt)/αˉt(1-\bar{\alpha}_t)/\bar{\alpha}_t. This factor increases as the signal coefficient decreases. Low-noise gating in the main text is therefore consistent with avoiding strongly amplified reconstruction and functional gradients from heavily corrupted latents.

Writing SNRt=αˉt/(1−αˉt)\mathrm{SNR}_t=\bar{\alpha}_t/(1-\bar{\alpha}_t), the multiplier is 1/SNRt1/\mathrm{SNR}_t. For a fixed noise-prediction residual, a lower signal-to-noise ratio therefore yields a larger clean-latent error. This algebra motivates applying the auxiliary losses at low-noise timesteps; the implementation uses αˉt>0.5\bar{\alpha}_t>0.5 (SNR>1\mathrm{SNR}>1) with a cosine noise schedule, as specified in Appendix H.1.

MoE decoding

Sparse mixture-of-experts models select a subset of experts for each input [38]. In ZeroMAG, routing uses the contextualized token and its block identity:

πb=softmax⁡(route⁡([Ub;Eb];ψr)),(53)\pi_b=\operatorname{softmax}(\operatorname{route}([U_b;E_b];\psi_r)), \tag*{(53)}
ω~b=headtype⁡(b)(∑j∈TopK⁡(πb)πb,jrj(Ub)).(54)\widetilde{\omega}_b=\operatorname{headtype}(b)\left(\sum_{j\in\operatorname{TopK}(\pi_b)}\pi_{b,j}r_j(U_b)\right). \tag*{(54)}

The block type is temporal, spectral, projection, or shared. Experts act on latent tokens; the output heads map their mixtures back to the appropriate parameter blocks. The mixture uses the softmax routing weights πb,j\pi_{b,j} for the selected experts, as in the main formulation.

Top-kk selection restricts the active expert set. Away from routing-boundary changes, the selected computation is differentiable through expert outputs and routing weights. At a boundary, the selected set can change discontinuously. The presence of an expert-balancing objective does not establish uniform expert utilization; the main formulation uses it as a training regularizer.

Gradients through a frozen decoder and EFM

Write the student logit path as z=h(a(f(X),XA;dψ(U^0)))z=h(a(f(X),X^{A};d_{\psi}(\widehat{U}_{0}))). For an auxiliary loss J(z)\mathcal{J}(z), the chain rule includes

∂J∂θ=∂J∂z∂z∂w^∂dψ(U^0)∂U^0∂U^0∂θ.(55)\frac{\partial\mathcal{J}}{\partial\theta} = \frac{\partial\mathcal{J}}{\partial z} \frac{\partial z}{\partial\widehat{w}} \frac{\partial d_{\psi}(\widehat{U}_{0})}{\partial\widehat{U}_{0}} \frac{\partial\widehat{U}_{0}}{\partial\theta}. \tag*{(55)}

Freezing ψ\psi means not updating its stored values. It does not set its input Jacobian to zero. Similarly, the head can remain frozen while its derivative transmits a functional error to generated adapter weights. Reference predictions may be detached; generated student predictions must preserve the relevant graph.

More explicitly, the Stage 2 parameter update satisfies ψ(k+1)=ψ(k)\psi^{(k+1)}=\psi^{(k)}, whereas θ\theta and ξ\xi receive gradients. This fixed-parameter condition does not require the mathematical derivative ∂J/∂ψ\partial\mathcal{J}/\partial\psi to vanish. The relevant derivative for generator learning is the decoder input Jacobian, which remains in the chain rule.

For the condition encoder, the same path additionally contains ∂U^0/∂C\partial\widehat{U}_{0}/\partial C and ∂Econd/∂ξ\partial E_{\mathrm{cond}}/\partial\xi. Thus the functional objective can shape the recording-derived condition even though the teacher, decoder, and EFM are fixed. Detaching the generated weights would eliminate this auxiliary supervision rather than merely freezing the decoder.

Latent error and functional error

Let U^0=U0+ΔU\widehat{U}_{0}=U_{0}+\Delta U and assume the decoder is differentiable at U0U_{0}. Locally,

d(U0+ΔU;ψ)−d(U0;ψ)=Jd(U0)ΔU+o(∥ΔU∥).(56)d(U_{0}+\Delta U;\psi)-d(U_{0};\psi)=J_{d}(U_{0})\Delta U+o(\lVert\Delta U\rVert). \tag*{(56)}

Combining this with the logit Jacobian gives a first-order predictive perturbation JLJdΔUJ_{L}J_{d}\Delta U. Its size depends on both decoder sensitivity and the frozen EFM’s response to the decoded adapter. Equal latent reconstruction errors can therefore yield different logit errors, motivating an objective that observes the final prediction path.

There are also two distinct discrepancies: reconstruction compares d(eˉ(ω∗))d(\bar{e}(\omega^{*})) with ω∗\omega^{*}, while generation compares d(U^0)d(\widehat{U}_{0}) with ω∗\omega^{*}. A generator that exactly recovers U0U_{0} still inherits any reconstruction error in the learned representation. Conversely, a high-quality autoencoder does not ensure that the conditional diffusion model recovers the appropriate latent for every recording.

Efficiency

Measured target-side time

Target-side wall-clock time was measured programmatically with timers in the code, under the same hardware and protocol for the two compared procedures. Condition construction and adapter generation took approximately 2 minutes, compared with approximately 15 minutes for supervised target adaptation. These measurements give

speedup⁡=152=7.5,time reduction=100(1−215)≈86.7%.(57)\operatorname{speedup}=\frac{15}{2}=7.5,\qquad\text{time reduction}=100\left(1-\frac{2}{15}\right)\approx86.7\%. \tag*{(57)}

The difference is approximately 13 minutes per measured adaptation procedure. These are elapsed-time measurements of the reported procedures, rather than isolated GPU kernel timings. The timed procedures exclude source-bank construction and offline generator training.

Cost decomposition

The target workflow consists of conditioning, iterative denoising, decoding, and installing the generated weights. A symbolic decomposition is

Tgen=Tcond+NevalTdenoise+Tdecode+Tinstall.(58)T_{\mathrm{gen}}=T_{\mathrm{cond}}+N_{\mathrm{eval}}T_{\mathrm{denoise}}+T_{\mathrm{decode}}+T_{\mathrm{install}}. \tag*{(58)}

Here NevalN_{\mathrm{eval}} is the number of denoiser evaluations and each TT denotes the corresponding elapsed cost under a fixed execution convention. This expression describes the operations; it does not assign portions of the measured time to individual components. Query prediction then adds the cost of the fixed EEG model and active adapter branches.

Figure F.1. Target-side wall-clock time measured programmatically: condition construction plus adapter generation versus supervised adaptation, under the same hardware and protocol. The 7.5×7.5 \times ratio uses the reported 2- and 15-minute measurements. No timing variance or component-wise timing breakdown is inferred.

No target-side optimization is required, but generation still performs computation. The 7.5×7.5 \times measurement compares adaptation procedures; it does not establish a 7.5×7.5 \times speedup for every subsequent query prediction or for the entire offline-plus-online pipeline.

Amortization across targets

Let ToffT_{\mathrm{off}} denote source-bank construction and both training stages for one separately trained backbone instantiation. For NN deployments, the generated-adapter route has cost Toff+NTgenT_{\mathrm{off}}+NT_{\mathrm{gen}}, excluding shared query prediction. The supervised route has incremental adaptation cost NTsupNT_{\mathrm{sup}}. Under equal per-target costs, the generated route becomes cheaper when

N>ToffTsup−Tgen.(59)N > \frac{T_{\mathrm{off}}}{T_{\mathrm{sup}} - T_{\mathrm{gen}}}. \tag*{(59)}

Using the measured target-side difference gives N>Toff/(13 minutes)N > T_{\mathrm{off}}/(13\ \text{minutes}). This is a symbolic breakeven condition, not a measured deployment count: no numerical offline training cost is assigned here. Offline training is associated with a fixed source configuration and backbone; separate backbone instantiations have separate offline costs.

Latent and output complexity

For BB tokens of width dd, dense latent self-attention stores an attention map with B2B^2 entries per head. Token projections and feed-forward transformations also depend on BB and dd. Reducing latent width can reduce the denoiser computation, while the decoder still produces PP scalar adapter coordinates. Compact latent generation does not remove the output storage and installation cost of the adapter itself.

Sparse expert selection limits the active reconstruction functions in the stated decoder. The runtime benefit depends on how expert computation is executed; the selection rule alone does not provide a measured speedup. Functional supervision adds an adapter-and-head prediction path during offline training, but this loss evaluation is absent from target deployment.

Component Ablations

Component ablations

Main Table 2 reports Full ZeroMAG at 73.41 balanced accuracy and eight component variants averaged across all nine held-out target datasets. All variants come from one ablation run under the main protocol, separate from the runs in main Table 1 and Table C.1, where the CBraMod nine-target average of ZeroMAG is 70.01; each decrease is measured against Full ZeroMAG within the ablation run; its three functional-supervision variants are analyzed in Appendix G.§ 3. The arithmetic drops from 73.41 are 11.09 for task+modality only, 9.24 for shuffled subject condition, 11.07 for direct weight MLP, 8.18 for modular latent MLP, 5.07 for modular latent DiT without MoE, 4.16 for a shared modality encoder, 8.12 for temporal-only encoding, and 6.58 for mean fusion. All differences use the same full-model reference.

The reported task+modality reduction of 11.09 points corresponds to 100×11.09/73.41=15.1069%100 \times11.09/73.41 = 15.1069\% of the full score. This is a relative score reduction, not a 15.1 percentage-point change and not a loss of 15.1% of the supervised gain.

ComponentVariantB-ACCDecrease
ConditionTask + modality only62.32±0.4162.32 \pm0.4111.09±0.7211.09 \pm0.72
ConditionShuffled subject64.17±0.5364.17 \pm0.539.24±0.989.24 \pm0.98
GeneratorDirect weight MLP62.34±0.6762.34 \pm0.6711.07±0.8811.07 \pm0.88
GeneratorModular latent MLP65.23±0.6265.23 \pm0.628.18±0.838.18 \pm0.83
GeneratorLatent DiT, no MoE68.34±0.2168.34 \pm0.215.07±0.715.07 \pm0.71
AdapterShared encoder69.25±0.3369.25 \pm0.334.16±0.814.16 \pm0.81
AdapterTemporal only65.29±0.7265.29 \pm0.728.12±1.038.12 \pm1.03
AdapterMean fusion66.83±0.3266.83 \pm0.326.58±0.716.58 \pm0.71
FullZeroMAG73.41±0.7173.41 \pm0.71—

Table G.1. Component ablations from main Table 2. B-ACC and decrease are reported in percentage points as mean ±\pm standard deviation over five seeds. The aggregation uses CBraMod over all nine target datasets, as in main Table 2.

Ablation settings. The source bank, source training splits, frozen EEG model, prediction head, and evaluation protocol are held fixed as stated in the main text. The condition variants test whether recording-specific information and its alignment are useful. The generator variants compare direct parameter regression, latent regression, diffusion, and MoE decoding. The adapter variants alter modality-specific encoding, spectral information, and shared coordination.

Results analysis. The modular latent MLP exceeds direct weight MLP by 2.89 points; replacing that latent regressor with DiT contributes another 3.11 points in the displayed sequence, and the full configuration exceeds the no-MoE variant by 5.07 points. These are incremental differences between the listed variants, not an additive causal decomposition independent of training configuration. Removing subject conditioning and shuffling it cause substantial declines, consistent with recording-aligned information contributing beyond task and modality identity.

Interpreting the interventions

The shuffled-subject comparison changes alignment between a condition and its recording while retaining the set of subject-condition vectors. Its 9.24-point decrease is consistent with the importance of recording-aligned information. The task-plus-modality variant removes that factor and decreases accuracy by 11.09 points. The two interventions answer related but distinct questions: availability of subject information and correctness of its assignment.

The temporal-only variant has an 8.12-point decrease, compared with 4.16 points for a shared modality encoder and 6.58 points for mean fusion. The larger temporal-only decrease is consistent with a useful contribution from the spectral branch in this experiment. It does not quantify an independent spectral contribution that can be added to the other decreases, because the variants are separate trained systems.

The reported decreases are paired with the standard deviations given in main Table 2. They are computed from seed-wise paired differences rather than from the two marginal score standard deviations. The functional-loss ablation below isolates the supervision applied in the two learning stages.

Figure G.1. Performance decrease under component ablation. Markers show the decreases reported in main Table 2 relative to full ZeroMAG (B-ACC 73.41±0.7173.41 \pm0.71). Whiskers reproduce the table’s reported standard deviations of the decreases; they are not newly calculated confidence intervals. Variants are grouped by condition, generator, and adapter. These are separate interventions, not additive contributions. The aggregation covers all nine target datasets, as in main Table 2.

Functional supervision

We evaluate four functional-loss settings using CBraMod on the same set of nine held-out target datasets as the main ablation study. The variants use five matched random seeds, the same data splits and reference-adapter banks, and matched training budgets, initialization rules, and evaluation protocols. B-ACC is reported as mean ±\pm standard deviation over the five seeds.

Evaluation. Reconstruction and generated-weight errors use the same parameter-distance definition, comparing ω~\widetilde{\omega} and ω^\widehat{\omega}, respectively, with the supervised reference ω∗\omega^{*}. The prediction discrepancy is DKL(pω∗∥pω^)D_{\mathrm{KL}}(p_{\omega^{*}} \Vert p_{\widehat{\omega}}), evaluated on a fixed independent evaluation subset and averaged over samples, targets, and seeds. Full ZeroMAG is the comparison baseline in Table G.2: each error is divided by the corresponding error of Full ZeroMAG. Its normalized values are therefore 1.00 by definition. The normalization baseline is distinct from the reference adapter ω∗\omega^{*} used in the underlying error definitions; the three normalized metrics need not have equal absolute values.

Results. Removing Stage 1 functional supervision reduces reconstruction error by 6%, yet increases final generated-weight error by 5% and prediction KL by 31%; B-ACC falls by 1.15 percentage points. Thus, better reconstruction of reference parameters does not necessarily yield better generated-adapter predictions. Removing Stage 2 functional supervision leaves Stage 1 reconstruction error unchanged, while generated-weight error increases by 8%, prediction KL by 48%, and B-ACC decreases by 1.58 points. Removing both losses gives the largest observed B-ACC decrease, 2.87 points, and raises prediction KL by 82%. These results support functional supervision during adapter representation learning and conditional generation.

Implementation and Evaluation Protocol

Implementation Details

Table H.1 gives the training and inference settings. Batch size counts reference-adapter samples per optimizer step, not subjects or signal windows. Each sample has B=3M+1B = 3M + 1 active blocks and

SettingB-ACC (%)Stage 1 recon. errorGenerated weight errorPrediction KL
Full73.41 ± 0.711.001.001.00
w/o Stage 1 functional72.26 ± 0.760.941.051.31
w/o Stage 2 functional71.83 ± 0.791.001.081.48
w/o both functional70.54 ± 0.860.931.141.82

Table G.2. Functional-loss ablation. Parameter-error and KL columns are normalized to their respective Full values; lower is better. Reconstruction error evaluates the Stage 1 output against the reference adapter. Generated-weight error evaluates the final generated adapter against the same reference. KL evaluates the final generated adapter.

Separate backbone instantiations

Each of CBraMod, CSBrain, and CodeBrain has a separately trained generator. The EFM encoder is loaded from its checkpoint, and the compatible source-trained prediction head is fixed throughout the ZeroMAG pipeline (Appendix § 9.§ 2). Reference-adapter fitting updates only adapter parameters. Functional losses use the same frozen head, whose parameters are not part of the adapter bank or generator output. At deployment, the known task selects its output layer; no target labels or target-side updates are used.

Within a selected instantiation, generated vectors use the block layout expected by its decoder and adapter. This scope is essential for the meaning of ω^=g(R,τ)\widehat{\omega}=g(R,\tau): the symbol gg identifies that instantiation’s generator, rather than one universal weight generator shared by all architectures. The reported multi-backbone evaluation tests repeated applicability of the framework.

Dataset holdout and recording splits

The adapter-bank and generator source datasets are ISRUC-S1 ([20]), Sleep-EDF Expanded ([19]), SHHS ([35]), DEAP ([22]), ASCERTAIN ([40]), SEED-VIG ([56]), WAUC ([1]), and OpenBMI ([25]). The target datasets are ISRUC-S3 ([20]), HMC ([2]), MASS-SS3 (reported as MASS) ([33]), SEED-V ([30]), EEGMAT ((Zyma et al., 2019)), Multimodal FoG ([55]), CAP ([42]), DREAMER ([18]), and BCI-IV-2a (reported as BCI-IV) ([5]). Let Dsrc\mathcal{D}_{\mathrm{src}} and Dtgt\mathcal{D}_{\mathrm{tgt}} denote these two disjoint sets:

Dsrc∩Dtgt=∅,∣Dtgt∣=9.(60)\mathcal{D}_{\mathrm{src}} \cap\mathcal{D}_{\mathrm{tgt}} = \varnothing,\qquad\lvert\mathcal{D}_{\mathrm{tgt}}\rvert= 9. \tag*{(60)}

All target datasets are excluded from encoder/head training, source reference-adapter fitting, both generator-training stages, and model selection in the ZeroMAG pipeline. Task supervision comes from source training data; target recordings are used only for unlabeled conditioning and evaluation.

For a source recording, Rcond⊆RfitR^{\mathrm{cond}} \subseteq R^{\mathrm{fit}} is read without its labels. The functional subset is separate:

Rfun∩Rfit=∅,Rfun∩Rcond=∅.(61)R^{\mathrm{fun}} \cap R^{\mathrm{fit}} = \varnothing,\qquad R^{\mathrm{fun}} \cap R^{\mathrm{cond}} = \varnothing. \tag*{(61)}

The labels associated with RfitR^{\mathrm{fit}} train the reference adapter. Functional supervision compares predictions on RfunR^{\mathrm{fun}} without reading its labels. These distinct roles prevent the condition encoder’s input from being confused with the reference adapter’s supervised fitting data.

For each target subject, calibration and query subsets are disjoint:

Rtgtcond∩Rtgtqry=∅.(62)R_{\mathrm{tgt}}^{\mathrm{cond}} \cap R_{\mathrm{tgt}}^{\mathrm{qry}} = \varnothing. \tag*{(62)}

The condition is constructed from calibration signals and the supported task. The generated adapter is evaluated on query inputs without target-side gradient updates. Query labels serve evaluation rather than adapter fitting or condition construction.

GroupSettingValue
RepresentationActive parameter blocks / latent shape3M+1/(3M+1)×1283M + 1 / (3M + 1) \times128
CBT layers / hidden width / heads2/256/82 / 256 / 8
DecoderExperts / routing4 / learned soft top-2
Expert MLP widths128→256→128128 \to256 \to128
Both stagesOptimizer / learning rate / weight decayAdamW / 10−410^{-4} / 10−410^{-4}
Batch size64 reference-adapter samples
Stage 1Training duration300 epochs
Block / cosine / KL coefficients1.0/0.1/10−41.0 / 0.1 / 10^{-4}
Functional / balance coefficients1.0/0.011.0 / 0.01
Stage 2DiT layers / hidden width / heads4/256/84 / 256 / 8
Training diffusion horizon / schedule / prediction1000/1000 / cosine / ϵ\epsilon
Training duration10,000 optimizer updates
Diffusion / latent / weight coefficients1.0/0.1/0.11.0 / 0.1 / 0.1
Functional coefficient1.0
Auxiliary reconstruction/function lossesαˉt>0.5\bar{\alpha}_t > 0.5 (SNR >1> 1)
TrainingGradient clipping threshold / EMA decay1.0/0.99991.0 / 0.9999
Source bankSize / eligibility311 per backbone / all eligible
SamplingDataset-balanced
InferenceDDIM ([39]) steps / ηDDIM\eta_{\mathrm{DDIM}}50/050 / 0
Calibration per subject64 unlabeled windows
Sleep window duration30 s
EvaluationMatched seeds5

Table H.1. Implementation settings. MM is the number of active companion modalities. Auxiliary Stage 2 losses share the same low-noise gate; diffusion loss is always active.

Source adapter bank

For backbone bb, the bank contains all eligible fitted reference adapters from the fixed source datasets:

Asrc(b)=⋃Di∈DsrcAi(b),Nsrc(b)=∣Asrc(b)∣.(63)\mathcal{A}_{\mathrm{src}}^{(b)} = \bigcup_{D_i \in\mathcal{D}_{\mathrm{src}}} \mathcal{A}_i^{(b)}, \qquad N_{\mathrm{src}}^{(b)} = \lvert\mathcal{A}_{\mathrm{src}}^{(b)}\rvert. \tag*{(63)}

Here eligibility includes excluding source records from any subject present in the target datasets. This exclusion is applied across related cohorts, including ISRUC-S1/S3, before reference-adapter fitting. No target dataset contributes adapters to the bank. There is no fixed bank-size cap or per-dataset quota. After eligibility filtering, the bank contains 311 reference adapters per backbone. Training uses dataset-balanced sampling so that large source datasets do not dominate the adapter batches.

Baseline interfaces

The EEG-only baseline evaluates h(f(XEEG))h(f(X^{\mathrm{EEG}})). Mean-source transfer averages compatible fitted source vectors,

ω^mean=1n∑j=1nωj∗.(64)\widehat{\omega}_{\mathrm{mean}} = \frac{1}{n}\sum_{j=1}^{n}\omega_j^* . \tag*{(64)}

Nearest-source transfer selects a source adapter for reuse, whereas Direct MLP directly maps the condition to adapter weights. The controlled adapter comparisons are grouped by frozen backbone; native multimodal models remain separate cross-paradigm references.

Reported metrics

Let NabN_{ab} count predictions with true class aa and predicted class bb, with na=∑bNabn_a = \sum_b N_{ab}, n^b=∑aNab\hat{n}_b = \sum_a N_{ab}, and N=∑anaN = \sum_a n_a. For KK classes with positive support, balanced accuracy (Brodersen et al., [4]) is

B-ACC=1K∑c=1KNccnc.(65)\mathrm{B\text{-}ACC} = \frac{1}{K}\sum_{c=1}^{K}\frac{N_{cc}}{n_c}. \tag*{(65)}

Equal class weighting distinguishes balanced accuracy from ordinary accuracy, which weights the class recalls by their observed prevalences. The displayed result tables express B-ACC as a percentage; differences between those values are percentage points.

Weighted F1 uses the class-support weights:

WF1=∑c=1KncNF1c,F1c=2Nccnc+n^c,(66)\mathrm{WF1} = \sum_{c=1}^{K} \frac{n_c}{N}\mathrm{F1}_c,\qquad\mathrm{F1}_c = \frac{2N_{cc}}{n_c+\hat{n}_c}, \tag*{(66)}

for nonzero denominators. Cohen’s kappa [7] adjusts observed agreement for agreement induced by the marginal label frequencies:

po=∑cNccN,pe=∑cncn^cN2,κ=po−pe1−pe.(67)p_o = \frac{\sum_c N_{cc}}{N},\qquad p_e = \sum_c \frac{n_c\hat{n}_c}{N^2},\qquad\kappa= \frac{p_o-p_e}{1-p_e}. \tag*{(67)}

These metrics are not determined by B-ACC alone. Consequently, no kappa or weighted-F1 values are inferred from the B-ACC tables in this appendix. Likewise, the binary-task AUROC and AUPRC require score-level predictions; class-balanced accuracy cannot reconstruct either curve. Precision–recall analysis is particularly useful when class prevalence is imbalanced [37].

Seed variation and pairwise comparisons

Main Table 1 and Table 2 report means and standard deviations over five matched seeds. The plotted whiskers reproduce these reported SDs. A standard deviation describes seed-to-seed variation and is distinct from a standard error or confidence interval.

For two matched seed scores xsx_s, ysy_s, the difference is ds=xs−ysd_s = x_s-y_s. Its variance satisfies

Var⁡(d)=Var⁡(x)+Var⁡(y)−2Cov⁡(x,y).(68)\operatorname{Var}(d)=\operatorname{Var}(x)+\operatorname{Var}(y)-2\operatorname{Cov}(x,y). \tag*{(68)}

Marginal SDs do not determine the covariance. Therefore the derived mean gains in Appendix § 11 are shown without newly inferred paired error bars. The reported SDs of ablation decreases remain those given in main Table 2.

Aggregation

The six-target comparisons average the 18 displayed backbone–dataset means with equal weight. This gives equal weight to each displayed setting, not to each participant or window. Within a target, the backbone groups reuse the target dataset and are not independent participant cohorts. The CBraMod ablation summary in main Table 2 averages results over all nine target datasets, including CAP, DREAMER, and BCI-IV, yielding 73.41 for Full ZeroMAG. It therefore has a different evaluation scope from the six-target comparison.

Recovery ratios and score differences answer different questions. A percentage-point difference measures absolute movement in B-ACC; a recovery percentage divides that movement by a supervised-reference gain. The ratio-of-aggregate-gains convention in Appendix § 11 makes the 93.50% summary explicit and separates it from the average of row-wise percentages.

Generalization and Data Efficiency

Modality holdout

The generalization experiments summarized in the main text consider unseen combinations of known modalities and modality types in M\mathcal{M} that are excluded from generator training. ZeroMAG recovers 89.7% and 82.6% of the supervised multimodal gain, respectively. Fig. I.Figure 1 compares the two recovery rates.

The type-holdout summary is 7.1 percentage points lower in recovery rate than the combination-holdout summary. This difference is in recovery percentage, not in balanced-accuracy percentage points. Both refer to the supported modality interface. They do not establish compatibility with an arbitrary signal type for which the model defines no encoder, identity embedding, or adapter block.

Figure I.1. Reported generalization and source-bank summaries from the main text. Left: recovery of supervised gain for unseen combinations and held-out modality types. Right: retention of the full-bank multimodal gain when using half the source bank. The panels have different reference denominators; no seed-level intervals are inferred.

Calibration data

Performance saturates at approximately 64 unlabeled calibration windows in the experiment summarized in the main text. This concerns the amount of data used to form the condition, rather than a target optimization batch size: there is no target-side fitting step. Once constructed, the condition guides generation of the adapter used on the disjoint query subset.

A window count describes the number of calibration units rather than a universal duration in seconds. Window duration and signal sampling rates differ across physiological tasks. The reported saturation point therefore characterizes the evaluated calibration setting and does not imply that all recordings or tasks require exactly the same observation duration.

Source-bank size

Using 50% of the source adapter bank retains 97.2% of the full-bank multimodal gain in the reported data-efficiency experiment. This is a 2.8% reduction in the reference gain, not a 2.8-point reduction in B-ACC. The denominator is the full-bank multimodal gain.

Together, the calibration and bank-size summaries concern two different resource requirements. Calibration windows are collected from a new target recording at deployment. Source adapters are fitted and organized offline. Reducing one does not directly reduce the other, and the reported summaries do not provide a joint optimum over calibration budget and bank size.

Comparison with Related Methods

Extended related work

Multimodal physiological models. SleepFM and PhysioOmni learn multimodal physiological representations through pretraining [43] (Fu et al. 2025), whereas Brant-X uses a pretrained EEG foundation model to align EEG and other physiological signals and trains an EXG encoder [54]. ZeroMAG generates a plug-in adapter for a selected existing EFM, preserving its frozen encoder and prediction head at target deployment.

Parameter-efficient and test-time adaptation. Adapters, LoRA, and prompt tuning [14, 15, 26, 12], including EEG-specific adapter designs [41], reduce the number of trainable parameters but still optimize them on labeled target data. Test-time and unsupervised domain adaptation [28, 45, 27] avoid target labels but update parameters on target data, where hyperparameters and stopping criteria are difficult to validate. ZeroMAG amortizes adaptation into an offline-trained generator and performs no target-side gradient step.

Parameter generation. Hypernetworks [11] and meta networks [32] generate weights from task representations, shared hypernetworks generate adapters for multi-task fine-tuning [17], and neural network diffusion models parameters with latent diffusion [48]. Recent work applies parameter generation to zero-shot adaptation of large language models: Text-to-LoRA generates LoRA adapters from natural-language task descriptions [6], and Drag-and-Drop LLMs maps batches of unlabeled task prompts to LoRA weights [29]. ZeroMAG shares the goal of replacing per-target optimization with generation, but differs in three respects: its condition is computed from unlabeled physiological recordings rather than text; the generated adapter must accommodate varying modality configurations within a shared block schema; and generation combines parameter-level targets with functional agreement through the frozen EFM.

Adaptation mechanisms

Table J.1 distinguishes methods by the object they adapt and the information used for adaptation. It is a methodological comparison; the methods listed here are not additional experimental baselines.

Method familyAdapted objectAdaptation mechanism
Adapters [14]Inserted modulesOptimize a small set of task-specific parameters.
LoRA [15]Low-rank weight updatesLearn an update while freezing the original weights.
Prompt tuning [26]Continuous input promptsOptimize prompt embeddings for the task.
Tent [45]Normalization parametersMinimize prediction entropy on test inputs.
SHOT [27]Target feature extractorAdapt with a fixed source classifier and unlabeled target data.
Hypernetworks [11, 17]Generated network or adapter weightsPredict parameters from a learned conditioning representation.
Meta Networks [32]Fast weightsUse meta-learning to generate task-dependent parameters.
Neural network diffusion [48]Network parametersGenerate parameters through a learned latent diffusion model.
ZeroMAGMultimodal adapterGenerate weights from unlabeled calibration signals and task context; keep the EEG model fixed.

Table J.1. Adaptation mechanisms in related work. Target-time optimization and conditional parameter generation are separate design choices.

The closest connection is to adapter generation and diffusion over network parameters. ZeroMAG uses a variable-length semantic block sequence to represent companion-signal adapters, and evaluates decoded weights through the frozen EEG prediction path. Its target condition comes from the recording and supported task. The generators for the three EEG backbones are trained separately.

The method depends on the supplied frozen EFM and compatible prediction head, the quality of source reference adapters, and the coverage of the calibration data. The reported results concern these evaluated interfaces. They do not establish transfer of one generator to an arbitrary new architecture or a task outside the supported vocabulary.

References

  1. [1]Isabela Albuquerque, Abhishek Tiwari, Mark Parent, Raymundo Cassani, Jean-François Gagnon, Daniel Lafond, Sébastien Tremblay, and Tiago H. Falk. WAUC: A multi-modal database for mental workload assessment under physical activity. Frontiers in Neuroscience, 14:549524, 2020. doi: 10.3389/fnins.2020.549524.DOI
  2. [2]Diego Alvarez-Estevez and Roselyne M. Rijsman. Inter-database validation of a deep learning approach for automatic sleep scoring. PLOS ONE, 16(8):e0256111, 2021. doi: 10.1371/journal.pone.0256111.DOI
  3. [3]Marc Bächlin, Meir Plotnik, Daniel Roggen, Inbal Maidan, Jeffrey M. Hausdorff, Nir Giladi, and Gerhard Tröster. Wearable assistant for parkinson’s disease patients with the freezing of gait symptom. IEEE Transactions on Information Technology in Biomedicine, 14(2):436–446, 2010. doi: 10.1109/TITB.2009.2036165.DOI
  4. [4]Kay H. Brodersen, Cheng Soon Ong, Klaas E. Stephan, and Joachim M. Buhmann. The Balanced Accuracy and Its Posterior Distribution. In 2010 20th International Conference on Pattern Recognition, 2010. doi: 10.1109/ICPR.2010.764.DOI
  5. [5]Clemens Brunner, Robert Leeb, Gernot R. Müller-Putz, Alois Schlögl, and Gert Pfurtscheller. BCI Competition 2008: Graz data set A (data set 2a). BCI Competition IV dataset description, 2008. URL https://www.bbci.de/competition/iv/desc_2a.pdf.
  6. [6]Rujikorn Charakorn, Edoardo Cetin, Yujin Tang, and Robert Tjarko Lange. Text-to-LoRA: Instant Transformer Adaptation. In Proceedings of the 42nd International Conference on Machine Learning, volume 267, pp. 7485–7514. PMLR, 2025. URL https://proceedings.mlr.press/v267/charakorn25a.html.arxiv.org/abs/2506.06105
  7. [7]Jacob Cohen. A Coefficient of Agreement for Nominal Scales. Educational and Psychological Measurement, 20(1):37–46, 1960. doi: 10.1177/001316446002000104.DOI
  8. [8]Alexander Craik, Yongtian He, and Jose L Contreras-Vidal. Deep learning for electroencephalogram (EEG) classification tasks: a review. Journal of Neural Engineering, 16(3):031001, 2019. doi: 10.1088/1741-2552/ab0ab5.DOI
  9. [9]William Fedus, Barret Zoph, and Noam Shazeer. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research, 23(120):1–39, 2022. URL https://www.jmlr.org/papers/v23/21-0998.html.arxiv.org/abs/2101.03961
  10. [11]David Ha, Andrew Dai, and Quoc V. Le. HyperNetworks. In International Conference on Learning Representations, 2017. URL https://openreview.net/forum?id=rkpACe1Ix.arxiv.org/abs/1609.09106
  11. [12]Zeyu Han, Chao Gao, Jinyang Liu, Jeff Zhang, and Sai Qian Zhang. Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Survey. arXiv preprint arXiv:2403.14608, 2024. URL https://arxiv.org/abs/2403.14608.
  12. [13]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising Diffusion Probabilistic Models. In Advances in Neural Information Processing Systems, volume 33, 2020. URL https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d976f1ab10179ca4b-Abstract.html.arxiv.org/abs/2006.11239
  13. [14]Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin de Laroussilhe, Andrea Gesmundo, Mona Attarian, and Sylvain Gelly. Parameter-Efficient Transfer Learning for NLP. In Proceedings of the 36th International Conference on Machine Learning, volume 97, pp. 2790–2799. PMLR, 2019. URL https://proceedings.mlr.press/v97/houlsby19a.html.arxiv.org/abs/1902.00751
  14. [15]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-Rank Adaptation of Large Language Models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=ZeVKEeFYf9.arxiv.org/abs/2106.09685
  15. [16]Wei-Bang Jiang, Li-Ming Zhao, and Bao-Liang Lu. Large Brain Model for Learning Generic Representations with Tremendous EEG Data in BCI. In International Conference on Learning Representations, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/file/47393e8594c82ce8fd83adc672cf9872-Paper-Conference.pdf.arxiv.org/abs/2405.18765
  16. [17]Rabeeh Karimi Mahabadi, Sebastian Ruder, Mostafa Dehghani, and James Henderson. Parameter-efficient Multi-task Fine-tuning for Transformers via Shared Hypernetworks. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 565–576, 2021. doi: 10.18653/v1/2021.acl-long.47. URL https://aclanthology.org/2021.acl-long.47/.DOI
  17. [18]Stamos Katsigiannis and Naeem Ramzan. DREAMER: A database for emotion recognition through EEG and ECG signals from wireless low-cost off-the-shelf devices. IEEE Journal of Biomedical and Health Informatics, 22(1):98–107, 2018. doi: 10.1109/JBHI.2017.2688239.DOI
  18. [19]Bob Kemp, Aeliko H. Zwinderman, Bert Tuk, Hilbert A. C. Kamphuisen, and Josefien J. L. Oberyé. Analysis of a sleep-dependent neuronal feedback loop: the slow-wave microcontinuity of the EEG. IEEE Transactions on Biomedical Engineering, 47(9):1185–1194, 2000. doi: 10.1109/10.867928.DOI
  19. [20]Sirvan Khalighi, Teresa Sousa, José Moutinho Santos, and Urbano Nunes. ISRUC-Sleep: A comprehensive public dataset for sleep researchers. Computer Methods and Programs in Biomedicine, 124:180–192, 2016. doi: 10.1016/j.cmpb.2015.10.013.DOI
  20. [21]Diederik P. Kingma and Max Welling. Auto-Encoding Variational Bayes. In International Conference on Learning Representations, 2014. URL https://arxiv.org/abs/1312.6114.
  21. [22]Sander Koelstra, Christian Mühl, Mohammad Soleymani, Jong-Seok Lee, Ashkan Yazdani, Touradj Ebrahimi, Thierry Pun, Anton Nijholt, and Ioannis Patras. DEAP: A database for emotion analysis using physiological signals. IEEE Transactions on Affective Computing, 3(1):18–31, 2012. doi: 10.1109/T-AFFC.2011.15.DOI
  22. [23]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. URL https://arxiv.org/abs/2507.11783.
  23. [24]Hyung-Tak Lee, Miseon Shim, Xianghong Liu, Hye-Ran Cheon, Sang-Gyu Kim, Chang-Hee Han, and Han-Jeong Hwang. A review of hybrid EEG-based multimodal human–computer interfaces using deep learning: applications, advances, and challenges. Biomedical Engineering Letters, 15(4):587–618, 2025. doi: 10.1007/s13534-025-00469-5.DOI
  24. [25]Min-Ho Lee, O-Yeon Kwon, Yong-Jeong Kim, Hong-Kyung Kim, Young-Eun Lee, John Williamson, Siamac Fazli, and Seong-Whan Lee. Eeg dataset and openbmi toolbox for three bci paradigms: An investigation into bci illiteracy. GigaScience, 8(5):giz002, 2019. doi: 10.1093/gigascience/giz002.DOI
  25. [26]Brian Lester, Rami Al-Rfou, and Noah Constant. The Power of Scale for Parameter-Efficient Prompt Tuning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 3045–3059, 2021. URL https://aclanthology.org/2021.emnlp-main.243/.arxiv.org/abs/2104.08691
  26. [27]Jian Liang, Dapeng Hu, and Jiashi Feng. Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation. In Proceedings of the 37th International Conference on Machine Learning, volume 119, pp. 6028–6039, 2020. URL https://proceedings.mlr.press/v119/liang20a.html.arxiv.org/abs/2002.08546
  27. [28]Jian Liang, Ran He, and Tieniu Tan. A Comprehensive Survey on Test-Time Adaptation under Distribution Shifts. arXiv preprint arXiv:2303.15361, 2023. URL https://arxiv.org/abs/2303.15361.
  28. [29]Zhiyuan Liang, Dongwen Tang, Yuhao Zhou, Xuanlei Zhao, Mingjia Shi, Wangbo Zhao, Zekai Li, Peihao Wang, Konstantin Schürholt, Damian Borth, Michael M. Bronstein, Yang You, Zhangyang Wang, and Kai Wang. Drag-and-Drop LLMs: Zero-Shot Prompt-to-Weights. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://arxiv.org/abs/2506.16406.
  29. [30]Wei Liu, Jie-Lin Qiu, Wei-Long Zheng, and Bao-Liang Lu. Comparing Recognition Performance and Robustness of Multimodal Deep Learning Models for Multimodal Emotion Recognition. IEEE Transactions on Cognitive and Developmental Systems, 14(2):715–729, 2022. doi: 10.1109/tcds.2021.3071170.DOI
  30. [31]Jingying Ma, Feng Wu, Qika Lin, Yucheng Xing, Chenyu Liu, Ziyu Jia, and Mengling Feng. Code-Brain: Bridging Decoupled Tokenizer and Multi-Scale Architecture for EEG Foundation Model. In International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2506.09110.
  31. [32]Tsend­suren Munkhdalai and Hong Yu. Meta Networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70, pp. 2554–2563, 2017. URL https://proceedings.mlr.press/v70/munkhdalai17a.html.
  32. [33]Christian O’Reilly, Nadia Gosselin, Julie Carrier, and Tore Nielsen. Montreal Archive of Sleep Studies: an open-access resource for instrument benchmarking and exploratory research. Journal of Sleep Research, 23(6):628–635, 2014. doi: 10.1111/jsr.12169.DOI
  33. [34]William Peebles and Saining Xie. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4195–4205, 2023. URL https://openaccess.thecvf.com/content/ICCV2023/html/Peebles_Scalable_Diffusion_Models_with_Transformers_ICCV_2023_paper.html.arxiv.org/abs/2212.09748
  34. [35]Stuart F. Quan, Barbara V. Howard, Conrad Iber, James P. Kiley, F. Javier Nieto, Gregory T. O’Connor, David M. Rapoport, Susan Redline, John Robbins, Jonathan M. Samet, and Patricia W. Wahl. The Sleep Expert Health Study: design, rationale, and methods. Sleep, 20(12):1077–1085, 1997. doi: 10.1093/sleep/20.12.1077.DOI
  35. [36]Daniel Roggen, Meir Plotnik, and Jeff Hausdorff. Daphnet Freezing of Gait. UCI Machine Learning Repository, 2010. URL https://doi.org/10.24432/C56K78.
  36. [37]Takaya Saito and Marc Rehmsmeier. The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLOS ONE, 10(3):e0118432, 2015. doi: 10.1371/journal.pone.0118432.DOI
  37. [38]Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer. In International Conference on Learning Representations, 2017. URL https://arxiv.org/abs/1701.06538.
  38. [39]Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. arXiv preprint arXiv:2010.02502, 2020. URL https://arxiv.org/abs/2010.02502.
  39. [40]Ramanathan Subramanian, Julia Wache, Mojtaba Khomami Abadi, Radu L. Vieriu, Stefan Winkler, and Nicu Sebe. ASCERTAIN: Emotion and personality recognition using commercial sensors. IEEE Transactions on Affective Computing, 9(2):147–160, 2016. doi: 10.1109/TAFFC.2016.2625250.DOI
  40. [41]Toyotaro Suzumura, Hiroki Kanezashi, and Shotaro Akahori. Graph Adapter for EEG Foundation Models for Parameter Efficient Fine Tuning. arXiv preprint arXiv:2411.16155, 2024. URL https://arxiv.org/abs/2411.16155.
  41. [42]Mario Giovanni Terzano, Liborio Parrino, A. Shrerieri, Robert Chervin, Sudhansu Chokroverty, Christian Guilleminault, Max Hirshkowitz, Mark Mahowald, Harvey Moldofsky, Agostinho Rosa, Robert Thomas, and Arthur Walters. Atlas, rules, and recording techniques for the scoring of cyclic alternating pattern (CAP) in human sleep. Sleep Medicine, 2(6):537–553, 2001. doi: 10.1016/S1389-9457(01)00149-6.DOI
  42. [43]Rahul Thapa, Bryan He, Magnus Ruud Kjær, Hyatt Moore, IV, Gauri Ganjoo, Emmanuel Mignot, and James Zou. SleepFM: Multi-modal Representation Learning for Sleep Across Brain Activity, ECG and Respiratory Signals. In Proceedings of the 41st International Conference on Machine Learning, volume 235, pp. 48019–48037. PMLR, 2024. URL https://proceedings.mlr.press/v235/thapa24a.html.arxiv.org/abs/2405.17766
  43. [44]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention Is All You Need. In Advances in Neural Information Processing Systems, volume 30, 2017. URL https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html.arxiv.org/abs/1706.03762
  44. [45]Dequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno Olshausen, and Trevor Darrell. Tent: Fully Test-time Adaptation by Entropy Minimization. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=uXl3bZLkr3c.arxiv.org/abs/2006.10726
  45. [46]Guangyu Wang, Wenchao Liu, Yuhong He, Cong Xu, Lin Ma, and Haifeng Li. EEGPT: Pretrained Transformer for Universal and Reliable Representation of EEG Signals. In Advances in Neural Information Processing Systems, volume 37, pp. 39249–39280, 2024a. URL https://proceedings.neurips.cc/paper_files/paper/2024/file/4540d267eec4e5dbd9dae9448f0b739-Paper-Conference.pdf.DOI
  46. [47]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. In International Conference on Learning Representations, 2025. URL https://arxiv.org/abs/2412.07236.
  47. [48]Kai Wang, Dongwen Tang, Boya Zeng, Yida Yin, Zhaopan Xu, Yukun Zhou, Zelin Zang, Trevor Darrell, Zhuang Liu, and Yang You. Neural Network Diffusion. arXiv preprint arXiv:2402.13144, 2024b. URL https://arxiv.org/abs/2402.13144.
  48. [49]Jonathan R. Wolpaw, Niels Birbaumer, Dennis J McFarland, Gert Pfurtscheller, and Theresa M Vaughan. Brain–computer interfaces for communication and control. Clinical Neurophysiology, 113(6):767–791, 2002. doi: 10.1016/s1388-2457(02)00057-3.DOI
  49. [50]Chaoqi Yang, M. Brandon Westover, and Jimeng Sun. BIOT: Biosignal Transformer for Cross-data Learning in the Wild. In Advances in Neural Information Processing Systems, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/f6b30f3e2dd9cb53bbf2024402d02295-Paper-Conference.pdf.DOI
  50. [51]Michael K. Yeung and Vivian W. Chu. Viewing neurovascular coupling through the lens of combined EEG–fNIRS: A systematic review of current methods. Psychophysiology, 59(6):e14054, 2022. doi: 10.1111/psyp.14054.DOI
  51. [52]Manzil Zaheer, Satwik Kottur, Siamak Ravankhahsh, Barnabás Póczos, Ruslan Salakhutdinov, and Alexander J. Smola. Deep Sets. In Advances in Neural Information Processing Systems, volume 30, 2017. URL https://proceedings.neurips.cc/paper_files/paper/2017/hash/f22e4747da1aa27e363d86d40ff442fe-Abstract.html.
  52. [53]Daoze Zhang, Zhizhang Yuan, Yang Yang, Junru Chen, Jingjing Wang, and Yafeng Li. Brant: Foundation Model for Intracranial Neural Signal. In Advances in Neural Information Processing Systems, volume 36, pp. 26304–26321, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/535915d26859036410b0533804cee788-Paper-Conference.pdf.DOI
  53. [54]Daoze Zhang, Zhizhang Yuan, Junru Chen, Kerui Chen, and Yang Yang. Brant-X: A Unified Physiological Signal Alignment Framework. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 4155–4166, 2024. doi: 10.1145/3637528.3671953.
  54. [55]Wei Zhang, Zhuokun Yang, Hantao Li, Debin Huang, Lipeng Wang, Yanzhao Wei, Lei Zhang, Lin Ma, Huanhuan Feng, Jing Pan, Yuzhu Guo, and Piu Chan. Multimodal Data for the Detection of Freezing of Gait in Parkinson’s Disease. Scientific Data, 9(1):606, 2022. doi: 10.1038/s41597-022-01713-8.DOI
  55. [56]Wei-Long Zheng and Bao-Liang Lu. A multimodal approach to estimating vigilance using EEG and forehead EOG. Journal of Neural Engineering, 14(2):026017, 2017. doi: 10.1088/1741-2552/aa5a98.DOI
  56. [57]Yuchen Zhou, Jiamin Wu, Zichen Ren, Zhouheng Yao, Weiheng Lu, Kunyu Peng, Qihao Zheng, Chunfeng Song, Wanli Ouyang, and Chao Gou. CSBrain: A Cross-scale Spatiotemporal Brain Foundation Model for EEG Decoding. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/7e199ad8ae40eb19b2980f61f659cb07-Abstract-Conference.html.arxiv.org/abs/2506.23075

Paper details

vlnc:W_9ur6f7p3
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

ChatGPT, Codex, Claude

View statement
Looking for related papers…
Contents