Computer Science > Artificial Intelligence
[Submitted on 19 Feb 2024 (v1), last revised 20 Sep 2024 (this version, v3)]
Title:WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environment
View PDFAbstract: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 define this optimism as a logical constraint between a program and a planner. We study our agent on gridworlds, and on task planning, finding our approach is more sample-efficient compared to deep RL, more compute-efficient compared to ReAct-style agents, and that it can transfer its knowledge across environments by editing its code.
Submission history
From: Hao Tang [view email][v1] Mon, 19 Feb 2024 16:39:18 UTC (3,620 KB)
[v2] Sun, 26 May 2024 04:24:04 UTC (2,671 KB)
[v3] Fri, 20 Sep 2024 18:56:41 UTC (2,688 KB)
References & Citations
Loading...
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.