Toward Generalizing Visual Brain Decoding to Unseen Subjects

Xiangtao Kong, Kexin Huang, Ping Li, Lei Zhang · DOI

Abstract

Visual brain decoding has traditionally relied on subject-specific models due to the inherent structural and functional variability between individuals, often referred to as the "neural snowflake" problem. This study investigates whether scaling the number of training subjects can overcome this barrier to generalization. By training on a consolidated dataset of 177 subjects from the Human Connectome Project, we demonstrate that zero-shot retrieval accuracy on unseen subjects improves significantly with data scale, rising from a baseline of 2% to 50%. Our findings suggest a clear scaling law for brain decoding and point toward the development of universal foundation models for human vision.

Introduction

The ability to decode visual stimuli from functional Magnetic Resonance Imaging (fMRI) data—essentially "reading" what a person sees—has long been a goal of neural engineering. However, most existing models are tailored to specific individuals. Because every human brain is unique, a decoder trained on Subject A typically fails when applied to Subject B. Furthermore, the field has been hampered by small datasets, often involving fewer than ten participants. This research addresses whether a generalized decoder can be built by simply scaling the participant pool and employing a uniform processing paradigm.

Methods

The proposed approach moves away from subject-specific "heads" toward a unified architecture designed for cross-subject compatibility.

Uniform Processing Paradigm

To handle the varying number of fMRI voxels across individuals, the researchers employed simple upsampling to standardize all brain data to a common size. Unlike previous studies that focused solely on the visual cortex, this method utilizes the entire brain to capture invariant features shared across the population.

Contrastive Learning Framework

The system uses a CLIP (Contrastive Language-Image Pre-training) image encoder to extract high-level features from stimulus images. The brain decoding network is then trained to map fMRI signals into this shared CLIP feature space using a contrastive loss.

The training pipeline utilizes a contrastive learning framework to align fMRI signals with image features from a frozen CLIP encoder.

Datasets

The study primarily utilizes the Human Connectome Project (HCP) movie-viewing task, which provided a massive dataset of 177 subjects and over 550,000 image-fMRI pairs. For validation, the researchers also used the Natural Scenes Dataset (NSD). The comparison revealed that the limited subject count in NSD (8 subjects) had previously obscured the potential for cross-subject generalization.

Results and Discussion

The Scaling Law of Brains

A key finding is that generalization performance follows a steady upward curve as the number of training subjects increases. Top-1 retrieval accuracy for unseen subjects improved from a baseline of 2% (with 1 training subject) to 45% (with 167 training subjects). With advanced training strategies like BiMixCo and SoftCLIP, this accuracy reached 50%.

Top-1 retrieval accuracy on unseen subjects increases steadily as the number of training subjects scales up.

Insights on Generalization

  • Neural Similarity: Models generalize more effectively between individuals with similar neural profiles (e.g., same-sex groups), suggesting that "subject-aware" training could further enhance performance.
  • Whole-Brain Advantage: Using the entire brain proved more effective for generalization than using hand-labeled visual regions, likely because the whole-brain "shape" is more consistent across the population.
  • Architecture Invariance: The scaling effect held across different backbones (MLP, CNN, Transformer), though MLPs currently perform best at this data scale.

Conclusion and Future Work

This work demonstrates that the "neural snowflake" problem can be mitigated through data scaling. While 177 subjects represent a significant leap for fMRI research, it remains small compared to the datasets used for large language models. Future research will focus on larger, more diverse datasets and more sophisticated temporal modeling to move closer to a truly "plug-and-play" universal brain-to-image translator.

Summary updated

BibTeX
@inproceedings{kong2025toward,
  author = {Xiangtao Kong and Kexin Huang and Ping Li and Lei Zhang},
  title = {{Toward Generalizing Visual Brain Decoding to Unseen Subjects}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=At9JmGF3xy},
}
Figure