ECHO: Toward Contextual Seq2Seq Paradigms in Large EEG Models

Chenyu Liu, Yuqiu Deng, Tianyu Liu, Jinan Zhou, Xinliang Zhou, Ziyu Jia, Yi Ding

Overview

Electroencephalography (EEG) has a broad range of applications, from clinical diagnostics to brain-computer interfaces. However, building models that generalize effectively across diverse tasks and datasets remains a significant challenge.

To address this, researchers have introduced ECHO, a novel decoder-centric, sequence-to-sequence (Seq2Seq) paradigm for Large EEG Models (LEMs). By treating EEG classification as a next-token prediction task and utilizing "support samples" as context, ECHO enables In-Context Learning (ICL) for brainwaves. This allows the model to dynamically adapt to new, heterogeneous tasks and datasets without requiring parameter updates or fine-tuning.

The Problem with Current EEG Models

In the landscape of Large EEG Models, the prevailing status quo is "encoder-centric." Researchers typically pretrain massive encoders on unlabeled data to learn universal brainwave representations, but then attach a lightweight, task-specific classifier (the decoder) to the end of the pipeline.

The authors identify two major flaws in this conventional approach:

  1. The Decoder Bottleneck: A weak decoder cannot fully exploit the rich, complex features extracted by a powerful encoder. Conversely, fine-tuning the entire stack to fix this often leads to "catastrophic forgetting," where the model loses its generalized capabilities to satisfy a small, specific dataset.
  2. The Semantic Gap: Some recent approaches attempt to use Large Language Models (LLMs) as decoders. However, dynamic time-series EEG signals do not map cleanly to text embeddings. This "LLM-centric" approach often forces the model to rely on superficial correlations rather than genuine neural reasoning.
Comparison of EEG decoding paradigms and ECHO's multi-task performance.

ECHO aims to bridge this gap by establishing a unified Seq2Seq framework. Instead of forcing text mappings, the model learns the layered relationships between signals, tasks, and labels entirely within a shared sequence space.

The ECHO Methodology

ECHO (Contextual Seq2Seq Paradigm) shifts the heavy lifting to a Transformer-based decoder. Its architecture is built on three main stages:

1. Channel Alignment (Preprocessing)

EEG datasets are notoriously messy, featuring different headsets with varying channel counts and spatial locations. ECHO handles this by mapping all inputs to a standardized 75-channel template using a mapping set and simple adjacent aggregation, ensuring a unified input format.

2. The Encoder

A simplified deep Convolutional Neural Network (ConvNet) processes the standardized EEG signals, segmenting them into window-level tokens to capture spatial and temporal features.

3. The Decoder-Centric Seq2Seq Formulation

This is ECHO's core innovation. Instead of outputting a single class probability, the model is trained to predict a sequence. The input prompt is structured as: [Support EEG + Labels] -> [Target EEG] -> [Task Token] -> [Label Token].

To help the model distinguish between continuous EEG dynamics and discrete task/label symbols, ECHO uses a hybrid positional encoding strategy:

  • Window-level: Captures temporal dynamics within a single EEG sample.
  • Sample-level: Distinguishes between the provided "support" samples and the "target" sample being evaluated.
  • Text-level: Encodes the semantics of the discrete task and label markers.
The ECHO architecture, featuring channel alignment, encoder-decoder blocks, and contextual training.

The model undergoes Contextual Training, learning to perform next-token prediction using varying numbers of "support samples" (worked examples). This effectively teaches the model how to perform In-Context Learning directly from the prompt.

Key Insights and Results

The authors evaluated ECHO on a massive scale using 12 public EEG datasets covering six task categories, including Emotion Recognition (e.g., SEED), Motor Imagery (e.g., BCIC-IV-2a), and Clinical assessments (e.g., Depression and Stress detection).

  • EEG as a Language: ECHO proves that EEG classification can be successfully reframed as a translation or completion task. By providing "support pairs" (an EEG sample and its corresponding label) in the input prompt, the model learns to reason by analogy.
  • State-of-the-Art Multi-Task Performance: In multi-task settings, ECHO consistently outperformed the strongest single-task baselines (such as LaBraM and BIOT). On cognitive tasks, it achieved an average improvement of +0.0602 in Balanced Accuracy and +0.0566 in ROC AUC.
  • Zero-Shot Generalization: When tested on completely unseen datasets, ECHO significantly outperformed encoder-only baselines. This demonstrates that its Seq2Seq formulation is highly robust to new acquisition settings and paradigms without needing weight updates.
  • Computational Efficiency: Despite its robust capabilities, ECHO remains computationally efficient, requiring only 2.91G MACs—lower than several prominent baselines like CodeBrain and EEGPT.

Limitations and Future Work

While ECHO excels at multi-tasking and generalization, it faces a specialization trade-off. It can occasionally fall behind models that are explicitly fine-tuned for a single, highly specialized domain (e.g., specific clinical seizure detection). Additionally, the effectiveness of In-Context Learning heavily depends on the quality of the support samples; in datasets with extreme cross-subject variability, "noisy" support samples can degrade performance.

Future work will likely focus on scaling the encoder capacity and developing more sophisticated retrieval mechanisms to select the most helpful support samples for the context window, further bridging the gap between generalized foundation models and specialized clinical tools.

Summary updated

BibTeX
@inproceedings{liu2026echo,
  author = {Chenyu Liu and Yuqiu Deng and Tianyu Liu and Jinan Zhou and Xinliang Zhou and Ziyu Jia and Yi Ding},
  title = {{ECHO: Toward Contextual Seq2Seq Paradigms in Large EEG Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ClLQ6cLkoR},
}
Figure