[论文解读] CogVideoX: Text-to-Video Diffusion Models with An Expert Transformer
CogVideoX 是一个大规模扩散-变换器模型,在 16 fps 条件下,基于文本提示生成 10 秒、768×1360 的视频,使用 3D VAE、具自适应 LayerNorm 的专家 Transformer,以及渐进式多分辨率训练。
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.
研究动机与目标
- 解决长时长、时序连贯的文本到视频生成挑战。
- 提升文本与视频的对齐以及动态运动理解。
- 实现可扩展的训练以及在高分辨率下的视频高保真重建。
提出的方法
- 引入一个 3D 因果 VAE,在空间和时间维度上压缩视频以提高保真度并降低序列长度。
- 引入具备专家自适应 LayerNorm 的专家 Transformer 来融合文本和视频模态。
- 应用 3D 全注意力和 3D-RoPE 以捕捉大尺度运动和时空关系。
- 使用多分辨率帧打包和渐进式训练以处理不同分辨率和时长。
- 开发密集视频字幕生成管道以生成高质量的文本-视频对用于训练。
- 实现显式均匀采样以稳定训练损失并加速收敛。
实验结果
研究问题
- RQ1如何在文本提示条件下实现长时长、时序连贯的视频生成?
- RQ2哪些架构改造(3D VAE、专家 Transformer、3D 注意力)能最好地对齐视频与文本模态?
- RQ3渐进式训练、多分辨率帧打包,以及鲁棒的数据/文本管道能否提升视频保真度和语义对齐?
主要发现
- CogVideoX-5B 和 CogVideoX-2B 在多个动态视频基准上达到自动评估指标和人类评估的最先进性能。
- 带因果卷积的 3D VAE 在减少闪烁并提升重建质量的同时,实现了更长的序列。
- 专家自适应 LayerNorm 和 3D 全注意力提高文本-视频对齐和时序一致性。
- 渐进式训练和多分辨率帧打包实现稳定训练,并产生高质量的、时长高达 10 秒、分辨率 768×1360、16 fps 的视频。
- 视频字幕生成与筛选管道显著提升训练中的语义理解和数据质量。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。