TL;DR
This paper introduces NSD-synthetic, a novel fMRI dataset featuring synthetic visual stimuli, designed to rigorously test the out-of-distribution (OOD) generalization capabilities of computational models of the human visual system. By demonstrating that models trained on natural images perform worse on these synthetic stimuli, the authors show that NSD-synthetic is crucial for developing more robust brain models and advancing our understanding of vision.
What Problem Does This Paper Address?
Modern computational neuroscience has seen a surge in large-scale fMRI datasets, like the Natural Scenes Dataset (NSD), which have significantly advanced our ability to model brain activity. However, these datasets primarily contain images from a common, naturalistic visual distribution. This limitation hinders the ability to perform strict out-of-distribution (OOD) generalization tests. OOD generalization is critical because it assesses whether a model can accurately predict brain responses to stimuli it hasn't encountered during training, a key indicator of robustness and a crucial step towards understanding how the brain processes novel visual information. Without such tests, we risk developing models that are overfitted to specific data distributions and may fail in real-world, diverse visual scenarios. This paper addresses this gap by creating a dataset specifically designed for OOD testing.
Methods
The core of this work involves creating and utilizing a new fMRI dataset, NSD-synthetic. The authors collected 7T fMRI data from eight participants who had previously participated in the NSD study. These participants viewed 284 synthetic, non-naturalistic images while undergoing fMRI scans. The data acquisition and preprocessing followed similar procedures to the original NSD dataset to ensure comparability.
For analysis, the authors employed several key techniques:
- Noise Ceiling (NCSNR): To quantify the amount of stimulus-related signal in the fMRI responses, providing an upper bound for model performance.
- Univariate and Multivariate fMRI Analyses: To assess how well different brain regions (ROIs) respond to the synthetic stimuli and to characterize the encoded visual information.
- Representational Similarity Analysis (RSA): To compare the similarity of multivariate fMRI responses across participants and ROIs, revealing shared neural representations.
- Multidimensional Scaling (MDS): To visualize and compare the overall distribution of fMRI responses from NSD-synthetic and NSD-core, confirming their out-of-distribution nature.
- Encoding Models: Deep neural networks (AlexNet, ViT, ResNet, MoCo) were trained on NSD-core data and then tested on both NSD-core (in-distribution) and NSD-synthetic (out-of-distribution) to evaluate generalization performance.
- Zero-shot Image Identification: A complementary method to assess model performance by using predicted fMRI responses to identify stimulus images.
Datasets
- NSD-core (Natural Scenes Dataset): Used as the primary training dataset for computational models. It comprises over 70,000 naturalistic scene images.
- NSD-synthetic: The newly introduced dataset, consisting of fMRI responses to 284 synthetic images. This dataset is designed to be out-of-distribution relative to NSD-core and serves as the testbed for OOD generalization.
Key Insights and Ideas
- Synthetic Stimuli are Truly Out-of-Distribution: The fMRI responses to synthetic images in NSD-synthetic are demonstrably different from those elicited by natural images in NSD-core, as shown by MDS analysis. This confirms its suitability for OOD testing.
- OOD Tests Reveal Model Deficiencies Missed by ID Tests: Computational models that perform well on natural images (in-distribution) show significantly reduced performance when tested on synthetic images (out-of-distribution). This highlights that current models may be overfitted to naturalistic visual statistics.
- Degree of OOD Matters: The extent to which test responses are out-of-distribution from training responses is predictive of model failure. This suggests that OOD tests can provide a nuanced understanding of model limitations.
- OOD Tests Can Differentiate Similar Models: OOD generalization tests can reveal performance differences between models that appear similar on in-distribution tests, offering a more sensitive benchmark for model development.
- OOD Concepts Apply to Naturalistic Stimuli Too: The paper demonstrates that OOD principles can be applied even within the domain of naturalistic stimuli, albeit with less strict differences, suggesting a continuum of OOD testing.
Key Results
- NSD-synthetic fMRI responses reliably encode stimulus-related information and are out-of-distribution with respect to NSD-core.
- Encoding models trained on NSD-core generalize to NSD-synthetic with lower prediction accuracies compared to in-distribution generalization on NSD-core. For example, noise-ceiling-normalized explained variance for AlexNet dropped from a mean of 45.14% for ID on NSD-core to 10.12% for OOD on NSD-synthetic.
- OOD tests on NSD-synthetic revealed differences between models not detected by ID tests. For instance, a vision transformer (ViT-B/32) outperformed AlexNet on OOD tests by a larger margin (25% absolute explained variance difference) than on ID tests (10%).
- The degree of OOD (measured by Euclidean distance in MDS space) was negatively correlated with encoding accuracy scores across NSD-synthetic image classes. For example, a Spearman's rho of -0.36 was found between distributional distance and encoding accuracy for AlexNet.
- The paper demonstrated that OOD generalization performance cannot be fully described by a single number but exists on a continuum of distances between train and test data distributions.
Limitations and Future Work
- Early Visual Cortex Dominance: The authors note that stimulus-related information in NSD-synthetic is primarily encoded in early to intermediate visual areas (V1-hV4). This is attributed to the simple visual features of synthetic stimuli, which may not be ideal for testing higher visual cortical areas. Consequently, results might be most robust for models of lower visual cortical areas.
- Session-Specific Effects: While efforts were made to control for session-specific effects, the authors acknowledge that these can introduce spurious distributional differences. Future work might explore more sophisticated methods to mitigate these effects.
- Model and Task Specificity: The authors suggest that future research should systematically benchmark a wider variety of encoding models and explore how different tasks and trial timings influence neural representations and OOD generalization.
- Further Exploration of OOD Degrees: The paper highlights the continuum of OOD degrees and suggests that combining NSD-core and NSD-synthetic allows for testing various levels of OOD, enabling more nuanced accounts of brain model performance.
- Investigating Specific Stimulus Properties: The authors propose that future modeling efforts could benefit from focusing on improving model robustness for stimulus properties with a high degree of OOD, as generalization performance varied considerably across different synthetic image classes.
Summary updated