百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

VideoREPA

> 开发工具
开源

[NeurIPS 2025] VideoREPA: 通过与基础模型的关系对齐学习视频生成的物理规律

199 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

[NeurIPS 2025] VideoREPA: 通过与基础模型的关系对齐学习视频生成的物理规律

VideoREPA (NeurIPS 2025)

Project Page | Paper

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
NeurIPS 2025

✨ A step towards more reliable world modeling by enhancing physics plausibility in video generation.

VideoPhy SA PC
CogVideoX-5B 70.0 32.3
+REPA Loss+DINOv2 62.5 ⚠️ 33.7
+REPA Loss+VideoMAEv2 59.3 ⚠️ 35.5
+TRD Loss+VideoMAEv2 (ours) 72.1 40.1

News

  • Sept, 2025: VideoREPA is accepted by NuerIPS 2025.
  • Feb, 2026: Our work DreamWorld is available on Arxiv, a unified framework that integrates complementary world knowledge into video generators via a Joint World Modeling Paradigm.

✅ Project Status

Accepted to NeurIPS 2025!

  • Release introduction & visual results
  • Release training & inference code
  • Upload checkpoints and provide reproducing tips.
  • Release evaluation code.
  • Release generated videos of VideoREPA. Please refer to the Google Drive.

If you find VideoREPA useful, please consider giving us a star ⭐.

Introduction

Figure 1. Evaluation of physics understanding on the Physion benchmark. The chance performance if 50%.

Physics Understanding Gap: We identify an essential gap in physics understanding between self-supervised VFMs and T2V models, proposing the first method to bridge video understanding models and T2V models. VideoREPA demonstrates that “understanding helps generation.” in video generation field.

Overview

Figure 2. Overview of VideoREPA.

VideoREPA enhances physics plausibility in T2V models through Token Relation Distillation (TRD) — a loss that aligns pairwise token relations between self-supervised video encoders and diffusion transformer features.

Each token learns relations about both:

  • Spatial relations within a frame
  • Temporal relations across frames

Novelty: VideoREPA is the first successful adaptation of REPA into video generation — overcoming key challenges in finetuning large pretrained video diffusion transformers and maintaining temporal consistency.

Qualitative Results

CogVideoX
CogVideoX+REPA loss
VideoREPA
Prompt





  


  Your browser does not support the video tag.


  Your browser does not support the video tag.
    

  Leather glove catching a hard baseball.






  


  Your browser does not support the video tag.


  Your browser does not support the video tag.
    

  Maple syrup drizzling from a bottle onto pancakes.






  


  Your browser does not support the video tag.


  Your browser does not support the video tag.
    

  Glass shatters on the floor.






  


  Your browser does not support the video tag.


  Your browser does not support the video tag.
    

  A child runs and catches a brightly colored frisbee...

⚙️ Quick start

Environment setup

bash
git clone https://github.com/aHapBean/VideoREPA.git

conda create --name videorepa python=3.10
conda activate videorepa

cd VideoREPA
pip install -r requirements.txt

# Install diffusers locally (recommended)
cd ./finetune/diffusers
pip install -e .

Dataset download

Download the OpenVid dataset used in VideoREPA. We use parts 30–49 and select subsets containing 32K and 64K videos, respectively. The corresponding CSV files are located in ./finetune/openvid/.

bash
pip install -U huggingface_hub

# Download parts 30–49
huggingface-cli download --repo-type dataset nkp37/OpenVid-1M \
--local-dir ./finetune/openvid \
--include "OpenVid_part3[0-9].zip"

huggingface-cli download --repo-type dataset nkp37/OpenVid-1M \
--local-dir ./finetune/openvid \
--include "OpenVid_part4[0-9].zip"

Then unzip into ./finetune/openvid/videos/.

Training

…

Inference

Inference with the VideoREPA

bash
# Transform checkpoint to diffuser format (only for sft)
# Put the scripts/merge.sh into the saved checkpoint-xxx/ and run:
bash merge.sh

# Then copy cogvideox-2b/ from ckpt/ to cogvideox-2b-infer/
# Delete the original transformer dir in cogvideox-2b-infer/
# Move the transformed transformer dir into it

# Modify model_index.config in cogvideox-2b-infer/
# "transformer": [
#   "models.cogvideox_align",
#   "CogVideoXTransformer3DModelAlign"
# ],

# Inference
cd inference/
bash scripts/infer_videorepa_2b_sft.sh
# bash scripts/infer_videorepa_5b_lora.sh

Or run inference directly with our released checkpoints. Please download the weights from Huggingface and

  • For VideoREPA-5B, place pytorch_lora_weights.safetensors in ./inference/

  • For VideoREPA-2B, place the transformer directory inside ./ckpt/cogvideox-2b-infer/

bash
huggingface-cli download --repo-type model aHapBean/VideoREPA --local-dir ./

Reproducing tips

We provide guidance for convenient results reproduction.

All experiments use seed = 42 by default in our paper. However, note that randomness exists in both video generation and VideoPhy evaluation, so identical results across different devices (e.g., GPUs) may not be perfectly reproducible even with the same seed.

To reproduce demo videos, simply download the released VideoREPA checkpoints and run inference — similar videos can be generated using VideoREPA-5B (or 2B).

To approximately reproduce the VideoPhy scores, you may either:

  • Use the released evaluation videos, or
  • Run inference with the released checkpoints.

After the code release, we reproduced VideoREPA-5B on a different device and found differences in results due to randomness in the benchmark and generation process. Adjusting certain parameters such as proj_coeff (from 0.5 → 0.45) helped restore the reported results, since the original settings were tuned with a different environment (device).

Model SA PC
VideoREPA-5B (reported) 72.1 40.1
VideoREPA-5B (reproduced) 74.1 40.4

Changing the seed slightly may also help. It is expected that you can reproduce the performance trends without further parameter tuning.

Contact

If you have any questions related to the code or the paper, feel free to email Xiangdong ([email protected]).

Acknowledgement

This project is built upon and extends several distinguished open-source projects:

  • CogVideo: A large-scale video generation framework developed by Tsinghua University, which provides the core architectural foundation for this work.

  • finetrainers: A high-efficiency training framework that helped enhance our fine-tuning pipeline.

  • diffusers: A go-to library for state-of-the-art pretrained diffusion models for generating images, audio, and even 3D structures of molecules.

Citation

@article{zhang2025videorepa,
  title={VideoREPA: Learning Physics for Video Generation through Relational Alignment with Foundation Models},
  author={Zhang, Xiangdong and Liao, Jiaqi and Zhang, Shaofeng and Meng, Fanqing and Wan, Xiangpeng and Yan, Junchi and Cheng, Yu},
  journal={arXiv preprint arXiv:2505.23656},
  year={2025}
}

More Generated Videos

Issues· 3 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonphysics-plausibilityrepresentation-alignmentvideo-generationworld-model

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具