NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MindDiffuser: Controlled Image Reconstruction from Human Brain Activity with Semantic and Structural Diffusion

Yizhuo Lu, Changde Du, Dianpeng Wang, Huiguang He

TL;DR

MindDiffuser is a novel two-stage framework that reconstructs images from fMRI brain activity by combining the generative power of Stable Diffusion with structural constraints from CLIP. By first generating a semantic "draft" and then iteratively refining its structure through backpropagation, the model achieves state-of-the-art results that are both visually realistic and spatially accurate to the original stimulus.

What Problem Does This Paper Address?

Reconstructing what a person is seeing based solely on their brain activity (fMRI) is a "holy grail" of cognitive neuroscience. Historically, researchers have faced a frustrating trade-off:

  1. Structural Models: These capture the "where"—the outlines, positions, and sizes of objects—but the results are often blurry, indistinct blobs that lack clear meaning.
  2. Generative Models: Recent work using GANs or Diffusion models produces beautiful, semantically clear images (e.g., "an airplane"). However, these models often ignore the "where," placing the airplane at the wrong angle or in a different part of the frame than what the subject actually saw.

The authors of MindDiffuser aim to bridge this gap, creating reconstructions that are both semantically rich (you know what it is) and structurally aligned (it’s in the right place).

Methods

The researchers propose a two-stage architecture leveraging Stable Diffusion and CLIP (Contrastive Language-Image Pre-training).

Stage 1: Semantic Incorporation ("What is in the image?") The team trains linear regression models to decode fMRI signals into three distinct latent spaces:

  • CLIP text embeddings ($c$): Capturing high-level category information.
  • VQ-VAE latent features ($z$): Capturing fine-grained image details.
  • CLIP image features ($Z_{CLIP}$): Capturing structural information.

In the first stage, the decoded $c$ and $z$ are fed into Stable Diffusion’s image-to-image process. This yields a preliminary image that roughly matches the category and some details of the original stimulus.

Stage 2: Structural Alignment ("Where are the objects?") This is the core innovation. The preliminary image is passed through a CLIP image encoder. The model then calculates a "Structure Loss" by comparing the features of this generated image to the structural features ($Z_{CLIP}$) decoded directly from the fMRI. Using backpropagation, the model iteratively adjusts the initial $c$ and $z$ features to minimize this loss. This forces the diffusion process to shift the generated objects until they align with the spatial layout represented in the brain.

Schematic diagram of the MindDiffuser two-stage process

Datasets

The model was evaluated on the Natural Scenes Dataset (NSD), currently the largest neuroimaging dataset bridging brain activity and AI. It contains high-resolution 7T fMRI data from 8 subjects who viewed thousands of natural images from the Microsoft COCO dataset. The study specifically utilized data from subjects 1, 2, 5, and 7.

Key Insights and Ideas

  • The "Aha" Moment for Structure: The authors realized that low-level layers of a CLIP image encoder capture spatial arrangements (posture, position) before they are abstracted into pure semantics. By using these as a supervisory signal in Stage 2, they can "steer" the diffusion model.
  • Latent Initialization Matters: Ablation studies showed that starting the diffusion process with a decoded latent $z$ (Stage 1) is far superior to starting from random noise. Without this "head start," the optimization often gets stuck in suboptimal solutions, producing images that might match the layout but fail on the actual content (e.g., turning an airplane into a car because they share a similar silhouette).
  • Cross-Subject Adaptability: Despite the unique "wiring" of individual brains, the model demonstrated a robust ability to adapt to different subjects without needing specialized architectural changes for each person.

Key Results

MindDiffuser significantly outperformed previous state-of-the-art (SOTA) models like those from Takagi et al. and Ozcelik et al.

  • Quantitative: On the NSD dataset, MindDiffuser achieved a Semantic Similarity (CLIP score) of 0.765, compared to the previous SOTA of 0.642. It also led in structural metrics, reaching an SSIM (Structural Similarity Index) of 0.354.
  • Qualitative: As seen in the comparison figures, MindDiffuser's reconstructions are strikingly similar to the ground truth. While previous models might generate a generic airplane, MindDiffuser places the plane at the correct tilt and against a similar sky background.
Figure 1: Comparison of image reconstruction results. Note that the subfigure above shows the results of an previous image reconstruction collated by Lin [6].

Limitations and Future Work

  • Decoding Bottleneck: The quality of the final image is strictly limited by the accuracy of the initial linear regression decoders. If the fMRI-to-CLIP mapping is poor for a specific subject or image, the reconstruction will suffer.
  • Computational Intensity: The iterative backpropagation in Stage 2 is computationally more expensive than a simple feed-forward generation, which might limit real-time applications.
  • Complex Scenes: While the model handles natural scenes well, extremely cluttered or abstract images still pose a challenge for perfect structural alignment.

The authors suggest that future work could involve more sophisticated non-linear decoders or exploring how this "semantic + structural" approach applies to imagined (rather than just perceived) imagery.

Summary updated

BibTeX
@inproceedings{lu2023minddiffuser,
  author = {Yizhuo Lu and Changde Du and Dianpeng Wang and Huiguang He},
  title = {{MindDiffuser: Controlled Image Reconstruction from Human Brain Activity with Semantic and Structural Diffusion}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3613832},
}
Figure