Skip to main content
QUICK REVIEW

[Paper Review] Large-Scale Retrieval for Reinforcement Learning

Peter C. Humphreys, Arthur Guez|arXiv (Cornell University)|Jun 10, 2022
Reinforcement Learning in RoboticsComputer Science11 citations
TL;DR

This paper proposes a retrieval-augmented reinforcement learning framework that enables agents to dynamically access tens of millions of expert demonstration states via approximate nearest-neighbor search, significantly improving decision-making in 9x9 Go. The method achieves end-to-end training where the agent learns to use retrieved context to boost prediction accuracy and game performance without retraining, even when new data is added at inference time.

ABSTRACT

Effective decision making involves flexibly relating past experiences and relevant contextual information to a novel situation. In deep reinforcement learning (RL), the dominant paradigm is for an agent to amortise information that helps decision making into its network weights via gradient descent on training losses. Here, we pursue an alternative approach in which agents can utilise large-scale context sensitive database lookups to support their parametric computations. This allows agents to directly learn in an end-to-end manner to utilise relevant information to inform their outputs. In addition, new information can be attended to by the agent, without retraining, by simply augmenting the retrieval dataset. We study this approach for offline RL in 9x9 Go, a challenging game for which the vast combinatorial state space privileges generalisation over direct matching to past experiences. We leverage fast, approximate nearest neighbor techniques in order to retrieve relevant data from a set of tens of millions of expert demonstration states. Attending to this information provides a significant boost to prediction accuracy and game-play performance over simply using these demonstrations as training trajectories, providing a compelling demonstration of the value of large-scale retrieval in offline RL agents.

Motivation & Objective

  • To enable deep reinforcement learning agents to access and utilize vast external datasets of past experiences during inference.
  • To overcome the limitations of purely parametric models that require extensive retraining to incorporate new information.
  • To explore whether large-scale, context-sensitive retrieval can improve generalization and decision-making in combinatorial environments like 9x9 Go.
  • To demonstrate that retrieval can be used as a scalable, efficient, and adaptive mechanism for integrating diverse information sources into RL agents.
  • To validate that retrieval enhances performance even under distribution shift and without additional training.

Proposed method

  • The agent uses a semi-parametric architecture that combines a parametric policy network with a retrieval mechanism to access relevant past experiences.
  • Relevant experiences are retrieved using approximate nearest-neighbor (ANN) search in a learned embedding space of board states.
  • The retrieval query is generated from the current observation via a query network, and the top-k nearest neighbors are used as context to condition the policy and value predictions.
  • The model is trained end-to-end in an offline supervised RL setting using demonstrations from a dataset of ~50 million expert Go games.
  • Monte Carlo Tree Search (MCTS) is applied at inference to further improve policy performance using retrieved context.
  • The retrieval dataset can be dynamically updated at inference time with new game data, enabling immediate performance gains without retraining.

Experimental results

Research questions

  • RQ1Can large-scale, context-sensitive retrieval of past experiences improve decision-making in deep reinforcement learning agents?
  • RQ2Does retrieval-based access to external data lead to better generalization in combinatorial environments like 9x9 Go?
  • RQ3Can agents adapt to new information at inference time without retraining, simply by updating the retrieval database?
  • RQ4How does retrieval compare to traditional replay or parametric amortization in terms of performance and efficiency?
  • RQ5To what extent does retrieval synergize with planning methods like MCTS in out-of-distribution settings?

Key findings

  • The retrieval-augmented agent significantly outperformed a strong non-retrieval baseline in both prediction accuracy and game-play performance on 9x9 Go.
  • Adding new games played against the evaluation opponent to the retrieval dataset improved agent performance immediately, without any retraining.
  • Even when randomly retrieved neighbors were used at inference, the agent retained substantial performance, indicating that the model had learned to generalize from retrieved data during training.
  • The combination of retrieval and MCTS led to synergistic performance gains, with both increasing simulations and retrieved neighbors boosting results.
  • The method demonstrated compute efficiency, with retrieval providing a strong performance boost relative to the cost of increasing MCTS simulations.
  • The approach enables end-to-end learning of how to use retrieved information, unlike prior methods that prescribe fixed mechanisms for using past data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.