Physical Simulator In-the-Loop Video Generation

Lin Geng Foo, Mark He Huang, Alexandros Lattas, Stylianos Moschoglou, Thabo Beeler, Christian Theobalt

TL;DR

While modern video diffusion models generate visually stunning scenes, they frequently violate basic physical laws like gravity, inertia, and collision. PSIVG (Physical Simulator In-the-loop Video Generation) solves this by embedding a 3D physical simulator directly into the video generation loop at inference time without requiring any training data. By combining a 4D perception pipeline with a novel test-time texture optimization, PSIVG produces videos that are both physically plausible and visually consistent.

What Problem Does This Paper Address?

State-of-the-art video generation models (like Sora or CogVideo) are trained primarily on denoising or reconstruction objectives. While they excel at rendering realistic textures and lighting, they lack an explicit, causal understanding of physics. As a result, generated objects often float mid-air, vanish abruptly, or clip through each other during collisions.

Prior attempts to fix this either rely on oversimplified 2D rigid-body assumptions or require expensive fine-tuning on physics datasets. The authors tackle a fundamental challenge: How can we inject rigorous 3D physical constraints into pre-trained, open-source video diffusion models on the fly, ensuring realistic motion without destroying visual quality?

Methods

PSIVG introduces a training-free, inference-time framework that operates in three main stages:

Figure 2. Overview of our Physical Simulator In-the-loop Video Generation (PSIVG) framework. From an input prompt, a template video is first generated, and is processed by our perception pipeline (Sec. 3.2.1). The outputs of the perception pipeline are further processed before being passed into the physical simulator (Sec. 3.2.2). The rendered outputs from the simulator are then used for video generation (Sec. 3.3), and this video generation can be improved with TTCO (see Sec. 3.3.1) for better texture consistency.
  1. The 4D Perception Pipeline: Given a text prompt, a pre-trained video model first generates a physically imperfect "template video." PSIVG uses this template to lift the scene from 2D to 3D. It segments the moving objects, reconstructs their 3D meshes using an image-to-3D model (InstantMesh), tracks camera poses and background geometry (ViPE), and estimates initial linear and rotational velocities via 2D feature matching (SuperGlue).
  2. Physical Simulation in the Loop: The extracted 3D assets and velocities are imported into a Material Point Method (MPM)-based physical simulator. To determine material properties like density or elasticity, the framework queries a vision-language model (GPT) with a hierarchical prompt. The simulator then runs a forward pass to compute physically accurate trajectories, which are rendered into RGB frames, masks, and pixel correspondences.
  3. Physically-Consistent Video Generation: The physical motion cues are converted into a hybrid optical flow field (combining simulated foreground motion with the template's background motion). This flow guides a flow-conditioned video diffusion model (Go-with-the-Flow) to generate the final video.

Test-Time Texture Consistency Optimization (TTCO)

Directly conditioning video models on simulator outputs often causes texture flickering or discoloration as objects rotate. To combat this, the authors introduce TTCO. During the denoising process, the model optimizes a set of learnable residual tokens added to the text embeddings and feature modulations within the Diffusion Transformer (DiT) layers. Guided by a pixel-correspondence loss from the simulator, TTCO enforces strict texture permanence specifically on the moving foreground object, leaving the background untouched.

Datasets

Because PSIVG is a training-free, inference-time framework, it does not require a training dataset.

For evaluation, the authors automatically generated a diverse evaluation dataset of text prompts using a Large Language Model (LLM). This evaluation set included both single- and multi-object interaction scenarios (e.g., dropping objects, collisions) across both static and dynamic camera movements. Performance was quantified using VBench metrics alongside custom tracking metrics.

Key Insights and Ideas

  • Simulation as an Inference-Time Constraint: Instead of trying to force a neural network to learn physics through massive datasets, it is far more efficient to use a classical physics engine as an explicit guide during the generation process.
  • LLMs as Physics Translators: Directly guessing numerical values (like Young’s modulus) from an image is difficult for AI. The paper successfully uses a hierarchical prompting strategy where an LLM first describes qualitative traits (e.g., "bouncy plastic") and maps them to physical parameters.
  • Localized Optimization via Text Tokens: Instead of updating model weights globally (which often corrupts the background), optimizing foreground-specific text tokens and feature modulations provides a highly localized adaptation that preserves global visual fidelity.

Key Results

The authors compared PSIVG against top-tier open-source text-to-video models and controllable generation baselines.

Figure 1. A baseline video generator (left) produces a physically implausible bowling collision with chaotic motion vectors across the video frames. Our PSIVG framework (right) integrates a physi- cal simulator into the generation loop, guiding the video generator to produce a physically plausible and temporally coherent video.

Quantitative Performance

  • Motion Controllability: PSIVG achieved a SAM mIoU of 0.84 (measuring how well the generated object follows the physical trajectory), significantly outperforming baselines like CogVideoX (0.47) and specialized trajectory models like SG-I2V (0.75).
  • Trajectory Error: The frame-to-frame pixel error (Corr. Pixel MSE) dropped to 0.007, compared to 0.032 for the baseline CogVideoX.
  • User Preference: In a user study with 32 participants judging physical plausibility, PSIVG was preferred in 82.3% of comparisons against five strong baselines.

Qualitative Advantages

While some physics-tuned baselines achieve temporal smoothness by making the video nearly static, PSIVG successfully generates highly dynamic, complex motions—such as a bowling ball realistically scattering pins—while maintaining crisp, non-flickering textures throughout rotations.

Limitations and Future Work

  • Complex Agents: The framework relies on an MPM physical simulator, which struggles to model complex, self-propelled, or articulated agents like walking humans or driving vehicles.
  • Perception Bottlenecks: Errors in the initial 3D mesh reconstruction or velocity estimation stage can propagate down the pipeline, leading to inaccurate simulations.
  • Base Model Constraints: PSIVG inherits the limitations of its underlying flow-conditioned video model, meaning it still struggles to reliably generate very small or thin objects.

Summary updated

BibTeX
@inproceedings{foo2026physical,
  author = {Lin Geng Foo and Mark He Huang and Alexandros Lattas and Stylianos Moschoglou and Thabo Beeler and Christian Theobalt},
  title = {{Physical Simulator In-the-Loop Video Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=ErMVLisoGY},
}
Figure