Teaching Video Diffusion Model with Latent Physical Phenomenon Knowledge

Qinglong Cao, Ding Wang, Xirui Li, Yuntian Chen, Chao Ma, Xiaokang Yang · OpenReview

Abstract

Video diffusion models have exhibited tremendous progress in various video generation tasks. However, existing models struggle to capture latent physical knowledge, failing to infer physical phenomena that are challenging to articulate with natural language. Generating videos following the fundamental physical laws is still an opening challenge. To address this challenge, we propose a novel method to teach video diffusion models with latent physical phenomenon knowledge, enabling the accurate generation of physically informed phenomena. Specifically, we first pretrain Masked Autoencoders (MAE) to reconstruct the physical phenomena, resulting in output embeddings that encapsulate latent physical phenomenon knowledge. Leveraging these embeddings, we could generate the pseudo-language prompt features based on the aligned spatial relationships between CLIP vision and language encoders. Particularly, given that diffusion models typically use CLIP's language encoder for text prompt embeddings, our approach integrates the CLIP visual features informed by latent physical knowledge into a quaternion hidden space. This enables the modeling of spatial relationships to produce physical knowledge-informed pseudo-language prompts. By incorporating these prompt features and fine-tuning the video diffusion model in a parameter-efficient manner, the physical knowledge-informed videos are successfully generated. We validate our method extensively through both numerical simulations and real-world observations of physical phenomena, demonstrating its remarkable performance across diverse scenarios.

Introduction

Standard video diffusion models, such as Stable Video Diffusion (SVD), excel at generating cinematic visuals but often fail to simulate scientific phenomena accurately. These models frequently "hallucinate" impossible fluid behaviors because they lack an internal understanding of fundamental physical laws, such as the Navier-Stokes equations. The challenge in bridging this gap stems from three primary hurdles: the domain gap between natural video and scientific data (e.g., velocity fields), the scarcity of high-fidelity simulation data, and the lack of descriptive text annotations for complex physical processes.

Methodology

To address these limitations, we propose a two-stage framework that extracts latent physical knowledge from a single initial frame to guide the diffusion process.

Latent Knowledge Extraction

The model extracts both static and dynamic knowledge from the initial frame. Static knowledge is captured using a Masked Autoencoder (MAE) trained to reconstruct missing spatial structures, while dynamic knowledge is estimated via an Optical Flow Predictor (OFP) to capture temporal evolution patterns.

Knowledge-Guided Generation

Scientific phenomena are often difficult to describe with natural language. To bypass this, we project the extracted features into a "pseudo-language prompt." We utilize quaternion neural networks to preserve complex multi-dimensional correlations between vision and physics. Furthermore, we incorporate Fast Fourier Transforms (FFT) to capture the periodic oscillations inherent in fluid dynamics. These pseudo-prompts are then injected into a pre-trained, frozen video diffusion model (e.g., SVD or CogVideoX) using parameter-efficient Low-Rank Adaptation (LoRA).

Overview of the proposed framework for latent physical knowledge extraction and knowledge-guided generation.

Experiments and Results

We evaluated our method on two fronts: Computational Fluid Dynamics (CFD) simulations (including Rayleigh-Bénard Convection, Cylinder flow, DamBreak, and DepthCharge) and real-world satellite imagery from the Digital Typhoon dataset.

Quantitative Performance

The proposed method significantly outperformed baseline models across a suite of physics-aware metrics. Notably, the model achieved a substantial reduction in Stream Function Error (SFE), which measures how closely the generated flow follows physical streamlines. In typhoon datasets, the model maintained superior structural consistency compared to baselines that often produced visual artifacts resembling natural textures rather than meteorological data.

Quantitative comparison of the proposed method against baselines across multiple fluid simulation and typhoon datasets.

Key Insights and Discussion

  • Visuals as Language: By treating physical features as pseudo-prompts, the model maps physical "vibes" directly into the diffusion model's latent space, avoiding the need for manual text labeling.
  • Static-Dynamic Decomposition: Separating spatial structure from temporal motion prevents the common pitfall of generating static images that warp unnaturally over time.
  • Limitations: Despite its success, the model still faces residual bias from pre-training on natural images, which can occasionally affect the internal consistency of complex meteorological data. Future work may involve integrating more explicit physical constraints, such as hard-coded conservation laws, to further improve fidelity.

Conclusion

This work demonstrates that video diffusion models can be effectively "taught" physics through latent knowledge extraction. By bridging the gap between visual generation and scientific simulation, our framework enables the production of physically plausible videos that respect the laws of nature, offering a promising path for AI-driven scientific discovery.

Summary updated

BibTeX
@misc{cao2024teaching,
  author = {Qinglong Cao and Ding Wang and Xirui Li and Yuntian Chen and Chao Ma and Xiaokang Yang},
  title = {{Teaching Video Diffusion Model with Latent Physical Phenomenon Knowledge}},
  year = {2024},
  eprint = {2411.11343},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.11343},
}
Figure