MapGuide: A Simple yet Effective Method to Reconstruct Continuous Language from Brain Activities

Xinpei Zhao, Jingyuan Sun, Shaonan Wang, Jing Ye, Xiaohan Zhang, Chengqing Zong

Abstract

MapGuide is a novel two-stage framework designed to reconstruct continuous language from non-invasive fMRI brain signals. By directly mapping neural activity to semantic text embeddings using a Transformer-based mapper and a GPT-guided generation process, MapGuide achieves significant performance improvements over existing state-of-the-art methods, including a reported 77% increase in BLEU scores and a 54% increase in METEOR scores. This approach addresses the inherent noise and low temporal resolution of fMRI data through contrastive learning and guided decoding.

Introduction

Decoding human thoughts into text represents a significant milestone in neuro-AI, with profound implications for assisting individuals with speech disabilities. While invasive methods have shown success, they require surgical intervention. Non-invasive alternatives like functional Magnetic Resonance Imaging (fMRI) are safer but present substantial challenges: signals are noisy, the relationship between language and neural response is highly non-linear, and fMRI's temporal resolution is significantly slower than natural speech.

Previous research, notably by Tang et al. (2022), utilized indirect encoding models to predict brain responses from text. MapGuide argues that this indirect approach is sub-optimal and instead proposes a direct decoding path—mapping brain signals directly to the semantic space of language.

Methodology

The MapGuide framework consists of two primary stages designed to bridge the gap between neural activity and natural language.

Stage A: Mapping (fMRI → Embeddings)

Rather than employing simple linear models, MapGuide uses a Transformer-based mapper to translate fMRI signals into text embeddings. To address the spatial redundancy and noise inherent in fMRI data, the authors implement a random mask method combined with contrastive learning (infoNCE loss). By masking portions of the fMRI data and aligning masked and unmasked versions in a latent space, the model learns robust, denoised representations of brain activity.

Stage B: Guiding (Embeddings → Text)

The predicted embeddings from Stage A are used to steer a pre-trained Large Language Model (GPT). During the text generation phase, a beam search algorithm evaluates multiple possible word continuations. At each step, the model selects candidates whose semantic embeddings most closely align with the predicted embeddings derived from the brain data.

The MapGuide two-stage framework: Stage A maps fMRI signals to embeddings via a Transformer-based mapper with contrastive learning; Stage B uses these embeddings to guide GPT-based text generation.

Experimental Setup

The study utilizes the public dataset provided by LeBel et al. (2023), consisting of fMRI recordings from three subjects listening to naturally spoken stories. The dataset includes 27,449 training samples and a separate test story of 291 samples. Preprocessing involved selecting 10,000 cortical voxels primarily from the auditory cortex and surrounding language-processing regions to ensure consistency with prior benchmarks.

Results and Discussion

MapGuide establishes a new state-of-the-art (SOTA) for non-invasive language reconstruction, significantly outperforming the previous best model by Tang et al.

Quantitative Performance

As shown in the results below, MapGuide achieves superior performance across multiple metrics, including Word Error Rate (WER), BLEU, METEOR, and BERT scores. The improvement is consistent across all three subjects, particularly in the 'story-zscore' metrics which measure improvement over random generation.

Extracted figure from page 5 of MapGuide: A Simple yet Effective Method to Reconstruct Continuous Language from Brain Activities

Key Insights

  • Direct Decoding Superiority: Direct mapping from brain activity to semantic embeddings is fundamentally more powerful for reconstruction than indirect encoding approaches.
  • Non-linear Modeling: The complex, non-linear relationships in neural language processing are better captured by Transformer-based architectures than traditional linear models.
  • Precision Correlation: Analysis reveals a clear positive correlation between the accuracy of embedding predictions (Stage A) and the quality of final text reconstruction (Stage B), suggesting that future improvements in mapping will directly translate to better decoding.

Conclusion and Future Work

MapGuide demonstrates that a direct, non-linear mapping approach significantly enhances the reconstruction of continuous language from fMRI signals. Despite these advancements, limitations remain, including the current focus on the English language and the requirement for subject-specific training data. Future research will explore cross-lingual effectiveness and the potential for universal decoders that function across different individuals, possibly incorporating pre-trained brain foundation models.

Summary updated

BibTeX
@inproceedings{zhao2024mapguide,
  author = {Xinpei Zhao and Jingyuan Sun and Shaonan Wang and Jing Ye and Xiaohan Zhang and Chengqing Zong},
  title = {{MapGuide: A Simple yet Effective Method to Reconstruct Continuous Language from Brain Activities}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.211},
}
Figure