Guiding Pretraining in Reinforcement Learning with Large Language Models

Yuqing Du, Olivia Watkins, Zihan Wang, Cédric Colas, Trevor Darrell +3 more
2/13/2023
cs.LGcs.AIcs.CL

Official code: yuqingd/ellm (91 stars, last commit 2023-08-21).

Abstract

Reinforcement learning algorithms typically struggle in the absence of a dense, well-shaped reward function. Intrinsically motivated exploration methods address this limitation by rewarding agents for visiting novel states or transitions, but these methods offer limited benefits in large environments where most discovered novelty is irrelevant for downstream tasks. We describe a method that uses background knowledge from text corpora to shape exploration. This method, called ELLM (Exploring with LLMs) rewards an agent for achieving goals suggested by a language model prompted with a description of the agent's current state. By leveraging large-scale language model pretraining, ELLM guides agents toward human-meaningful and plausibly useful behaviors without requiring a human in the loop. We evaluate ELLM in the Crafter game environment and the Housekeep robotic simulator, showing that ELLM-trained agents have better coverage of common-sense behaviors during pretraining and usually match or improve performance on a range of downstream tasks. Code available at https://github.com/yuqingd/ellm.

View on arXivView PDF

Code Implementations(1)

yuqingd/ellmOfficial100%
9113C++, ShellAug 7, 20233 years ago

Similar Papers

Cite this paper

@article{du2023guiding,
  title  = {Guiding Pretraining in Reinforcement Learning with Large Language Models},
  author = {Yuqing Du and Olivia Watkins and Zihan Wang and Cédric Colas and Trevor Darrell and Pieter Abbeel and Abhishek Gupta and Jacob Andreas},
  year   = {2023},
  eprint = {2302.06692},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.06692v2},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.06692.svg)](https://codeofpaper.com/paper/2302.06692)

Discussion