THUDM
CogVideoX 5B
Model Report
Overview
CogVideoX-5B is a large-scale generative AI model developed for text-to-video and image-to-video synthesis. Part of the broader CogVideoX family by THUDM and Zhipu AI, CogVideoX-5B builds upon its predecessor, CogVideo, by offering enhanced video duration, spatial resolution, and semantic consistency. The model is designed to translate textual descriptions or static images into coherent, high-fidelity video sequences, supporting a range of creative and research applications in artificial intelligence and computer vision. Its public release is accompanied by extensive technical documentation, research benchmarks, and open-source code to facilitate reproducibility and further development within the scientific community, as detailed in the CogVideoX research paper.

Figure 1. CogVideoX project logo, representing the model's focus on generative video synthesis.
Model Capabilities and Workflow
CogVideoX-5B supports text-to-video, image-to-video, and video continuation tasks, enabling flexible video synthesis based on diverse input formats. A distinctive feature is the focus on long-term temporal consistency, achieved via a 3D full attention mechanism that models relationships across both spatial and temporal dimensions. Additionally, multi-modal input fusion is supported, allowing the model to align text and video features for improved semantic accuracy.
The model accepts natural language prompts or static images and generates high-resolution videos, each up to 10 seconds in length at a resolution of 768 x 1360 pixels and 8 frames per second. These capabilities are further extended in later variants, such as CogVideoX1.5-5B, which supports a higher frame rate of 16 frames per second for smoother motion representation. The CogVideoX-5B-I2V variant enables controlled video generation from an input image as background, guided by a text prompt for granular customization.
Video-to-video generation is also possible through integration with captioning models such as CogVLM2-Caption, which produces descriptive text from a source video that can then serve as input for CogVideoX-5B, facilitating video remixing and editing workflows.

Figure 2. CogVideoX-5B Huggingface web demo displaying a generated video and user interface for prompt-based video synthesis.
Model Architecture
CogVideoX-5B employs a diffusion transformer architecture, drawing on advances in Diffusion Transformers (DiT) to learn the complex distributions required for high-quality video generation. The model architecture features several key components:
A 3D Causal Variational Autoencoder (VAE) is used to encode and compress video sequences along both spatial and temporal axes, improving continuity and video fidelity while controlling data dimensionality. This VAE leverages 3D convolutions with temporal causality, ensuring each output frame depends only on current and previous information, thus preserving realistic motion.
A specialized Expert Transformer module facilitates the deep fusion of video and text features, utilizing adaptive layer normalization to manage modality-specific data. The model applies a "patchify" process, segmenting encoded video representations into sequences suitable for transformer input.
For positional encoding, CogVideoX-5B implements 3D Rotary Position Embeddings (3D-RoPE), independently embedding spatial and temporal coordinates—this accelerates convergence during training and improves performance on longer, complex sequences.
A 3D hybrid attention mechanism unifies spatial and temporal attention, enabling the model to model large-scale motions and maintain scene consistency across extended video durations. This attention strategy is adaptable to various parallel training and acceleration methods.

Figure 3. Sequences of video frames generated by CogVideo, each row illustrating a different prompt and the corresponding model output.
Training Data and Techniques
The CogVideoX-5B model is trained on a diverse dataset comprising approximately 35 million high-quality video clips averaging six seconds each, in addition to two billion filtered images sourced from the LAION-5B and COYO-700M collections. Videos are subjected to a rigorous filtering pipeline that employs classifiers to exclude low-quality, redundant, or otherwise unsuitable content. Labels indicating editing, poor motion connectivity, and other noise profiles are used to enhance dataset integrity.
A unique aspect of the dataset preparation is the "Dense Video Caption Data Generation" process. Since many videos lack granular textual descriptions, short captions are generated from sampled frames using image captioning models like CogVLM; these are then summarized by large language models to form detailed video captions. This strategy enables effective supervision and semantic alignment during training.
To support mixed-duration learning, the model batch processing framework mixes videos of varying lengths and resolutions. Progressive training is adopted: lower-resolution sequences are presented initially to foster semantic understanding, followed by higher-resolution fine-tuning to refine visual detail. Explicit uniform sampling across diffusion steps is used to stabilize optimization and improve convergence, aligning with techniques documented in latent diffusion models.

Figure 4. CogVideoX demonstration: 32-frame sequence illustrating continuous action generated by the model, in this case, a man running in the sea.
Evaluation and Benchmarks
CogVideoX-5B performance has been assessed on a broad range of metrics using benchmarks such as VBench. Automated evaluations measure the fidelity of actions, scenes, motion dynamics, object multiplicity, and appearance consistency. Dynamic quality and metamorphic amplitude—captured via metrics like "GPT4o-MTScore"—have been leveraged to mitigate biases associated with static video content.
The model achieved strong results across automated metrics, particularly in action plausibility, dynamic scene structure, and semantic alignment, as presented in comparative evaluations. Human evaluation frameworks involved scoring generated videos on sensory quality, instruction-following ability, physical realism, and coverage of the prompt, with CogVideoX-5B demonstrated preferred performance compared to several established contemporaries.
Model Variants, Limitations, and Release Information
The CogVideoX family encompasses several variants tailored for different use cases. CogVideoX-2B is an entry-level model optimized for lower resource consumption and development flexibility, supporting 720 x 480 resolution videos. CogVideoX1.5-5B represents an upgraded architecture, allowing for higher frame rates and enhanced resolution.
CogVideoX-5B has several documented limitations. The model is primarily trained and evaluated on English prompts, with non-English input requiring third-party translation and prompt refinement. While the video fidelity improves with high-resolution fine-tuning, there can be a minor trade-off in semantic detail. Hardware compatibility is constrained by model size, though quantization and memory optimization techniques allow reduced VRAM consumption at the possible expense of inference speed. The model is also sensitive to prompt quality, as it is trained on long, descriptive textual inputs.
Major releases include the open-sourcing of CogVideoX-2B and CogVideoX-5B, as well as the publication of fine-tuning frameworks such as CogKit, enabling further research and customization. Model code and weights are distributed under open-source licenses, with most modules available under the Apache 2.0 or the dedicated CogVideoX license.
External Resources
For further information, technical documentation, and access to model checkpoints and tools, the following external resources are available:
- Official CogVideoX-5B page with downloads and technical overview
- CogVideoX research paper on arXiv
- CogVideoX demo page with video samples
- CogKit GitHub repository
- CogVLM2-Caption model for video captioning
- Technical user guide for fine-tuning CogVideoX models
- Quantization tools for memory-efficient inference
- VBench video model evaluation benchmark
More in the CogVideoX Family
