Simulation to Rules: A Dual-VLM Framework for Formal Visual Planning

Yilun Hao, Yongchao Chen, Chuchu Fan, Yang Zhang

TL;DR

VLMFP (VLM-Guided Formal Planning) is a novel dual-model framework that autonomously translates visual scenes into formal planning code (PDDL) without requiring human-written rules. By utilizing one specialized Vision Language Model (VLM) to simulate "world physics" and another to write and iteratively refine the planning logic, the system achieves high success rates on complex, long-horizon tasks that typically baffle standard vision models.

The Challenge: Vision vs. Logic

Vision Language Models (VLMs) like GPT-4o are remarkably adept at describing images but notoriously struggle with precise spatial reasoning and long-term planning (e.g., "How do I move these 10 boxes to the goal without getting stuck?"). Conversely, classical planners using PDDL (Planning Domain Definition Language) are mathematically rigorous and excel at long-horizon logic, but they are "blind"—they cannot interpret raw visual data.

The current state-of-the-art usually involves a VLM looking at a scene and writing a PDDL problem file (which describes "where things are"). However, these systems almost always rely on a human expert to provide the domain file (which encodes the "rules of the world"). Generating these rules automatically from pixels is a massive hurdle because a single error in the code can cause a plan to fail entirely.

The VLMFP Framework

To eliminate the need for human-coded rules, the authors propose VLMFP, a "Dual-VLM" approach that bridges visual perception and formal logical reasoning.

Architecture of the VLMFP framework showing the interaction between SimVLM and GenVLM during the Prescreening, Rating & Feedback, and Updating phases.

The system relies on two distinct models working in tandem:

  1. SimVLM (The "Simulator"): A Qwen2-VL-7B model fine-tuned on a massive dataset of action sequences. Its job is to look at an image and act as a mental simulator, predicting the consequences of actions (e.g., "If the robot moves left here, it will hit a wall").
  2. GenVLM (The "Coder"): A frontier model (GPT-4o) tasked with writing the actual PDDL code.

The Feedback Loop (Simulation to Rules): GenVLM first writes an initial guess of the rules. The system then executes random actions within this "guessed" PDDL environment and compares the outcomes against SimVLM’s visual simulations. If there is a discrepancy (e.g., the code allows moving through a wall, but the visual simulator prohibits it), GenVLM receives natural language feedback to debug and refine the PDDL files. This iterative alignment ensures the symbolic code accurately reflects the visual reality.

Experimental Setup

The researchers evaluated the framework across several challenging environments:

  • 6 Grid-World Domains: Including Sokoban (notoriously hard for planners), Frozenlake, Maze, Package, Printer, and Overcooked.
  • 430k Action Simulations: A large-scale dataset created by the authors to fine-tune SimVLM.
  • Generalization Sets: Testing on "unseen appearances" (new graphics/textures) and "unseen rules" (changing the physics of the game) to ensure the model wasn't merely memorizing.
  • 3D Embodied Tasks: To test scalability, they used MultiRob (multi-robot collaboration) and Assembly (complex 3D puzzle-solving), which involve partial observability and occlusions.

Key Findings

The paper demonstrates that a smaller, fine-tuned model (7B parameters) is superior for grounded spatial simulation, while a larger model is better at the abstract task of writing syntactically correct PDDL. Using a VLM’s internal "world model" as a debugger allows the system to learn the "physics" of a new game entirely from visual observation.

Table comparing planning success rates across different methods. VLMFP significantly outperforms direct VLM and CodePDDL baselines.
  • SimVLM Performance: The simulator achieved an impressive 87.3% accuracy in scenario understanding and action simulation on seen appearances, and 86.0% on unseen appearances.
  • Planning Success: On unseen instances, VLMFP achieved a 70.0% success rate, significantly outperforming baselines like CodePDDL (30.7%) and direct GPT-4o planning (1.3%), which often fails at long-horizon logic.
  • Robust Generalization: Even when the visual appearance was completely new, the framework maintained a 54.1% success rate. Standard GPT-4o baselines dropped to near zero on complex tasks like Sokoban.
  • 3D Scaling: In complex 3D assembly tasks, the framework achieved success rates between 80% and 92%, proving it can handle more than just 2D grids.

Limitations and Future Work

While highly effective, VLMFP has limitations. In extremely cluttered environments (like complex Sokoban boards), SimVLM can make perception errors that cascade into the PDDL generation. Furthermore, while the model generalizes well to new textures, it struggles with entirely "alien" rules that are fundamentally different from its training data. Finally, the model currently focuses on static initial states; incorporating video or temporal sequences could allow the system to reason about dynamically evolving environments in real-time.

Summary updated

BibTeX
@inproceedings{hao2026simulation,
  author = {Yilun Hao and Yongchao Chen and Chuchu Fan and Yang Zhang},
  title = {{Simulation to Rules: A Dual-VLM Framework for Formal Visual Planning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=7tlLpQpGlx},
}
Figure