Reward-based training of recurrent neural networks for cognitive and value-based tasks

Hui Song, Guangyu Robert Yang, Xiao‐Jing Wang

This paper, published in bioRxiv by researchers from NYU and NYU Shanghai, represents a significant step in bridging the gap between artificial intelligence and systems neuroscience. By moving away from supervised learning and toward reinforcement learning, the authors provide a more biologically plausible framework for how the brain learns to navigate complex decisions.

TL;DR

Researchers successfully trained recurrent neural networks (RNNs) to perform complex cognitive and economic tasks using only reward-based feedback. These models not only mimic animal behavior but also spontaneously develop neural activity patterns—such as ramping signals and mixed selectivity—strikingly similar to those recorded in the brains of behaving monkeys and rats.

What Problem Does This Paper Address?

In computational neuroscience, researchers often train RNNs to simulate brain functions like working memory or decision-making. Traditionally, these models are trained using supervised learning, where the network is told exactly what the "correct" output should be at every moment.

However, animals don't have access to a "teacher" providing a graded error signal. Instead, they learn through reinforcement learning (RL)—performing actions and receiving rewards or punishments. Furthermore, supervised learning struggles with "value-based" tasks (like choosing between apple juice and grape juice) or "confidence" tasks (deciding whether to bet on a choice), where there is no objective "correct" answer, only subjective preference or internal judgment. This paper addresses the need for a unified training framework that relies on realistic reward feedback.

Methods

The authors utilized an actor-critic architecture consisting of two RNN modules:

  1. The Policy Network (Actor): Receives sensory inputs and selects actions (e.g., "look left," "look right," or "maintain fixation").
  2. The Value Network (Critic): Observes the activity and actions of the policy network to predict future rewards.

Key Technical Details: * Algorithm: They used the REINFORCE policy gradient algorithm. The value network provides a "baseline" that helps the policy network learn more efficiently by reducing the noise (variance) in the reward signal. * RNN Units: Instead of standard "black box" units, they used modified Gated Recurrent Units (GRUs) with threshold-linear activation functions. This makes the units behave more like real biological neurons (firing rates are always positive and have leaky dynamics). * Training: The networks were optimized using the Adam stochastic gradient descent algorithm with gradient clipping to prevent mathematical instabilities.

Datasets

The "datasets" in this study are simulated versions of six classic experimental paradigms from systems neuroscience:

  1. Random Dots Motion (RDM): Discriminating the direction of moving dots.
  2. Context-Dependent Integration: Focusing on one stimulus feature (e.g., color) while ignoring another (e.g., motion) based on a cue.
  3. Multisensory Integration: Combining visual flashes and auditory clicks to estimate event rates.
  4. Parametric Working Memory: Comparing the frequencies of two vibrations separated by a delay.
  5. Postdecision Wagering: Choosing between a risky bet for a large reward or a "sure bet" for a small, guaranteed reward.
  6. Value-Based Economic Choice: Choosing between different "juices" offered in varying amounts.

Key Insights and Ideas

  • Value for Learning vs. Execution: A major insight is that the value network is essential for learning a task but unnecessary for executing it once learned. This mirrors clinical observations where damage to the basal ganglia or orbitofrontal cortex (OFC) prevents animals from learning new contingencies but leaves previously learned habits intact.
  • Emergent Neural Hallmarks: Without being explicitly programmed to do so, the policy network developed "ramping" activity (where firing rates climb as evidence accumulates) and "mixed selectivity" (where single neurons respond to multiple task variables), both of which are frequently observed in the prefrontal and parietal cortex.
  • Confidence as a Byproduct: In the wagering task, the value network’s prediction of future reward naturally functioned as a proxy for "confidence." This suggests that the brain's ability to report certainty might be a fundamental byproduct of the reinforcement learning process.

Key Results

  • Behavioral Accuracy: The networks reached high performance levels across all tasks. For the RDM task, the networks reached target performance in approximately 7,000 trials.
  • Optimal Integration: In the multisensory task, the RNNs combined visual and auditory information "optimally," meaning their performance improved in a way that mathematically matched the reduction in sensory uncertainty (following the sum-of-variances rule).
  • Economic Choice: In the value-based task, the value network units showed tuning patterns (selective for "chosen value" or "offer value") that were nearly identical to neural recordings from the monkey orbitofrontal cortex.

Limitations and Future Work

  • Biological Plausibility of Gradients: While the feedback (reward) is biological, the mechanism for updating weights (Backpropagation Through Time) is generally considered biologically implausible. The authors suggest that future work should explore more "local" learning rules.
  • Dale’s Principle: The current model does not strictly separate excitatory and inhibitory neurons, a fundamental feature of biological brain circuits.
  • Continuous Actions: The tasks used discrete choices (Left vs. Right). Real-world behavior often involves continuous actions (like the precise trajectory of a reaching arm), which the authors identify as a promising area for expansion.
  • Connectivity Analysis: While the authors can analyze the "state-space" of the network, they note that we still lack systematic methods to fully explain how specific synaptic connectivity patterns implement high-level cognitive policies.

Summary updated

BibTeX
@inproceedings{song2017reward,
  author = {Hui Song and Guangyu Robert Yang and Xiao‐Jing Wang},
  title = {{Reward-based training of recurrent neural networks for cognitive and value-based tasks}},
  booktitle = {eLife},
  year = {2017},
  doi = {10.7554/elife.21492},
}
Figure