Generative Language Reconstruction from Brain Recordings

Ziyi Ye, Qingyao Ai, Yiqun Liu, Maarten de Rijke, Min Zhang, Christina Lioma, Tuukka Ruotsalo

Abstract

Language reconstruction from non-invasive brain recordings has been a long-standing challenge. Existing research has addressed this challenge with a classification setup, where a set of language candidates are pre-constructed and then matched with the representation decoded from brain recordings. Here, we propose a new method that addresses language reconstruction through auto-regressive generation, which directly uses the representation decoded from functional magnetic resonance imaging (fMRI) as the input for a large language model (LLM), removing the reliance on the accuracy of pre-constructed candidates. While an LLM can already generate high-quality content, our approach produces results more closely aligned with the visual or auditory language stimuli in response to which brain recordings are sampled, especially for content deemed “surprising” for the LLM. Furthermore, we show that the proposed approach can be used in an auto-regressive manner to reconstruct a 10-minute-long stimulus, which outperforms previous methods with a classification setup. Our findings demonstrate the effectiveness of employing brain language interfaces in a generative setup and delineate a promising path to investigating language formation in the human brain.

Introduction: Beyond Classification

Decoding human thoughts into text has long been a "holy grail" of neuroscience. Until recently, most brain-to-text systems operated on a classification basis: the system would attempt to match a brain recording to the best fit from a pre-constructed list of candidate sentences. However, human thought is infinite and "open-world." If a thought falls outside the pre-defined list, these systems fail.

This research introduces BrainLLM, a generative reconstruction system that synthesizes novel sentences word-by-word, directly informed by neural activity. By using brain recordings as "soft prompts" for a Large Language Model (LLM), the system allows for open-ended reconstruction and is particularly effective at capturing unconventional language that an LLM wouldn't predict on its own.

The BrainLLM Framework

BrainLLM bridges the gap between functional magnetic resonance imaging (fMRI) and LLMs (such as Llama-2 and GPT-2). The researchers utilized three public fMRI datasets—Pereira’s (Wikipedia sentences), Huth’s (narrative stories), and the Narratives dataset—to train and validate the model.

The BrainLLM framework (a) and qualitative reconstruction examples (b).

The architecture consists of three primary components:

  1. The Brain Adapter: A neural network (6 million parameters) that transforms raw fMRI BOLD signals into hidden vectors matching the internal embedding space of the LLM.
  2. Prompt Tuning: To handle the small size of brain datasets, the researchers froze the LLM's weights and only trained the Brain Adapter and specific "brain tokens."
  3. Auto-regressive Generation: The system concatenates a text prompt (context) with the decoded brain embedding. The LLM then predicts the next word, feeding it back into the context to reconstruct entire stories.

Key Insights and Performance

A critical finding is BrainLLM's ability to correct LLM "hallucinations." LLMs typically predict the most statistically likely next word. When a stimulus is "surprising" (low probability), the brain signal acts as a corrective force, steering the LLM toward the actual experience of the participant rather than its statistical guess.

Quantitative Success

  • Outperforming SOTA: BrainLLM achieved a 25.7% gain in the METEOR similarity metric compared to previous state-of-the-art classification methods for full-text reconstruction of 10-minute stories.
  • Scaling Effects: Reconstruction quality improves as the LLM size increases (e.g., moving from GPT-2 to Llama-2 7B) and as more training data is provided.
  • Cortical Versatility: The system works effectively with signals from specific regions like Broca’s area or the auditory cortex, suggesting linguistic information is robustly distributed across the brain.

Limitations and Future Outlook

Despite its success, BrainLLM faces challenges inherent to fMRI technology. The BOLD signal has a multi-second lag, making real-time communication difficult. Additionally, the system remains "data-hungry," requiring hours of recording per participant to achieve high fidelity.

Future work may involve integrating this generative approach with faster, more invasive recordings like ECoG. This could move the field closer to high-speed, high-fidelity speech prosthetics for individuals with aphasia or locked-in syndrome.

Summary updated

BibTeX
@inproceedings{ye2025generative,
  author = {Ziyi Ye and Qingyao Ai and Yiqun Liu and Maarten de Rijke and Min Zhang and Christina Lioma and Tuukka Ruotsalo},
  title = {{Generative Language Reconstruction from Brain Recordings}},
  booktitle = {Communications Biology},
  year = {2025},
  url = {https://openreview.net/forum?id=RVu3C1Cz45},
}
Figure