Abstract
Brain-to-text decoding via electroencephalography (EEG) faces a significant challenge: "hallucination," where large language models (LLMs) generate fluent but ungrounded text. We present GLIM (Generative Language Inspection Model), a framework that reframes EEG-to-text generation as semantic summarization. By aligning noisy EEG signals with the latent space of a frozen LLM and training on multiple paraphrased text variants (MTVs), GLIM achieves state-of-the-art performance. Our results demonstrate that learning interpretable semantic representations, rather than word-for-word translation, leads to text generation that is truly grounded in neural activity.
Introduction: The Hallucination Problem in BCI
Generative brain decoding is a cornerstone for advanced brain-computer interfaces (BCIs). However, current models often suffer from posterior collapse, where the LLM ignores noisy EEG inputs and generates plausible-sounding sentences based on internal linguistic priors. This makes it difficult to distinguish between genuine neural decoding and sophisticated guessing. Furthermore, the information density of EEG is significantly lower than that of natural language, making verbatim reconstruction an inherently ill-posed problem.
Methods: The GLIM Framework
GLIM introduces a paradigm shift by treating brain-to-text decoding as semantic summarization. The architecture consists of three primary components:
- Domain-Adaptive EEG Encoder & Querying Aligner: This module maps EEG signals into the latent space of a frozen Flan-T5 LLM. Freezing the LLM prevents "representation drift" and forces the encoder to find embeddings the LLM already understands.
- Multiple Text Variants (MTVs): To focus on core concepts rather than specific syntax, the model is trained on multiple paraphrased versions of target sentences. This encourages the encoder to extract invariant semantic features.
- Contrastive-Generative Objective: The model optimizes a dual loss: a generative loss for text reconstruction and a contrastive loss to ensure alignment between EEG and text embeddings.
Experimental Setup
The model was evaluated using the ZuCo (1.0 and 2.0) datasets, which contain 128-channel EEG recordings of subjects reading naturally (NR) or performing task-specific reading (TSR). A strict 8:1:1 split was employed to ensure the model generalizes to unseen sentences.
Results and Discussion
GLIM significantly outperforms existing state-of-the-art models like EEG2Text across generation, retrieval, and classification tasks.
Grounding vs. Hallucination
A critical "Noise Input Test" was conducted by replacing EEG signals with Gaussian noise (denoted as $\mathcal{N}_{in}$ in results) at inference. While baseline models continued to generate fluent text, GLIM’s performance dropped sharply, confirming that its outputs are grounded in the actual brain signal rather than linguistic priors.
Semantic Fidelity
GLIM achieved 93.5% accuracy in identifying corpus topics and 42.7% accuracy in sentiment classification from generated text. Interestingly, the use of "domain prompts" (Task, Dataset, Subject) revealed that the Task prompt is the most influential factor, suggesting that cognitive intent significantly shapes neural encoding.
Conclusion
By prioritizing semantic faithfulness over verbatim reconstruction, GLIM provides a robust path forward for brain-to-text systems. While the frozen LLM may limit fine-grained lexical detail, the resulting grounding is essential for reliable BCI applications. Future work will explore closed-loop systems and human-in-the-loop refinement to further enhance decoding precision.
Summary updated