TL;DR
DiffPhy is a novel framework that forces video diffusion models to obey the laws of physics by using Large Language Models (LLMs) as "physical reasoners" and Multimodal LLMs (MLLMs) as "critics." By converting textual physical rules into differentiable signals and injecting targeted attention to fix "failed facts," DiffPhy generates videos that are both visually stunning and physically plausible, outperforming current state-of-the-art models like Wan 2.1.
What Problem Does This Paper Address?
While modern video generators (like Sora or Wan) can create breathtaking visuals, they frequently suffer from "hallucinated physics." You’ve likely seen the artifacts: a ball that moves before it’s hit, objects that vanish into thin air, or gravity that seems optional.
Current models learn physics implicitly by crunching massive amounts of data, but they lack an explicit understanding of cause and effect. Traditional computer graphics engines provide perfect physics but require labor-intensive manual parameter tuning and don't scale to the visual complexity of real-world scenes. The authors of this paper aim to bridge this gap: giving diffusion models the "common sense" of a physics engine without losing the creative flexibility of generative AI.
Methods
The authors introduce DiffPhy, which treats physics as a guidance problem during the fine-tuning of a Diffusion Transformer (DiT). The pipeline consists of three main stages:
- Physical Context Reasoning: When a user provides a simple prompt (e.g., "a candle falls"), an LLM (like GPT-4o or DeepSeek-R1) uses Chain-of-Thought (CoT) reasoning to expand it. It identifies the forces involved (gravity), the entities affected (wax, flame), and the expected phenomena (the flame flickering out, the candle landing on its side).
- MLLM-Guided Verification: During training, a Multimodal LLM acts as a supervisor. It looks at the intermediate latent variables (the "draft" of the video) and checks them against the physical rules generated in step one.
- Differentiable Physics Loss: Because LLM outputs are text-based and non-differentiable, the authors developed a Continuous Score Estimator. It takes the MLLM's confidence (logits) for specific tokens (like "matched" vs. "unmatched") and converts them into a smooth, differentiable signal that can be used for backpropagation.
- Failure-Aware Refinement: If the model fails a specific physical fact, a dedicated module injects "attention" into the DiT blocks. This uses a LoRA-based adapter to specifically guide the model to correct that specific physical error in the next iteration.
Datasets
The researchers utilized three primary datasets:
- PhyHQ (New): A curated dataset of ~8,000 high-quality real-world videos selected from VIDGEN-1M. These videos were filtered for realism and annotated with physical phenomena labels using DeepSeek-R1 to facilitate effective fine-tuning.
- PhyGenBench: A benchmark of 160 prompts covering four domains: mechanics, optics, thermal processes, and material properties.
- VideoPhy2: A collection of 590 human-verified captions describing realistic physical interactions.
Key Insights and Ideas
- LLMs as Proxy Physics Engines: The core "aha moment" is that we don't need a simulator to teach a model physics; we can leverage the vast world knowledge already encoded in LLMs to define the "ground truth" of what should happen.
- Closing the Feedback Loop: By using an MLLM to "watch" the diffusion process and provide feedback, the model moves from just predicting pixels to satisfying constraints.
- Softmax Logits for Gradients: The method of turning discrete MLLM tokens into continuous scores is a clever workaround for the "black box" nature of language model outputs, allowing them to guide gradient descent.
- Attention Injection: Rather than just adding a global loss, the "Failure-Aware Refinement" acts like a surgical strike, telling the model exactly which part of the physical interaction it got wrong.
Key Results
DiffPhy was tested against 11 other models, including Sora, Kling, and CogVideoX.
- PhyGenBench: DiffPhy achieved an average score of 0.54, significantly outperforming the baseline Wan 2.1 (0.40) and even the high-performing Kling (0.49).
- Domain Performance: It showed the most substantial gains in Mechanics (0.53 vs. Wan's 0.36) and Thermal (0.58 vs. Wan's 0.36), areas where traditional diffusion models struggle most with consistency.
- Human Evaluation: In blind reviews, DiffPhy scored much higher on "Physical Commonsense" (PC) and "Semantic Adherence" (SA) than its competitors, proving that the generated videos aren't just physically better—they also follow the user's prompt more accurately.
Limitations and Future Work
The authors are transparent about several hurdles:
- MLLM Bottlenecks: Current Multimodal LLMs are still limited in their ability to reason over long video sequences or detect very subtle physical misalignments.
- Dataset Scale: While 8,000 videos is a good start, it is small compared to the datasets used to train foundation models. Scaling the PhyHQ dataset with more fine-grained quality control is a priority.
- Inference Overhead: The optional "two-pass" inference (correcting failures via attention injection) adds runtime overhead, which might be a concern for real-time applications.
- Future Direction: The authors suggest moving toward training strategies that explicitly target video-based reasoning rather than relying so heavily on textual intermediaries.
Summary updated