VideoREPA: Learning Physics for Video Generation through Relational Alignment with Foundation Models

Xiangdong Zhang, Jiaqi Liao, Shaofeng Zhang, Fanqing Meng, Xiangpeng Wan, Junchi Yan, Yu Cheng · DOI

Introduction

While modern text-to-video (T2V) models like Sora and CogVideoX have achieved remarkable visual fidelity, they frequently suffer from "physics hallucinations." These errors manifest as objects passing through one another, liquids flowing upward, or rigid bodies deforming unnaturally during motion. This suggests a fundamental "physics understanding gap": self-supervised Video Foundation Models (VFMs), such as VideoMAEv2, are highly effective at predicting physical interactions but cannot generate video. Conversely, generative T2V models excel at synthesis but lack a deep inherent grasp of physical laws.

VideoREPA (Relational Representation Alignment) is a framework designed to bridge this gap by distilling physics knowledge from video understanding models into generative ones. By focusing on the relational dynamics between video tokens rather than raw feature values, VideoREPA significantly improves the physical realism of generated content without compromising the model's creative capabilities.

The Physics Understanding Gap

Quantitative analysis reveals that the gap between understanding and generation is not merely a matter of model scale. The authors demonstrated that a relatively small 86M parameter understanding model (VideoMAEv2) significantly outperforms a massive 2B parameter generative model (CogVideoX) on physics-related tasks. Previous attempts to resolve this using standard Representation Alignment (REPA)—which forces a student model's internal features to match a teacher model's exactly—proved too rigid for video. Such "hard alignment" often degrades video quality and breaks the generative model's ability to follow complex text prompts.

Methodology: Token Relation Distillation (TRD)

The core innovation of VideoREPA is Token Relation Distillation (TRD). Instead of forcing the generative model to copy the exact feature values of the physics-expert VFM, TRD encourages the model to mimic the relationships between tokens.

Relational Alignment

The framework calculates pairwise similarities between tokens within a single frame (spatial relations) and across different frames (temporal relations). This approach provides "soft guidance," allowing the generative model to maintain its pre-trained latent space while learning the structural and temporal patterns that govern physical interactions.

Spatio-Temporal Focus

Unlike image-based alignment, TRD explicitly captures how objects move and interact over time. This is critical for physical plausibility; for instance, a model must understand not just the shape of a falling object (spatial) but the acceleration and impact dynamics (temporal) to avoid the "uncanny valley" of physics.

Dimensionality Matching

To account for the different latent space resolutions between generative models and understanding models, VideoREPA employs interpolation techniques. This ensures that features can be compared effectively across different architectures, allowing the generative model to learn from the VFM's superior physical intuition.

Experimental Setup and Results

The researchers fine-tuned CogVideoX models (2B and 5B versions) using subsets of the OpenVid dataset, ranging from 32k to 64k videos. Performance was evaluated using several specialized benchmarks:

  • VideoPhy: A benchmark of 344 prompts testing physical commonsense (e.g., honey diffusing, stones rolling).
  • VideoPhy2: An action-centric benchmark focusing on complex human-object interactions.
  • Physion: Used for Object Contact Prediction (OCP) to measure the quantitative physics gap.

Key Findings

  • Benchmark Dominance: VideoREPA-5B achieved a Physical Commonsense (PC) score of 40.1 on VideoPhy, representing a 24.1% improvement over the CogVideoX baseline.
  • Superiority over Specialized Models: VideoREPA outperformed WISA, a state-of-the-art method that requires specialized datasets with explicit physics labels. VideoREPA achieved these results using only general, open-domain videos.
  • Qualitative Stability: Visual analysis confirms that VideoREPA generates more stable motions. In scenarios such as a pencil rolling across a table, the baseline model often deforms the object or produces unnatural sliding, whereas VideoREPA maintains rigidity and realistic rolling physics.

Limitations and Future Directions

Despite its success, VideoREPA faces computational constraints. Processing high-resolution videos through VFMs with full 3D attention is memory-intensive, requiring the use of lower-resolution frames for the alignment process. Additionally, the quality of the physics injection is currently capped by the capabilities of the "teacher" VFM.

Future work may explore integrating TRD during the initial pre-training phase of T2V models, rather than as a fine-tuning step, which could potentially embed physical laws even more deeply into the model's architecture. As video understanding models continue to evolve, VideoREPA provides a scalable pathway to increasingly realistic AI-generated video.

Summary updated

BibTeX
@inproceedings{zhang2025videorepa,
  author = {Xiangdong Zhang and Jiaqi Liao and Shaofeng Zhang and Fanqing Meng and Xiangpeng Wan and Junchi Yan and Yu Cheng},
  title = {{VideoREPA: Learning Physics for Video Generation through Relational Alignment with Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=oHjLfABsK4},
}
Figure