Star on GitHubStar3.9k stars

2024 · Conference paper

Generating Code World Models with Large Language Models Guided by Monte Carlo Tree Search

GIF-MCTS generates executable Python transition and reward models from natural-language environment descriptions and offline state-transition trajectories, using prediction feedback to generate, improve and repair code. CWMB evaluates 18 reinforcement-learning environments and downstream planning; a separate experiment uses a simplified Read to Fight Monsters grid world.

Scope and limitations

Assumes deterministic, fully observable dynamics and sufficiently detailed descriptions; the input scope requires those descriptions and observable states, with pixels or binaries alone outside it. Accuracy uses the replay transitions supplied during synthesis, alongside planning-return evaluation; correctness on all unseen states and full-engine equivalence remain untested. RTFM fixes the manual across episodes and keeps monsters stationary. CWMB also includes non-game control and physics tasks; some planning returns are unavailable and complex continuous-state models remain difficult.

Why it fits this collection

Shows how documented rules and observed transitions in game-like environments can become executable behavior models with test feedback. The models cover documented rules and observed transitions; original engines, graphics and assets remain outside their scope.

Cite

@inproceedings{paper-code-world-models,
  title = {{Generating Code World Models with Large Language Models Guided by Monte Carlo Tree Search}},
  author = {{Nicola Dainese} and {Matteo Merler} and {Minttu Alakuijala} and {Pekka Marttinen}},
  year = {2024},
  url = {https://proceedings.neurips.cc/paper_files/paper/2024/hash/6f479ea488e0908ac8b1b37b27fd134c-Abstract-Conference.html},
  booktitle = {Advances in Neural Information Processing Systems},
  volume = {37},
  pages = {60429--60474},
  doi = {10.52202/079017-1933},
  eprint = {2405.15383},
  archivePrefix = {arXiv}
}

Read in a terminal: hf papers read 2405.15383

Publication and review details

Venue
NeurIPS 2024
Status
Conference paper
Publication / posting date
2024 (exact date not verified)
Date source
The publication date is recorded to the year (2024), from the final NeurIPS proceedings and the publisher-deposited Crossref record; conference event dates are not used as publication dates.
First arXiv submission
May 24, 2024
arXiv
2405.15383
DOI
10.52202/079017-1933

Reviewed the final proceedings paper, pages 60429–60474. Its WorldCoder baseline follows the first arXiv version, not later revisions. The Apache-2.0 repository provides prompts, replay-buffer files and evaluation scripts; bundled RTFM carries CC BY-NC 4.0. The pinned evaluator balances reward classes, grants partial credit over next-state components, skips terminal next-state checks, and accepts nonempty valid-action subsets for RTFM; continuous states use 1e-5 relative/absolute tolerance. The planning script defaults to two episodes, while the paper reports ten. Reproduction needs the Linux-oriented Conda/Python 3.10 environment, Gymnasium/MuJoCo and model access.

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://proceedings.neurips.cc/paper_files/paper/2024/hash/6f479ea488e0908ac8b1b37b27fd134c-Abstract-Conference.html
  2. https://proceedings.neurips.cc/paper_files/paper/2024/file/6f479ea488e0908ac8b1b37b27fd134c-Paper-Conference.pdf
  3. https://api.crossref.org/works/10.52202/079017-1933
  4. https://arxiv.org/abs/2405.15383
  5. https://sites.google.com/view/code-world-models/home
  6. README.md GitHub · nicoladainese96/code-world-models · Revision e17e787
  7. LICENSE GitHub · nicoladainese96/code-world-models · Revision e17e787
  8. RTFM/LICENSE GitHub · nicoladainese96/code-world-models · Revision e17e787
  9. environment.yml GitHub · nicoladainese96/code-world-models · Revision e17e787
  10. src/mcts/gif_mcts/simulators/simulator_cwm.py GitHub · nicoladainese96/code-world-models · Revision e17e787
  11. src/cwm_benchmark/generate_env.py GitHub · nicoladainese96/code-world-models · Revision e17e787
  12. src/experiments/eval_cwm_planning.py GitHub · nicoladainese96/code-world-models · Revision e17e787
  13. data/prompts/rtfm/generate.md GitHub · nicoladainese96/code-world-models · Revision e17e787
↑↓ move↵ open⌘↵ new tab