atlas

Research map / Large language models / Language, safety and interpretability

FactorSim: Generative Simulation via Factorized Representation

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Faithfulness of LLM explanations · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces FactorSim, which generates full coded simulations from long text specs by decomposing into CoT steps and using a factored POMDP representation with model-view-controller prompts to limit context per step, evaluated on a new 8-game generative simulation benchmark and GenSim robotics tasks.

Problem

Generating complete simulations in code (game logic, dynamics, rendering) from detailed natural-language specifications for training RL agents; LLMs ignore or violate parts of long prompts when generating large codebases.

Approach

Model the simulation as a factored POMDP and generate it step by step, selecting only the relevant state variables and factors (scope sets) as context for each step, and split each step into controller, model, and view prompts from the model-view-controller pattern.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use FactorSim instead of GPT-4 baseline generationGPT-4 simulation generation · Flappy Birdsystem-test pass rate: 0.35 -> 0.78Helped
Use FactorSim instead of GPT-4 self-debug generationGPT-4 simulation generation · Catchersystem-test pass rate: 0.53 -> 0.66Helped
Use FactorSim instead of GPT-4 self-debug generationGPT-4 simulation generation · Snakesystem-test pass rate: 0.43 -> 0.44Helped
Use FactorSim instead of GPT-4 CoT self-debug generationGPT-4 simulation generation · Pixelcoptersystem-test pass rate: 0.53 -> 0.78Helped
Use FactorSim instead of GPT-4 self-debug generationGPT-4 simulation generation · Pongsystem-test pass rate: 0.75 -> 0.61Hurt
Use FactorSim instead of Llama-3 CoT self-debug generationPuckworld simulation generation · Puckworldsystem-test pass rate: 0.50 -> 0.81Helped
Use FactorSim instead of GPT-4 CoT self-debug generationGPT-4 simulation generation · Waterworldsystem-test pass rate: 0.50 -> 0.62Helped
Use FactorSim instead of Llama-3 CoT self-debug generationMonster Kong simulation generation · Monster Kongsystem-test pass rate: 0.35 -> 0.44Helped
Use FactorSim instead of GenSim vanilla generationRobotics task generation · GenSim assembly tasksruntime pass rate: 8% -> 58%Helped
Use FactorSim instead of GenSim vanilla generationRobotics task generation · GenSim assembly taskshuman pass rate: 0% -> 25%Helped
Use FactorSim instead of GenSim vanilla generationRobotics task generation · GenSim assembly taskssyntax pass rate: 75% -> 92%Helped
Use FactorSim instead of GenSim Chain of Thought (topdown)Robotics task generation · GenSim assembly taskstask completion pass rate: 8% -> 33%Helped

Surprising findings

Limitations

Experimental setup

Datasets: PyGame Learning Environment (8 2D games) GenSim 50-task robotics benchmark CLIPort

Benchmarks: Generative Simulation benchmark (8 PyGame games) GenSim 50-task robotics benchmark

Metrics: percent of system tests passed zero-shot transfer reward (normalized to random and PPO grou human playability rating (1-4) syntax, runtime, task completion, and human pass rates for r token usage

Baselines: Mistral-7B-Instruct Llama-3 vanilla Llama-3 self-debug Llama-3 CoT w/ self-debug GPT-3.5 GPT-4 GPT-4 w/ self-debug GPT-4 w/ AgentCoder GPT-4 CoT w/ self-debug GenSim vanilla GenSim chain of thought (topdown) GenSim chain of thought (bottomup)

Builds on: chain-of-thought prompting self-debugging AgentCoder GenSim PPO

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy