Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

Hao Tang, Darren Key, Kevin Ellis• 2024

Related benchmarks

TaskDatasetResultRank
One-step next-observation predictionWebShop (test)
Token F158
16
One-step next-observation predictionALFWorld (test)
Token F163
16
One-step next-observation predictionMaze (test)
Token F188
16
One-step next-observation predictionTextCraft (test)
Token F188
16
One-step next-observation predictionBabyAI (test)
Token F178
16
One-step next-observation predictionWordle (test)
Token F10.55
16
One-step next-observation predictionAgentGym Unweighted Average (test)
Token F163
16
One-step next-observation predictionSciWorld (test)
Token F141
16
PlanningAlfWorld, BabyAI, Maze, SciWorld, TextCraft, WebShop, Wordle (held-out)
AlfWorld Success Rate3.5
7
Hierarchical PlanningMinihack 15x15
Token Cost0.00e+0
6
Showing 10 of 30 rows

Other info

Follow for update