Language Reconstruction with Brain Predictive Coding from fMRI Data

Congchi Yin, Ziyi Ye, Piji Li

TL;DR

PREDFT is a novel framework that reconstructs continuous language from fMRI brain signals by leveraging the neurological theory of "predictive coding"—the idea that our brains naturally forecast upcoming words. By using a dual-network architecture that explicitly captures these neural predictions, the model achieves state-of-the-art performance in translating thoughts into coherent text across both within-subject and cross-subject datasets.

What Problem Does This Paper Address?

Reconstructing natural language from functional magnetic resonance imaging (fMRI) is a "holy grail" of brain-machine interfaces, offering deep insights into how the human brain processes speech. However, it is notoriously difficult due to the high noise levels in fMRI data and its low temporal resolution (a single fMRI scan might span several spoken words).

Existing models often treat brain signals as simple responses to current stimuli. This overlooks a fundamental aspect of human cognition: predictive coding. Neuroscience suggests the brain is a "prediction machine," constantly forecasting future words across multiple timescales to make sense of incoming speech. The authors of this paper argue that if the brain is already predicting the future, decoding models should tap into those predictive signals to improve reconstruction accuracy.

Methods

The authors propose PREDFT (fMRI-to-Text decoding with Predictive coding), which utilizes a two-stream architecture:

  1. Main Network ($M_\theta$): This is the primary decoder. It uses an fMRI encoder (3D-CNNs for volumetric data or linear layers for surface data) to extract spatial features, followed by a Transformer encoder to capture temporal dynamics. A Transformer decoder then generates the final text.
  2. Side Network ($M_\phi$): This is the "secret sauce." It focuses on specific Regions of Interest (ROIs) known to be involved in language prediction (e.g., the Superior Temporal Sulcus). During training, this network is tasked with predicting future word embeddings based on current brain activity.
  3. Fusion Mechanism: The predictive representations from the side network are fused into the main network via a specialized Predictive Coding Attention Layer. This allows the main decoder to "peek" at what the brain is likely predicting next to guide its own word generation.
Figure 2: The framework of PREDFT in the training stage.

Crucially, the model uses a Finite Impulse Response (FIR) model to account for the hemodynamic lag—the delay between neural activity and the blood-oxygen-level-dependent (BOLD) signal measured by fMRI. During inference, the side network's decoder is discarded, but its encoder continues to provide predictive heuristics to the main network.

Figure 5: The framework of PREDFT in the inference stage. The decoder in side network is discarded.

Datasets

The model was evaluated on two major naturalistic language comprehension datasets:

  • LeBel’s Dataset: Used for within-subject decoding (training and testing on the same individual).
  • Narratives Dataset: A much larger dataset (230 subjects) used to test cross-subject decoding, which is significantly more challenging due to anatomical differences between individuals.

Key Insights and Ideas

  • The "Goldilocks Zone" of Prediction: The authors performed a preliminary experiment to verify that brain signals actually correlate with future words. They found that there is an optimal window for prediction: forecasting about 4 words ahead ($d=4$) for a length of 4–6 words ($l=4-6$) yielded the highest correlation scores.
  • Spatial Specificity: Not all brain regions are created equal. The model performs best when the side network focuses on "Brain Predictive Coding" (BPC) areas like the Superior Temporal Sulcus (STS) and Inferior Frontal Gyrus (IFG). Using the "whole brain" is sub-optimal, and using random ROIs leads to poor results.
  • Mitigating Information Loss: Because fMRI samples slowly (typically every 2 seconds), the brain's response to the last few words in a window is often "lost" or blurred. The authors demonstrated that by incorporating predictive coding, PREDFT successfully reduces the error probability for these "end-of-window" words compared to baseline models.

Key Results

PREDFT consistently outperformed existing state-of-the-art models (like Tang’s GPT-based pipeline and UniCoRN) across multiple metrics:

  • Within-Subject (LeBel's): Achieved a 34.95% BLEU-1 score, significantly higher than the ~27% achieved by the next best model (MapGuide).
  • Cross-Subject (Narratives): On a 60-second fMRI sequence, it reached a 27.80% BLEU-1 score, outperforming UniCoRN’s 21.76%.
  • Ablation Study: Removing the side network (PREDFT w/o SideNet) caused a sharp drop in performance, confirming that the predictive coding mechanism is the primary driver of the model's success.

Limitations and Future Work

  • Temporal Resolution: Even with predictive coding, fMRI's low temporal resolution remains a barrier. The authors suggest that applying this framework to higher-resolution modalities like Magnetoencephalography (MEG) could be a promising next step.
  • Unexpected Stimuli: The model relies on the brain's natural predictions. If a subject hears something completely unexpected or nonsensical, the brain's "prediction" might be wrong, potentially distracting the decoder.
  • Semantic vs. Word-Level: The authors note that while word-level metrics (like BLEU) are standard, the field might benefit from moving toward semantic-level evaluations, as the model often captures the gist of a sentence even when it misses specific words.

Summary updated

BibTeX
@misc{yin2024language,
  author = {Congchi Yin and Ziyi Ye and Piji Li},
  title = {{Language Reconstruction with Brain Predictive Coding from fMRI Data}},
  year = {2024},
  eprint = {2405.11597},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.11597},
}
Figure