Hyperrealistic neural decoding for reconstructing faces from fMRI activations via the GAN latent space

Thirza Dado, Yağmur Güçlütürk, Luca Ambrogioni, Gabriëlle Ras, Sander Bosch, Marcel van Gerven, Umut GüçlüScientific 2022

Abstract

Neural decoding can be conceptualized as the problem of mapping brain responses back to sensory stimuli via a feature space. We introduce (i) a novel experimental paradigm that uses well-controlled yet highly naturalistic stimuli with a priori known feature representations and (ii) an implementation thereof for HYPerrealistic reconstruction of PERception (HYPER) of faces from brain recordings. To this end, we embrace the use of generative adversarial networks (GANs) at the earliest step of our neural decoding pipeline by acquiring fMRI data as participants perceive face images synthesized by the generator network of a GAN. We show that the latent vectors used for generation effectively capture the same defining stimulus properties as the fMRI measurements. As such, these latents (conditioned on the GAN) are used as the in-between feature representations underlying the perceived images that can be predicted in neural decoding for (re-)generation of the originally perceived stimuli, leading to the most accurate reconstructions of perception to date.

Introduction: The Inversion Problem

Neural decoding—the process of "reading" sensory information from brain activity—has historically struggled with complex, high-dimensional stimuli like human faces. While researchers can reliably classify that a subject is looking at a face, reconstructing the specific identity usually results in blurry or unrecognizable images.

The core challenge is the "inversion problem." Modern generative models like Generative Adversarial Networks (GANs) are excellent at turning a random string of numbers (a latent vector) into a realistic image, but they are essentially "one-way" streets. It is computationally difficult to take a real image and find its exact corresponding latent vector. This makes it hard to train a decoder to map brain activity to those vectors. Previous attempts using Variational Autoencoders (VAEs) produced blurry results because they couldn't capture the fine-grained manifold of human facial features.

Methodology: The HYPER Pipeline

The HYPER (HYperrealistic reconstruction of PERception) pipeline introduces a novel experimental paradigm to solve the inversion problem by integrating the GAN at the earliest step of the process. Instead of showing participants photos of real people, the researchers showed them 1,086 faces generated by a Progressive Growing GAN (PGGAN).

The 512-dimensional latent vector z serves as the intermediate feature representation.

Because the faces were synthetic, the researchers already knew the exact 512-dimensional latent vector used to create each one. This provided a "ground truth" for training. They recorded fMRI responses from the visual cortex and trained a simple linear model to map the activity of approximately 4,000 voxels to these 512-dimensional latent vectors. To reconstruct a perceived face, the predicted latent vector is fed back into the PGGAN generator, which re-imagines the face based on the brain's data.

Brain Mapping and Feature Representation

fMRI activations across the visual cortex during face perception. Source, p. 2

fMRI activations across the visual cortex during face perception.

The results suggest that the way a GAN organizes facial features in its latent space—grouping attributes like masculinity or pose in specific directions—is remarkably similar to how the human visual cortex represents those same features. By using synthetic stimuli with known latent "DNA," the researchers turned a difficult unsupervised problem into a straightforward supervised learning task. This approach demonstrates that unsupervised generative models may be superior to traditional supervised networks at capturing the underlying manifold of human perception.

Key Results

The HYPER model significantly outperformed previous state-of-the-art methods both qualitatively and quantitatively. The reconstructions are hyperrealistic, capturing the correct gender, skin tone, hair color, and pose of the original stimulus. Quantitatively, HYPER achieved a Pearson correlation of ~0.50–0.54 between the original and reconstructed pixels, nearly doubling the performance of the VAE-GAN baseline (~0.33–0.41).

The model successfully decoded semantic attributes like age, gender, and pose with high significance ($p \ll 0.05$). However, it struggled with "smiles," likely because the fMRI signal-to-noise ratio was insufficient to capture the subtle muscle movements around the mouth.

Discussion and Limitations

While the HYPER pipeline represents a major leap in neural decoding, several challenges remain. Currently, the model is trained on synthetic faces; reconstructing the face of a real person (where the latent vector isn't known) remains a significant hurdle requiring better GAN inversion techniques. Furthermore, the reconstructions tend to look like young, Western celebrities because the underlying PGGAN was trained on the CelebA-HQ dataset.

Finally, the authors acknowledge the ethical implications of "mind-reading" technology. While current methods require massive MRI scanners and voluntary cooperation, future developments in neural privacy must be strictly regulated to prevent misuse.

Summary updated

BibTeX
@inproceedings{dado2022hyperrealistic,
  author = {Thirza Dado and Yağmur Güçlütürk and Luca Ambrogioni and Gabriëlle Ras and Sander Bosch and Marcel van Gerven and Umut Güçlü},
  title = {{Hyperrealistic neural decoding for reconstructing faces from fMRI activations via the GAN latent space}},
  booktitle = {Scientific},
  year = {2022},
  doi = {10.1038/s41598-021-03938-w},
}
Figure