Think Before You Diffuse: LLMs-Guided Physics-Aware Video Generation

Ke Zhang, Cihan Xiao, Yiqun Mei, Jiacong Xu, Vishal M. Patel · OpenReview

Abstract

Recent video diffusion models have demonstrated their great capability in generating visually-pleasing results, while synthesizing the correct physical effects in generated videos remains challenging. The complexity of real-world motions, interactions, and dynamics introduce great difficulties when learning physics from data. In this work, we propose DiffPhy, a generic framework that enables physically-correct and photo-realistic video generation by fine-tuning a pre-trained video diffusion model. Our method leverages large language models (LLMs) to infer rich physical context from the text prompt. To incorporate this context into the video diffusion model, we use a multimodal large language model (MLLM) to verify intermediate latent variables against the inferred physical rules, guiding the gradient updates of model accordingly. Textual output of LLM is transformed into continuous signals. We then formulate a set of training objectives that jointly ensure physical accuracy and semantic alignment with the input text. Additionally, failure facts of physical phenomena are corrected via attention injection. We also establish a high-quality physical video dataset containing diverse physical actions and events to facilitate effective finetuning. Extensive experiments on public benchmarks demonstrate that DiffPhy is able to produce state-of-the-art results across diverse physics-related scenarios.

Introduction

State-of-the-art video diffusion models, such as Sora or Wan 2.1, excel at creating high-fidelity textures and styles. However, they frequently struggle with "physical common sense." Common artifacts include objects moving before impact, flames remaining static while a candle falls, or entities vanishing unexpectedly. These models typically learn physics implicitly from massive datasets, but the underlying laws of nature are often too complex to be inferred solely from pixel-level patterns. While traditional CGI relies on manual physics simulators, these do not scale to the open-domain nature of text-to-video generation. DiffPhy addresses this by explicitly teaching models the rules of the physical world.

Methodology

DiffPhy introduces a three-stage pipeline to integrate physical awareness into the video generation process:

1. Physical Context Reasoning

Upon receiving a prompt, DiffPhy employs a Large Language Model (LLM) with Chain-of-Thought (CoT) reasoning to infer the underlying physical context. For instance, if a prompt describes a falling object, the LLM identifies the relevant forces (e.g., gravity), the entities involved, and the expected physical phenomena (e.g., acceleration, impact).

2. Continuous Score Estimation

To provide a differentiable training signal, the framework uses a Multimodal LLM (MLLM) to verify whether generated frames adhere to the inferred physical rules. Since MLLMs typically produce discrete text, the researchers developed a method to transform these textual probabilities into continuous scores. This allows the "physical correctness" to be used directly as a loss function for gradient updates.

3. Failure-Aware Refinement

When a model fails a specific physical check, DiffPhy applies a surgical correction rather than a global update. It utilizes an auxiliary module to inject targeted attention into the Diffusion Transformer (DiT) blocks. This "attention injection" forces the model to focus on specific interactions it previously misinterpreted, such as the moment of impact or fluid displacement.

Datasets and Evaluation

The authors established several benchmarks to validate DiffPhy:

  • PhyHQ: A new dataset of 8,000 high-quality real-world videos curated from VIDGEN-1M, labeled with detailed physical phenomena.
  • PhyGenBench: An evaluation benchmark covering mechanics, optics, thermal processes, and material properties.
  • VideoPhy2: A set of 590 human-verified captions used to assess physical commonsense and semantic adherence.

Results

DiffPhy was benchmarked against leading models like Wan 2.1-14B, Sora, and CogVideoX. On the PhyGenBench benchmark, DiffPhy achieved a state-of-the-art average score of 0.54, significantly outperforming the baseline Wan model's 0.40.

Qualitative comparison between DiffPhy and the Wan baseline across four physical scenarios: lifting, striking, sinking, and falling.

Qualitative analysis reveals that DiffPhy successfully handles complex dynamics where other models fail. For example, it correctly simulates a knife sinking in water (fluid dynamics) and a cord striking the ground with force, avoiding common issues like objects clipping through each other or moving unnaturally.

Detailed view of a cord striking the ground, demonstrating DiffPhy's ability to simulate forceful impact and resulting dust/debris.

Conclusion

DiffPhy demonstrates that LLMs can serve as effective "physics teachers" for video diffusion models. By converting abstract physical laws into differentiable signals and using targeted attention injection, the framework produces videos that are both visually stunning and physically plausible. Future work will focus on improving MLLM temporal reasoning and scaling the PhyHQ dataset to further enhance the model's "world simulator" capabilities.

Summary updated

BibTeX
@misc{zhang2025think,
  author = {Ke Zhang and Cihan Xiao and Yiqun Mei and Jiacong Xu and Vishal M. Patel},
  title = {{Think Before You Diffuse: LLMs-Guided Physics-Aware Video Generation}},
  year = {2025},
  eprint = {2505.21653},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.21653},
}
Figure