background
logo
ArxivPaperAI

WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environment

Author:
Hao Tang, Darren Key, Kevin Ellis
Keyword:
Computer Science, Artificial Intelligence, Artificial Intelligence (cs.AI), Computation and Language (cs.CL)
journal:
--
date:
2024-02-19 00:00:00
Abstract
We give a model-based agent that builds a Python program representing its knowledge of the world based on its interactions with the environment. The world model tries to explain its interactions, while also being optimistic about what reward it can achieve. We do this by extending work on program synthesis via LLMs. We study our agent on gridworlds, finding our approach is more sample-efficient compared to deep RL, and more compute-efficient compared to ReAct-style agents.
PDF: WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environment.pdf
Empowered by ChatGPT