NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Task-guided cross-subject latent alignment: a multi-encoder-decoder VAE

Angeliki Papathanasiou, Jascha Achterberg, Thomas E. Nichols, Rui Ponte CostaarXiv 2026

TL;DR

Traditional methods for aligning fMRI brain activity across different people require everyone to view the exact same stimuli during training—a massive bottleneck for naturalistic or large-scale studies. This paper introduces MED-VAE, a framework that uses a pretrained artificial neural network (ANN) as a "scaffold" to align subjects' neural representations into a shared latent space without requiring any overlapping stimuli. The resulting aligned space exhibits superior semantic organization and enables highly accurate cross-subject neural predictions and image decoding.

What Problem Does This Paper Address?

Human brains are remarkably idiosyncratic; the neural response to the exact same image varies wildly from person to person. To discover universal computational principles or build brain-computer interfaces (BCIs) that generalize across individuals, researchers use neural alignment techniques to map different subjects' brain activity into a single, shared representational space.

However, classical alignment methods like Shared Response Models (SRM) or Hyperalignment suffer from a fatal flaw: they require shared stimuli. To learn the transformation matrices, every subject must have viewed the same set of images or movies. This constraint makes it incredibly difficult to leverage the massive amounts of open-source, non-overlapping neuroimaging data available today, and limits alignment in naturalistic settings where subjects experience different environments.

Methods

The authors propose the Multi-Encoder Multi-Decoder Variational Autoencoder (MED-VAE). Instead of forcing direct subject-to-subject alignment via shared data, MED-VAE forces every subject to align with a common, task-relevant "scaffold"—a pretrained ANN (like ResNet-50 or CLIP).

Figure 1: Multi-Encoder Multi-Decoder Variational Autoencoder (MED-VAE). Subject-specific fMRI encoders map neural responses to a shared latent space; a shared ANN encoder maps ResNet-50 features to the same space. Subject-specific fMRI decoders reconstruct voxel patterns; a shared ANN decoder reconstructs ResNet-50 features from all latent representations, enforcing cross-subject alignment.

As shown in Figure 1, the architecture consists of four primary pathways:

  1. Subject-specific fMRI encoders: Map individual voxel responses to a shared $d$-dimensional latent space $z$.
  2. Subject-specific fMRI decoders: Reconstruct original voxel patterns from $z$.
  3. Shared ANN encoder: Maps image features from a pretrained network into the same latent space $z$.
  4. Shared ANN decoder: Reconstructs the ANN features from $z$.

By forcing all subjects' latent representations to pass through a shared ANN decoder to reconstruct identical image features, the model exerts an implicit alignment pressure. The latent space is forced to organize itself based on the hierarchical and semantic structure of the visual task. Crucially, at inference time, the ANN components are discarded; a subject's brain activity can be projected into the shared space using their fMRI encoder alone.

Datasets

The model was evaluated using the Natural Scenes Dataset (NSD), a high-quality fMRI dataset containing responses from subjects viewing thousands of complex natural images.

  • Training: To prove the model doesn't need shared stimuli, MED-VAE was trained exclusively on non-overlapping image responses across subjects.
  • Evaluation: Testing was performed on a held-out "semi-shared" set of 128 images viewed by a subset of four participants (Subjects 1, 2, 5, and 7) to benchmark against traditional methods.

Key Insights and Ideas

  • The ANN as a Semantic Anchor: Pretrained vision models naturally cluster images by semantic category. By anchoring the fMRI latent space to these features, MED-VAE inherits this clean geometry, causing brain responses to semantically similar images to cluster together across subjects.
  • Overfitting to Noise vs. Suppressing It: Traditional methods (SRM, Procrustes) appear to perform better at "within-trial" brain reconstruction. However, the authors show this is an illusion: classical methods are actually overfitting to trial-specific measurement noise. MED-VAE acts as a principled noise suppressor, capturing only the true stimulus-driven signal.
  • Zero-Shot Subject Extension: Because the shared latent space is anchored to a frozen ANN decoder, a completely new subject can be integrated into the system by training only their individual encoder-decoder pair. This process requires as little as 10% of the standard scanning data, making it highly practical for clinical BCI applications.

Key Results

MED-VAE significantly outperformed SRM and Procrustes across alignment and decoding metrics on the held-out dataset:

Category Encoding and Alignment Performance
  • Superior Semantic Clustering: As illustrated in Figure 2A and 2B, MED-VAE achieved a much higher silhouette score (0.34) than SRM (0.22) and Procrustes (0.21), demonstrating cleaner category separation.
  • Robust Generalization: Traditional methods show a massive "generalization gap" when moving to unseen stimuli, especially as latent dimensions increase. MED-VAE maintains a near-zero generalization gap (Figure 2D).
  • Cross-Subject Retrieval: In a task where Subject A's latent vector was used to retrieve the corresponding image representation in Subject B, MED-VAE achieved a Top-1 accuracy of 46.2%, more than doubling SRM (21.8%) and Procrustes (18.4%).
  • Downstream Image Decoding: When brain predictions from one subject were passed into another subject's pre-trained image decoder (MindEye2), MED-VAE reconstructions retained significantly higher semantic fidelity and lower variance compared to baselines.

Limitations and Future Work

While promising, the authors note a few key limitations:

  1. Dataset Homogeneity: All subjects were sourced from the same dataset (NSD), meaning they shared scanner hardware and preprocessing pipelines. True cross-study validation remains to be proven.
  2. Bounded by the Scaffold: The alignment quality is fundamentally bottlenecked by how well the chosen ANN explains human cortical activity. Moving from static CNNs (ResNet) to brain-optimized recurrent architectures or video-trained models could yield even better alignment.
  3. Static Stimuli Only: The current framework is designed for trial-level static images. Extending this to continuous temporal streams (like natural speech or movies) is a non-trivial but necessary next step.

Summary updated

BibTeX
@misc{papathanasiou2026task,
  author = {Angeliki Papathanasiou and Jascha Achterberg and Thomas E. Nichols and Rui Ponte Costa},
  title = {{Task-guided cross-subject latent alignment: a multi-encoder-decoder VAE}},
  year = {2026},
  eprint = {2606.15989},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.15989},
}

Loading related content...

Figure