Generalization in data-driven models of primary visual cortex

Konstantin-Klemens Lurz, Mohammad Bashiri, Konstantin Willeke, Akshay Kumar Jagadish, Eric Wang, Edgar Y. Walker, Santiago A. Cadena, Taliah Muhammad, Erick Cobos, Andreas S. Tolias, Alexander S. Ecker, Fabian H. Sinz

In sensory neuroscience, the holy grail is building in silico models that perfectly replicate how the brain processes visual information. Currently, Deep Neural Networks (DNNs) are the best tools for this task. Most models use a two-part architecture: a core (a convolutional network that extracts general visual features) and a readout (which maps those features to specific neurons).

However, two major hurdles remain in modeling the primary visual cortex (V1). First is the issue of generalization: models are usually "overfit" to specific individuals, meaning a model trained on Mouse A rarely works well for Mouse B. Second is the debate between task-driven vs. data-driven approaches. In primates, models pre-trained on object recognition (like VGG16 on ImageNet) predict brain activity well. In mice, this "task-driven" approach fails. We need "data-driven" models trained directly on neural responses, but these require massive amounts of data that are hard to collect from a single animal.

Recent research has developed a new state-of-the-art deep learning model for predicting neural responses in the mouse V1 that directly addresses these hurdles. By introducing a parameter-efficient "Gaussian readout" and training on a massive multi-animal dataset, researchers demonstrated that a data-driven core generalizes across different animals far better than standard models pre-trained on ImageNet.

A Modular Architecture with a Novel Readout

The authors propose a modular architecture designed to force the "core" to learn universal cortical features.

  • The Core: A 4-layer Convolutional Neural Network (CNN) using depth-separable convolutions. This part is intended to be shared across all neurons and even across different animals.
  • The Gaussian Readout: Standard readouts use thousands of parameters per neuron to figure out where a neuron's "receptive field" is in an image. The authors replaced this with a novel mechanism that learns a bivariate Gaussian distribution.
  • Retinotopy Integration: They took the architecture a step further by utilizing retinotopy—the biological reality that neurons close to each other on the physical surface of the brain look at similar parts of the visual field. They built a "Readout Position Network" that predicts a neuron's receptive field location based solely on its anatomical coordinates. This reduced the number of parameters per neuron by up to two orders of magnitude.
Model architecture illustrating the Readout Position Network and Gaussian readout.

To test this architecture, the study utilized a massive dataset of neural activity from Layer L2/3 of the mouse V1 via two-photon calcium imaging. The scale was unprecedented: 13 scans from 7 different mice, totaling approximately 72,000 neurons, all responding to grayscale natural images (crops from ImageNet).

Key Insights and Results

By forcing the model to respect the physical layout of the brain (retinotopy), the model becomes much more robust. It prevents the readout from "cheating" by picking up noise, forcing the core to do the heavy lifting of feature extraction.

The "Universal" Mouse Core

The most surprising finding was that a core trained on a diverse group of mice performed 12% better on a new mouse than a model trained specifically on that mouse from scratch. This suggests there is a common "computational language" in the mouse V1 that transcends individual differences.

Furthermore, this transfer-learned model exhibited extreme data efficiency. It reached the same performance level as a directly trained model using only 40% of the data.

ImageNet Isn't Everything

For mouse V1, features learned directly from neural data are significantly more predictive than features learned from human-centric tasks like object recognition. The data-driven core outperformed the task-driven VGG16 model by 33%, confirming that mouse visual processing differs fundamentally from the object-recognition-heavy processing seen in primates or standard AI benchmarks.

Performance comparison showing data-driven transfer models outperforming direct training and VGG16.

Overall, the Gaussian readout alone improved prediction performance by 7% over the previous state-of-the-art factorized readout, establishing a new benchmark for the field.

Limitations and Future Work

While these results are a significant leap forward, several questions remain:

  • Temporal Resolution: The data used "deconvolved" calcium traces integrated over 500ms, which is quite slow. It remains to be seen if these generalizing cores hold up for high-speed dynamics (e.g., from electrophysiology).
  • Higher Visual Areas: This study focused exclusively on V1. Whether this level of generalization exists in higher-order visual areas—where representations become more complex and potentially more individualized—is an open question.
  • The Species Gap: While this data-driven approach works exceptionally well for mice, task-driven models still hold the lead in primates. Bridging the gap between data-driven mouse models and task-driven primate models is a key future direction for computational neuroscience.

Summary updated

BibTeX
@inproceedings{lurz2021generalization,
  author = {Konstantin-Klemens Lurz and Mohammad Bashiri and Konstantin Willeke and Akshay Kumar Jagadish and Eric Wang and Edgar Y. Walker and Santiago A. Cadena and Taliah Muhammad and Erick Cobos and Andreas S. Tolias and Alexander S. Ecker and Fabian H. Sinz},
  title = {{Generalization in data-driven models of primary visual cortex}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure