Abstract
Diffusion models have emerged as a powerful paradigm in video synthesis tasks including prediction, generation, and interpolation. Due to the limitation of the computational budget, existing methods usually implement conditional diffusion models with an autoregressive inference pipeline, in which the future fragment is predicted based on the distribution of adjacent past frames. However, only the conditions from a few previous frames can't capture the global temporal coherence, leading to inconsistent or even outrageous results in long-term video prediction. In this paper, we propose a Local-Global Context guided Video Diffusion model (LGC-VD) to capture multi-perception conditions for producing high-quality videos in both conditional/unconditional settings. In LGC-VD, the UNet is implemented with stacked residual blocks with self-attention units, avoiding the undesirable computational cost in 3D Conv. We construct a local-global context guidance strategy to capture the multi-perceptual embedding of the past fragment to boost the consistency of future prediction. Furthermore, we propose a two-stage training strategy to alleviate the effect of noisy frames for more stable predictions. Our experiments demonstrate that the proposed method achieves favorable performance on video prediction, interpolation, and unconditional video generation.
Introduction
Generating long, consistent videos remains a significant challenge in computer vision. Most current video diffusion models operate autoregressively, predicting subsequent frames based on a narrow window of the immediate past (e.g., the last two frames). This approach often suffers from "temporal drift," where the model loses track of the global scene context over time. This leads to artifacts such as vanishing objects, random color shifts, or physically impossible motions. While 3D convolutions can mitigate some of these issues, they are computationally prohibitive. LGC-VD addresses this by providing the model with a "global" sense of the video without the extreme memory requirements of processing all frames simultaneously.
Methodology
LGC-VD builds upon an efficient 2D UNet architecture, enhanced by two critical components designed to maintain temporal coherence and robustness.
Local-Global Context Guidance
To bridge the gap between local motion and global scene structure, LGC-VD employs a dual-guidance mechanism:
- Local Context: The model concatenates a few adjacent past frames with the current noisy frame, providing immediate temporal cues.
- Global Context: A separate sequential encoder (Eseq) processes the entire previous video fragment to generate a global embedding. This embedding is injected into the UNet’s intermediate layers via cross-attention, acting as a semantic anchor that ensures the model adheres to the established layout and theme of the video.
Two-Stage Training Strategy
Standard training typically uses ground-truth frames as conditions. However, during inference, models must predict based on their own previous, potentially imperfect outputs—a phenomenon known as exposure bias. LGC-VD utilizes a two-stage approach to combat this:
- Stage 1: The model is trained using ground-truth frames as conditions.
- Stage 2: The model uses the predicted (and slightly noisy) frames from Stage 1 as the new conditions. This teaches the model to be self-correcting and robust when encountering errors during long-term generation.
Experiments and Results
The model was evaluated on two standard benchmarks: Cityscapes (high-resolution street scenes) and BAIR Robot Pushing (robotic arm interactions).
Key Results
- Cityscapes Prediction: LGC-VD achieved a Fréchet Video Distance (FVD) of 124.62, significantly outperforming the previous state-of-the-art model, MCVD (141.31). Lower FVD scores indicate higher visual quality and better temporal coherence.
- BAIR Interpolation: The model set a new state-of-the-art for video infilling on this dataset, reaching a PSNR of 26.732 and an SSIM of 0.952.
- Qualitative Quality: Visual analysis shows that LGC-VD maintains consistent brightness and crisp details in regions where previous models often produced "ghosting" or blurry artifacts, particularly in high-motion areas.
Conclusion
LGC-VD demonstrates that combining local frame data with global context embeddings significantly improves the stability and quality of video synthesis. By training the model to handle its own prediction errors through a two-stage strategy, the researchers have mitigated the common pitfalls of autoregressive generation. Future work will focus on scaling the architecture to higher resolutions and improving inference speed, which currently requires 100 denoising steps.
Summary updated