EconPapers    
Economics at your fingertips  
 

Contrastive learning to fine-tune feature extraction models for the visual cortex

Alex Mulrooney, Zhi Li and Austin J Brockmeier

PLOS Computational Biology, 2026, vol. 22, issue 8, 1-37

Abstract: Predicting the neural response to natural images in the visual cortex requires extracting relevant features from the images and relating those feature to the observed responses. In this work, we optimize the feature extraction in order to maximize the information shared between the image features and the neural response across voxels in a given region of interest (ROI) extracted from the BOLD signal measured by functional magnetic resonance imaging (fMRI). We adapt contrastive learning (CL) to fine-tune a convolutional neural network, which was pretrained for image classification, such that a mapping of a given image’s features are more similar to the corresponding fMRI response than to the responses to other images. We exploit the Natural Scenes Dataset as organized for the Algonauts Project, which contains the high-resolution fMRI responses of eight subjects to tens of thousands of naturalistic images. We show that CL fine-tuning creates feature extraction models that enable higher encoding accuracy in both early and higher visual ROIs as compared to the features from the pretrained network. Quantitatively, performance is similar to baseline approach that directly uses a regression loss at the output of the network to tune it for fMRI response encoding. We investigate inter-subject transfer of the CL fine-tuned models, including subjects from the Natural Object Dataset, another lower-resolution dataset with 9 subjects. We also pool subjects for fine-tuning, which further improves encoding performance in early ROIs. Finally, we examine the performance of the fine-tuned models on common image classification tasks, explore the landscape of ROI-specific models by applying dimensionality reduction on the Bhattacharya dissimilarity matrix created using the predictions on those tasks, show that these landscapes match those based on representational similarity analysis. Finally, we generate images via Stable Diffusion based on vector-space prompts created by aligning the CL-tuned models embeddings for different ROIs; showing that generated images have similar embeddings to the original but that estimates of the intrinsic dimension are lower for generated versus original representations.Author summary: We propose a methodology for predicting the neural response in different regions of the visual cortex to natural images by fine-tuning a pretrained neural network for each region. We show that the fine-tuning neural networks using either contrastive learning or to directly predict the neural response creates representations of the images more similar to the representations in the corresponding brain regions that they were fine-tuned on, as evidenced by the improvements in neural response prediction, which are further improved by pooling together the data from the same brain region in different subjects to fine-tune one model. Furthermore, we show clear anatomical organization among brain regions when assessing the similarity of predictions of the models tuned on different brain regions on downstream image classification tasks, which match results using representation similarity analysis. Region-specific tuned models can be used for “in-silico” investigations of brain function, and we present a simple demonstration towards this end using image generation.

Date: 2026
References: Add references at CitEc
Citations:

Downloads: (external link)
https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1014656 (text/html)
https://journals.plos.org/ploscompbiol/article/fil ... 14656&type=printable (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:plo:pcbi00:1014656

DOI: 10.1371/journal.pcbi.1014656

Access Statistics for this article

More articles in PLOS Computational Biology from Public Library of Science
Bibliographic data for series maintained by ploscompbiol ().

 
Page updated 2026-08-18
Handle: RePEc:plo:pcbi00:1014656