EEG-AS: Instance-Level Foundation Model Selection for EEG Foundation Models via Behavior Reconstruction
Summary
The paper proposes EEG-AS, an algorithm selection framework that enables instance-level selection among multiple EEG foundation models by reconstructing their behaviors, thereby improving neural decoding performance.
View Cached Full Text
Cached at: 09/02/26, 06:19 AM
# EEG-AS: Instance-Level Foundation Model Selection for EEG Foundation Models via Behavior Reconstruction
Source: [https://arxiv.org/html/2609.00653](https://arxiv.org/html/2609.00653)
###### Abstract
Electroencephalography \(EEG\) is a non\-invasive technique for measuring neural activity and has been widely used in neuroscience applications\. Recent advances in EEG foundation models have enabled strong performance across diverse neural decoding tasks\. However, no single foundation model consistently performs best across datasets or individual EEG instances, while instance\-level model selection remains largely unexplored\. To address this limitation, we formulate EEG foundation model selection as an instance\-level Algorithm Selection \(AS\) problem\. We proposeEEG\-AS, an instance\-level algorithm selection framework that characterizes each EEG instance using inference\-available latent EEG embeddings, handcrafted neurophysiological features, and an anchor foundation model\. During training, EEG\-AS learns to reconstruct unavailable foundation\-model behaviors from privileged prediction tokens conditioned on an anchor foundation model, while during inference it estimates these behaviors without executing the entire model portfolio, enabling efficient selection from seven EEG foundation models\. Experiments on seven public EEG benchmarks demonstrate that EEG\-AS substantially narrows the gap between the Single Best Solver \(SBS\) and the oracle upper bound for each instance\. These results highlight the effectiveness of instance\-level AS for adaptive deployment of EEG foundation models\.
1Duke Kunshan University
2Ankara University
## Introduction
Electroencephalography \(EEG\) foundation models \(FMs\) have recently emerged as a promising paradigm for learning transferable neural representations from large\-scale unlabeled EEG data\([Kuruppu et al\. 2026](https://arxiv.org/html/2609.00653#bib.bib5)\)\. General\-purpose models have demonstrated strong performance across a wide range of downstream EEG applications\([Xiong et al\. 2026](https://arxiv.org/html/2609.00653#bib.bib4)\)\. As the number of available EEG FMs continues to grow,attention is shifting from developing stronger individual models to effectively utilizing existing ones\.
Current practice typically deploys a single FM according to its average performance on a benchmark dataset\. ThisSingle Best Solver \(SBS\)strategy is implicitly based on the assumption that one model is uniformly preferable for all EEG instances within a dataset\. However, our empirical analysis reveals that this assumption does not hold\. Although a FM may achieve the highest average accuracy, its performance varies substantially across individual EEG instances\. Different FMs correctly classify different instances,revealing substantial instance\-level complementarity beyond their dataset\-level competition\.This observation is further supported by the large performance gap between the SBS and theVirtual Best Solver \(VBS\)/Oracle upper boundobserved across all evaluated datasets, suggesting promising potential for adaptive model deployment\. These observations echo the commonAlgorithm Selection \(AS\)premise that algorithm performance is instance\-dependent\([Kerschke et al\. 2019](https://arxiv.org/html/2609.00653#bib.bib1)\)\. Since EEG inference is ultimately performed on individual trials, windows, or recordings, this heterogeneity motivates adapting model deployment at the same granularity\.
These observations raise a fundamental research question:Can we automatically identify the most suitable FM for each EEG instance?We cast this problem as a per\-instance AS task, where one FM is selected from a portfolio for each EEG instance\([Kerschke et al\. 2019](https://arxiv.org/html/2609.00653#bib.bib1)\)\. We proposeEEG\-AS\. Our key insight is that the behaviors of unexecuted candidate FMs can be inferred from an inference\-available EEG representation together with the prediction behavior of a single inference\-available anchor FM\. During training, EEG\-AS learns the relationship among different FMs using privileged prediction tokens generated offline\. During inference, it reconstructs the unavailable model behaviors conditioned on the anchor model and selects the most suitable FM without exhaustively evaluating the entire portfolio\. Experiments on seven public EEG benchmarks demonstrate that EEG\-AS achieves the highest average performance among deployable methods, obtaining the best result on five datasets while remaining competitive on the others and outperforming SBS on all seven datasets\.
The main contributions of this work are summarized as:
- •We formulate EEG FM deployment as an instance\-level AS problem\.To the best of our knowledge, this is the first work on adaptive deployment of EEG FMs at the instance level, moving beyond the conventional single\-model deployment\. Two traditional AS models are built\.
- •We propose EEG\-AS, a novel instance\-level selection framework that reconstructs unavailable FM behaviors from an EEG representation and a single inference\-available anchor model\.This enables effective model selection without exhaustively executing the entire FM portfolio during inference\.
- •We conduct comprehensive experiments on seven public EEG benchmarks covering diverse downstream applications\.The experimental results demonstrate that EEG\-AS improves average selection accuracy from 53\.7% for SBS to 66\.9%, closes 44\.0% of the SBS\-to\-Oracle performance gap and the 83\.7% Oracle upper bound\. It also provides extensive analyses of instance\-level complementarity among EEG FMs, highlighting the potential of AS for adaptive EEG FM deployment\.
## Background
### EEG Foundation Models
Recent EEG foundation models \(FMs\) leverage self\-supervised pretraining on large\-scale unlabeled EEG data to learn transferable neural representations for downstream EEG applications\. Existing EEG FMs differ substantially in architectural design and pretraining strategy, reflecting diverse approaches to modeling the spatial, temporal, and semantic characteristics of EEG signals\. Comprehensive benchmarks such as EEG\-FM\-Bench\([Xiong et al\. 2025](https://arxiv.org/html/2609.00653#bib.bib3);[Xiong et al\. 2026](https://arxiv.org/html/2609.00653#bib.bib4)\)have standardized the evaluation of these models across diverse EEG datasets, providing a unified benchmark for comparing their downstream performance\.
### Automated Algorithm Selection \(AS\)
AS has been applied to various problem domains such as Boolean satisfiability, combinatorial optimization and machine learning\. Within the scope of Automated Machine Learning \(AutoML\), AS focuses on a critical meta\-learning task\. Traditionally, AS is implemented through performance prediction models that identify the best expected candidate algorithm for a given problem instance\. Many studies have focused on utilizing handcrafted features to build these models\. To eliminate the need of domain expertise for feature engineering, representation learning has been investigated\. Convolutional Neural Networks \(CNNs\)\([Loreggia et al\. 2016](https://arxiv.org/html/2609.00653#bib.bib6)\)is an early example in this direction\. Following that, considering the structural nature of the target problems, Graph Neural Networks \(GNNs\) have been adopted to learn instance characterizations from graph data\([Cao et al\. 2025](https://arxiv.org/html/2609.00653#bib.bib8)\)\. More recently, advances in Transformer architectures and large\-scale embedding models have enabled the automatic extraction of high\-dimensional latent representations\([Wang et al\. 2026](https://arxiv.org/html/2609.00653#bib.bib7)\)\.
## Method
### Problem Formulation
Following the standard Automated Algorithm Selection \(AS\) formulation\([Rice 1976](https://arxiv.org/html/2609.00653#bib.bib2);[Kerschke et al\. 2019](https://arxiv.org/html/2609.00653#bib.bib1)\), we specify EEG Foundation Model \(FM\) selection as an per\-instance AS problem over a portfolio of pretrained FMs\. Letℳ=\{m1,…,mK\}\\mathcal\{M\}=\\\{m\_\{1\},\\ldots,m\_\{K\}\\\}denote a portfolio ofKKfrozen EEG FMs Although all models are evaluated on the same downstream EEG task within each dataset, their performances may vary substantially across different EEG instances due to their distinct architectures and learned representations\.
For an EEG instancexix\_\{i\}and a FMmk∈ℳm\_\{k\}\\in\\mathcal\{M\}, letρ\(mk,xi\)\\rho\(m\_\{k\},x\_\{i\}\)is the utility of modelmkm\_\{k\}on instancexix\_\{i\}\. As the performance upper bound, Virtual Best Solver \(VBS\) / Oracle represents the theoretical performance limit, i\.e\. choosing the absolute best FM for each individual instance\([Kerschke et al\. 2019](https://arxiv.org/html/2609.00653#bib.bib1)\):
m∗\(xi\)=argmaxmk∈ℳρ\(mk,xi\)\.m^\{\*\}\(x\_\{i\}\)=\\arg\\max\_\{m\_\{k\}\\in\\mathcal\{M\}\}\\rho\(m\_\{k\},x\_\{i\}\)\.\(1\)
The goal is to learn a selector that predicts the best FM using only information available during inference\. Specifically, the selector produces a relevance scores\(xi,mk\)=fθ\(xi,mk\)s\(x\_\{i\},m\_\{k\}\)=f\_\{\\theta\}\(x\_\{i\},m\_\{k\}\)for each FM\.
and chooses the one with the highest score:
m^\(xi\)=argmaxmk∈ℳs\(xi,mk\)\.\\hat\{m\}\(x\_\{i\}\)=\\arg\\max\_\{m\_\{k\}\\in\\mathcal\{M\}\}s\(x\_\{i\},m\_\{k\}\)\.\(2\)
The objective is to predict the Oracle model assignmentm∗\(xi\)m^\{\*\}\(x\_\{i\}\)as accurately as possible without evaluating the entire FM portfolio for each EEG instance\. At the same time, the Single Best Solver \(SBS\) is required to be outperformed\. In this work, SBS is one FM delivering the best overall performance across the entire instance set\. During training, additional information from FMs may be utilized to learn model suitability, while inference\-time selection only relies on information available before executing the candidate FM\.
### EEG\-AS: Overall Framework
EEG\-AS aims to perform efficient instance\-level FM selection by reconstructing unavailable FM behaviors from a lightweight anchor model\. As shown in Fig\.[1](https://arxiv.org/html/2609.00653#Sx3.F1), EEG\-AS has three components: an EEG representation module, a conditional token predictor, and a token\-based model selector\.
Figure 1:Overview of the EEG\-AS\. During training, privileged prediction tokens are available\. During inference, only the anchor model is executed\.Given an EEG instance, EEG\-AS first extracts an inference\-available representation\. During training, prediction tokens from all FMs are available as privileged information\. During inference, only the token from an anchor model is observed\. The conditional token predictor reconstructs the missing FM tokens, and the reconstructed token matrix is passed to the selector to predict the most suitable FM for the current instance\. The framework is optimized by combining token reconstruction and model selection objectives\.
#### EEG Representation\.
To characterize EEG instances without evaluating the entire FM portfolio, EEG\-AS relies on an inference\-available representationzxz\_\{x\}\. The framework is agnostic to the choice of representation, provided that it can be extracted without executing the candidate FMs\. Such representations may be obtained from pretrained EEG encoders, handcrafted EEG features, or a combination of both\.
Letex=femb\(x\)∈ℝdee\_\{x\}=f\_\{\\mathrm\{emb\}\}\(x\)\\in\\mathbb\{R\}^\{d\_\{e\}\}is the embedding extracted by an inference\-time EEG encoder, andhx=fhc\(x\)∈ℝdhh\_\{x\}=f\_\{\\mathrm\{hc\}\}\(x\)\\in\\mathbb\{R\}^\{d\_\{h\}\}denote handcrafted EEG features describing complementary signal characteristics\. The final EEG representation is obtained byzx=\[ex;hx\]z\_\{x\}=\[e\_\{x\};h\_\{x\}\]\. In this work,fembf\_\{\\mathrm\{emb\}\}is instantiated using a frozen BIOT encoder\([Yang et al\. 2023](https://arxiv.org/html/2609.00653#bib.bib11)\)\.
#### Privileged Token Representation\.
During training, EEG\-AS has access to the prediction outputs of all foundation models \(FMs\) as privileged information\.\([Vapnik and Vashist 2009](https://arxiv.org/html/2609.00653#bib.bib23)\)Rather than using scalar performance scores, we represent the behavior of each FM by its prediction token\.
For an EEG instancexx, thekk\-th FM produces a prediction tokentk=ϕk\(x\)∈ℝCt\_\{k\}=\\phi\_\{k\}\(x\)\\in\\mathbb\{R\}^\{C\}whereϕk\(⋅\)\\phi\_\{k\}\(\\cdot\)denotes the frozen FM,CCis the number of target classes, andtkt\_\{k\}is the predicted class probability vector\. The prediction tokens from all FMs are organized into a privileged token matrix
T=\[t1;…;tK\]∈ℝK×C\.T=\[t\_\{1\};\\ldots;t\_\{K\}\]\\in\\mathbb\{R\}^\{K\\times C\}\.\(3\)
Compared with scalar performance scores, prediction tokens preserve the complete prediction distributions of FMs, providing richer instance\-specific information for modeling their behaviors and supporting downstream model selection\.
#### Conditional Token Predictor\.
During inference, only the anchor model tokentat\_\{a\}is available\. To recover the unavailable FM behaviors, we introduce a conditional token predictor\.
Given the EEG representationzxz\_\{x\}and the observed anchor tokentat\_\{a\}, the predictor estimates the prediction tokens of all non\-anchor foundation models:
T^∖a=Pψ\(zx,ta\),\\hat\{T\}\_\{\\setminus a\}=P\_\{\\psi\}\(z\_\{x\},t\_\{a\}\),\(4\)whereT^∖a\\hat\{T\}\_\{\\setminus a\}contains the reconstructed tokens of all foundation models except the anchor model\.
The reconstructed token matrix is defined as
t~k=\{ta,k=a,t^k,k≠a,whereT~=\[t~1;…;t~K\]\.\\tilde\{t\}\_\{k\}=\\begin\{cases\}t\_\{a\},&k=a,\\\\ \\hat\{t\}\_\{k\},&k\\neq a,\\end\{cases\}\\text\{ where \}\\tilde\{T\}=\[\\tilde\{t\}\_\{1\};\\ldots;\\tilde\{t\}\_\{K\}\]\.\(5\)Unlike static representations shared across samples, the predicted tokens are conditioned on the current EEG instance, enabling sample\-specific approximation of FM behaviors\.
#### Token\-based Model Selector\.
Given the reconstructed token matrixT~\\tilde\{T\}, the token\-based model selector predicts the relevance of each FM\.
To model interactions between EEG characteristics and FM behaviors, the selector employs a cross\-attention mechanism\([Vaswani et al\. 2017](https://arxiv.org/html/2609.00653#bib.bib24)\)\. Each FM slot constructs a model\-specific query by combining the EEG representation with its token representation\. These queries attend over the reconstructed token embeddings, allowing each model slot to aggregate information from the FM portfolio\.
The selector outputs relevance scores
s=fθ\(zx,T~\)∈ℝK\.s=f\_\{\\theta\}\(z\_\{x\},\\tilde\{T\}\)\\in\\mathbb\{R\}^\{K\}\.\(6\)wheresks\_\{k\}is the predicted relevance score of thekk\-th FM\.
#### Joint Optimization\.
The conditional token predictor is first pretrained using the privileged tokens and is subsequently jointly optimized with the token\-based model selector\. The token reconstruction objective is defined as
ℒtoken=1K−1∑k≠a‖t^k−tk‖22\.\\mathcal\{L\}\_\{\\mathrm\{token\}\}=\\frac\{1\}\{K\-1\}\\sum\_\{k\\neq a\}\\\|\\hat\{t\}\_\{k\}\-t\_\{k\}\\\|\_\{2\}^\{2\}\.\(7\)
For an EEG instancexxwith ground\-truth labelyy, the relevance of thekk\-th FM is defined according to its prediction correctness:
rk=𝟏\(argmaxctk\[c\]=y\)\.r\_\{k\}=\\mathbf\{1\}\\left\(\\arg\\max\_\{c\}t\_\{k\}\[c\]=y\\right\)\.\(8\)
Since multiple FMs may correctly predict the same instance, pairwise ranking constraints are constructed only between relevant and irrelevant models:
𝒫\(x\)=\{\(i,j\)∣ri\>rj\}\.\\mathcal\{P\}\(x\)=\\\{\(i,j\)\\mid r\_\{i\}\>r\_\{j\}\\\}\.\(9\)
The selector is optimized using the pairwise logistic ranking loss\([Burges et al\. 2005](https://arxiv.org/html/2609.00653#bib.bib25)\):
ℒsel=∑\(i,j\)∈𝒫\(x\)log\(1\+exp\(−σ\(si−sj\)\)\)\.\\mathcal\{L\}\_\{\\mathrm\{sel\}\}=\\sum\_\{\(i,j\)\\in\\mathcal\{P\}\(x\)\}\\log\\left\(1\+\\exp\(\-\\sigma\(s\_\{i\}\-s\_\{j\}\)\)\\right\)\.\(10\)
The overall training objective is
ℒ=ℒsel\+λℒtoken,\\mathcal\{L\}=\\mathcal\{L\}\_\{\\mathrm\{sel\}\}\+\\lambda\\mathcal\{L\}\_\{\\mathrm\{token\}\},\(11\)whereλ\\lambdabalances the token reconstruction and model selection objectives\.
#### Inference\.
At inference time, the privileged token matrixTTis unavailable since obtaining it requires executing the entire FM portfolio\. Instead, EEG\-AS only requires the anchor FM during selection\.
Given an unseen EEG instance, we first extract its EEG representationzxz\_\{x\}and execute the anchor model to obtain the observed tokentat\_\{a\}\. The conditional token predictor then generates the missing non\-anchor tokens\. The reconstructed token matrixT~\\tilde\{T\}is constructed by combining the observed anchor token with the predicted tokens\. The token\-based selector then produces relevance scores and chooses the FM with the highest score\. Therefore, EEG\-AS performs efficient instance\-level FM selection without exhaustive portfolio evaluation\. If the selected model differs from the anchor model, the selected model is subsequently executed for the final downstream prediction\.
## Experimental Setup
#### Datasets and Evaluation Protocol\.
Following the EEG\-FM\-Bench evaluation protocol\([Xiong et al\. 2025](https://arxiv.org/html/2609.00653#bib.bib3);[Xiong et al\. 2026](https://arxiv.org/html/2609.00653#bib.bib4)\), we evaluate EEG\-AS on seven publicly available EEG benchmark datasets: ADFTD\([Miltiadous et al\. 2023](https://arxiv.org/html/2609.00653#bib.bib21)\), BCIC\-2a\([Brunner et al\. 2008](https://arxiv.org/html/2609.00653#bib.bib16)\), MIMUL\-11\([Jeong et al\. 2020](https://arxiv.org/html/2609.00653#bib.bib19)\), SEED\-V\([Li et al\. 2019](https://arxiv.org/html/2609.00653#bib.bib17)\), SEED\-VII\([Jiang et al\. 2025](https://arxiv.org/html/2609.00653#bib.bib18)\), THINGS\-EEG\-2\([Gifford et al\. 2022](https://arxiv.org/html/2609.00653#bib.bib20)\), Workload\([Zyma et al\. 2019](https://arxiv.org/html/2609.00653#bib.bib22)\)\. These datasets covering diverse downstream tasks and recording conditions \(Table[1](https://arxiv.org/html/2609.00653#Sx4.T1)\)\. For each dataset, we adopt the official train/validation/test split and follow the standardized downstream evaluation protocol provided by EEG\-FM\-Bench\([Xiong et al\. 2025](https://arxiv.org/html/2609.00653#bib.bib3);[Xiong et al\. 2026](https://arxiv.org/html/2609.00653#bib.bib4)\)\.
Table 1:Overview of the EEG benchmark datasets
#### Foundation Model Portfolio\.
We construct the FM portfolio using seven representative EEG FMs, including BIOT\([Yang et al\. 2023](https://arxiv.org/html/2609.00653#bib.bib11)\), EEGPT\([Wang et al\. 2024](https://arxiv.org/html/2609.00653#bib.bib13)\), BENDR\([Kostas et al\. 2021](https://arxiv.org/html/2609.00653#bib.bib15)\), CBraMod\([Wang et al\. 2025](https://arxiv.org/html/2609.00653#bib.bib10)\), CSBrain\([Zhou et al\. 2026](https://arxiv.org/html/2609.00653#bib.bib12)\), LaBraM\([Jiang et al\. 2024](https://arxiv.org/html/2609.00653#bib.bib14)\), and REVE\([El Ouahidi et al\. 2026](https://arxiv.org/html/2609.00653#bib.bib9)\)\. All FMs are frozen and are evaluated under the unified EEG\-FM\-Bench protocol\. These models differ substantially in architecture design, pretraining strategy, and representation learning paradigm, constituting a diverse candidate portfolio for instance\-level AS\.
For each EEG instance, each FM produces a class probability vector, which is used as its prediction token\. These tokens provide the foundation\-model behavior information required for EEG\-AS training\.
During inference, EEG\-AS requires only one anchor model to obtain the observed prediction token\. In our experiments, BIOT is selected as the anchor model and is also used to provide the EEG encoder representation\. The remaining FM behaviors are reconstructed by EEG\-AS without executing the full portfolio\.
#### Evaluation Metrics\.
We evaluate EEG\-AS from the perspective of selection effectiveness\.Accuracyis the main measure used to assess selection effectiveness:
Accsel=1N∑i=1Nρ\(m^\(xi\),xi\),\\mathrm\{Acc\}\_\{\\mathrm\{sel\}\}=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\\rho\(\\hat\{m\}\(x\_\{i\}\),x\_\{i\}\),\(12\)wherem^\(xi\)\\hat\{m\}\(x\_\{i\}\)denotes the FM selected by EEG\-AS for instancexix\_\{i\}, andρ\(m,x\)∈\{0,1\}\\rho\(m,x\)\\in\\\{0,1\\\}indicates whether modelmmcorrectly classifies instancexx\. This measure is bounded by the Virtual Best Solver \(VBS\) where the best FM is chosen for each instance\. The AS performance potential can be further realized by checking the VBS\-SBS gap:
GapVBS=AccVBS−AccSBS\.\\mathrm\{Gap\}\_\{\\mathrm\{VBS\}\}=\\mathrm\{Acc\}\_\{\\mathrm\{VBS\}\}\-\\mathrm\{Acc\}\_\{\\mathrm\{SBS\}\}\.\(13\)A larger gap indicates greater instance\-level diversity, offering more opportunities for AS\.
#### Baselines and Reference Methods\.
In addition to the performances of SBS and VBS / Oracle, two traditional AS models are built by using Multi\-layer Perceptron \(MLP\) and Random Forest \(RF\), utilizingzxz\_\{x\}\. Additionally, we incorporate two reference scenarios for evaluation including:
- –Global Token PredictorThis baseline represents unavailable foundation\-model outputs using learnable global token representations\. Unlike EEG\-AS, the predicted tokens are independent of EEG instances\.
- –Privileged Teacher\.Privileged Teacher receives the complete prediction token matrix generated by all foundation models and adopts the same token\-based selection mechanism as EEG\-AS\. Since complete token access is unavailable during deployment, Teacher provides a privileged upper bound rather than a practical inference\-time method\.
#### Implementation Details\.
All experiments are implemented in PyTorch\. The seven EEG foundation models \(FMs\) remain frozen throughout training and evaluation\. The EEG representationzxz\_\{x\}, including the BIOT embedding and handcrafted EEG features, is precomputed and kept fixed\. We choose BIOT as the default anchor FM because it provides a lightweight and practical deployment choice\. Compared with other EEG foundation models, BIOT has a relatively small parameter size \(3\.4M parameters\), making it suitable as an inference\-time anchor while maintaining competitive selection performance\. Therefore, EEG\-AS only optimizes the conditional token predictor and the token\-based selector\.
The conditional token predictor and token\-based selector are implemented with lightweight neural architectures\. EEG\-AS is optimized through the aforementioned hybridized lossℒ\\mathcal\{L\}withλ=1\.0\\lambda=1\.0\. All trainable components are optimized using AdamW\. All experiments are repeated with three random seeds\. The reported results are their averages\.
## Results
### Overall Selection Performance
Table[2](https://arxiv.org/html/2609.00653#Sx5.T2)summarizes the accuracy of EEG\-AS on seven EEG benchmarks\. EEG\-AS consistently outperforms the Single Best Solver \(SBS\) on all datasets, improving the average performance from 53\.7% to 66\.9%\. This demonstrates the effectiveness of instance\-level foundation model \(FM\) selection over using a single globally optimal FM\.
Compared with conventional feature\-based selectors, EEG\-AS achieves higher average accuracy than MLP \(64\.8%\) and Random Forest \(62\.7%\), and also surpasses the Global Token Predictor \(65\.4%\)\. EEG\-AS achieves the best deployable performance on five out of seven datasets, with the largest improvement observed on BCIC\-2a, where it exceeds the strongest deployable baseline by 4\.9 percentage points\. The Privileged Teacher obtains 69\.0% by accessing complete FM prediction tokens, while the Oracle reaches 83\.7%, indicating remaining room for improving FM behavior reconstruction under practical deployment constraints\.
MethodDatasetADFTDBCIC\-2aMIMUL\-11SEED\-VSEED\-VIITHINGS\-EEG\-2WorkloadDataset Avg\.Instance Avg\.SBSREVEREVECSBrainEEGPTEEGPTREVECSBrain60\.2±\\pm0\.031\.9±\\pm0\.067\.9±\\pm0\.032\.5±\\pm0\.029\.0±\\pm0\.089\.1±\\pm0\.065\.6±\\pm0\.053\.7±\\pm0\.068\.8MLP AS \(Ours\)77\.2±\\pm0\.750\.0±\\pm3\.872\.8±\\pm0\.338\.9±\\pm0\.532\.5±\\pm1\.590\.8±\\pm0\.191\.3±\\pm0\.964\.8±\\pm1\.173\.7RF AS \(Ours\)75\.3±\\pm0\.746\.3±\\pm1\.871\.0±\\pm0\.938\.7±\\pm0\.932\.5±\\pm2\.289\.5±\\pm0\.185\.8±\\pm3\.462\.7±\\pm1\.472\.3Global Token Predictor78\.2±\\pm0\.751\.1±\\pm2\.074\.2±\\pm0\.439\.7±\\pm0\.032\.2±\\pm3\.090\.9±\\pm0\.191\.3±\\pm0\.965\.4±\\pm1\.074\.3Privileged Teacher83\.5±\\pm0\.051\.4±\\pm1\.378\.7±\\pm0\.542\.7±\\pm0\.343\.5±\\pm0\.892\.0±\\pm0\.190\.7±\\pm1\.969\.0±\\pm0\.777\.7EEG\-AS \(Ours\)79\.5±\\pm0\.756\.0±\\pm1\.573\.5±\\pm0\.443\.0±\\pm1\.233\.7±\\pm1\.390\.5±\\pm0\.291\.8±\\pm0\.066\.9±\\pm0\.774\.6Oracle \(VBS\)84\.0±\\pm0\.080\.2±\\pm0\.090\.9±\\pm0\.059\.6±\\pm0\.076\.1±\\pm0\.096\.9±\\pm0\.098\.4±\\pm0\.083\.7±\\pm0\.088\.9
Table 2:Overall AS accuracy \(%\) on seven EEG benchmarks\. Learning\-based selectors are reported as mean±\\pmstdev\. over three random seeds, while SBS and Oracle are deterministic reference methods\. Dataset Avg\. is the macro\-average across datasets; Instance Avg\. aggregates over all evaluation instances\. The best deployable method is highlighted in bold\.
### Ablation Studies
To better understand the proposed framework, we conduct a series of ablation studies to answer four key questions:
\(1\) Do FM embeddings and handcrafted EEG features provide complementary information for AS?
\(2\) Does conditioning on an anchor FM improve the reconstruction of unavailable FM behaviors?
\(3\) Which supervision target is most effective for learning the reconstructed FM behaviors?
\(4\) How does the choice of the anchor FM affect the AS performance?
Unless otherwise specified, all variants follow the same training protocol as EEG\-AS, and results are averaged over the seven benchmark datasets\.
#### Input Representation\.
To investigate whether FM representations provide complementary information beyond handcrafted EEG features, we compare EEG\-AS under three input configurations: removing handcrafted features \(w/o Handcrafted Features\), removing the foundation\-model embedding \(w/o Encoder Embedding\), and using both representations \(EEG\-AS\)\.
As summarized Table[3](https://arxiv.org/html/2609.00653#Sx5.T3), removing the FM embedding decreases the accuracy from 66\.9% to 66\.3%, with a more noticeable degradation on BCIC\-2a \(56\.0% to 48\.6%\)\. This suggests that pretrained EEG representations provide useful information for capturing instance\-level characteristics that are difficult to describe using handcrafted features alone\.
Meanwhile, removing handcrafted features leads to a larger overall drop when using only the encoder embedding \(64\.4%\)\. The degradation is more pronounced on SEED\-V \(43\.0% to 39\.6%\) and Workload \(91\.8% to 89\.6%\), indicating that handcrafted EEG descriptors still capture complementary task\-specific information\. By combining both representations, EEG\-AS achieves the best average performance \(66\.9%\), demonstrating that FM embeddings and handcrafted features provide complementary signals for FM selection\.
Table 3:Ablation study on EEG representations in EEG\-AS\. w/o Handcrafted Features removes handcrafted EEG descriptors, while w/o Encoder Embedding removes the FM embedding\. EEG\-AS uses both representations as the default configuration\. Selection accuracy \(%\) is mean±\\pmstd over seeds\.
#### Anchor Conditioning
To evaluate the importance of instance\-specific anchor conditioning, we compare EEG\-AS with two variants: removing the anchor token \(w/o Anchor Token\) and replacing it with a learnable global token \(Global Token Predictor\)\. All variants use the same EEG representation and token selector\.
Table[4](https://arxiv.org/html/2609.00653#Sx5.T4)shows that removing the anchor token decreases the average selection accuracy from 66\.9% to 66\.3%, while replacing it with a global token further reduces the performance to 65\.9%\. The improvement is particularly evident on BCIC\-2a and SEED\-V, where instance\-specific anchor conditioning provides more effective guidance for distinguishing FM behaviors\. Although some individual datasets show comparable or slightly lower performance, EEG\-AS achieves the best overall performance across the benchmark suite\.
These results indicate that EEG representations alone or dataset\-level priors are insufficient to capture instance\-dependent FM behaviors that an inference\-available anchor FM provides valuable instance\-level contextual information for reconstructing unavailable foundation\-model behaviors, thereby improving downstream foundation\-model selection\.
Table 4:Ablation study on the effectiveness of instance\-specific anchor conditioning\. w/o Anchor Token and Global Token Predictor reconstruct all foundation\-model tokens without the true BIOT token, while EEG\-AS conditions token reconstruction on the instance BIOT token and retains the observed anchor token during selection\.
#### Supervision Target
To investigate the impact of the reconstruction target, we compare token\-level supervision with correctness supervision while keeping the rest of EEG\-AS unchanged\.
Table[5](https://arxiv.org/html/2609.00653#Sx5.T5)shows that Token Supervision achieves higher overall performance than Correctness Supervision, improving the dataset\-level average from 65\.4% to 66\.9% and the instance\-level average from 74\.1% to 74\.6%\. The improvement is particularly noticeable on BCIC\-2a and SEED\-V, where reconstructing prediction tokens provides richer information for distinguishing foundation\-model behaviors\.
This advantage comes from preserving the complete prediction distribution of each FM, including confidence and class preference information, whereas binary correctness labels discard such fine\-grained details\. These results validate token\-level behavior reconstruction as a more informative supervision target for instance\-level FM selection\.
Table 5:Effect of supervision target for conditional FM behavior reconstruction\. Correctness Supervision trains the predictor to estimate FM correctness, while Token Supervision reconstructs the full prediction tokens used in EEG\-AS\.
#### Anchor Foundation Model\.
To evaluate the robustness of EEG\-AS to the choice of anchor FM, we replace the anchor FM while keeping the remaining components unchanged\. Table[6](https://arxiv.org/html/2609.00653#Sx5.T6)shows that EEG\-AS maintains stable performance across different anchor choices, with dataset\-level accuracy ranging from 65\.7% to 67\.1%\. No single anchor consistently dominates, indicating that the proposed conditional token reconstruction mechanism can effectively exploit instance\-level information from different FMs\.
Although REVE achieves the highest dataset average and EEGPT obtains the highest instance average, BIOT provides comparable performance and serves as a practical default anchor because it simultaneously provides the EEG representation and anchor token required by EEG\-AS\.
The unified deployment results in Table[7](https://arxiv.org/html/2609.00653#Sx5.T7)further confirm this observation: replacing BIOT with REVE leads to comparable selection accuracy \(66\.9% vs\. 67\.0%\), demonstrating that EEG\-AS is robust to different anchor configurations\.
Table 6:Robustness of EEG\-AS to different anchor FMs\. Each variant replaces only the inference\-available anchor token while keeping the EEG representation, conditional token predictor, token\-based selector, and training protocol unchanged\.Table 7:Unified deployment with different anchor foundation models\. Each variant uses the same foundation model for both EEG representation extraction and anchor token generation\.
### Analysis
#### Reconstructed Foundation\-model Behavior\.
To verify whether EEG\-AS can recover unavailable foundation\-model \(FM\) behaviors from an inference\-available anchor FM, we evaluate the reconstructed tokens using cosine similarity, Spearman rank correlation between FM rankings, and Top\-1 agreement between the reconstructed and true best FMs\. Table[8](https://arxiv.org/html/2609.00653#Sx5.T8)and Fig\.[2](https://arxiv.org/html/2609.00653#Sx5.F2)summarize the results\. Overall, EEG\-AS achieves an average cosine similarity of 0\.66, a ranking correlation of 0\.67, and a Top\-1 agreement of 0\.53, demonstrating that the conditional token predictor captures meaningful FM behaviors rather than learning arbitrary representations\.
The reconstruction quality varies across datasets\. SEED\-V and MIMUL\-11 show the highest reconstruction fidelity, while THINGS\-EEG\-2 remains more challenging as the relationships among FM behaviors are dataset dependent\.
Moreover, Top\-1 agreement is consistently lower than token similarity and ranking correlation, suggesting that reconstructing the general behavior of FMs is easier than precisely identifying the optimal FM for each instance\.
Table 8:Token reconstruction analysis\.RDR\_\{D\}: mean cosine similarity between predicted and true tokens over unavailable FMs\.ρD\\rho\_\{D\}: mean per\-instance Spearman correlation of FM rankings byP\(y∣z\)P\(y\\mid z\)\. Top\-1: agreement of the highest\-P\(y\)P\(y\)model under true vs\. reconstructed tokens \(=1/\|ℳ\|=1/\|\\mathcal\{M\}\|\)\.Figure 2:Token\-reconstruction metrics on each dataset \(mean±\\pmstd over seeds: cosine similarityRDR\_\{D\}, Spearman rank correlationρD\\rho\_\{D\}, and Top\-1 agreement ofargmaxmP\(y∣z\)\\arg\\max\_\{m\}P\(y\\mid z\)\.
#### Understanding Performance Gaps\.
Although EEG\-AS effectively reconstructs unavailable FM behaviors, the selection gains vary across datasets\. We identify three factors that limit the final AS performance\.
First, the achievable improvement is bounded by the selection headroom between SBS and Oracle\. For example, on THINGS\-EEG\-2, SBS already achieves 89\.1% accuracy while Oracle reaches 96\.9%, leaving limited room for instance\-level selection improvements\. Therefore, the modest gain on this dataset is mainly due to the limited selection margin rather than ineffective behavior reconstruction\.
Second, accurate token reconstruction does not necessarily guarantee optimal FM selection\. On SEED\-VII, EEG\-AS achieves strong reconstruction quality \(RD=0\.74R\_\{D\}=0\.74,ρD=0\.76\\rho\_\{D\}=0\.76\), but the selection accuracy remains limited\. Moreover, the Privileged Teacher using true FM tokens only achieves 43\.5%, far below the Oracle performance of 76\.1%\. These results reveal that FM selection is not solely a representation reconstruction problem, but a decision alignment problem\.
Finally, FM diversity affects the effectiveness of selection\. When multiple FMs exhibit highly similar prediction behaviors, their tokens provide limited discriminative information for identifying the optimal model\.
Overall, these findings suggest that effective FM selection requires not only accurate behavior reconstruction, but also sufficient selection headroom and decision\-relevant diversity among candidate FMs\.
## Conclusion
In this paper, we propose EEG\-AS, an instance\-level Algorithm Selection \(AS\) framework for EEG foundation models \(FMs\)\. By reconstructing unavailable FM behaviors from an inference\-available anchor model, EEG\-AS enables adaptive selection of FMs for different EEG instances\.
Experiments on seven EEG benchmarks demonstrate that EEG\-AS consistently outperforms conventional selection strategies as well as standalone FMs\. Further analysis shows that the reconstructed tokens capture meaningful FM behaviors, while the remaining gap depends on the difficulty of identifying decision\-relevant model behaviors\.
In the future, we will investigate cost\-aware FM selection by jointly considering model accuracy, inference time, and computational resources\.
## References
- Brunneret al\.\(2008\)C\. Brunner, R\. Leeb, G\. R\. Müller\-Putz, A\. Schlögl, and G\. PfurtschellerBCI competition 2008–graz data set a\.Graz University of Technology\.Cited by:[Datasets and Evaluation Protocol\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx1.p1.1)\.
- Burgeset al\.\(2005\)C\. J\. C\. Burges, T\. Shaked, E\. Renshaw, A\. Lazier, M\. Deeds, N\. Hamilton, and G\. HullenderLearning to rank using gradient descent\.InProceedings of the 22nd International Conference on Machine Learning \(ICML\),pp\. 89–96\.Cited by:[Joint Optimization\.](https://arxiv.org/html/2609.00653#Sx3.SSx2.SSSx5.p4.1)\.
- Caoet al\.\(2025\)S\. Cao, H\. Wu, J\. B\. Wang, Y\. Yuan, and M\. MisirMC\-gnnas\-dock: multi\-criteria gnn\-based algorithm selection for molecular docking\.InPacific Rim International Conference on Artificial Intelligence \(PRICAI\),pp\. 686–696\.Cited by:[Automated Algorithm Selection \(AS\)](https://arxiv.org/html/2609.00653#Sx2.SSx2.p1.1)\.
- El Ouahidiet al\.\(2026\)Y\. El Ouahidi, J\. Lys, P\. Thölke, N\. Farrugia, B\. Pasdeloup, V\. Gripon, K\. Jerbi, and G\. LioiREVE: a foundation model for eeg\-adapting to any setup with large\-scale pretraining on 25,000 subjects\.Advances in Neural Information Processing Systems \(NeurIPS\)38,pp\. 22541–22577\.Cited by:[Foundation Model Portfolio\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx2.p1.1)\.
- Giffordet al\.\(2022\)A\. T\. Gifford, K\. Dwivedi, G\. Roig, and R\. M\. CichyA large and rich eeg dataset for modeling human visual object recognition\.NeuroImage264,pp\. 119754\.Cited by:[Datasets and Evaluation Protocol\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx1.p1.1)\.
- Jeonget al\.\(2020\)J\. Jeong, J\. Cho, K\. Shim, B\. Kwon, B\. Lee, D\. Lee, D\. Lee, and S\. LeeMultimodal signal dataset for 11 intuitive movement tasks from single upper extremity during multiple recording sessions\.GigaScience9\(10\),pp\. giaa098\.Cited by:[Datasets and Evaluation Protocol\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx1.p1.1)\.
- Jianget al\.\(2025\)W\. Jiang, X\. Liu, W\. Zheng, and B\. LuSEED\-vii: a multimodal dataset of six basic emotions with continuous labels for emotion recognition\.IEEE Transactions on Affective Computing16\(2\),pp\. 969–983\.Cited by:[Datasets and Evaluation Protocol\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx1.p1.1)\.
- Jianget al\.\(2024\)W\. Jiang, L\. Zhao, and B\. LuLarge brain model for learning generic representations with tremendous eeg data in bci\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[Foundation Model Portfolio\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx2.p1.1)\.
- Kerschkeet al\.\(2019\)P\. Kerschke, H\. H\. Hoos, F\. Neumann, and H\. TrautmannAutomated algorithm selection: survey and perspectives\.Evolutionary Computation27\(1\),pp\. 3–45\.Cited by:[Introduction](https://arxiv.org/html/2609.00653#Sx1.p2.1),[Introduction](https://arxiv.org/html/2609.00653#Sx1.p3.1),[Problem Formulation](https://arxiv.org/html/2609.00653#Sx3.SSx1.p1.1),[Problem Formulation](https://arxiv.org/html/2609.00653#Sx3.SSx1.p2.1)\.
- Kostaset al\.\(2021\)D\. Kostas, S\. Aroca\-Ouellette, and F\. RudziczBENDR: using transformers and large scale self\-supervised learning for generalizable neural decoding\.Frontiers in Human Neuroscience15,pp\. 653659\.Cited by:[Foundation Model Portfolio\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx2.p1.1)\.
- Kuruppuet al\.\(2026\)G\. Kuruppu, N\. Wagh, V\. Kremen, and Y\. VaratharajahEEG foundation models: a critical review of current progress and future directions\.Journal of Neural Engineering23,pp\. 021001\.Cited by:[Introduction](https://arxiv.org/html/2609.00653#Sx1.p1.1)\.
- Liet al\.\(2019\)T\. Li, W\. Liu, W\. Zheng, and B\. LuClassification of five emotions from eeg and eye movement signals: discrimination ability and stability over time\.In2019 9th International IEEE/EMBS Conference on Neural Engineering \(NER\),pp\. 804–807\.Cited by:[Datasets and Evaluation Protocol\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx1.p1.1)\.
- Loreggiaet al\.\(2016\)A\. Loreggia, Y\. Malitsky, H\. Samulowitz, and V\. A\. SaraswatDeep learning for algorithm portfolios\.InProceedings of the 13th Conference on Artificial Intelligence \(AAAI\),pp\. 1280–1286\.Cited by:[Automated Algorithm Selection \(AS\)](https://arxiv.org/html/2609.00653#Sx2.SSx2.p1.1)\.
- Miltiadouset al\.\(2023\)A\. Miltiadous, K\. D\. Tzimourta, T\. Afrantou, P\. Ioannidis, N\. Grigoriadis, M\. G\. Tsipouras, E\. Glavas, N\. Giannakeas, and A\. T\. TzallasA dataset of scalp eeg recordings of alzheimer’s disease, frontotemporal dementia and healthy subjects from routine eeg\.Data8\(5\),pp\. 95\.Cited by:[Datasets and Evaluation Protocol\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx1.p1.1)\.
- Rice \(1976\)J\. R\. RiceThe algorithm selection problem\.Advances in Computers15,pp\. 65–118\.Cited by:[Problem Formulation](https://arxiv.org/html/2609.00653#Sx3.SSx1.p1.1)\.
- Vapnik and Vashist \(2009\)V\. Vapnik and A\. VashistA new learning paradigm: learning using privileged information\.Neural Networks22\(5–6\),pp\. 544–557\.Cited by:[Privileged Token Representation\.](https://arxiv.org/html/2609.00653#Sx3.SSx2.SSSx2.p1.1)\.
- Vaswaniet al\.\(2017\)A\. Vaswani, N\. Shazeer, N\. Parmar, J\. Uszkoreit, L\. Jones, A\. N\. Gomez, Ł\. Kaiser, and I\. PolosukhinAttention is all you need\.InAdvances in Neural Information Processing Systems,Vol\.30,pp\. 5998–6008\.Cited by:[Token\-based Model Selector\.](https://arxiv.org/html/2609.00653#Sx3.SSx2.SSSx4.p2.1)\.
- Wanget al\.\(2024\)G\. Wang, W\. Liu, Y\. He, C\. Xu, L\. Ma, and H\. LiEEGPT: pretrained transformer for universal and reliable representation of eeg signals\.Advances in Neural Information Processing Systems37,pp\. 39249–39280\.Cited by:[Foundation Model Portfolio\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx2.p1.1)\.
- Wanget al\.\(2026\)J\. B\. Wang, S\. Cao, H\. Wu, Y\. Yuan, and M\. MısırMolecular embedding\-based algorithm selection in protein\-ligand docking\.Journal of Cheminformatics\.Cited by:[Automated Algorithm Selection \(AS\)](https://arxiv.org/html/2609.00653#Sx2.SSx2.p1.1)\.
- Wanget al\.\(2025\)J\. Wang, S\. Zhao, Z\. Luo, Y\. Zhou, H\. Jiang, S\. Li, T\. Li, and G\. PanCbramod: a criss\-cross brain foundation model for eeg decoding\.InInternational conference on learning representations,Vol\.2025,pp\. 75310–75346\.Cited by:[Foundation Model Portfolio\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx2.p1.1)\.
- Xionget al\.\(2026\)W\. Xiong, J\. Li, J\. Li, K\. Zhu, and C\. JiangEEG\-fm\-bench: a comprehensive benchmark for the systematic evaluation and diagnostic analyses of eeg foundation models\.InICML, Poster,Cited by:[Introduction](https://arxiv.org/html/2609.00653#Sx1.p1.1),[EEG Foundation Models](https://arxiv.org/html/2609.00653#Sx2.SSx1.p1.1),[Datasets and Evaluation Protocol\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx1.p1.1)\.
- Xionget al\.\(2025\)W\. Xiong, J\. Li, J\. Li, and K\. ZhuEEG\-fm\-bench: a comprehensive benchmark for the systematic evaluation of eeg foundation models\.arXiv preprint arXiv:2508\.17742\.Cited by:[EEG Foundation Models](https://arxiv.org/html/2609.00653#Sx2.SSx1.p1.1),[Datasets and Evaluation Protocol\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx1.p1.1)\.
- Yanget al\.\(2023\)C\. Yang, M\. Westover, and J\. SunBiot: biosignal transformer for cross\-data learning in the wild\.Advances in Neural Information Processing Systems \(NeurIPS\)36,pp\. 78240–78260\.Cited by:[EEG Representation\.](https://arxiv.org/html/2609.00653#Sx3.SSx2.SSSx1.p2.1),[Foundation Model Portfolio\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx2.p1.1)\.
- Zhouet al\.\(2026\)Y\. Zhou, J\. Wu, Z\. Ren, Z\. Yao, W\. Lu, K\. Peng, Q\. Zheng, C\. Song, W\. Ouyang, and C\. GouCsbrain: a cross\-scale spatiotemporal brain foundation model for eeg decoding\.Advances in Neural Information Processing Systems \(NeurIPS\)38,pp\. 87150–87195\.Cited by:[Foundation Model Portfolio\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx2.p1.1)\.
- Zymaet al\.\(2019\)I\. Zyma, S\. Tukaev, I\. Seleznov, K\. Kiyono, A\. Popov, M\. Chernykh, and O\. ShpenkovElectroencephalograms during mental arithmetic task performance\.Data4\(1\),pp\. 14\.Cited by:[Datasets and Evaluation Protocol\.](https://arxiv.org/html/2609.00653#Sx4.SSx2.SSSx1.p1.1)\.Similar Articles
Aperiodic and Low-Frequency Spectral Bias in Reconstruction based EEG Foundation Models
This paper identifies and explains a spectral bias in reconstruction-based EEG foundation models, where embeddings over-represent aperiodic and low-frequency components while under-representing oscillatory components, especially at higher frequencies, leading to poor performance in low-resource settings.
Mechanistic Interpretability of EEG Foundation Models via Sparse Autoencoders
This paper applies TopK Sparse Autoencoders to three EEG foundation models (SleepFM, REVE, LaBraM) to extract interpretable feature dictionaries and introduces a framework for concept steering, revealing representational failures and clinical entanglements.
The Identity Trap in EEG Foundation Models: A Diagnostic Audit
This paper identifies and diagnoses the 'Identity Trap' in EEG foundation models, where high accuracy may stem from subject-identity features rather than genuine clinical biomarkers. It proposes FMScope, a frozen-representation protocol to disentangle these signals, and demonstrates that subject-identity confounding is universal across three models and removable with linear methods.
EEG-PRISM: Physiologically-Grounded Interpretability of Predictions by EEG Foundation Models
EEG-PRISM is a post-hoc attribution method that maps EEG foundation model predictions to physiologically relevant domains like frequency and source, enhancing interpretability for clinical applications such as epilepsy and autism.
Continuous-Latent Predictive Modeling with Semantic Alignment for EEG-Language Foundation Models
The paper proposes BLPM, an EEG-language foundation model that uses continuous latent predictive modeling and semantic alignment to map EEG signals to text embeddings, achieving generalizable neural decoding across diverse tasks and datasets.