Abstract
Deep reinforcement learning (RL) typically requires massive amounts of data and struggles to adapt to new tasks. This paper introduces "deep meta-reinforcement learning," where a standard RL algorithm trains a recurrent neural network across a distribution of tasks. The network's internal dynamics subsequently emerge as a second, highly efficient, and domain-specific RL algorithm capable of rapid, one-shot learning on new tasks.
Introduction
Modern deep reinforcement learning (RL) systems can achieve superhuman performance on complex tasks like Go or Atari, but they suffer from two glaring flaws compared to human intelligence: they are terribly sample-inefficient (requiring millions of trials to learn) and they are rigid (specializing in only one specific environment). If the rules of a game change slightly, a standard deep RL agent usually has to relearn its policy from scratch.
The authors tackle this gap by exploring meta-learning ("learning to learn") in an RL context. The goal is to create an agent that can leverage prior experience across a family of related tasks to adapt to a new task in just a handful of steps, rather than millions.
Methods: Deep Meta-RL
The core approach of deep meta-RL is surprisingly simple and relies on standard architectures rather than bespoke meta-learning machinery. The authors use a standard model-free RL algorithm (Advantage Actor-Critic, or A2C/A3C) to train a Recurrent Neural Network (specifically, an LSTM).
The "trick" lies in the inputs provided to the LSTM. At every time step $t$, the network receives not only the current observation $x_t$, but also the action it took on the previous step ($a_{t-1}$) and the reward it received on the previous step ($r_{t-1}$).
During training across a distribution of related tasks (e.g., different maze layouts or different slot machine payouts), the A3C algorithm slowly updates the weights of the LSTM. However, during evaluation on a new task, the weights are frozen. Because the LSTM receives its past actions and rewards, its hidden activations update dynamically as it interacts with the environment. These recurrent dynamics effectively act as a second, entirely separate RL algorithm that operates on a much faster timescale than the gradient descent used to train the weights.
Experimental Evaluation
The authors evaluate their approach on distributions of interrelated RL environments (Markov Decision Processes and Bandits) rather than static datasets:
- Bandit Tasks: Including independent, dependent, informative, and restless bandits where reward probabilities drift over time.
- The "Two-Step" Task: A classic neuroscience MDP designed to test if an agent uses model-free or model-based planning.
- Harlow Task: A 3D visual environment (using ImageNet images as textures) testing abstract rule learning and one-shot object recognition.
- Labyrinth Navigation: A 3D maze where the goal location changes per episode.
Key Results
- Bandit Performance: The meta-RL agent outperformed standard algorithms (UCB, Thompson Sampling) because it leveraged the learned structural priors of the environment.
- One-Shot Visual Learning: In the 3D Harlow task, the agent achieved near-perfect one-shot learning. After seeing the reward outcome of a novel ImageNet object just once, the agent chose the correct object with near 100% accuracy on all subsequent trials.
- Rapid Navigation: In the Labyrinth task, the agent took ~100 steps to find a randomly placed goal the first time. On subsequent trials within the same episode, it used its recurrent memory to return to the goal in only ~30 steps.
Discussion and Insights
The most profound insight is that the learned RL algorithm (running in the RNN's activations) can be fundamentally different from the base algorithm (A3C) used to train the network's weights.
- Model-Free breeds Model-Based: Training the network with a purely model-free algorithm (A3C) produced an agent that exhibited model-based behavior in the Two-Step task, learning to understand transition dynamics and plan accordingly.
- Adaptive Learning Rates: In restless bandit tasks, the emergent algorithm dynamically adjusted its own effective learning rate based on environmental volatility—learning faster when the environment was changing rapidly.
- Information Seeking: The agent learned to pay a short-term reward penalty to pull an "informative" lever, demonstrating a sophisticated, learned balance of the exploration-exploitation tradeoff.
Limitations and Future Work
The learned RL algorithm is highly biased toward its training distribution; if tested on unstructured tasks, it may perform worse than general-purpose algorithms. Additionally, standard LSTMs have limited capacity, suggesting that scaling to extremely long time horizons will likely require augmenting the network with external memory structures. Finally, the authors suggest this framework bridges a gap in neuroscience, proposing that the brain's dopamine system acts as the slow, model-free base RL algorithm, while the prefrontal cortex acts as the fast, recurrent meta-RL algorithm.
Summary updated