Toward Efficient Exploration by Large Language Model Agents
Dilip Arumugam, Thomas L. Griffiths
TL;DR
This work demonstrates that large language models can be harnessed to explicitly implement a data-efficient RL algorithm, Posterior Sampling for Reinforcement Learning (PSRL), by delegating posterior updating, posterior sampling, and policy optimization to separate LLMs. By representing epistemic uncertainty as a textual posterior and using language-grounded environment proxies (e.g., Wordle, combination lock, RiverSwim), the approach preserves PSRL’s exploration guarantees while enabling exploration in natural-language tasks. Empirical results show robust exploration in bandit and deterministic language tasks, with performance sensitive to the LLM's capabilities and prompting, and improved exploration under more powerful models in stochastic settings. The paper also discusses limitations in scaling stochastic environments and investigates alternatives like Information-Directed Sampling (IDS) to further balance exploration and data efficiency, suggesting a promising path for integrating classic RL algorithms with evolving LLM capabilities for real-world decision making.
Abstract
A burgeoning area within reinforcement learning (RL) is the design of sequential decision-making agents centered around large language models (LLMs). While autonomous decision-making agents powered by modern LLMs could facilitate numerous real-world applications, such successes demand agents that are capable of data-efficient RL. One key obstacle to achieving data efficiency in RL is exploration, a challenge that we demonstrate many recent proposals for LLM agent designs struggle to contend with. Meanwhile, classic algorithms from the RL literature known to gracefully address exploration require technical machinery that can be challenging to operationalize in purely natural language settings. In this work, rather than relying on finetuning or in-context learning to coax LLMs into implicitly imitating a RL algorithm, we illustrate how LLMs can be used to explicitly implement an existing RL algorithm (Posterior Sampling for Reinforcement Learning) whose capacity for statistically-efficient exploration is already well-studied. We offer empirical results demonstrating how our LLM-based implementation of a known, data-efficient RL algorithm can be considerably more effective in natural language tasks that demand prudent exploration.
