Star on GitHubStar3.9k stars

2024 · Conference paper

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

WorldCoder learns executable Python transition and reward models from environment interactions and natural-language goals. It refines code against recorded experiences and an optimistic planning constraint, studying transfer and task solving in Sokoban, MiniGrid and ALFWorld.

Scope and limitations

Assumes deterministic dynamics and symbolic, discrete states; inputs are confined to these symbolic states, with arbitrary pixels and binaries outside the input scope. Consistency with observed transitions and successful planning cover tested states; complete engine equivalence and correctness on every unseen state remain untested. Evaluation concerns bounded environment models and planning; original source and asset recovery remain outside its scope.

Why it fits this collection

Studies agent-assisted reconstruction of observed game behavior as executable code, checked against recorded interactions.

Cite

@inproceedings{paper-worldcoder,
  title = {{WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environment}},
  author = {{Hao Tang} and {Darren Key} and {Kevin Ellis}},
  year = {2024},
  url = {https://papers.nips.cc/paper_files/paper/2024/hash/820c61a0cd419163ccbd2c33b268816e-Abstract-Conference.html},
  booktitle = {Advances in Neural Information Processing Systems},
  volume = {37},
  pages = {70148--70212},
  doi = {10.52202/079017-2243},
  eprint = {2402.12275},
  archivePrefix = {arXiv}
}

Read in a terminal: hf papers read 2402.12275

Publication and review details

Venue
NeurIPS 2024
Status
Conference paper
Publication / posting date
2024 (exact date not verified)
Date source
The NeurIPS proceedings and publisher-deposited Crossref record identify publication year 2024; the publication month and day are unavailable.
First arXiv submission
February 19, 2024
arXiv
2402.12275
DOI
10.52202/079017-2243

The final NeurIPS paper, pages 70148–70212. The MIT author repository is a partial experiment artifact: its pinned environment registry exposes MiniGrid only, despite the README’s Sokoban example and broader paper experiments. The README warns about NumPy 2 incompatibility and older Gymnasium/MiniGrid dependencies.

Sources reviewed

Reviewed against the paper and its primary sources. Cite the original authors using the linked paper or BibTeX.

Report an outdated entry Suggest a translation fix

Discussed in the survey

Primary sources

  1. https://papers.nips.cc/paper_files/paper/2024/hash/820c61a0cd419163ccbd2c33b268816e-Abstract-Conference.html
  2. https://papers.neurips.cc/paper_files/paper/2024/file/820c61a0cd419163ccbd2c33b268816e-Paper-Conference.pdf
  3. https://api.crossref.org/works/10.52202/079017-2243
  4. https://arxiv.org/abs/2402.12275
  5. https://haotang1995.github.io/projects/worldcoder
  6. README.md GitHub · haotang1995/WorldCoder · Revision 9d9fc8d
  7. LICENSE GitHub · haotang1995/WorldCoder · Revision 9d9fc8d
  8. requirements.txt GitHub · haotang1995/WorldCoder · Revision 9d9fc8d
  9. worldcoder/envs/__init__.py GitHub · haotang1995/WorldCoder · Revision 9d9fc8d
  10. worldcoder/agent/synthesizer/evaluator.py GitHub · haotang1995/WorldCoder · Revision 9d9fc8d
↑↓ move↵ open⌘↵ new tab