Skip to main content
QUICK REVIEW

[Paper Review] Thought2Text: Text Generation from EEG Signal using Large Language Models (LLMs)

Abhijit Mishra, Shreya Shukla|arXiv (Cornell University)|Oct 10, 2024
Advanced Text Analysis TechniquesComputer Science3 citations
TL;DR

This paper introduces Thought2Text, a novel method that generates natural language descriptions directly from EEG signals using instruction-tuned large language models (LLMs) fine-tuned on multimodal EEG and image-text data. By leveraging visual stimuli to elicit language-agnostic brain responses, the approach achieves robust text generation from EEG alone, demonstrating strong performance across multiple LLMs and validating its efficacy through human and GPT-4-based evaluations.

ABSTRACT

Decoding and expressing brain activity in a comprehensible form is a challenging frontier in AI. This paper presents Thought2Text, which uses instruction-tuned Large Language Models (LLMs) fine-tuned with EEG data to achieve this goal. The approach involves three stages: (1) training an EEG encoder for visual feature extraction, (2) fine-tuning LLMs on image and text data, enabling multimodal description generation, and (3) further fine-tuning on EEG embeddings to generate text directly from EEG during inference. Experiments on a public EEG dataset collected for six subjects with image stimuli and text captions demonstrate the efficacy of multimodal LLMs (LLaMA-v3, Mistral-v0.3, Qwen2.5), validated using traditional language generation evaluation metrics, as well as fluency and adequacy measures. This approach marks a significant advancement towards portable, low-cost "thoughts-to-text" technology with potential applications in both neuroscience and natural language processing.

Motivation & Objective

  • To develop a low-cost, portable thought-to-text system using noninvasive EEG and large language models (LLMs).
  • To overcome the challenge of generating coherent text directly from EEG signals, which are noisy and low-resolution.
  • To minimize cognitive bias in EEG data collection by using visual stimuli instead of textual stimuli to elicit thought-like brain activity.
  • To enable scalable, multilingual text generation from brain signals by leveraging the generalization capacity of instruction-tuned LLMs.
  • To validate the approach on a public, real-world EEG dataset collected with affordable 128-channel devices in less constrained environments.

Proposed method

  • Train a deep multichannel neural encoder to extract visual-like features from raw 128-channel EEG signals collected during visual stimulus presentation.
  • Fine-tune instruction-tuned LLMs (e.g., LLaMA-v3, Mistral-v0.3, Qwen2.5) on paired image and text data to learn multimodal description generation.
  • Project both image embeddings and EEG embeddings into a shared token space to align brain signals with linguistic outputs during joint fine-tuning.
  • Further fine-tune the LLMs using EEG embeddings and corresponding GPT-4-generated image captions to learn direct EEG-to-text mapping.
  • During inference, generate text using only the EEG signal and a generic prompt (e.g., 'Describe the image seen'), bypassing the need for image input.
  • Use a public 128-channel EEG dataset from six subjects viewing visual stimuli, with gold-standard captions generated by GPT-4 and validated by experts.
Figure 1: Multi stage training process for Thought2Text solution. Stage1: EEG ChannelNet generates embeddings from raw EEG signals. The encoder is trained using a combined loss function, which includes: (1) MSE loss from aligning the EEG embeddings with the image sketch pooled embeddings generated b
Figure 1: Multi stage training process for Thought2Text solution. Stage1: EEG ChannelNet generates embeddings from raw EEG signals. The encoder is trained using a combined loss function, which includes: (1) MSE loss from aligning the EEG embeddings with the image sketch pooled embeddings generated b

Experimental results

Research questions

  • RQ1Can instruction-tuned LLMs be effectively fine-tuned to generate coherent and accurate text descriptions directly from EEG signals?
  • RQ2Does using visual stimuli instead of textual stimuli reduce cognitive processing bias in EEG data and improve the generalization of thought-to-text models?
  • RQ3How well do multimodal LLMs perform in generating text from EEG embeddings alone, compared to baseline methods or chance?
  • RQ4To what extent do model architectures (e.g., LLaMA, Mistral, Qwen) generalize across subjects and maintain performance in cross-subject and in-subject evaluations?
  • RQ5What are the failure modes of EEG-to-text generation, and how do misclassifications in object recognition affect the quality of generated descriptions?

Key findings

  • The proposed method achieved significant performance improvements over chance baseline, with GPT-4-based evaluations confirming the quality of generated descriptions.
  • Human expert evaluations validated the coherence and relevance of generated text, with agreement scores of 93% between annotators and 96–98% accuracy on caption correctness.
  • Even when the EEG encoder misclassified objects (e.g., flower as mushroom), the LLM still generated plausible and coherent descriptions, demonstrating robustness of EEG embeddings.
  • The model maintained strong performance across both in-subject and cross-subject evaluations, indicating generalization capability across different individuals.
  • Instances of hallucination and misidentification (e.g., coffee maker as computer, elephant as panda) were observed, highlighting challenges in object recognition from EEG.
  • The approach outperformed prior EEG-to-text methods by integrating LLMs with prompt engineering and fine-tuning, marking the first use of such a framework for direct EEG-to-text generation.
(a) Llama-3-8B - GPT4 Adequacy
(a) Llama-3-8B - GPT4 Adequacy

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.