Brain-Diffuser: Natural scene reconstruction from fMRI signals using generative latent diffusion

Furkan Ozcelik, Rufin VanRullen · DOI

Introduction

Neural decoding aims to reconstruct visual stimuli from human brain activity, a task often referred to as "mind-reading." While previous research successfully reconstructed simple geometric shapes or identified broad object categories, capturing the complexity of natural scenes remains a significant challenge. Existing models often face a trade-off: they either preserve low-level structural details (spatial layout) at the expense of semantic meaning, or they generate semantically plausible objects that do not match the original scene's geometry. The "Brain-Diffuser" framework addresses this by integrating structural "sketching" with semantic "refinement."

Methodology: The Two-Stage Framework

The Brain-Diffuser architecture utilizes a two-stage pipeline to bridge the gap between structure and semantics.

Stage 1: Structural Sketching

The first stage employs a Very Deep Variational Autoencoder (VDVAE) to generate an initial structural estimate of the image. By training ridge regression models to map fMRI signals to the latent variables of the VDVAE, the system captures the basic layout, shapes, and textures of the observed scene. This "initial guess" serves as a spatial anchor for the subsequent generative process.

Stage 2: Semantic Refinement via Latent Diffusion

To transform the blurry structural sketch into a high-fidelity natural image, the framework leverages "Versatile Diffusion," a Latent Diffusion Model (LDM). This model is uniquely capable of being conditioned on both visual and textual features simultaneously. fMRI signals are decoded into CLIP-Vision and CLIP-Text embeddings, which guide the denoising process. Importantly, the large-scale generative models are not fine-tuned; instead, only small regression layers are trained to translate brain activity into the latent spaces of VDVAE and CLIP.

The Brain-Diffuser training and testing pipeline, illustrating the mapping of fMRI signals to CLIP embeddings and the guided diffusion process.

Results and Discussion

The framework was evaluated using the Natural Scenes Dataset (NSD), which contains high-resolution 7-Tesla fMRI scans of subjects viewing thousands of complex images from the Microsoft COCO dataset.

Quantitative Performance

Brain-Diffuser demonstrated superior performance across eight distinct metrics compared to state-of-the-art baselines (e.g., StyleGAN and Stable Diffusion-based models). It achieved a pixel-level correlation (PixCorr) and a high-level semantic similarity (CLIP score) that significantly exceeded previous benchmarks. For instance, the model reached an Inception Score of 87.2%, compared to 78.2% for the next best performing model.

Qualitative Realism

The reconstructions are remarkably naturalistic, accurately placing objects like airplanes, people, or food items in their correct spatial positions with realistic textures. The use of the VDVAE "initial guess" effectively prevents the "hallucinations" common in pure diffusion models, where realistic but irrelevant objects are generated.

Qualitative comparison of original test images and reconstructions across multiple subjects (Sub1, Sub2, Sub5, Sub7).

Neuroscientific Insights

The study also provided functional mapping insights, confirming that early visual areas (V1-V4) primarily encode structural features, while higher-level regions (e.g., Face-ROI, Place-ROI) are more involved in semantic processing. By activating specific brain regions within the model, researchers could generate "ROI-optimal stimuli," visualizing what specific parts of the brain "prefer" to see.

Conclusion

The Brain-Diffuser framework represents a significant advancement in neural decoding, successfully reconstructing complex natural scenes by combining structural priors with semantic diffusion guidance. While limitations remain regarding fine-grained details and object occlusion, the results demonstrate the potential of generative AI to decode the human visual experience. Future work will explore the reconstruction of temporal data, such as video, and the use of more sophisticated hierarchical decoding networks.

Summary updated

BibTeX
@inproceedings{ozcelik2023brain,
  author = {Furkan Ozcelik and Rufin VanRullen},
  title = {{Brain-Diffuser: Natural scene reconstruction from fMRI signals using generative latent diffusion}},
  booktitle = {Scientific},
  year = {2023},
  doi = {10.1038/s41598-023-42891-8},
}
Figure