Artificial neural networks for neuroscientists: A primer

Guangyu Robert Yang, Xiao-Jing Wang

For decades, the fields of neuroscience and artificial intelligence have traded ideas like neighbors over a fence. However, as deep learning has exploded into a dominant technological force, the fence has grown taller. In their primer, "Artificial neural networks for neuroscientists," Guangyu Robert Yang and Xiao-Jing Wang aim to tear that fence down, showing how artificial neural networks (ANNs) are not just tools for data analysis, but powerful "model systems" for understanding the biological brain.

TL;DR

This paper provides a comprehensive roadmap for neuroscientists to use artificial neural networks as functional models of biological circuits. By integrating biological constraints—like Dale’s Law and synaptic plasticity—into deep learning frameworks, researchers can move beyond simple "hand-built" models to capture the complexity of real-world behavior and neural dynamics.

What Problem Does This Paper Address?

Traditional computational neuroscience often relies on "hand-constructed" models designed to perform specific, simple functions. While these models offer clarity, they often fail to capture the messy reality of the brain: the heterogeneous activity of the prefrontal cortex, the multi-layered complexity of the visual system, or the ability to perform diverse tasks simultaneously.

The authors argue that ANNs offer a "goal-driven" alternative. Instead of building a circuit by hand, researchers can define a task (the objective) and a set of biological constraints (the architecture), then let optimization algorithms (the learning) find a solution. This allows for the creation of candidate models for brain functions that were previously nearly impossible to simulate.

Figure 1: Reasons for using ANNs for neuroscience research. (Top left) Neu- ral/Behavioral data analysis. ANNs can serve as image processing tools for efficient pose estimation (color dots). Figure inspired from Nath et al. [2019]. (Top right) Modeling complex behaviors. ANNs can perform object discrimination tasks involv- ing challenging naturalistic visual objects. Figure adapted from Kar et al. [2019]. (Bottom left) Illustrating that ANNs can be used to model complex neural activ- ity/connectivity patterns (blue lines). (Bottom right) Understanding neural circuits from an optimization perspective. In this view, functional neural networks (star sym- bol) are results of the optimization (arrows) of an objective function in an abstract space of a model constrained by the neural network architecture (colored space).

Methods

The primer introduces the "three basic ingredients" of any deep learning study:

  1. The Learning Problem: Defining what the network should do (e.g., supervised classification of digits or reinforcement learning in a maze).
  2. Network Architecture: Choosing the structure, such as Multi-Layer Perceptrons (MLPs) for basic mapping, Convolutional Neural Networks (CNNs) for vision, or Recurrent Neural Networks (RNNs) for time-dependent tasks.
  3. Training Algorithm: Using Stochastic Gradient Descent (SGD) and Backpropagation to update connection weights.

What makes this primer unique is its focus on biological customization. The authors detail how to modify these standard ML tools to be more "brain-like":

  • Dale’s Law: Separating neurons into distinct excitatory and inhibitory populations.
  • Structured Connectivity: Implementing sparse connections or multi-area hierarchies.
  • Plasticity Rules: Incorporating Hebbian learning and short-term synaptic plasticity (STP) directly into the differentiable framework.

Datasets

The paper references several standard benchmarks and experimental paradigms:

  • MNIST: The classic handwritten digit dataset for basic classification.
  • ImageNet: Millions of natural images used to train CNNs that model the primate visual stream.
  • Behavioral Tasks: Simplifications of laboratory experiments, such as the "random-dot motion" task for decision-making and "delayed match-to-category" (DMC) tasks for working memory.

Key Insights and Ideas

  • The Optimization Perspective: We can view neural circuits as the result of an evolutionary and developmental process that optimizes for survival under physical constraints. ANNs allow us to test which specific objectives (e.g., energy efficiency vs. accuracy) lead to brain-like structures.
  • Hierarchical Correspondence: CNNs aren't just good at vision; their internal layers naturally map onto the biological hierarchy of the visual cortex. Early layers resemble V1, while deeper layers resemble the Inferior Temporal (IT) cortex.
  • State-Space Dynamics: RNNs solve tasks by creating "attractors" in their neural activity space. For example, a network might develop a "line attractor" to hold a continuous value in working memory, mirroring what is observed in monkey prefrontal cortex recordings.
Understanding network computation through state-space and dynamical system analysis.
  • Activity-Silent Memory: By adding short-term plasticity to an ANN, the network can learn to store information in "hidden" synaptic weights rather than through constant neural firing. This provides a computational proof-of-concept for "activity-silent" working memory in the brain.

Key Results

  • Neural Predictivity: CNNs trained on image classification are currently the most accurate models for predicting neural responses in the primate ventral stream, outperforming all previous hand-designed models.
  • Mixed Selectivity: ANNs naturally reproduce "mixed selectivity"—where single neurons respond to complex combinations of task variables—a hallmark of the prefrontal cortex that was historically difficult to model.
  • Emergent Wiring: When trained with Dale’s Law, RNNs develop connectivity patterns (like recurrent excitation between similarly tuned neurons) that match biologically-derived models of decision-making.

Limitations and Future Work

The authors are candid about the hurdles remaining:

  • Biological Plausibility of Learning: Backpropagation requires non-local information that biological synapses likely don't have access to. Finding "biologically realistic gradient descent" is a major open question.
  • Spiking Networks: Most current ANNs use continuous "rate" units. Moving to Spiking Neural Networks (SNNs) is computationally difficult because spikes are non-differentiable, making them hard to train with standard algorithms.
  • The "Black Box" Problem: While ANNs are easier to probe than a real brain, they are still incredibly complex. The authors emphasize that training a network is just the beginning; the real work lies in "opening the black box" through dynamical systems analysis and lesion studies.

Summary updated

Abstract

Artificial neural networks (ANNs) are essential tools in machine learning that have drawn increasing attention in neuroscience. Besides offering powerful techniques for data analysis, ANNs provide a new approach for neuroscientists to build models for complex behaviors, heterogeneous neural activity and circuit connectivity, as well as to explore optimization in neural systems, in ways that traditional models are not designed for. In this pedagogical Primer, we introduce ANNs and demonstrate how they have been fruitfully deployed to study neuroscientific questions. We first discuss basic concepts and methods of ANNs. Then, with a focus on bringing this mathematical framework closer to neurobiology, we detail how to customize the analysis, structure, and learning of ANNs to better address a wide range of challenges in brain research. To help the readers garner hands-on experience, this Primer is accompanied with tutorial-style code in PyTorch and Jupyter Notebook, covering major topics.
BibTeX
@inproceedings{yang2020artificial,
  author = {Guangyu Robert Yang and Xiao-Jing Wang},
  title = {{Artificial neural networks for neuroscientists: A primer}},
  booktitle = {Neuron},
  year = {2020},
  doi = {10.1016/j.neuron.2020.09.005},
}
Figure