← Latest papers
💻 computer science

Coding Agent Is Good As World Simulator

This paper introduces an agentic framework that constructs physically plausible world models by iteratively generating and refining executable simulation code through coordinated planning, coding, visual review, and physics analysis, demonstrating superior performance over video-based approaches in physical accuracy, instruction fidelity, and visual quality.

Original authors: Hongyu Wang, Jingquan Wang, Bocheng Zou, Radu Serban, Dan Negrut

Published 2026-05-15
📖 4 min read☕ Coffee break read

Original authors: Hongyu Wang, Jingquan Wang, Bocheng Zou, Radu Serban, Dan Negrut

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you want to build a realistic movie scene where a car drives over a floating bridge on water, or a robot navigates a messy office.

The Old Way (Video Models):
Think of current AI video generators as incredibly talented painters. If you ask them to paint a car driving over water, they look at millions of photos and videos of cars and water. They guess what the next frame should look like based on patterns.

  • The Problem: They don't actually know physics. They are just guessing the colors and shapes. If the car hits a bump, the painter might accidentally make the car float through the bump, or the bridge might twist into a weird shape because the AI "forgot" how gravity works. It looks cool for a second, but the laws of physics break down quickly.

The New Way (This Paper's Approach):
The authors propose a different method: instead of painting the movie frame-by-frame, they ask the AI to write the instruction manual (code) for a physics engine.

Think of it like this:

  • The Old Way is like a magician trying to guess the next trick.
  • This Paper's Way is like hiring an engineer to build a real, working model in a lab.

How the "Coding Agent" Works

The paper describes a team of AI "agents" (specialized assistants) working together to build this simulation. They act like a construction crew:

  1. The Planner (The Architect): You tell the team, "I want a robot in an office." The Planner breaks this down into a blueprint: "We need a floor, two tables, seven chairs, and a robot. The robot needs to be able to walk between them."
  2. The Coder (The Builder): This agent takes the blueprint and writes actual computer code (using a tool called Project Chrono) that tells the computer exactly how to build the room, where to put the furniture, and how heavy everything is.
  3. The Visual Reviewer (The Inspector): The code runs, and a video is generated. The Reviewer watches the video and says, "Wait, the robot is floating through the table. That's wrong."
  4. The Physics Analyst (The Engineer): This agent checks the math. It says, "The table is too light, or the robot is too heavy. The code needs to be fixed."
  5. The Loop: The Coder fixes the code, and they run it again. They keep doing this until the simulation works perfectly and obeys the laws of physics.

Why This Matters

The paper claims that by building the world through executable code rather than just predicting video frames, the simulation becomes:

  • Physically Accurate: Objects collide, fall, and bounce exactly as they should because the code enforces real physics rules.
  • Repairable: If something goes wrong, you can look at the code, find the mistake, and fix it. You can't easily "fix" a video if the physics are wrong; you just have to try to paint it again.
  • Reliable for Complex Tasks: The team tested this with a robot in an office, a military vehicle driving on rough terrain, and a car driving over a floating bridge on water (a complex mix of solid and liquid physics).

The Results

When they compared their "Coding Agent" method against advanced video-generation models (using a benchmark called WorldModelBench), their method scored higher on:

  • Instruction Fidelity: Did it do exactly what you asked? (Yes, because the code explicitly builds what you asked for).
  • Physical Laws: Did the car fall through the floor? (No, because the code prevents it).

The Catch

The paper admits this system isn't perfect yet. It can be slow and expensive (in terms of computer power) because it has to write code, run it, check it, and fix it repeatedly. Also, if the AI doesn't have a specific 3D model of an object in its library, it has to approximate it with a simple shape.

In short: Instead of asking AI to guess what a realistic world looks like, this paper teaches AI to build a realistic world using code, ensuring the physics are real, not just an illusion.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →