TL;DR
Current visual "brain encoders" (models predicting fMRI voxel activations from input images) are typically restricted to single subjects because individual brain anatomies and functional topographies vary widely. This paper introduces the Universal Brain-Encoder, a voxel-centric architecture that learns a unique 256-dimensional functional embedding per voxel while sharing all other network weights across subjects, scanners, and datasets. By eliminating the requirement for shared visual stimuli or anatomical registration, it pools data across a "crowd of brains," beating subject-specific baselines and enabling rapid few-shot adaptation to new subjects.
What Problem Does This Paper Address?
Functional MRI (fMRI) datasets are notoriously data-scarce: individuals can only spend limited time in a scanner, resulting in at most several thousand image–fMRI pairs per person. Because human cortical geometry and functional representations differ substantially between people, standard practice trains separate neural encoding models for each individual subject.
Previous multi-subject encoders require either:
- Shared stimuli (all subjects viewing the exact same images to perform functional alignment like Hyperalignment), or
- Anatomical alignment to a standard atlas (e.g., MNI/Talairach space), which frequently blurs functional boundaries due to anatomical idiosyncrasies.
Furthermore, traditional models expect a fixed scan resolution and voxel count, making it impossible to pool data across different fMRI machines (e.g., 3-Tesla vs. 7-Tesla) or across historical datasets collected over decades.
Methods
The authors bypass anatomical alignment altogether by adopting a voxel-centric, cross-attention formulation:
[Input Image] ───> [DINOv2 + LoRA] ───> Multi-Scale Features (L × P × C)
│
[Spatial Attention] <── [Patch Positional Embeddings]
│ <── [Voxel Embedding (1 × E)]
[Layer MLPs]
│
[Functional Attention] <── [Functional Keys (L·C × E)]
│ <── [Voxel Embedding (1 × E)]
▼
Scalar Voxel Activation
- Feature Extraction: A frozen DINOv2 ViT-G/14 backbone extracts representations across $L=5$ intermediate layers (capturing low-level texture to high-level semantics). A modified Low-Rank Adaptation (LoRA)—applied strictly to the self-attention output projection weights ($W_o$)—adapts features for cortical activity.
- Per-Voxel Embeddings: Each voxel $v$ across every subject is assigned an independently learned vector $\mathbf{e}_v \in \mathbb{R}^{256}$. Rather than using spatial coordinates, this embedding acts as a query representing the voxel’s visual selectivity.
- Cross-Attention Block (Shared):
- Spatial Attention: $\mathbf{e}_v$ queries the spatial image patches $P$ (with learned patch positional embeddings) independently per layer to isolate the voxel's receptive field.
- MLPs: Independent 2-layer MLPs process each spatial feature vector.
- Functional Attention: $\mathbf{e}_v$ performs an attention-weighted sum across the concatenated feature layers using learned functional keys, outputting a single predicted scalar activation.
- Loss Formulation: Joint training optimizes an affine blend of Mean Squared Error and cosine distance: $\mathcal{L}(\hat{r}, r) = 0.1 \cdot \text{MSE}(\hat{r}, r) - 0.9 \cdot \cos(\angle(\hat{r}, r))$.
All network weights are shared; only the voxel embeddings are subject-specific.
Datasets
The authors evaluate the model on three benchmark datasets varying in magnet strength, resolution, and stimulus type:
- Natural Scenes Dataset (NSD): 7T fMRI, 8 subjects viewing ~9,000 unique COCO images each, plus 1,000 shared test images (~40,000 visual cortex voxels/subject).
- fMRI-on-ImageNet: 3T fMRI, 5 subjects viewing 1,200 training and 50 test ImageNet images (~5,000 voxels/subject).
- VIM1: 4T fMRI, 2 subjects viewing ~1,750 training and 120 test grayscale images masked with a circular aperture (~7,000 selected high-SNR voxels/subject).
Key Insights and Ideas
- Modality- and Coordinate-Agnostic Setup: By framing voxel prediction as query-key cross-attention, the model places no constraints on voxel grid structure or total voxel count.
- Data Pooling Without Shared Images: Because shared image features interact dynamically with voxel queries, the model integrates data from subjects who viewed completely disjoint image collections.
- Spontaneous Functional Clustering: Unsupervised $k$-means clustering on the learned 256-D voxel embeddings across multiple subjects isolates known category-selective areas (faces, food, text, outdoor scenes) without using anatomical labels or co-registration.
- Sub-Region Discovery: Clustering embeddings within known regions reveals fine-grained functional sub-parcellations—such as autonomously partitioning the Parahippocampal Place Area (PPA) into distinct indoor-scene and outdoor-scene clusters.
Key Results
- Multi-Subject Superiority: Training jointly across all 8 NSD subjects significantly outperforms single-subject baselines (repeated measures ANOVA $F = 72.74, p \approx 0$). Median voxel Pearson correlation improved by ~7% for the best-performing subject and ~15% for the worst.
- Image Retrieval: When using predicted fMRI vectors to identify a test image out of 1,000 options, the multi-subject encoder attained an average retrieval rank of 1.85/1000 for Subject 1, significantly exceeding competitive baselines ($p < 4 \times 10^{-14}$).
- Cross-Dataset Enrichment: Pretraining on high-resolution 7T data (NSD) directly elevated encoding performance on lower-resolution 3T (fMRI-on-ImageNet) and 4T (VIM1) datasets.
- Few-Shot Transfer Learning: Adapting to an unseen subject requires freezing all network weights and updating only their 256-D voxel queries. With just 100 subject-specific training examples, the transferred Universal-Encoder outperformed a dedicated single-subject model trained from scratch on all 9,000 examples.
Limitations and Future Work
- Static, Memoryless Assumption: The model assumes hemodynamic responses are memoryless (ignoring stimulus history) and replicable across presentations, which disregards temporal dynamics, adaptation, and cognitive state fluctuations.
- SNR Dependency: Functional clustering and fine-grained parcellation depend heavily on high-SNR subjects; performance degrades on subjects with noisy fMRI data.
- Scope & Future Modalities: The current study evaluates visual cortex responses to static natural scenes. The authors suggest future extensions toward dynamic video, auditory stimuli, speech, and studying atypical neurofunctional organizations (e.g., autism or visual impairments).
Summary updated