Skip to main content
Cornell University
Learn about arXiv becoming an independent nonprofit.
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:2402.12275

Help | Advanced Search

Computer Science > Artificial Intelligence

(cs)
[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

Authors:Hao Tang, Darren Key, Kevin Ellis
View a PDF of the paper titled WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environment, by Hao Tang and 2 other authors
View PDF
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 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.
Subjects: Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
Cite as: arXiv:2402.12275 [cs.AI]
  (or arXiv:2402.12275v3 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2402.12275
arXiv-issued DOI via DataCite

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)
Full-text links:

Access Paper:

    View a PDF of the paper titled WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environment, by Hao Tang and 2 other authors
  • View PDF
  • TeX Source
license icon view license

Current browse context:

cs.AI
< prev   |   next >
new | recent | 2024-02
Change to browse by:
cs
cs.CL

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
Loading...

Bookmark

BibSonomy Reddit

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.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status