PhysAgent: Reflective Agentic Physics Control for Physically Plausible Video Generation
PhysAgent introduces a reflective agentic framework that iteratively generates, simulates, verifies, and repairs physics programs to overcome the limitations of one-shot prediction, thereby enabling the creation of more physically plausible and prompt-aligned videos with complex dynamics and interactions.
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 are watching a movie where a ball rolls off a table, hits a cup, and knocks it over. In real life, physics is the invisible rulebook that makes sure the ball doesn't float away, the cup doesn't turn into jelly, and the timing feels right. For a long time, computers trying to make these videos have been like artists who are great at painting but terrible at math. They could make the ball look like it was rolling, but if you asked them to make it hit the cup at a specific angle or bounce with the right force, they often got it wrong. The ball might slide through the table, or the cup might shatter when it should have just rolled away. This happens because the computer is guessing the whole scene in one big leap, without actually "checking" if the laws of physics hold up before the movie starts.
This paper tackles that problem by introducing a new way to teach computers how to be better directors of physics. Instead of just guessing, the computer now acts like a scientist in a lab. It builds a digital model of the scene, runs a quick test to see what happens, checks if the result matches the user's request, and then fixes its mistakes before making the final video. It's the difference between a chef who throws ingredients into a pot and hopes it tastes good, versus a chef who tastes the soup, realizes it needs more salt, adds a pinch, tastes it again, and then serves it. The goal is to make videos that not only look beautiful but also obey the strict, invisible rules of how the real world moves and crashes.
The "PhysAgent" Detective
The authors of this paper, a team from Shanghai Jiao Tong University and Cardiff University, have built a system they call PhysAgent. Think of PhysAgent as a very persistent, reflective robot director. When you give it a picture (like a bowling alley) and a command (like "make the ball hit the right pin"), it doesn't just immediately start filming. Instead, it enters a loop of try, check, and fix.
Here is how the process works, step-by-step:
- The First Guess: The robot looks at your picture and your command. It tries to build a digital version of the scene and writes a "script" for the physics. This script tells the computer things like: "The ball starts at speed 0.5m/s," "The pin is made of wood," and "The force is applied here."
- The Simulation (The Test Run): Before making the pretty video, the robot runs a quick, rough simulation. It's like a rehearsal. It watches the digital ball roll and the digital pin fly.
- The Reality Check: The robot compares this rehearsal to your original command. Did the ball hit the right pin? Did the stool break when the pumpkin fell on it? If the answer is "no," the robot doesn't just give up. It acts like a detective. It asks, "Why did this fail?"
- Example: If the ball hit the wrong pin, the robot might realize, "Oh, I aimed the force too far to the left."
- Example: If the pumpkin didn't break the stool, it might say, "The stool is too strong, or the pumpkin wasn't heavy enough."
- The Fix: The robot then edits its script. It might change the direction of the force to
[0.6, 1.0, 0]or increase the speed to0.8m/s. It doesn't rewrite the whole movie; it only fixes the specific part that went wrong. - Repeat: It runs the test again. If it passes, great! If not, it fixes it again. This cycle can happen up to 10 times until the simulation is perfect.
Why "One-Shot" Guesses Fail
The paper argues strongly against the old way of doing things, which they call "one-shot prediction." In the past, AI models tried to guess all the physics rules in a single instant. The authors found this approach is "brittle," meaning it breaks easily.
Imagine trying to build a house of cards by guessing where every card should go in one second. If you get the first card slightly wrong, the whole tower falls. Similarly, if an AI guesses the weight of an object or the direction of a push incorrectly in its first try, the entire video becomes physically impossible. The paper shows that because all these factors (weight, speed, direction, material) are tightly connected, a small mistake in one area ruins the whole result. PhysAgent solves this by treating the physics script as a "hypothesis" that must be tested and revised, rather than a final answer.
The Magic Toolbelt: Semantic APIs
To make this fixing process easier, the researchers gave the robot a special set of tools called Action APIs. Instead of asking the robot to do complex math like "calculate the friction coefficient of wood on concrete," they gave it simple, human-like commands.
Think of these as the robot's toolbelt. Instead of saying "apply a vector force of 14 Newtons at a 30-degree angle," the robot can just say:
- "Set the ball's speed to 0.5m/s."
- "Apply a force to the pumpkin."
- "Make the stool rigid."
- "Fix the cup in place."
This makes the robot much smarter and less likely to make silly math errors. It allows the robot to focus on the story of the physics (e.g., "The ball should roll off and land in the cup") rather than getting stuck on the raw numbers.
What They Found
The team tested PhysAgent on 27 different scenes with 80 different physical events, like a firework curving in the wind or a ring getting stuck on a toy. They compared their method against other top video generators and physics-based AI.
The results were clear:
- Better Physics: PhysAgent produced videos that were much more physically plausible. In a test where a judge (an AI) had to decide if the video made sense, PhysAgent scored 0.714 out of 1.0, beating the next best physics-based method (RealWonder) which scored 0.631.
- Human Preference: When real people were asked to choose between videos, they preferred PhysAgent's videos 73.4% of the time over the best general video generator (Wan2.2) and up to 93.6% of the time over other physics-based methods.
- The Loop Matters: When the researchers removed the "fix-it" loop and let the robot guess only once, the quality dropped significantly. This proved that the ability to check and repair is the secret sauce.
The Bottom Line
This paper suggests that the future of making realistic videos isn't just about making the pictures look prettier; it's about making the computer understand how the world works. By letting the AI run a simulation, check its own work, and fix its mistakes, PhysAgent can create videos where objects collide, break, and bounce exactly as they should. It turns the chaotic process of video generation into a careful, step-by-step experiment, ensuring that when you see a ball hit a cup on your screen, it feels like it really could happen in your living room.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.