Generative Decoding of Visual Stimuli

Eleni Miliotou, Panagiotis Kyriakis, Jason D Hinman, Andrei Irimia, Paul Bogdan

Overview

Researchers have developed a novel approach to "read" images from human brain activity by mimicking the brain’s own hierarchical structure. By utilizing Hierarchical Variational Autoencoders (HVAEs), they successfully mapped specific regions of the visual cortex to corresponding layers in a deep learning model. This biologically inspired alignment achieves state-of-the-art accuracy in reconstructing what a person is seeing directly from fMRI data.

The Challenge of Flat Representations

Reconstructing visual stimuli from functional Magnetic Resonance Imaging (fMRI) is often considered a "holy grail" in neuroscience. While significant progress has been made, current models frequently hit a structural bottleneck: they tend to treat brain activity as a flat vector of data or map it to a single, unstructured latent space.

In reality, the human brain processes visual information in a deeply hierarchical manner. Early visual areas (like V1) handle basic features such as edges and orientations, while higher-order areas (like the Fusiform Face Area) process complex objects and semantic categories. Most existing decoding methods fail to capture this "low-to-high" processing flow, resulting in image reconstructions that lack either fine structural detail or semantic accuracy. The authors set out to build an architecture that structurally mirrors this human visual pathway.

A Hierarchical Approach to Neural Decoding

To bridge the gap between biological processing and machine learning, the authors introduce a two-part framework:

  1. Hierarchical Variational Autoencoder (HVAE): Unlike a standard VAE that compresses an image into a single "blob" of latent variables, an HVAE learns a multi-layered hierarchy of representations. The model is pre-trained on 50,000 natural images from ImageNet to learn what the visual world "looks like" at varying levels of abstraction.
  2. The Neural Decoder: This component acts as the bridge between the brain and the generative model. Instead of throwing all fMRI voxels into one bucket, the researchers partitioned the brain into distinct Regions of Interest (ROIs). They trained deep neural networks to map specific ROIs to specific levels of the HVAE’s latent hierarchy.
The Neural Decoder architecture mapping specific brain regions to hierarchical latent variables.
  • Early visual areas (V1, V2, V3) were mapped to the earlier latent layers to capture basic structure and edges.
  • Higher visual areas (FFA, PPA, LOC) were mapped to deeper latent layers to capture complex objects and scenes.

To train the decoder, the team employed a perceptual loss function. Rather than comparing raw pixels directly—which often leads to blurry results—they compared high-level features extracted by a separate pre-trained network (AlexNet). This encouraged the model to prioritize "human-like" visual similarity.

Key Insights and Findings

The study utilized the Generic Object Decoding (GOD) dataset, featuring fMRI recordings from 5 healthy subjects viewing 1,250 distinct natural images across 200 categories. Testing on this dataset revealed several core insights:

  • Hierarchy > Data Volume: One of the most striking findings was that respecting the hierarchical structure was more important than the total amount of brain data used. A "Naive Baseline" that used all available voxels but mapped them to a single latent layer performed significantly worse than models that used fewer voxels but respected the brain's natural hierarchy.
  • The Ventral Pathway is King: The "Ventral Pathway" variant—mapping V1, V2, V4, and object-selective areas—produced the best reconstructions. This perfectly aligns with neuroscience theory, which identifies the ventral stream as the primary pathway for object recognition (the "what" pathway).
  • Structural Priors Matter: By using an HVAE, the model essentially has prior knowledge of how visual information is organized, making the notoriously difficult task of mapping noisy fMRI signals to coherent images much more tractable.

Results: State-of-the-Art Reconstructions

The model was evaluated using the Correct Identification Rate (CIR)—the probability that the reconstructed image is more similar to the true stimulus than to a set of random alternatives.

Quantitative Success: The "Ventral Pathway" model achieved a remarkable 91% accuracy in 2-way identification and 79% accuracy in a challenging 10-way identification task. This consistently outperformed previous state-of-the-art methods, with the performance gap widening as the number of choices increased.

Qualitative Success: Compared to GAN-based methods, which often produce aesthetically pleasing but hallucinated images that don't match the original stimulus, this HVAE approach produced highly faithful reconstructions.

Qualitative comparison of reconstructed images against state-of-the-art methods.

As seen above, the proposed method successfully captures the original colors, textures, and general shapes of the ground truth images, avoiding the semantic drift common in other generative approaches.

Limitations and Future Directions

While the reconstructions are semantically accurate, they can still appear somewhat grainy or "noisy" compared to the crisp outputs of modern generative models like Stable Diffusion. Additionally, the model was tested on the GOD dataset, which is relatively small compared to newer, massive datasets like BOLD5000 or the Natural Scenes Dataset (NSD).

Looking forward, the authors suggest that this hierarchical mapping could be extended to decode mental imagery during sleep or to help develop more sophisticated brain-computer interfaces (BCIs) for individuals with visual disabilities. Integrating even more powerful generative backends, such as Diffusion models, while strictly maintaining this biological hierarchical mapping represents a highly promising next step for the field.

Summary updated

BibTeX
@inproceedings{miliotou2023generative,
  author = {Eleni Miliotou and Panagiotis Kyriakis and Jason D Hinman and Andrei Irimia and Paul Bogdan},
  title = {{Generative Decoding of Visual Stimuli}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=57OuafQmu8},
}
Figure