Introduction
Decoding human brain activity via electroencephalography (EEG) is a complex task due to the low signal-to-noise ratio of neural data and the lack of a clear semantic structure comparable to text or images. Traditionally, EEG decoding has relied on "siloed" models optimized for specific tasks, such as sleep staging or clinical anomaly detection. While recent foundation models have attempted to learn universal EEG representations, they typically require expensive task-specific fine-tuning. UniMind addresses these challenges by framing brain decoding as a conditional language modeling problem, allowing Large Language Models (LLMs) to interpret EEG signals across diverse tasks in a unified framework.
Methodology
UniMind bridges the "modality gap" between continuous spatiotemporal neural oscillations and discrete text tokens through three primary components:
- EEG Encoder: A pre-trained encoder (LaBraM) transforms raw EEG signals into a sequence of patch embeddings.
- Neuro-Language Connector (NLC): This module serves as the bridge to the LLM. It utilizes a dual-branch architecture—a Temporal Perceiver and a Spatial Perceiver—which use cross-attention to condense sparse EEG data into compact features representing when and where brain activity occurs.
- Task-aware Query Selection (TQS): To handle heterogeneous tasks, TQS employs a Query Pool and a Router. The router dynamically selects the most relevant query tokens for a given input, enabling the model to share knowledge between similar tasks while preventing interference between conflicting ones.
The resulting neural representations are prepended to a text prompt and fed into a frozen LLM (InternLM2.5-7B), which generates the final classification as text.
Datasets and Evaluation
The researchers evaluated UniMind on 10 publicly available EEG datasets covering five distinct domains:
- Sleep Stage Classification: HMC, SleepEDF, and SHHS.
- Emotion Recognition: SEED and SEED-IV.
- Clinical Anomaly/Epilepsy Detection: TUAB, TUEV, and TUSL.
- Cognitive Workload: The Workload dataset.
- Motor Imagery: SHU.
This comprehensive evaluation utilized an instruction-tuning dataset of approximately 929,000 samples.
Key Results
UniMind demonstrates significant improvements over existing multi-task and specialized models:
- State-of-the-Art Performance: UniMind outperformed the previous best multi-task model, NeuroLM, by an average of 12% across all datasets.
- Competitive with Specialists: It is the first multi-task model to achieve performance comparable or superior to specialized, single-task models (e.g., LaBraM) within a unified framework.
- Robustness on Small Data: On the small "Workload" dataset (1k samples), UniMind achieved a 15.22% boost in balanced accuracy, demonstrating effective knowledge transfer from larger datasets.
Discussion and Insights
The study reveals that LLMs possess an untapped "neural inference" capability; when EEG signals are correctly mapped into their semantic space, LLMs can reason about brain states using internal world knowledge. Furthermore, the researchers observed "mutual enhancement," where training on multiple tasks improves performance on individual ones. For instance, pairing epilepsy data with emotion data improved epilepsy task performance by 5.74%. Visualization of the TQS module also confirmed that the model naturally groups tasks involving similar brain regions, aligning with established neuroscientific principles.
Limitations and Future Work
While UniMind represents a significant advancement, future work will address its zero-shot generalization to entirely novel tasks and subjects. The authors also plan to move beyond classification toward "richer" decoding, such as reconstructing speech or visual images from brain waves, and integrating additional modalities like fMRI or MEG for a more holistic foundation for brain-computer interfaces.
Summary updated