Projects per year
Abstract
In this work we consider Code World Models, world models generated by a Large Language Model (LLM) in the form of Python code for model-based Reinforcement Learning (RL). Calling code instead of LLMs for planning has potential to be more precise, reliable, interpretable, and extremely efficient.However, writing appropriate Code World Models requires the ability to understand complex instructions, to generate exact code with non-trivial logic and to self-debug a long program with feedback from unit tests and environment trajectories. To address these challenges, we propose Generate, Improve and Fix with Monte Carlo Tree Search (GIF-MCTS), a new code generation strategy for LLMs. To test our approach in an offline RL setting, we introduce the Code World Models Benchmark (CWMB), a suite of program synthesis and planning tasks comprised of 18 diverse RL environments paired with corresponding textual descriptions and curated trajectories. GIF-MCTS surpasses all baselines on the CWMB and two other benchmarks, and we show that the Code World Models synthesized with it can be successfully used for planning, resulting in model-based RL agents with greatly improved sample efficiency and inference speed.
Original language | English |
---|---|
Title of host publication | Advances in Neural Information Processing Systems 37 (NeurIPS 2024) |
Editors | A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, C. Zhang |
Publisher | Curran Associates Inc. |
ISBN (Print) | 9798331314385 |
Publication status | Published - 2025 |
MoE publication type | A4 Conference publication |
Event | Conference on Neural Information Processing Systems - Vancouver, Canada, Vancouver , Canada Duration: 10 Dec 2024 → 15 Dec 2024 Conference number: 38 https://neurips.cc/Conferences/2024 |
Publication series
Name | Advances in Neural Information Processing Systems |
---|---|
Publisher | Curran Associates, Inc. |
Volume | 37 |
ISSN (Print) | 1049-5258 |
Conference
Conference | Conference on Neural Information Processing Systems |
---|---|
Abbreviated title | NeurIPS |
Country/Territory | Canada |
City | Vancouver |
Period | 10/12/2024 → 15/12/2024 |
Internet address |
Fingerprint
Dive into the research topics of 'Generating Code World Models with Large Language Models Guided by Monte Carlo Tree Search'. Together they form a unique fingerprint.-
CLISHEAT/Marttinen: Green and digital healthcare
Marttinen, P. (Principal investigator)
EU The Recovery and Resilience Facility (RRF)
01/01/2023 → 31/12/2025
Project: Academy of Finland: Other research funding
-
INTERVENE: International consortium for integrative genomics prediction
Kaski, S. (Principal investigator)
01/01/2021 → 31/12/2025
Project: EU: Framework programmes funding
-
-: Finnish Center for Artificial Intelligence
Kaski, S. (Principal investigator)
01/01/2019 → 31/12/2022
Project: Academy of Finland: Other research funding