Skip to main content
QUICK REVIEW

[Paper Review] CogVideoX: Text-to-Video Diffusion Models with An Expert Transformer

Zhuoyi Yang, Jiayan Teng|arXiv (Cornell University)|Aug 12, 2024
Natural Language Processing TechniquesComputer Science15 citations
TL;DR

CogVideoX is a large-scale diffusion-transformer model that generates 10-second, 768×1360 videos at 16 fps guided by text prompts, using a 3D VAE, an expert Transformer with adaptive LayerNorm, and progressive multi-resolution training.

ABSTRACT

We present CogVideoX, a large-scale text-to-video generation model based on diffusion transformer, which can generate 10-second continuous videos aligned with text prompt, with a frame rate of 16 fps and resolution of 768 * 1360 pixels. Previous video generation models often had limited movement and short durations, and is difficult to generate videos with coherent narratives based on text. We propose several designs to address these issues. First, we propose a 3D Variational Autoencoder (VAE) to compress videos along both spatial and temporal dimensions, to improve both compression rate and video fidelity. Second, to improve the text-video alignment, we propose an expert transformer with the expert adaptive LayerNorm to facilitate the deep fusion between the two modalities. Third, by employing a progressive training and multi-resolution frame pack technique, CogVideoX is adept at producing coherent, long-duration, different shape videos characterized by significant motions. In addition, we develop an effective text-video data processing pipeline that includes various data preprocessing strategies and a video captioning method, greatly contributing to the generation quality and semantic alignment. Results show that CogVideoX demonstrates state-of-the-art performance across both multiple machine metrics and human evaluations. The model weight of both 3D Causal VAE, Video caption model and CogVideoX are publicly available at https://github.com/THUDM/CogVideo.

Motivation & Objective

  • Address the challenge of long-duration, temporally coherent text-to-video generation.
  • Improve text-video alignment and dynamic motion understanding.
  • Enable scalable training and high-fidelity video reconstruction at high resolutions.

Proposed method

  • Introduce a 3D causal VAE to compress video across spatial and temporal dimensions for higher fidelity and lower sequence length.
  • Incorporate an expert Transformer with expert adaptive LayerNorm to fuse text and video modalities.
  • Apply 3D full attention and 3D-RoPE to capture large-scale motions and temporal-spatial relationships.
  • Use multi-resolution frame packing and progressive training to handle varying resolutions and durations.
  • Develop a dense video captioning pipeline to generate high-quality text-video pairs for training.
  • Implement Explicit Uniform Sampling to stabilize training loss and accelerate convergence.

Experimental results

Research questions

  • RQ1How to achieve long-duration, temporally coherent video generation conditioned on text prompts?
  • RQ2What architectural adaptations (3D VAE, expert Transformer, 3D attention) best align video and text modalities?
  • RQ3Can progressive training, multi-resolution frame packing, and robust data/text pipelines improve video fidelity and semantic alignment?

Key findings

  • CogVideoX-5B and CogVideoX-2B reach state-of-the-art performance on automated metrics and human evaluation across several dynamic video benchmarks.
  • 3D VAE with causal convolutions reduces flicker and improves reconstruction quality while enabling longer sequences.
  • Expert adaptive LayerNorm and 3D full attention improve text-video alignment and temporal consistency.
  • Progressive training and multi-resolution frame packing enable stable training and high-quality, long-duration videos up to 10 seconds at 768×1360 resolution and 16 fps.
  • Video captioning and filtering pipelines substantially improve semantic understanding and data quality for training.

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.