Abstract
Brain decoding—the process of reconstructing visual stimuli from functional Magnetic Resonance Imaging (fMRI) scans—has traditionally been limited by the "one-person-one-model" paradigm. Due to significant inter-individual variability in brain structure and function, models trained on one subject typically fail to generalize to others. We present the STTM (See Through Their Minds) framework, a transferable brain decoding model that leverages data from multiple individuals to learn a shared deep decoding backbone. By utilizing shallow subject-specific adapters, STTM maps diverse fMRI signals into a unified representation space. Our results demonstrate that STTM achieves state-of-the-art performance on the Natural Scenes Dataset (NSD) and successfully generalizes to mental imagery and entirely new subjects with minimal additional training.
Introduction
Decoding human visual perception from brain activity is a cornerstone of modern neuroscience and brain-computer interface (BCI) research. However, the field faces a chronic "small data" problem. fMRI data collection is expensive, time-consuming, and physically demanding for participants, leading to datasets that are often too small for deep learning models to generalize effectively without overfitting. Furthermore, the unique functional architecture of every human brain has necessitated training bespoke models for each participant, preventing the development of a universal "foundation model" for brain decoding.
The STTM framework addresses these challenges by introducing a cross-subject pre-training strategy. Instead of treating each subject as an isolated data source, STTM uses data from multiple individuals to learn a robust, shared representation of visual processing in the human brain. This approach not only mitigates data scarcity but also allows for rapid adaptation to new subjects.
Methods
The core of the STTM framework is its dual-pipeline architecture, which separates visual information into high-level semantics and low-level geometric features.
Subject-Specific Adapters
To handle inter-individual variability, STTM employs shallow Multi-Layer Perceptron (MLP) layers called Subject Adapters. These adapters act as a bridge, mapping raw fMRI voxels from different subjects into a Unified Representation Space. Once mapped, the data is processed by a deep, shared "backbone" that is common across all participants. This modularity allows the model to learn universal visual features while respecting individual neural idiosyncrasies.
Dual-Pipeline Decoding
- STTM-H (High-Level Pipeline): This branch focuses on the semantic content of the stimulus. It aligns fMRI patterns with CLIP visual and textual tokens using contrastive learning and a diffusion prior. This tells the model what the subject is seeing (e.g., "a red fire hydrant").
- STTM-L (Low-Level Pipeline): This branch captures geometric details such as color, texture, and spatial arrangement. It maps fMRI data to the latent space of a Variational Autoencoder (VAE) from the Stable Diffusion model.
Semantic Guidance and Final Reconstruction
A critical innovation in STTM is Semantic Guidance. Purely low-level reconstructions from fMRI often result in blurry, unrecognizable shapes. By integrating high-level semantic features into the low-level pipeline, the model can resolve these "blobs" into coherent objects. The final high-resolution image is generated using a Versatile Diffusion model in an img2img setting, conditioned on the outputs of both pipelines.
Datasets and Evaluation
The framework was evaluated using two benchmark datasets:
- Natural Scenes Dataset (NSD): A high-resolution fMRI dataset where subjects viewed thousands of COCO images. Data from four subjects were used for cross-subject pre-training.
- Generic Object Decoding (GOD) Dataset: A smaller dataset used to test transfer learning and generalization. Crucially, this dataset includes fMRI scans of subjects imagining objects (mental imagery), providing a rigorous test for the model's ability to decode pure thought.
Key Results
STTM achieved state-of-the-art (SOTA) performance on the NSD benchmark, outperforming previous leading models like MindEye and MindEye2. Specifically, it reached a PixCorr of 0.333 and an SSIM of 0.334.
Cross-Subject Synergy and Generalization
One of the most significant findings is that training on multiple subjects simultaneously improves performance for each individual subject. The shared backbone learns a more robust feature space than single-subject models. Furthermore, adding a new subject to the model requires training only the shallow adapter, while the deep pre-trained modules remain frozen. This "shallow transfer" enables the model to generalize to new brains with minimal data.
Decoding Mental Imagery
The model successfully generalized from visual perception (seeing) to mental imagery (imagining). On the GOD dataset, STTM achieved a 25.6% top-1 accuracy in classifying imagined objects—significantly higher than the 2.0% chance level. While the signal from imagination is inherently noisier and weaker than direct visual stimuli, the model produced recognizable reconstructions of objects like swans and guitars from pure neural activity.
Discussion and Limitations
While STTM represents a major step toward a universal brain decoder, several challenges remain. The current architecture requires all subject adapters to be held in GPU memory during pre-training, which limits the number of subjects that can be included. Additionally, while semantic guidance significantly improves image quality, reconstructing mental imagery remains difficult due to the lower intensity of neural activation in the visual cortex during imagination.
Future research will focus on scaling the framework to hundreds of subjects, potentially leading to a "Large Brain Model" (LBM) that could revolutionize our understanding of human cognition and the development of advanced neural interfaces.
Summary updated