paper-with-me

Papers

Distilling Game Code World Model Generation into Lightweight Large Language Models

2026-05-23 · Tyrone Serapio, Arjun Prakash, Haoyang Xu, Kevin Wang, Amy Greenwald arxiv

Large Language Models (LLMs) have shown great ability in generating executable code from natural language, opening the possibility of automatically constructing environments for AI agents. Recent work on Code World Models (CWMs) demonstrates that LLMs can translate game rules into Python implementations compatible with solvers like Monte Carlo Tree Search. We study this problem in game settings, where generated environments must implement rules, legal actions, state transitions, observations, and rewards. We refer to these game-specific executable models as Game Code World Models (GameCWMs). However, current approaches to generating code world models rely on frontier models and inference-time refinement loops, limiting accessibility and scalability. This work investigates whether GameCWM generation capabilities can be distilled into smaller models through post-training. We introduce: (1) a curated dataset of 30 games spanning perfect and imperfect information games, (2) a verification framework that evaluates generated code against structural and semantic game properties, and (3) a post-training pipeline combining Supervised Fine-Tuning (SFT) with Reinforcement Learning with Verifiable Rewards (RLVR). We experiment with Qwen2.5-3B-Instruct and find that SFT can increase syntactic correctness, while RLVR can improve execution-level adherence to game rules, thereby improving Qwen's ability to generate valid GameCWMs in both perfect and imperfect information games. Overall, our pipeline makes Qwen2.5-3B-Instruct more capable of generating valid GameCWMs, thereby offering a scalable path toward automatic environment generation from natural language.

📄 PDF Abstract BibTeX arXiv:2605.24375

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

Moonshine: Distilling Game Content Generators into Steerable Generative Models

2024-08-18 · Yuhe Nie, Michael Middleton, Tim Merino, Nidhushan Kanagaraja 외

Procedural Content Generation via Machine Learning (PCGML) has enhanced game content creation, yet challenges in controllability and limited training data persist. This study addresses these issues by distilling a constr…

Language ModelingLanguage ModellingLarge Language Model

JAMER: Project-Level Code Framework Dataset and Benchmark on Professional Game Engines

2026-06-18 · Jianwen Sun, Chuanhao Li, Zizhen Li, Yukang Feng 외 arxiv

Current AI-driven game development has made substantial progress in asset generation, gameplay design, and web-based game coding, yet project-level code engineering on professional game engines remains largely unexplored…

Code Completion

Steps towards prompt-based creation of virtual worlds

2022-11-10 · Jasmine Roberts, Andrzej Banburski-Fahey, Jaron Lanier

Large language models trained for code generation can be applied to speaking virtual worlds into existence (creating virtual worlds). In this work we show that prompt-based methods can both accelerate in-VR level editing…

Code Generation

Template-free Data-to-Text Generation of Finnish Sports News

2019-10-04 · WS (NoDaLiDa) 2019 9 · Jenna Kanerva, Samuel Rönnqvist, Riina Kekki, Tapio Salakoski 외

News articles such as sports game reports are often thought to closely follow the underlying game statistics, but in practice they contain a notable amount of background knowledge, interpretation, insight into the game, …

ArticlesData-to-Text GenerationNews GenerationText Generation

Distilling Reinforcement Learning into Single-Batch Datasets

2025-08-12 · Connor Wilhelm, Dan Ventura arxiv

Dataset distillation compresses a large dataset into a small synthetic dataset such that learning on the synthetic dataset approximates learning on the original. Training on the distilled dataset can be performed in as l…

Reinforcement LearningAtari Games