Text2Video-Zero: Text-to-Image Diffusion Models are Zero-Shot Video Generators

Levon Khachatryan, Andranik Movsisyan, Vahram Tadevosyan, Roberto Henschel, Zhangyang Wang, Shant Navasardyan, Humphrey ShiICCV 2023

Abstract

Recent text-to-video generation approaches rely on computationally heavy training and require large-scale video datasets. In this paper, we introduce a new task of zero-shot text-to-video generation and propose a low-cost approach (without any training or optimization) by leveraging the power of existing text-to-image synthesis methods (e.g., Stable Diffusion), making them suitable for the video domain. Our key modifications include (i) enriching the latent codes of the generated frames with motion dynamics to keep the global scene and the background time consistent; and (ii) reprogramming frame-level self-attention using a new cross-frame attention of each frame on the first frame, to preserve the context, appearance, and identity of the foreground object. Experiments show that this leads to low overhead, yet high-quality and remarkably consistent video generation.

Introduction

Generating video from text is significantly more challenging than static image generation. While models like Stable Diffusion have achieved remarkable success in synthesizing high-fidelity images, they lack an inherent mechanism for temporal consistency or motion dynamics. Existing solutions typically involve training massive models on large-scale video-text datasets or performing one-shot tuning on specific reference videos. Both approaches are computationally expensive. Text2Video-Zero addresses this by transforming pre-trained text-to-image (T2I) models into video generators without any additional training or optimization.

Methodology

Text2Video-Zero introduces two primary modifications to the standard diffusion pipeline to enable temporal coherence:

1. Motion Dynamics in Latent Codes

To avoid the "visual static" caused by independent noise sampling, the method starts with a single noise latent for the initial frame. A global translation (warping) is applied to this latent to define a motion trajectory. To allow for local object movement independent of the background, these warped latents are processed through a few steps of the DDPM forward process, reintroducing a controlled amount of noise.

Consistent motion generation of a horse galloping through a city.

2. Cross-Frame Attention Reprogramming

To preserve object identity across frames, the standard self-attention layers in the U-Net architecture are replaced with Cross-Frame Attention. In this setup, every subsequent frame attends to the features of the first frame. This ensures that textures, colors, and specific features of the foreground object remain consistent throughout the sequence.

3. Background Smoothing

An optional background smoothing step uses a salient object detector to create a mask, blending the generated background with a warped version of the first frame’s background to prevent scene drift.

Key Results and Discussion

Text2Video-Zero demonstrates that T2I models are effectively "latent" video models that simply require a temporal synchronization mechanism.

Quantitative Performance

The method achieved a CLIP score of 31.19, outperforming the 9.4-billion-parameter CogVideo model (29.63), which was trained on extensive video data. This highlights the efficiency of leveraging pre-trained image priors.

Qualitative Consistency

The approach produces remarkably stable videos compared to per-frame editing methods, which often suffer from flickering. It successfully handles various tasks, including text-to-video synthesis, conditional generation (e.g., using pose guides), and instruction-guided video editing.

Zero-shot generation of a panda playing guitar in Times Square.

Conclusion

Text2Video-Zero provides a "plug-and-play" solution for video generation by introducing "temporal glue" to existing image models. While it faces challenges with highly complex non-linear motions and long-form temporal memory, it establishes a new baseline for zero-shot video synthesis that is both high-quality and computationally accessible.

Summary updated

BibTeX
@inproceedings{khachatryan2023text,
  author = {Levon Khachatryan and Andranik Movsisyan and Vahram Tadevosyan and Roberto Henschel and Zhangyang Wang and Shant Navasardyan and Humphrey Shi},
  title = {{Text2Video-Zero: Text-to-Image Diffusion Models are Zero-Shot Video Generators}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=REYt4s1F9I},
}
Figure