Brain-Inspired fMRI-to-Text Decoding via Incremental and Wrap-Up Language Modeling

Wentao Lu, Dong Nie, Pengcheng Xue, Zheng Cui, Piji Li, Daoqiang Zhang, Xuyun WenNeurIPS 2025

TL;DR

Researchers have developed CogReader, a brain-inspired framework that decodes long-form text from fMRI signals by mimicking human reading strategies. By breaking brain activity into segments and using a "wrap-up" mechanism to carry context forward, the model significantly reduces "semantic drift" and outperforms existing methods in translating complex thoughts into natural language.

What Problem Does This Paper Address?

Translating non-invasive brain signals, such as functional magnetic resonance imaging (fMRI), into text is a holy grail for brain-computer interfaces (BCIs). While Large Language Models (LLMs) have made "open-vocabulary" decoding possible, they struggle significantly with long sequences.

Most current models attempt to process an entire fMRI sequence in one giant leap. This leads to two major issues:

  1. Memory Overload: fMRI data is high-dimensional and computationally expensive to process all at once.
  2. Semantic Drift: In long sequences, models often "lose the thread," resulting in decoded text that starts strong but becomes nonsensical or disconnected from the original stimulus over time.

The authors argue that these models fail because they do not process language the way humans do. Humans do not wait until the end of a story to understand it; we process words incrementally and periodically "wrap up" our understanding at the end of phrases or sentences to consolidate meaning.

Comparison of fMRI-to-text decoding frameworks showing the shift from single-step to segmented processing.

Methods

The authors introduce CogReader, which employs two main innovations to tackle these challenges:

1. Sequential Decoding with a Wrap-Up Mechanism

Instead of feeding the whole fMRI sequence into an LLM, CogReader divides it into consecutive segments aligned with optimal comprehension lengths.

  • Incremental Decoding: Each segment is decoded into text word-by-word.
  • Segmental Wrap-Up: A pretrained BERT model summarizes the decoded text from the current segment into a "semantic summary vector." This vector is then fed into the next segment as prior knowledge, ensuring the model maintains a coherent narrative across the entire sequence.

2. Text-Guided Masking for Representation Learning

To help the model learn better brain features, the authors used a Masked Autoencoder (MAE) framework with a unique twist. While standard MAEs mask data randomly, CogReader uses a text-guided masking strategy:

  • It uses BERT's attention mechanism to identify which words in the stimulus text are semantically "salient" (important).
  • It then selectively masks the fMRI time points corresponding to those important words.
  • This forces the brain encoder to work harder to reconstruct the most meaningful parts of the neural signal, resulting in much richer fMRI embeddings.
The overall CogReader framework, illustrating the two-stage training and the incremental decoding process.

Datasets

The study utilized three major neuroimaging datasets to train and validate the model:

  • HCP S1200: A massive dataset of 1,206 healthy adults used for initial self-supervised pretraining of the brain encoder.
  • Narratives: A benchmark dataset containing fMRI recordings of 345 participants listening to 27 real-world stories. This served as the primary dataset for finetuning and decoding.
  • Huth Dataset: fMRI data from 8 subjects listening to naturally spoken stories (e.g., The Moth podcasts), used for additional evaluation.

Key Insights and Ideas

  • Cognitive Alignment Matters: The most striking insight is that mimicking human cognitive constraints—like working memory and segmental integration—actually makes AI models better at decoding brain activity.
  • Attention-Driven Learning: By using text-based attention to guide fMRI masking, the researchers successfully bridged the gap between the two modalities (language and neural activity) before decoding even began.
  • Coherence over Length: Unlike traditional models whose performance plummets as the input grows, CogReader’s advantage over state-of-the-art (SOTA) methods actually increases as the decoding length gets longer.

Key Results

CogReader was tested against SOTA models like UniCoRN and BP-GPT across various sequence lengths (20, 40, and 60 time points).

  • Quantitative Superiority: On the Narratives dataset (60-time-point window), CogReader achieved a BLEU-1 score of 36.2, significantly higher than the next best model (PREDFT at 26.4).
  • Semantic Accuracy: It also led in BERTScore (a measure of semantic similarity), hitting 54.5 compared to the SOTA average of ~45-48.
  • Qualitative Success: In case studies, CogReader was able to accurately capture specific names and phrases (like "Pie Man" or "Ego sum non an bestia") where other models produced generic or unrelated text.

Limitations and Future Work

  • Static Segmentation: Currently, the model uses fixed-length segments. The authors note that humans adjust their "wrap-up" points based on the complexity of the text. Future versions could use content-adaptive segmentation that predicts boundaries based on narrative shifts.
  • Temporal Resolution: fMRI has a relatively slow temporal resolution (one image every ~1-2 seconds). Integrating CogReader with EEG, which has high temporal resolution, could lead to even more precise real-time decoding.
  • Data Scarcity: While the results are impressive, the model still relies on paired fMRI-text data, which is difficult and expensive to collect. Expanding to more diverse, larger-scale datasets remains a priority for the field.

Summary updated

BibTeX
@inproceedings{lu2025brain,
  author = {Wentao Lu and Dong Nie and Pengcheng Xue and Zheng Cui and Piji Li and Daoqiang Zhang and Xuyun Wen},
  title = {{Brain-Inspired fMRI-to-Text Decoding via Incremental and Wrap-Up Language Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=REIo9ZLSYo},
}
Figure