VGDFR: Diffusion-based Video Generation with Dynamic Latent Frame Rate

Zhihang Yuan, Rui Xie, Yuzhang Shang, Hanling Zhang, Siyuan Wang, Shengen Yan, Guohao Dai, Yu WangarXiv 2025 · DOI

TL;DR

VGDFR is a training-free method that accelerates Diffusion Transformer (DiT) video generation by dynamically adjusting the frame rate in the latent space based on video content. By merging redundant frames in low-motion segments and preserving them in high-motion ones, it cuts down the number of tokens processed, achieving up to a 3x inference speedup with minimal loss in visual quality.

What Problem Does This Paper Address?

Diffusion Transformers (DiTs)—the architecture behind state-of-the-art video models like Sora and HunyuanVideo—produce incredibly realistic and temporally coherent videos. However, they are notoriously slow and computationally expensive during inference due to the quadratic complexity of global attention across thousands of spatiotemporal tokens.

Currently, Latent Diffusion Models compress videos uniformly across time. But real-world videos exhibit "temporal non-uniformity": a static shot of a quiet library contains far less dynamic information than a shot of a person sprinting across the room. Applying a uniform frame rate forces the model to waste massive amounts of compute generating redundant tokens for static scenes. The authors tackle the challenge of dynamically compressing the temporal dimension of a video during the generation process, without needing to retrain or fine-tune the underlying foundation model.

Methods

The authors propose VGDFR (Video Generation with Dynamic Latent Frame Rate), a plug-and-play, training-free pipeline that dynamically merges tokens during the denoising process.

The VGDFR pipeline integrates a compression module into the DiT denoising loop to dynamically adjust latent frame rates.
  1. One-Step Denoise Preview: Because early generation steps are mostly pure noise, VGDFR uses a flow-matching ODE trick to do a quick 1-step denoise, peeking at the coarse video structure early in the generation process.
  2. Low-Res Pixel Projection: It's difficult to calculate frame similarity directly in the complex latent space. Instead, VGDFR passes the latent through a stripped-down "Compression Decoder" (which removes expensive spatial upsampling) to get a cheap, low-resolution pixel-space preview.
  3. Dynamic Frame Merging: In this low-res space, the system calculates inter-frame similarity. If frames in a specific time segment are highly similar (above a threshold $\theta$), they are merged via averaging.
The dynamic frame rate scheduler uses a one-step denoise and low-resolution projection to identify and merge redundant frames.
  1. Re-encoding & Renoising: The compressed sequence is mapped back to the latent space via a lightweight encoder, re-noised to the correct timestep, and the DiT continues generating on this much shorter token sequence.
  2. Dynamic Rotary Position Embedding (DyRoPE): Because frames are merged, the temporal distances between tokens change, which would normally break the model's positional embeddings. VGDFR applies a hybrid strategy: Global-RoPE (skipping indices of merged frames) for layers vulnerable to redundant info, and Local-RoPE (keeping continuous indices) for layers sensitive to distribution shifts.
  3. Frame Interpolation: After generation, an off-the-shelf interpolator (RIFE) restores the missing frames to output a smooth, full-frame-rate video.

Datasets and Evaluation

  • Model Evaluated: The method was applied to the open-source HunyuanVideo DiT model (generating 540P videos at 97 frames).
  • Evaluation Prompts: A subset of text prompts from the VBench benchmark.
  • Metrics: Evaluated using CLIP-SIM (text-video alignment), CLIP-Temp (temporal consistency), VQA (aesthetic score), VBench flickering score, PSNR, SSIM, LPIPS, and Latency (seconds).

Key Insights and Ideas

  • Latent Space is Semantically Robust: The authors demonstrated that you can represent a video segment with fewer frames in the latent space without losing its semantic meaning, as long as the motion amplitude and endpoints remain consistent. A single token can effectively represent a longer duration of time if the scene is static.
  • Pixel-Space Similarity is a Necessary Hack: Trying to judge frame similarity directly in the noisy latent space doesn't work well. Projecting to a cheap, low-res pixel space is a brilliant, computationally lightweight workaround to accurately identify low-motion segments.
  • Not All Attention Layers Treat Time Equally: The necessity of the DyRoPE module reveals that different DiT layers have different sensitivities to temporal positional encodings. Tailoring RoPE layer-by-layer prevents the structural collapse usually caused by token merging in Transformers.

Key Results

  • Massive Speedups: VGDFR achieved between a 1.2x and 2.92x (roughly 3x) speedup depending on how aggressively the similarity threshold ($\theta$) was set.
  • Real-World Latency Drop: Generation time for a 97-frame 540P video on an A100 GPU dropped from ~715 seconds (original model) to as low as 245 seconds.
  • Maintained Quality: The accelerated model maintained high aesthetic scores (VQA of ~97.8 vs the original 98.6) and nearly identical CLIP-SIM scores, showing minimal degradation in text alignment and visual quality.

Limitations and Future Work

  • Noise Discrepancies: The encode-decode compression step introduces slight noise variations. This means the generated video isn't pixel-perfect identical to the uncompressed baseline. For example, an unspecified detail in the prompt (like a speaker's gender) might flip due to the altered noise trajectory.
  • Timing Sensitivity: The method is highly sensitive to when the compression is applied. Applying it too early destroys local details, while applying it too late causes blurry artifacts due to the blending of already-formed inter-frame information.
  • Future Work: Obvious next steps involve refining the latent-space similarity metrics to avoid the VAE decode/encode step entirely, further reducing overhead and preserving the exact generation seed trajectory.

Summary updated

BibTeX
@misc{yuan2025vgdfr,
  author = {Zhihang Yuan and Rui Xie and Yuzhang Shang and Hanling Zhang and Siyuan Wang and Shengen Yan and Guohao Dai and Yu Wang},
  title = {{VGDFR: Diffusion-based Video Generation with Dynamic Latent Frame Rate}},
  year = {2025},
  eprint = {2504.12259},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.12259},
}
Figure