Duala: Dual-Level Alignment of Subjects and Stimuli for Cross-Subject fMRI Decoding

Shumeng Li, Jintao Guo, Jian Zhang, Yulin Zhou, Luyang Cao, Yinghuan Shi

TL;DR

Duala is a novel fine-tuning framework for cross-subject fMRI visual decoding that prevents the severe performance drops typically seen when adapting models to new individuals. By simultaneously aligning neural representations at both the stimulus (semantic) level and the subject (distributional) level, it achieves over 81.1% brain retrieval accuracy using just one hour of fMRI data.

What Problem Does This Paper Address?

Reading visual experiences directly from human brain activity (fMRI decoding) holds massive potential for brain-computer interfaces (BCIs). However, everyone's brain is wired differently. A decoder trained on one person's brain data rarely works on another's. To make matters worse, collecting enough high-quality fMRI data to train a custom model for a new user takes upwards of 40 hours of expensive scanner time.

While cross-subject models exist to bridge this gap, the authors discovered a critical flaw: when you try to fine-tune a pre-trained model on a new subject using limited data (like a 1-hour session), performance plummets. The authors trace this failure to two main issues:

  1. Stimulus-level inconsistency: Naive fine-tuning destroys the clean semantic boundaries learned during pre-training, blurring distinct visual categories together in the latent space.
  2. Subject-level misalignment: In standard datasets, different subjects rarely look at the exact same images, even if they belong to the same category (e.g., Subject 1 sees a tabby cat, Subject 2 sees a Siamese cat). This makes direct one-to-one brain alignment exceptionally difficult.
Figure 1. Effectiveness of fine-tuning on retrieval performance and t-SNE visualization. The pre-trained model achieves a high retrieval performance, indicating strong generalization to unseen stimuli. However, after fine-tuning on data from a new subject, the retrieval performance drops significantly. Additionally, the t-SNE visualization of the pre-trained model shows clear class boundaries for the subject’s stimuli, while the t-SNE of the fine-tuned model on the new subject reveals blurry class boundaries, indicating that the fine-tuning process does not preserve the semantic structure as effectively for the new subject.
Figure 2. Different subjects are presented with different visual stimuli, even when the stimuli belong to the same category. For example, the subjects are shown an image of a cat, but the actual photos they see differ.

Methods

To solve these alignment challenges, the authors introduce Duala (Dual-level Alignment), a framework that integrates parameter-efficient LoRA adapters into an MLP backbone and applies two novel modules during fine-tuning:

Figure 3. Overview of our Duala framework. Stimulus-level Semantic Preservation maintains the semantic structure of visual representa- tions, and Subject-level Distribution Perturbation enhances cross-subject adaptability.
  • Stimulus-level Semantic Preservation (SSP): This module keeps categories distinct. It uses a Semantic Alignment Loss (a triplet loss that pulls same-category brain responses closer and pushes different categories apart) and a Relational Consistency Loss (which ensures the new subject's overall category-similarity geometry matches the reference structure inherited from pre-trained subjects).
Figure 4. Semantic Alignment Constraint. We sample an anchor and a positive fMRI response elicited by images from the same category (Dog), and a negative from a different category (Giraffe). It encourages fMRI representations of the same stimulus class to be more similar than those of different classes within a subject, preserving intra-class discriminability.
Figure 5. Relational Consistency across subjects. Although sub- jects view different images even within the same category (e.g., different birds / buses / clocks), the similarity structure among cat- egories should remain consistent across subjects.
  • Subject-level Distribution Perturbation (SDP): This module acts as a smart data-augmentation technique for brain data. It decomposes fMRI features into a shared semantic factor (the category mean) and a subject-specific factor (the deviation). It then injects Gaussian perturbations modeled from the source subjects into the new subject's features. This teaches the model to be robust to individual variations without washing away the unique neural signatures of the new subject.

Datasets

The framework was evaluated on the Natural Scenes Dataset (NSD), one of the largest publicly available fMRI datasets, where subjects view complex natural images from the MSCOCO collection. Following data-constrained protocols, the authors used only a single scanning session (~1 hour of data, 750 trials) per new subject for fine-tuning.

Key Insights and Ideas

  • Fine-tuning can be destructive: Standard fine-tuning often acts as a bull in a china shop, erasing the robust brain-to-visual correspondences established during large-scale pre-training.
  • Universal Semantic Geometry: Even if two people look at entirely different photos of birds or buses, the relative conceptual distance between a "bird" and a "bus" in the brain's representational space should remain stable across individuals. Duala exploits this invariant geometry.
  • Style vs. Content in Voxel Space: Standard data augmentations (like cropping or flipping) don't translate to raw fMRI voxels. By mathematically isolating the "subject-specific factor" from the "stimulus factor," SDP safely perturbs the neural "style" while keeping the visual "content" intact.

Key Results

  • Superior Brain Retrieval: Duala achieves an average 81.1% brain retrieval accuracy (matching a brain response back to its corresponding image), significantly outperforming the baseline MindEye2 (57.4%) and the previous state-of-the-art MindTuner (76.0%).
  • High-Fidelity Reconstruction: Images reconstructed from fMRI data using Duala showed superior semantic fidelity (Inception score of 85.4% and CLIP score of 83.5%), resulting in fewer cross-category confusions during image generation.
  • Extreme Parameter Efficiency: Duala only updates 4.68M parameters in its MLP module during fine-tuning (69.09M total parameters including ridge regression), compared to MindEye2's massive 2.2B parameters. This lightweight design prevents overfitting on small datasets.

Limitations and Future Work

The authors note that Duala is sensitive to the weight of the relational consistency loss ($\lambda_2$). Setting this hyperparameter too high over-regularizes the model toward the source subjects' geometry, which can restrict its ability to adapt to the new subject's unique functional traits.

Potential future directions include testing the framework on even smaller data footprints (less than an hour) or adapting it for real-time, closed-loop BCI applications.

Summary updated

BibTeX
@inproceedings{li2026duala,
  author = {Shumeng Li and Jintao Guo and Jian Zhang and Yulin Zhou and Luyang Cao and Yinghuan Shi},
  title = {{Duala: Dual-Level Alignment of Subjects and Stimuli for Cross-Subject fMRI Decoding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=Jt2Wa0oDel},
}
Figure