BrainChat: Decoding Semantic Information from fMRI using Vision-language Pretrained Models
Wanaiu Huang
TL;DR
BrainChat introduces a two-stage framework that decodes semantic information from fMRI by marrying Masked Brain Modeling (MBM) with a fixed, decoder-based vision-language model (CoCa). It aligns fMRI with image and text embeddings through cross-modal contrastive losses and generates textual content via a cross-attentive brain decoder, enabling fMRI captioning and, for the first time, fMRI question answering (fQA). The approach demonstrates state-of-the-art performance in fMRI captioning and robust fQA capability, even under data-limited conditions, highlighting potential clinical impact for AAC and human-computer interaction. The work also shows that decoding semantic information from brain activity can be achieved without image data, broadening applicability to real-world settings with restricted data availability.
Abstract
Semantic information is vital for human interaction, and decoding it from brain activity enables non-invasive clinical augmentative and alternative communication. While there has been significant progress in reconstructing visual images, few studies have focused on the language aspect. To address this gap, leveraging the powerful capabilities of the decoder-based vision-language pretrained model CoCa, this paper proposes BrainChat, a simple yet effective generative framework aimed at rapidly accomplishing semantic information decoding tasks from brain activity, including fMRI question answering and fMRI captioning. BrainChat employs the self-supervised approach of Masked Brain Modeling to encode sparse fMRI data, obtaining a more compact embedding representation in the latent space. Subsequently, BrainChat bridges the gap between modalities by applying contrastive loss, resulting in aligned representations of fMRI, image, and text embeddings. Furthermore, the fMRI embeddings are mapped to the generative Brain Decoder via cross-attention layers, where they guide the generation of textual content about fMRI in a regressive manner by minimizing caption loss. Empirically, BrainChat exceeds the performance of existing state-of-the-art methods in the fMRI captioning task and, for the first time, implements fMRI question answering. Additionally, BrainChat is highly flexible and can achieve high performance without image data, making it better suited for real-world scenarios with limited data.
