Skip to main content
QUICK REVIEW

[Paper Review] Phenaki: Variable Length Video Generation From Open Domain Textual Description

Ruben Villegas, Mohammad Babaeizadeh|arXiv (Cornell University)|Oct 5, 2022
Generative Adversarial Networks and Image SynthesisComputer Science79 citations
TL;DR

Phenaki introduces a variable-length video generation model that uses a causal video tokenizer and a bidirectional transformer to generate long videos from time-varying text prompts, trained on both image-text and video-text data to improve generalization.

ABSTRACT

We present Phenaki, a model capable of realistic video synthesis, given a sequence of textual prompts. Generating videos from text is particularly challenging due to the computational cost, limited quantities of high quality text-video data and variable length of videos. To address these issues, we introduce a new model for learning video representation which compresses the video to a small representation of discrete tokens. This tokenizer uses causal attention in time, which allows it to work with variable-length videos. To generate video tokens from text we are using a bidirectional masked transformer conditioned on pre-computed text tokens. The generated video tokens are subsequently de-tokenized to create the actual video. To address data issues, we demonstrate how joint training on a large corpus of image-text pairs as well as a smaller number of video-text examples can result in generalization beyond what is available in the video datasets. Compared to the previous video generation methods, Phenaki can generate arbitrary long videos conditioned on a sequence of prompts (i.e. time variable text or a story) in open domain. To the best of our knowledge, this is the first time a paper studies generating videos from time variable prompts. In addition, compared to the per-frame baselines, the proposed video encoder-decoder computes fewer tokens per video but results in better spatio-temporal consistency.

Motivation & Objective

  • Motivate the need for long, coherent video generation conditioned on sequences of open-domain prompts.
  • Propose a compact, causal video tokenizer (C-ViViT) to enable variable-length video encoding.
  • Develop a text-to-video generator based on a masked bidirectional transformer conditioned on text tokens.
  • Demonstrate benefits of joint image-text and video-text training for better generalization.
  • Showcase capabilities like story-style prompting and conditional video extrapolation.

Proposed method

  • Introduce C-ViViT as a causal, auto-regressive video encoder that compresses videos into discrete tokens while enabling variable-length inputs.
  • Use a decoder that reconstructs frames from spatio-temporal tokens with a time-causal transformer and vector quantization.
  • Train a Masked Visual Token Modeling (MVTM) objective with a bidirectional transformer that predicts video tokens conditioned on text embeddings.
  • Condition the MVTM with pre-computed text tokens (via T5X) and apply classifier-free guidance during inference.
  • Enable long-horizon generation by autoregressively extrapolating future tokens from past generated frames.
  • Joint-training strategy: mix large image-text data with smaller text-video data to improve alignment and diversity while reducing token count.

Experimental results

Research questions

  • RQ1Can a video encoder-decoder with temporal causality support variable-length video generation conditioned on time-varying prompts?
  • RQ2Does joint training on image-text and video-text data improve open-domain video generation quality and generalization?
  • RQ3Can a masked bidirectional transformer generate coherent, long videos more efficiently than autoregressive samplers?
  • RQ4How well can a video model conditioned on a story-like sequence of prompts produce temporally coherent dynamics?
  • RQ5What is the impact of using a dynamic prompt sequence (story) on video coherence and style?

Key findings

  • Phenaki can generate temporally coherent and diverse videos conditioned on open-domain prompts.
  • The model can produce long videos (minutes) though trained on 1.4-second clips, using a causal encoder to handle variable lengths.
  • Joint training on image-text and video-text data improves concept coverage and style transfer (e.g., pencil drawings) beyond video-only training.
  • The masked bidirectional MVTM sampling reduces the number of sampling steps by an order of magnitude compared to autoregressive methods, while maintaining quality.
  • C-ViViT encodes videos with fewer tokens (40% fewer) than per-frame methods, enabling better spatio-temporal consistency.
  • Phenaki supports time-variable prompts, enabling dynamic storytelling and scene transitions across a generated video.

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.