Fast deep reinforcement learning using online adjustments from the past.

Steven Hansen, Alexander Pritzel, Pablo Sprechmann, André Barreto, Charles Blundell

Abstract

We propose Ephemeral Value Adjustments (EVA): a means of allowing deep reinforcement learning agents to rapidly adapt to experience in their replay buffer. EVA shifts the value predicted by a neural network with an estimate of the value function found by prioritised sweeping over experience tuples from the replay buffer near the current state. EVA combines a number of recent ideas around combining episodic memory-like structures into reinforcement learning agents: slot-based storage, content-based retrieval, and memory-based planning. We show that EVA is performant on a demonstration task and Atari games.

Introduction

In the field of Deep Reinforcement Learning (RL), agents typically learn by repeatedly sampling past experiences and adjusting internal neural network weights via gradient descent. While effective for generalization, this process is notoriously slow and sample-inefficient. Drawing inspiration from the Complementary Learning Systems (CLS) theory in neuroscience—which suggests that humans utilize both a slow-learning neocortex for generalization and a fast-learning hippocampus for episodic memory—we introduce Ephemeral Value Adjustments (EVA).

Contemporary agents like DQN primarily rely on the "slow" system. This leads to several issues: slow integration of high-reward discoveries, data waste as replay buffers overwrite valuable experiences, and a failure to leverage the sequential flow of trajectories. EVA addresses these limitations by augmenting parametric models with a fast, episodic memory system that performs local planning at decision time.

Methodology: Ephemeral Value Adjustments (EVA)

The core innovation of EVA is a non-parametric planning component that works alongside a standard agent. The system maintains an Augmented Buffer that stores state-action-reward tuples along with pointers to successor states and low-dimensional state embeddings.

The EVA framework: Experience is stored in a replay buffer, backed up into a value buffer via trajectory-centric planning, and then combined with parametric network predictions for action selection.

Trajectory-Centric Planning (TCP)

At decision time, the agent retrieves the $k$-nearest neighbors from its memory based on the current state embedding. It then performs Trajectory-Centric Planning (TCP), simulating trajectories forward from these past states to estimate the "true" value of the current state. This process treats the replay buffer as a local model of the environment, allowing the agent to "think back" to similar past experiences.

The Mixing Formula

Action selection is guided by a hybrid value function that combines the parametric neural network prediction ($Q_P$) with the non-parametric memory-based estimate ($Q_{NP}$):

$$Q(s, a) = \lambda Q_P(s, a) + (1 - \lambda) Q_{NP}(s, a)$$

These adjustments are "ephemeral" because they are used only for the current action selection and are not immediately baked into the network weights, protecting the long-term model from being corrupted by noisy, local fluctuations.

Experimental Evaluation

EVA was evaluated on two primary benchmarks: a Gridworld (pycolab) "collect the coins" task designed to test spatial learning speed, and the Atari 2600 suite, the gold standard for complex visual RL.

Performance of EVA on Gridworld tasks. The left plot shows average return per episode, while the middle and right plots show learning curves for 1-coin and 2-coin tasks across different values of the mixing parameter lambda.

Key Results

  • Superior Sample Efficiency: On Atari games, EVA reached DQN's baseline performance in approximately 40 million frames, significantly faster than the 200 million frames typically required by standard methods.
  • Immediate Performance Boost: In Gridworld experiments, simply enabling EVA for a pre-trained agent provided an immediate jump in performance without any further training of the neural network.
  • Robustness: Across 55 Atari games, EVA achieved higher median human-normalized scores compared to parametric baselines, demonstrating more consistent and higher peak performance.

Discussion and Limitations

While EVA offers significant benefits, it introduces computational overhead due to $k$-nearest neighbor searches in large buffers. Its effectiveness is also highly dependent on the quality of state embeddings provided by the neural network. Furthermore, while the adjustments are ephemeral, a "perfect" agent should eventually consolidate these memories into its long-term weights. Future work may explore automated ways to achieve this consolidation, potentially by annealing the mixing parameter $\lambda$ over time. EVA represents a significant step toward bridging the gap between model-free and model-based RL, providing the benefits of planning without the overhead of learning a full transition model.

Summary updated

BibTeX
@inproceedings{hansen2018fast,
  author = {Steven Hansen and Alexander Pritzel and Pablo Sprechmann and André Barreto and Charles Blundell},
  title = {{Fast deep reinforcement learning using online adjustments from the past.}},
  booktitle = {NeurIPS},
  year = {2018},
  url = {https://openreview.net/forum?id=9xzVwjqwHF},
}
Figure