[Paper Review] Guiding Pretraining in Reinforcement Learning with Large Language Models
ELLM uses pretrained large language models to propose exploration goals and rewards agents for achieving them, improving pretraining exploration and downstream task performance in Crafter and Housekeep.
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.
Motivation & Objective
- Reduce reliance on hand-crafted rewards by leveraging LLM priors to shape exploration.
- Ensure exploration targets are diverse, common-sense, and context-sensitive.
- Evaluate ELLM in complex environments (Crafter and Housekeep) and compare to KB-IM baselines.
- Analyze robustness to imperfect captions and variations in prompt strategies.
Proposed method
- Generate exploration goals using a pretrained LLM conditioned on the agent's current state caption C_obs and available actions.
- Use open-ended generation or closed-form QA prompts to obtain candidate goals; apply few-shot guidance in prompts.
- Reward the agent via a semantic similarity Δ between the environment transition caption and LLM-suggested goals, using SentenceBERT embeddings; take the maximum over k goals.
- Apply a novelty bias by filtering out goals already achieved in the current episode.
- Train with a DQN-based framework, optionally providing language-state embeddings as input to the policy.
- Evaluate both goal-conditioned and goal-free variants to assess the benefit of language-conditioned policies.
Experimental results
Research questions
- RQ1Do LLM-suggested goals exhibit diversity, common-sense sensitivity, and context-sensitivity as intended?
- RQ2Does pretraining with ELLM improve downstream task performance compared to non-LLM baselines or ablations?
- RQ3How robust is ELLM to imperfect or learned captioners for transitions and observations?
- RQ4Is goal-conditioned ELLM consistently superior to goal-free variants across tasks?
Key findings
- In Crafter, the majority of LLM-suggested goals are context-sensitive, sensible, and achievable (64.9%); some violations arise from context-sensitivity or common-sense constraints.
- ELL M pretraining achieves around 6 unique achievements per episode, outperforming novelty-based baselines and approaching Oracle performance on exploration quality.
- Goal-conditioned ELLM often yields the best downstream performance on Crafter, with nonzero performance across all tasks, indicating benefit of language-guided goals.
- In Housekeep, ELLM shows higher pretraining rearrangement success in most tasks, and downstream finetuning with pretrained exploration matches or exceeds baselines in several settings.
- Using a learned captioner reduces but does not abolish ELLM performance, indicating robustness to imperfect captioning; larger LLMs and better prompts improve results.
- Housekeep results suggest KB-IM baselines can be competitive for some downstream setups when freezing the pretrained policy during exploration.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.