Sample-efficient decoding of visual stimuli from fMRI through inter-individual functional alignment

Alexis Thual, Yohann Benchetrit, Felix Geilert, Jérémy Rapin, Iurii Makarov, Stanislas Dehaene, Bertrand Thirion, Hubert J. Banville, Jean-Remi King

Introduction

Decoding visual stimuli from functional Magnetic Resonance Imaging (fMRI) has long been a central objective in cognitive neuroscience. While deep learning models have significantly advanced our ability to reconstruct or retrieve images from brain activity, they are typically limited by high inter-individual variability. Because the functional architecture of the brain varies across subjects, a model trained on one individual rarely generalizes to another. Consequently, state-of-the-art decoding often requires hours of expensive scan time for every new subject to train a personalized model.

Recent research from Meta AI and Inria, published in Transactions on Machine Learning Research, addresses this "data bottleneck" through functional alignment. By translating brain activity from a new, data-poor subject into the functional space of a data-rich reference subject, the researchers demonstrate that decoding performance can be significantly boosted with minimal additional data.

Methodology: Decoding and Alignment

The proposed framework decouples the decoding task into two distinct phases: training a high-quality decoder on a reference subject and aligning new subjects to that reference.

1. Latent-Based Decoding

Rather than predicting image pixels directly, the researchers train linear Ridge regression models to predict latent representations of visual stimuli. They utilize two types of latents:

  • High-level semantics: CLIP embeddings are used to capture the conceptual content of a scene.
  • Low-level features: VD-VAE (Very Deep Variational Autoencoder) features are used to capture structural elements like shapes and textures.

2. Functional Alignment via FUGW

The core innovation lies in the use of Fused Unbalanced Gromov-Wasserstein (FUGW) alignment. Traditional anatomical alignment matches brains based on physical shape, which often fails to capture functional nuances. FUGW treats alignment as an optimal transport problem, finding a "soft permutation" that maps voxels from a source subject to a target subject. This mapping is driven by both anatomical proximity and functional similarity—specifically, how voxels respond to a shared "anchor" stimulus, such as a naturalistic movie.

Overview of the decoding and alignment pipeline. (A) Within-subject training. (B) Alignment training using anchor stimuli. (C) Cross-subject decoding using the alignment model.

Experimental Setup and Datasets

The approach was validated on two major fMRI datasets:

  • Wen et al. (2017): A dataset featuring three subjects watching 688 minutes of naturalistic video. This provided the extensive "anchor" data required to establish robust functional mappings.
  • Natural Scenes Dataset (NSD): A larger cohort of eight subjects viewing 10,000 static images, used to demonstrate the method's generalizability across different types of visual stimuli.

Results and Discussion

The researchers found that functional alignment is mandatory for effective cross-subject decoding. Simply relying on anatomical alignment resulted in poor performance for high-level semantic tasks.

Sample Efficiency

A key finding is the dramatic improvement in sample efficiency. The study demonstrated that a "left-out" subject could achieve a level of decoding performance with only 30 minutes of data that would typically require over 100 minutes if training a subject-specific model from scratch. This suggests that functional alignment allows researchers to leverage existing "Big Data" in neuroimaging to benefit new participants with minimal scan time.

Performance Gains

In image retrieval tasks—where the model must identify the correct stimulus from a pool of 500 candidates—functional alignment halved the median error rank compared to anatomical baselines. Furthermore, training a single decoder on multiple aligned participants outperformed models trained on any single individual, proving that "pooling" brain data across subjects is a viable strategy for building more robust decoders.

Qualitative results showing ground truth (GT) images and the top five retrieved candidates (Ret. 1-5) based on decoded brain activity.

Conclusion

By providing a framework to functionally align brain activity across individuals, this research moves the field closer to universal brain-reading models. The ability to "translate" one person's neural responses into the space of another not only reduces the cost of fMRI studies but also opens the door for more practical clinical applications and advanced brain-computer interfaces that can work "out of the box" for new users.

Summary updated

BibTeX
@article{thual2025sample,
  author = {Alexis Thual and Yohann Benchetrit and Felix Geilert and Jérémy Rapin and Iurii Makarov and Stanislas Dehaene and Bertrand Thirion and Hubert J. Banville and Jean-Remi King},
  title = {{Sample-efficient decoding of visual stimuli from fMRI through inter-individual functional alignment}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure