Introduction
Deciphering human visual experiences from functional Magnetic Resonance Imaging (fMRI) is a fundamental challenge in neuroscience. While previous research has focused primarily on reconstructing the low-level pixel data of a viewed image, these approaches often fail to capture the high-level semantic meaning of a scene. The emerging field of "brain captioning"—translating neural signals into natural language—aims to bridge this gap. However, existing methods often struggle with the low signal-to-noise ratio (SNR) of fMRI data and the scarcity of labeled samples, leading to repetitive or inaccurate descriptions.
MindSemantix introduces a novel multi-modal framework that enables Large Language Models (LLMs) to "read" and describe visual experiences directly from fMRI activity. By aligning neural signals with language through a specialized architecture, it achieves state-of-the-art performance in generating descriptive captions and high-fidelity image reconstructions.
The MindSemantix Framework
The MindSemantix pipeline is an end-to-end system that transforms raw fMRI signals into both text and images. As shown in the overview below, the process begins with a visual stimulus that triggers brain activity, which is then captured as an input fMRI scan. This scan is processed by a Brain-Language Model to produce descriptive output text, which can further serve as a semantic prior for image reconstruction.
Architectural Components
The core of the system is the Brain-Language Model (BLM), which consists of three primary stages designed to overcome the inherent noise in neural data:
- Self-Supervised Pre-training (BED): To learn robust features from sparse fMRI data, the authors utilize a Brain Encoder-Decoder (BED) based on a Vision Transformer (ViT-Large). Using a Masked Auto-Encoder (MAE) approach, 75% of fMRI voxels are masked, forcing the encoder to learn generalizable neural representations across different subjects.
- Brain-Text Alignment (Brain Q-Former): Inspired by vision-language models like BLIP-2, the framework introduces a Brain Q-Former. This module uses learnable queries to extract language-informative features from the encoder's output, effectively acting as an information bottleneck that filters out neural noise.
- End-to-End Decoding: The extracted features are projected into the embedding space of a frozen Large Language Model (OPT-2.7B). The LLM then generates a natural language caption, essentially treating the brain signals as a semantic prompt.
Experimental Results
The model was evaluated using the Natural Scenes Dataset (NSD), which contains high-resolution 7-Tesla fMRI scans of subjects viewing images from the COCO dataset. MindSemantix significantly outperformed previous state-of-the-art (SOTA) methods across both quantitative and qualitative metrics.
Quantitative Performance
On Subject 1 of the NSD, MindSemantix achieved a Meteor score of 0.190 and a CIDEr score of 0.476, nearly doubling the performance of previous baselines (which scored 0.100 and 0.138, respectively). Furthermore, the model reached a CLIP similarity score of 0.755, indicating that the generated text closely matches the semantic content of the original images.
Qualitative Fidelity
The framework demonstrates a remarkable ability to capture the "gist" of a scene. While baseline models might provide generic descriptions like "an animal," MindSemantix provides specific details, such as "a large black bear walking through a grassy field." These high-quality captions serve as powerful priors for the visual reconstruction stage, where Stable Diffusion uses the generated text and a structural "sketch" from the fMRI to recreate the viewed image with high semantic accuracy.
Discussion and Future Work
MindSemantix demonstrates that LLMs can act as effective neural interpreters, leveraging their internal world knowledge to make sense of sparse brain signals. However, several challenges remain. The model's current performance is tied to the COCO-based stimuli used in training, and its ability to decode abstract thoughts or memories is yet to be tested. Additionally, because every brain is unique, the final alignment stage still requires subject-specific fine-tuning. Future research will focus on tighter integration of spatial data to improve the geometric accuracy of reconstructed images and exploring cross-subject generalization.
Summary updated