Foundation model of neural activity predicts response to new stimulus types and anatomy

Eric Wang, Paul G. Fahey, Zhuokun Ding, Stelios Papadopoulos, Kayla Ponder, Marissa A. Weis, Andersen Chang, Taliah Muhammad, Saumil S. Patel, Zhiwei Ding, Dat Tran, Jiakun Fu, Casey M Schneider-Mizell, R. Clay Reid, Forrest Collman, Nuno Maçarico da Costa, Katrin Franke, Alexander S. Ecker, Jacob Reimer, Xaq Pitkow, Fabian H. Sinz, Andreas S. ToliasbioRxiv 2023

Abstract

The complexity of neural circuits makes it challenging to decipher the brain's algorithms of intelligence. Recent breakthroughs in deep learning have produced models that accurately simulate brain activity, enhancing our understanding of the brain's computational objectives and neural coding. However, these models struggle to generalize beyond their training distribution, limiting their utility. We developed a foundation model of the mouse visual cortex trained on vast datasets of neural activity. This model accurately predicts neuronal responses to arbitrary natural videos and generalizes to new mice with minimal training. It successfully predicts responses across various new stimulus domains and can be adapted to tasks beyond neural prediction, such as predicting anatomical cell types and connectivity. This work represents a crucial step toward building foundation brain models that uncover statistical regularities and accelerate neuroscience research.

Introduction

In artificial intelligence, "foundation models" like GPT-4 have transformed language and vision processing by training on massive, diverse datasets to achieve remarkable generalization. Researchers from the Baylor College of Medicine and German institutes have applied this philosophy to neuroscience, creating a foundation model of the mouse visual cortex. This model acts as a "digital twin," capable of predicting how neurons respond to stimuli they have never encountered before.

The Challenge of Brittle Models

Historically, functional models in neuroscience have been "brittle." A model trained on a specific mouse’s responses to natural movies typically fails when shown synthetic patterns or applied to a different subject. This lack of generalization suggests that previous models were overfitting to specific experimental conditions rather than capturing the underlying "algorithm" of the visual cortex. To advance our understanding, models must be generalizable to out-of-distribution (OOD) stimuli, data-efficient for new subjects, and scalable to integrate functional and structural datasets.

Modular Architecture for a Foundation Core

The researchers developed an Artificial Neural Network (ANN) with a modular architecture designed to separate experimental "physics" from brain "biology."

Modular architecture of the foundation model integrating behavioral state, gaze, and visual stimulus to predict neural responses.

The architecture includes:

  • Perspective Network: Accounts for head position and gaze using ray tracing and eye-tracking.
  • Modulation Network: An LSTM that processes behavioral states like running speed and pupil dilation to adjust neural excitability.
  • Foundation Core: A large, recurrent (Conv-LSTM) and feedforward network trained on a "foundation cohort" of 8 mice and ~66,000 neurons. This core represents the "universal" visual processing logic.
  • Readout Network: Maps core features to specific neurons based on their receptive field locations.

Data Efficiency and Generalization

By training on over 900 minutes of natural movie responses across multiple mice, the model learns to ignore individual idiosyncrasies and focus on fundamental cortical transformations. This "Foundation Core" can be frozen and transferred to new, unseen mice. Much like transfer learning in AI, the model can be adapted to a new subject with just a fraction of the data required for a from-scratch model.

Key Results and In Silico Validation

The foundation model demonstrated a 25–46% increase in predictive accuracy over previous state-of-the-art dynamic models. Notably, it exhibited extreme data efficiency: a model fine-tuned with only 16 minutes of data outperformed an individual model trained from scratch on over an hour of data.

Model performance (Median CC_norm) as a function of training data duration and across different visual areas.

Furthermore, the model's "readout" parameters implicitly learned spatial organization (retinotopy) without explicit instruction. Training on natural movies also improved predictions for synthetic stimuli (e.g., noise patterns), suggesting that natural scenes provide a sufficiently complete feature set for visual processing. The authors validated the model as a "digital twin" by performing virtual experiments—measuring orientation and direction tuning in silico—which closely matched in vivo measurements.

Discussion and Future Directions

While a significant milestone, the model currently focuses on passive visual input in the cortex. Future work aims to incorporate active behaviors like navigation and decision-making, as well as subcortical structures like the thalamus. Ultimately, such foundation models could enable in silico screening of pharmacological interventions before moving to animal models, accelerating the pace of discovery in neuroscience.

Reference: Wang, E. Y., et al. (2023). Towards a Foundation Model of the Mouse Visual Cortex. bioRxiv preprint. https://doi.org/10.1101/2023.03.21.533548

Summary updated

BibTeX
@misc{wang2023foundation,
  author = {Eric Wang and Paul G. Fahey and Zhuokun Ding and Stelios Papadopoulos and Kayla Ponder and Marissa A. Weis and Andersen Chang and Taliah Muhammad and Saumil S. Patel and Zhiwei Ding and Dat Tran and Jiakun Fu and Casey M Schneider-Mizell and R. Clay Reid and Forrest Collman and Nuno Maçarico da Costa and Katrin Franke and Alexander S. Ecker and Jacob Reimer and Xaq Pitkow and Fabian H. Sinz and Andreas S. Tolias},
  title = {{Foundation model of neural activity predicts response to new stimulus types and anatomy}},
  year = {2023},
  doi = {10.1101/2023.03.21.533548},
  howpublished = {bioRxiv},
}
Figure