Our new X account is live! Follow @wizwand_team for updates
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
Hierarchical PlanningMinihack 15x15
Token Cost0.00e+0
6
Hierarchical PlanningMinihack-Traps
Token Cost0.00e+0
6
Hierarchical PlanningMinihack Monster
Token Cost0.00e+0
6
Hierarchical PlanningSokoban
Token Cost1.97e+4
6
Hierarchical PlanningBabyAI Pickup
Token Cost1.80e+4
6
Hierarchical PlanningMinihack 5x5
Token Cost8.14e+3
6
Hierarchical PlanningLabyrinth
Token Cost5.64e+4
6
Hierarchical PlanningMaze
Token Cost5.61e+4
6
Hierarchical PlanningBabyAI Unlock
Token Cost9.79e+4
6
Hierarchical PlanningBabyAI Combined Skills 1
Token Cost1.19e+5
6
Showing 10 of 15 rows

Other info

Follow for update