ELASTIQ: EEG-Language Alignment with Semantic Task Instruction and Querying

Muyun Jiang, Shuailei Zhang, Zhenjie Yang, Mengjun Wu, Weibang Jiang, Zhiwei Guo, Wei Zhang, Rui Liu, Shangen Zhang, Yong Li, Yi Ding, Cuntai Guan · DOI

Abstract

Electroencephalography (EEG) signals are inherently noisy and vary significantly across individuals and hardware, making the development of generalized models challenging. Traditional approaches often treat EEG tasks in isolation, ignoring the semantic relationships between different experimental paradigms. We present ELASTIQ, a novel foundation model that leverages natural language instructions to unify diverse EEG tasks. By aligning brain signals with semantic task descriptions and label embeddings, ELASTIQ achieves state-of-the-art performance across 20 datasets, demonstrating the power of language as a guiding prior for neural signal decoding.

Introduction

Electroencephalography (EEG) is a cornerstone of non-invasive brain-computer interfaces (BCIs), yet it remains one of the most difficult modalities for machine learning. The signals are characterized by low signal-to-noise ratios and high inter-subject variability. Historically, researchers have developed "siloed" models—specialized architectures for specific tasks like motor imagery or emotion recognition. These models typically treat labels as arbitrary discrete integers, neglecting the rich semantic information inherent in the task itself.

ELASTIQ addresses this gap by introducing a "semantic bridge" between brain activity and natural language. By treating task instructions (e.g., "Decode emotion from EEG") as a guiding prior, the model can effectively transfer knowledge across disparate datasets and hardware configurations, significantly improving generalizability in real-world BCI applications.

Methodology

The ELASTIQ framework utilizes a two-stage training pipeline designed to produce linguistically grounded brain representations.

The ELASTIQ architecture: (a) Pretraining via Spectral-Temporal Reconstruction (STR) and (b) Downstream alignment using the Instruction-conditioned Q-Former (IQF).
  1. Spectral-Temporal Reconstruction (STR): In the pretraining phase, the model learns the fundamental "grammar" of EEG signals. Moving beyond simple temporal masking, ELASTIQ employs Frequency Masking—removing specific frequency bands from the input. This dual approach forces the model to reconstruct both the temporal dynamics and the spectral "rhythms" of the brain waves, leading to more robust feature extraction.
  2. Instruction-conditioned Q-Former (IQF): This stage introduces semantic alignment. The model receives a natural language instruction and label semantics. Feature-wise Linear Modulation (FiLM) is used to "inject" instruction embeddings into the EEG features, directing the model's attention to task-relevant signal components. Subsequently, a Q-Former aligns these modulated features with textual label embeddings through learnable queries, ensuring that the neural representations reside in the same semantic space as the descriptive text.

Experimental Evaluation

The model was pretrained on a massive corpus of 9 datasets, totaling approximately 1,153 hours of EEG data. Evaluation was conducted across 20 downstream datasets spanning five major BCI categories:

  • Motor Imagery (MI): Imagining moving hands or feet.
  • Emotion Recognition: Detecting feelings like "Happy" or "Sad."
  • SSVEP: Brain responses to flickering lights at specific frequencies.
  • Covert Speech: Imagining speaking specific words.
  • Healthcare: Detecting ADHD or assessing mental workload.

Results and Discussion

ELASTIQ established a new benchmark for EEG foundation models, achieving state-of-the-art (SOTA) results on 14 out of 20 evaluated datasets. It consistently outperformed existing foundation models such as LaBraM and BIOT across all task categories. Even in zero-shot scenarios, providing task-level instructions yielded an average gain of 1.77% to 2.12% in balanced accuracy.

A key finding of this work is the role of instructions as semantic priors. Visualization of the feature space reveals that explicit instructions actively restructure how the model perceives EEG data.

t-SNE visualization of the EEG feature space under different instruction conditions, showing how semantic priors improve class separation.

As shown in the visualization, without instructions, features from different classes often overlap significantly. Providing task-level and target-level instructions "pushes" these clusters apart, facilitating more accurate classification. In "misleading" experiments where the model was given incorrect instructions, its internal representations shifted to match the structure of the wrong task, proving that the model is genuinely utilizing the semantic context rather than just memorizing patterns.

Conclusion and Future Work

ELASTIQ demonstrates that natural language is a powerful tool for regularizing and unifying noisy neural signals. By aligning EEG with semantic instructions, the model achieves unprecedented cross-task generalizability. While the current architecture focuses on offline performance, future work will involve optimizing these transformer-based models for real-time, low-latency BCI hardware and expanding the framework to other physiological modalities like ECG or EMG to create a universal bio-signal foundation model.

Summary updated

BibTeX
@misc{jiang2025elastiq,
  author = {Muyun Jiang and Shuailei Zhang and Zhenjie Yang and Mengjun Wu and Weibang Jiang and Zhiwei Guo and Wei Zhang and Rui Liu and Shangen Zhang and Yong Li and Yi Ding and Cuntai Guan},
  title = {{ELASTIQ: EEG-Language Alignment with Semantic Task Instruction and Querying}},
  year = {2025},
  eprint = {2509.24302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24302},
}
Figure