The Role of Cortical Varibility in Supporting Few-shot Generalization: Theory and Empirical Evidence

Praveen Venkatesh, Jiaqi Shang, Corbett C Bennett, Sam Gale, Greggory Robert Heller, Tamina Keira Ramirez, Severine Durand, Eric Todd SheaBrown, Shawn R Olsen, Stefan MihalasNeuroAI @ NeurIPS 2024

TL;DR

This paper proposes and validates a theory that trial-to-trial neural variability, often seen as noise, is actually crucial for enabling brains to generalize from very few examples (few-shot learning). They show that this "noise" should be structured, mirroring the data's own variability, and demonstrate this principle in both mouse visual cortex and artificial neural networks.

What Problem Does This Paper Address?

The brain's remarkable ability to learn new concepts from just a handful of examples (few-shot generalization) is a long-standing puzzle. Simultaneously, neuroscientists have long observed that individual neurons exhibit significant "noise" – variability in their responses even to identical stimuli. Traditionally, this variability has been viewed as a limitation on information processing. This paper bridges these two observations, asking: could this seemingly random neural variability actually be a computational tool that enables few-shot generalization? They hypothesize that this variability isn't random but has a specific structure that helps the brain learn general rules rather than memorizing specific instances.

Methods

The authors develop a theoretical framework based on a simplified Gaussian model of neural activity. From this model, they derive three key predictions about the optimal structure of neural variability for few-shot generalization:

  1. Alignment with In-Class Variance: Optimal variability should "smear" representations along directions that are common within a class, effectively augmenting the dataset.
  2. Shrinkage Perpendicular to Decision Boundary: When distinguishing between two classes, variability should be minimized in the direction that separates them.
  3. Shrinkage with More Data: As more examples become available, the beneficial effect of this structured variability should decrease.

To test these predictions, they employ:

  • Experimental Neural Data: They analyze recordings from mouse visual cortex during passive viewing and active discrimination tasks.
  • Artificial Neural Networks: They train a convolutional neural network (CNN) and inject structured noise into its intermediate layers to see if it can learn to generalize to rotated digits, a task it's not explicitly trained for.

Datasets

  • Mouse Visual Cortex Data: Two datasets from the Allen Institute were used, involving mice viewing movie clips and flashing images. These datasets capture neural activity (spike counts) from the visual cortex. The data was collected during both passive viewing and an active licking task, and under conditions of novel and familiar stimuli.
  • MNIST Dataset: A standard benchmark dataset of handwritten digits was used for training and evaluating the convolutional neural network.

Key Insights and Ideas

  • Variability as a Feature, Not a Bug: The core idea is that "noise" in neural responses isn't just a nuisance; it's a structured computational resource that helps generalize.
  • Mimicking Data Structure: The optimal variability should mirror the inherent variability within a class of data, effectively creating more "examples" for the learning system.
  • Task-Specific Shrinkage: When actively learning to discriminate, the brain (or an artificial system) can selectively reduce variability along task-relevant dimensions, focusing on the decision boundary.
  • Artificial Generalization: Injecting appropriately structured noise into an artificial neural network can imbue it with generalization capabilities (e.g., to rotations) that it wouldn't otherwise possess.

Key Results

  • In Mouse Visual Cortex:
    • Trial-to-trial variability was found to be aligned with the in-class variance of stimuli, supporting Prediction 1.
  • When mice were actively engaged in a task, variability shrunk in a direction specific to the task (change/no-change discrimination), consistent with Prediction 2.
  • With increased stimulus familiarity, variability shrunk in all directions, aligning with Prediction 3.
  • In Artificial Neural Networks:
    • Injecting noise with a covariance structure derived from rotations into a CNN significantly improved its ability to generalize to rotated digits.
  • This structured noise injection achieved performance close to supervised training on rotated data, far exceeding a baseline with no noise or misaligned noise.

Limitations and Future Work

  • Simplified Model: The theoretical framework uses a simplified Gaussian model. The authors acknowledge that real neural activity is more complex and may not perfectly fit this model.
  • Mechanism of Variability: The paper doesn't delve into the precise biological mechanisms that generate this structured variability, suggesting it could arise from Hebbian plasticity or other learning rules.
  • Metric Sensitivity: The metrics used to quantify variability assume an ellipsoidal distribution. Highly anisotropic or skewed variability might not be fully captured.
  • Future Directions: The authors suggest further experiments to explore the relationship between variability structure and generalization in diverse settings. They also propose a more formal investigation into the mechanisms that could generate such structured variability.

Summary updated

BibTeX
@inproceedings{venkatesh2024role,
  author = {Praveen Venkatesh and Jiaqi Shang and Corbett C Bennett and Sam Gale and Greggory Robert Heller and Tamina Keira Ramirez and Severine Durand and Eric Todd SheaBrown and Shawn R Olsen and Stefan Mihalas},
  title = {{The Role of Cortical Varibility in Supporting Few-shot Generalization: Theory and Empirical Evidence}},
  booktitle = {NeuroAI @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=2FWkTBtSWJ},
}
Figure