Skip to main content
QUICK REVIEW

[Paper Review] MagicVideo: Efficient Video Generation With Latent Diffusion Models

Daquan Zhou, Weimin Wang|arXiv (Cornell University)|Nov 20, 2022
Generative Adversarial Networks and Image SynthesisComputer Science63 citations
TL;DR

MagicVideo builds a latent-diffusion video generator with a lightweight frame adaptor and directed temporal attention to produce text-conditioned videos efficiently at 256x256 on a single GPU, using a VideoVAE and unsupervised pretraining to boost quality.

ABSTRACT

We present an efficient text-to-video generation framework based on latent diffusion models, termed MagicVideo. MagicVideo can generate smooth video clips that are concordant with the given text descriptions. Due to a novel and efficient 3D U-Net design and modeling video distributions in a low-dimensional space, MagicVideo can synthesize video clips with 256x256 spatial resolution on a single GPU card, which takes around 64x fewer computations than the Video Diffusion Models (VDM) in terms of FLOPs. In specific, unlike existing works that directly train video models in the RGB space, we use a pre-trained VAE to map video clips into a low-dimensional latent space and learn the distribution of videos' latent codes via a diffusion model. Besides, we introduce two new designs to adapt the U-Net denoiser trained on image tasks to video data: a frame-wise lightweight adaptor for the image-to-video distribution adjustment and a directed temporal attention module to capture temporal dependencies across frames. Thus, we can exploit the informative weights of convolution operators from a text-to-image model for accelerating video training. To ameliorate the pixel dithering in the generated videos, we also propose a novel VideoVAE auto-encoder for better RGB reconstruction. We conduct extensive experiments and demonstrate that MagicVideo can generate high-quality video clips with either realistic or imaginary content. Refer to \url{https://magicvideo.github.io/#} for more examples.

Motivation & Objective

  • Address data efficiency and computational cost in text-to-video generation.
  • Model video distributions in a low-dimensional latent space to reduce compute.
  • Leverage pre-trained image-generation weights to accelerate video training.

Proposed method

  • Use latent diffusion in a low-dimensional video latent space to generate 16 key frames.
  • Introduce a 3D U-Net with a lightweight frame-wise adaptor and a directed temporal attention module to model spatiotemporal features.
  • Replace 3D/2+1D convolutions with a video distribution adaptor (2D adaptor) to reduce computation and reuse image-model priors.
  • Incorporate a VideoVAE decoder to reduce frame-level dithering artifacts.
  • Train an interpolation network to synthesize intermediate frames between key frames for smoother motion.
  • Apply a diffusion-based super-resolution model to upscale 256x256 frames to higher resolutions.
  • Adopt unsupervised pretraining with CLIP-based frame embeddings and fine-tune on text-video pairs.

Experimental results

Research questions

  • RQ1Can latent diffusion in a low-dimensional latent space generate temporally coherent and text-aligned videos effectively?
  • RQ2Do frame-wise adaptors and directed temporal attention improve quality and temporal consistency compared to conventional 3D/2+1D video models?
  • RQ3How does unsupervised pretraining on video data influence final video quality when fine-tuned on text-video pairs?
  • RQ4What is the impact of a VideoVAE decoder on reducing dithering artifacts in video generation?
  • RQ5How well does the approach scale to high-resolution upsampling via SR models?

Key findings

  • MagicVideo achieves high-quality, temporally coherent video generation that aligns with text prompts, outperforming several strong baselines in qualitative comparisons.
  • A directed self-attention mechanism reduces the Frechet Video Distance (FVD) and improves motion consistency by modeling unidirectional temporal dynamics.
  • An adaptor module using frame-wise 2D convolutions significantly lowers computation while maintaining or improving video quality.
  • Unsupervised pre-training (using CLIP-frame embeddings) substantially improves video quality, reducing FVD by about 60 in ablations across datasets.
  • In zero-shot evaluations, MagicVideo achieves competitive or superior FID/FVD scores on MSR-VTT and UCF-101 compared to baselines (e.g., MSR-VTT: FID 36.5, FVD 998; UCF-101: FID 145, FVD 655).
  • A VideoVAE decoder integrated with temporal attention mitigates frame dithering and yields smoother RGB reconstructions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.