FactorSmith: Agentic Simulation Generation via Markov Decision Process Decomposition with Planner-Designer-Critic Refinement
On the map: LLM reasoning → Reasoning for agents, planning and code
also in 1 more
Abstract (arXiv)
Generating executable simulations from natural language specifications remains a challenging problem due to the limited reasoning capacity of large language models (LLMs) when confronted with large, interconnected codebases. This paper presents FactorSmith, a framework that synthesizes playable game simulations in code from textual descriptions by combining two complementary ideas: factored POMDP decomposition for principled context reduction and a hierarchical planner-designer-critic agentic workflow for iterative quality refinement at every generation step. Drawing on the factored partially observable Markov decision process (POMDP) representation introduced by FactorSim [Sun et al., 2024], the proposed method decomposes a simulation specification into modular steps where each step operates only on a minimal subset of relevant state variables, limiting the context window that any single LLM call must process. Inspired by the agentic trio architecture of SceneSmith [Pfaff et al., 2025], FactorSmith embeds within every factored step a three-agent interaction: a planner that orchestrates workflow, a designer that proposes code artifacts, and a critic that evaluates quality through structured scoring, enabling iterative refinement with checkpoint rollback. This paper formalizes the combined approach, presents the mathematical framework underpinning context selection and agentic refinement, and describes the open-source implementation. Experiments on the PyGame Learning Environment benchmark demonstrate that FactorSmith generates simulations with improved prompt alignment, fewer runtime errors, and higher code quality compared to non-agentic factored baselines.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 6 of its 23 references that are in the map. First posted on arXiv 15 Mar 2026.
Builds on
6 of 23 references.
Closest ancestors · 1
Same direction, newest first
Other references · 5
- 2023ChatDev: Communicative Agents for Software Developmentcited by 919
- 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 571
- 2023GenSim: Generating Robotic Simulation Tasks via Large Language Modelscited by 125
- 2023Level Generation Through Large Language Modelscited by 68
- 2024FactorSim: Generative Simulation via Factorized Representationcited by 10
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Code2Games: Enabling Coding Agents for Gaming World Generation
- 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debugging
- 2025SOCIA-nabla: Textual Gradient Meets Multi-Agent Orchestration for Automated Simulator Generation
- 2025SOCIA-Nabla: Textual Gradient Meets Multi-Agent Orchestration for Automated Simulator Generation
- 2026A2Z GameSpec-Bench: How Faithfully Can Coding Agents Generate Games from Game Design Specifications?
- 2025SimuGen: Multi-modal Agentic Framework for Constructing Block Diagram-Based Simulation Models
- 2026GameCraft-Bench: Can Agents Build Playable Games End-to-End in a Real Game Engine?
- 2026Distilling Game Code World Model Generation into Lightweight Large Language Models