Reasoning Physical Video Generation with Diffusion Timestep Tokens via Reinforcement Learning

Wang Lin, Liyu Jia, Wentao Hu, Kaihang Pan, Zhongqi Yue, Wei Zhao, Jingyuan Chen, Fei Wu, Hanwang Zhang · DOI · OpenReview

TL;DR

This paper introduces Phys-AR, a novel framework for generating physically consistent videos by combining diffusion models with large language models (LLMs) and reinforcement learning. It proposes a new "Diffusion Timestep Tokenizer" (DDT) that converts video frames into symbolic tokens, enabling LLMs to reason about physical laws and generate more realistic and predictable video content, especially in out-of-distribution scenarios.

What Problem Does This Paper Address?

Generating realistic videos is a major goal in AI, but ensuring these videos adhere to fundamental physical laws (like motion continuity and collision dynamics) is a significant challenge. Existing diffusion-based video generation models often rely on data-driven approximations, which struggle to generalize to unseen physical conditions (e.g., different velocities or masses). This limitation means they can produce videos that look visually plausible but violate basic physics. The paper aims to bridge this gap by integrating explicit physical reasoning into the generation process, moving beyond mere data memorization.

Methods

The core of the proposed solution, Phys-AR, involves two main components:

  1. Diffusion Timestep Tokenizer (DDT): This novel component transforms video frames into a sequence of discrete, recursive "visual tokens." Unlike traditional spatial tokenizers (like VQGAN) that treat images as grids of patches, DDT leverages the iterative nature of diffusion models. It learns to represent visual attributes lost at each diffusion timestep, creating tokens that are more akin to language tokens in their structure and ability to capture hierarchical dependencies. This makes them suitable for processing by LLMs.
  2. Phys-AR Framework: This framework uses a two-stage approach:
  3. Supervised Fine-Tuning (SFT): An LLM is first fine-tuned on the DDT tokens. This stage transfers symbolic knowledge and teaches the LLM to understand the visual tokens as a form of language.
  4. Reinforcement Learning (RL): The LLM is then further trained using reinforcement learning. This phase optimizes the model's reasoning abilities by providing rewards based on adherence to physical conditions (like velocity and mass). This allows the model to dynamically adjust and improve its understanding of physical laws, going beyond simple pattern matching.

Datasets

The experiments were conducted using videos from the PhyWorld dataset, specifically focusing on three physical motion scenarios: uniform motion, collision, and parabolic motion. The dataset provides simulated physics environments with controlled parameters for radius and velocity. The authors also define specific ranges for in-distribution (in-dist) and out-of-distribution (OOD) data for evaluation.

Key Insights and Ideas

  • Tokens Matter for Reasoning: The paper strongly suggests that the way visual information is tokenized is crucial for enabling physical reasoning. Spatial tokens, common in image generation, are shown to be less effective than the proposed DDT tokens for this task.
  • Language-like Tokens for Physics: DDT tokens, by being recursive and decoupling visual attributes, behave more like language tokens. This similarity allows LLMs to process them more effectively for symbolic reasoning about physical laws.
  • RL for Physical Law Discovery: Reinforcement learning, guided by physics-based rewards, is essential for moving beyond memorization and enabling models to truly discover and apply physical principles, especially in novel situations.
  • Generalization Beyond Data: The success of DDT and Phys-AR on out-of-distribution data highlights their ability to generalize physical understanding, a key limitation of purely data-driven approaches.

Key Results

  • Improved Out-of-Distribution Performance: The Phys-AR framework with DDT tokens demonstrated significantly better performance on out-of-distribution data compared to diffusion models (DiT) and autoregressive models using spatial tokens (AR+VQGAN). Velocity errors on OOD data were orders of magnitude lower for AR+DDT.
  • Physical Consistency: Experimental results (visualizations and quantitative metrics) show that Phys-AR generates videos that are physically consistent, adhering to laws of motion and collision.
  • Ablation Studies:
    • Data Size: While all models benefit from more data, DiT showed limited generalization improvement with larger datasets, whereas autoregressive models improved significantly once pretraining requirements were met.
  • Model Architecture: Larger LLM architectures generally led to better reasoning capabilities, enabling them to handle complex physical laws more effectively.
  • Reinforcement Learning Impact: RL training significantly reduced errors for DDT tokens, especially in OOD scenarios, while its impact was more limited for spatial tokens.

Limitations and Future Work

  • Real-World Complexity: The current work focuses on simulated physical motions. Real-world videos involve more complex parameters and dynamics, posing challenges for reward function design and generative models.
  • Scaling Up: The authors plan to improve and scale up the training of their DDT tokenizer and LLM on much larger datasets (around 500 million images).
  • Broader Applications: They intend to explore the application of their framework to more complex visual-language tasks, including image comprehension, video comprehension, and text-to-image generation.

Summary updated

BibTeX
@misc{lin2025reasoning,
  author = {Wang Lin and Liyu Jia and Wentao Hu and Kaihang Pan and Zhongqi Yue and Wei Zhao and Jingyuan Chen and Fei Wu and Hanwang Zhang},
  title = {{Reasoning Physical Video Generation with Diffusion Timestep Tokens via Reinforcement Learning}},
  year = {2025},
  eprint = {2504.15932},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.15932},
}
Figure