Learning as Reinforcement: Applying Principles of Neuroscience for More General Reinforcement Learning Agents

Eric Zelikman, William Yin, Kenneth WangarXiv 2020

Abstract

A significant challenge in developing AI that can generalize well is designing agents that learn about their world without being told what to learn, and apply that learning to challenges with sparse rewards. Moreover, most traditional reinforcement learning approaches explicitly separate learning and decision making in a way that does not correspond to biological learning. We implement an architecture founded in principles of experimental neuroscience, by combining computationally efficient abstractions of biological algorithms. Our approach is inspired by research on spike-timing dependent plasticity, the transition between short and long term memory, and the role of various neurotransmitters in rewarding curiosity. The Neurons-in-a-Box architecture can learn in a wholly generalizable manner, and demonstrates an efficient way to build and apply representations without explicitly optimizing over a set of criteria or actions. We find it performs well in many environments including OpenAI Gym's Mountain Car, which has no reward besides touching a hard-to-reach flag on a hill, Inverted Pendulum, where it learns simple strategies to improve the time it holds a pendulum up, a video stream, where it spontaneously learns to distinguish an open and closed hand, as well as other environments like Google Chrome's Dinosaur Game.

Introduction

Modern reinforcement learning (RL) typically relies on a distinct separation between learning—often via backpropagation—and decision-making. This paradigm differs significantly from biological organisms, which learn continuously and often in environments characterized by sparse rewards. In such scenarios, feedback is infrequent, making it difficult for traditional agents to associate long sequences of actions with eventual success. This research introduces "Neurons-in-a-Box," an architecture designed to bridge this gap by utilizing biological learning rules and intrinsic motivation to navigate complex environments without human-defined sub-goals.

Methods: The Neurons-in-a-Box Architecture

The core of this approach is a simplified abstraction of a Spiking Neural Network (SNN). Rather than relying on traditional gradient descent, the architecture employs several biologically-inspired mechanisms:

  • Discrete STDP Update Rule: The authors derived a matrix-based version of Spike-Timing Dependent Plasticity (STDP). In biological systems, synaptic strength is adjusted based on the relative timing of pre- and post-synaptic firing. This implementation uses parallel matrix operations to simulate these updates efficiently.
  • Reward-Modulated STDP: To enable reinforcement learning, the STDP update is modulated by a reward signal. This effectively reinforces behaviors that lead to positive outcomes, mimicking the role of neurotransmitters like dopamine.
  • Plasticity Decay and Memory: To simulate the transition from short-term to long-term memory, a "plasticity mask" is used. Connections that are frequently strengthened eventually become "frozen," preventing the overwriting of stable, useful representations by transient noise.
  • Intrinsic Novelty Reward: The agent is motivated by "curiosity," calculated based on the magnitude of its own weight updates. High learning activity acts as an internal reward, encouraging the exploration of novel states.
The Neurons-in-a-Box architecture abstracts biological neural networks into a computationally efficient model for reinforcement learning.

Experimental Evaluation

The architecture was tested across a variety of domains to assess its generalizability:

  1. Control Tasks: In OpenAI Gym's Mountain Car, the agent successfully learned the momentum-based strategy required to reach the goal. In the continuous version, it reached the flag in under 100 steps after approximately 300 episodes.
  2. Logic and Games: The agent achieved 85% accuracy on the non-linear XOR problem. In the Chrome Dinosaur Game, it reached a high score of 168, significantly outperforming a random baseline (average score of 57).
  3. Visual Pattern Recognition: Using a live video stream, the network spontaneously learned to distinguish between a closed fist and an open hand. This unsupervised feature extraction occurred without explicit labels, mirroring the self-organizing properties of the primary visual cortex.
The agent demonstrated the ability to spontaneously learn visual representations, such as distinguishing between a closed fist and an open hand.

Discussion and Limitations

While the Neurons-in-a-Box architecture shows promise for generalizable learning, it faces challenges common in bio-inspired AI. The local nature of the learning rules and random initial connectivity lead to high stochasticity in performance across runs. Furthermore, the agent exhibited "reward hacking" in the Dinosaur Game, where it identified the novel "Game Over" screen as a high-reward state, leading to intentional failure.

Future research will focus on scaling the architecture to more complex robotic simulations (e.g., MuJoCo) and refining the neuronal "aging" process to improve the stability of long-term strategies.

Summary updated

BibTeX
@misc{zelikman2020learning,
  author = {Eric Zelikman and William Yin and Kenneth Wang},
  title = {{Learning as Reinforcement: Applying Principles of Neuroscience for More General Reinforcement Learning Agents}},
  year = {2020},
  eprint = {2004.09043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.09043},
}
Figure