CogVideoX — Text-to-Video Diffusion Models with An Expert Transformer

DeepLearning-Paper-with-Code · Video Generation · arXiv(2024) / ICLR(2025) · Yang et al. (Tsinghua / Zhipu AI)
核心论点 关键概念 实证证据 让步/反驳 方法论

🎮 费曼一分钟(通俗速读)

通俗速读 · 先建立模糊认知,再读正文

文生视频 = 扩散 + DiT,但旧模型动作小、时长短、叙事难连贯。CogVideoX 四件套:3D 因果 VAE(时空 8×8×4 压缩,减 flicker)+ Expert Transformer(文本/视频 Expert AdaLN + 3D full attention 替代 2D+1D 分离注意力)+ Multi-Resolution Frame Pack(混时长/分辨率 batch 训练)+ 密集 caption 流水线(Panda70M → CogVLM 帧 caption → GPT-4 汇总 → CogVLM2-Caption)。产出 768×1360、16fps、10 秒视频;开源 2B/5B T2V 与 I2V。

📄 原文 Teaser:长时高分辨率文生视频样例

CogVideoX 长时高动作文生视频示例
Teaser:CogVideoX 可生成动作连贯、语义丰富的长时高分辨率视频(768×1360,16fps,10s)。点击放大。

Abstract

原文翻译解析

We present CogVideoX, a large-scale text-to-video diffusion transformer that generates 10-second videos aligned with text prompts at 16 fps and 768×1360 resolution. Previous models often struggled with limited motion and short durations.

We introduce a 3D VAE for spatiotemporal compression, an expert transformer with expert adaptive LayerNorm for text-video fusion, and progressive training with multi-resolution frame packing. An effective text-video preprocessing pipeline and video captioning model significantly improve quality and semantic alignment. CogVideoX achieves SOTA on automated benchmarks and human evaluation. Code and weights are released.

我们提出 CogVideoX——大型文生视频扩散 Transformer,可生成与文本对齐的 10 秒视频(16fps,768×1360)。此前模型常动作有限、时长短。

引入3D VAE做时空压缩、带 Expert AdaLN 的Expert Transformer融合文本-视频、以及含 multi-resolution frame pack 的渐进训练。有效预处理与 video caption 模型显著提升质量与语义对齐。自动评测与人类评估 SOTA。代码与权重公开。

概括主张

段落功能

宣告「3D VAE + Expert DiT + 训练/数据流水线」四件套,承诺长时、高动作、高分辨率、开源商用级 T2V。

逻辑角色

论证链起点:旧 T2V 局限 → 架构+训练+数据三管齐下 → SOTA + 开源。

1. Introduction

原文翻译解析

Text-to-video has advanced via Transformers and diffusion models (CogVideo, Phenaki, Make-A-Video, DiT/Sora). Yet achieving long-term consistent video with dynamic plots remains unclear — e.g., generating "lightning splits a rock, a person jumps out."

Challenges: efficiently modeling high-dim video, aligning video with text semantics, and constructing high-quality text-video pairs for training.

文生视频在 Transformer 与扩散模型推动下进展迅速(CogVideo、Phenaki、Make-A-Video、DiT/Sora),但长时一致、情节动态仍难——如「闪电劈开岩石、人从中跳出」类 prompt。

挑战:高效建模高维视频、文本-视频语义对齐、构建高质量 text-video 训练对。

引出问题

段落功能

承接 Sora 时代背景,点明「长叙事 + 大动作」仍是 open problem;三路挑战对应后文 VAE / Expert Transformer / 数据流水线。

We introduce CogVideoX: 3D causal VAE compresses video spatiotemporally; expert Transformer with expert AdaLN fuses text and video; progressive training (multi-resolution frame pack, resolution curriculum) plus Explicit Uniform Sampling stabilizes diffusion training.

A video captioning pipeline (Panda70M → CogVLM frame captions → GPT-4 summary → LLaMA2/CogVLM2-Caption) recaptions ~35M clips. We train 2B and 5B models; 5B achieves SOTA on automated and human benchmarks (Fig. radar).

我们提出 CogVideoX:3D 因果 VAE时空压缩;Expert Transformer(Expert AdaLN)融合文本-视频;渐进训练(frame pack、分辨率课程)+ Explicit Uniform Sampling 稳定扩散训练。

video caption 流水线重标注约 3500 万片段。训 2B/5B 模型;5B 在自动与人类评测 SOTA(雷达图)。

提出论点

论证技巧

四模块一一对应四挑战;强调开源商用级(首个 open commercial-grade T2V)作为工程贡献。

📄 原文雷达图:开源 T2V 多维度对比

CogVideoX radar chart vs open T2V models
Intro 雷达图:CogVideoX-5B/2B 在 Human Action、Dynamic Degree、Multiple Objects 等维度领先或具竞争力;体现可扩展性。点击放大。

2. Architecture — 3D VAE & Expert Transformer

原文翻译解析

Given video-text pair, a 3D causal VAE compresses video to latents $z_{\text{vision}}$; T5 encodes text to $z_{\text{text}}$. Concatenated sequence passes through expert transformer blocks; output unpatchified and decoded to video.

3D VAE: 3D conv compresses 8×8×4 (spatial×spatial×temporal). Temporally causal conv (padding at past only) prevents future leakage. Context parallel on temporal dim for long videos. Variant B: 16 latent channels, flickering ↓ vs 2D VAE baseline.

视频-文本对经 3D 因果 VAE 得 latent $z_{\text{vision}}$;T5 编码文本得 $z_{\text{text}}$。拼接后过 expert transformer;输出 unpatchify 再 VAE 解码。

3D VAE:3D 卷积实现 8×8×4 压缩。时间因果卷积(仅向过去 padding)避免未来信息泄漏;长视频用 context parallel。选用 variant B(16 通道),flicker 低于 SDXL 2D VAE 基线。

3D VAE

设计取舍

比逐帧 2D VAE 更减 flicker、更高压缩比;过激进压缩(16×16×8)即使加通道也难收敛——选 8×8×4 为 sweet spot。

📄 原文 Figure 2:CogVideoX 整体架构(MAIN)

CogVideoX overall architecture expert transformer
Fig.2:3D VAE 编解码 + T5 文本 + 拼接序列 → Expert Transformer DiT 堆叠 → 去噪 latent → 解码视频。点击放大。

📄 原文 Figure:3D Causal VAE 结构与 Context Parallel

CogVideoX 3D causal VAE structure
3D VAE:(a) encoder/decoder + KL 正则,8×8×4 压缩;(b) 时间因果卷积的 context parallel 通信(每 rank 传 $k{-}1$ 帧)。点击放大。

Expert Transformer: Latent shape $T\times H\times W\times C$ patchified to length $\frac{T}{q}\cdot\frac{H}{p}\cdot\frac{W}{p}$. 3D-RoPE: independent 1D-RoPE on $(x,y,t)$ with channel split 3/8, 3/8, 2/8.

Expert AdaLN: Vision Expert AdaLN and Text Expert AdaLN apply diffusion timestep modulation separately — aligns modalities without dual transformers (vs MMDiT). 3D full attention over concatenated text+video tokens (not separated 2D+1D attention).

Expert Transformer:latent patchify 成序列。3D-RoPE:对 $(x,y,t)$ 独立 1D-RoPE,通道比 3/8、3/8、2/8。

Expert AdaLN:视觉/文本各用 Expert AdaLN 做 timestep 调制——比 MMDiT 双 Transformer 更省参。对拼接 token 做 3D full attention(非 2D+1D 分离注意力)。

Expert DiT

3D Full Attention vs 2D+1D(Fig. attention)

分离时空注意力时,帧 $i{+}1$ 的人头无法直接 attend 帧 $i$ 的同物体——大动作一致性差。Full 3D attention + FlashAttention 可扩展。

📄 原文 Figure:分离时空注意力的不一致问题

separated spatial temporal attention inconsistency
分离 2D+1D 注意力:相邻帧同一物体(如人头)无法直接 attend,信息需经背景间接传递 → 生成不一致。点击放大。

💻 代码对照 — 3D VAE · 3D Attention · Frame Pack · 训练流程

官方仓库:github.com/THUDM/CogVideo(SAT 训练栈)· 推理常用 diffusersCogVideoXPipeline。下文对照论文与 sat/vae_modules/sat/dit_video_concat.pysat/data_video.py

① 3D 因果 VAE — 压缩率与因果卷积

总压缩 8×8×4(像素 → latent):encoder 有 3 级 spatial downsample(各 2× → 8×),前 2 级同时压时间维(各 2× → 4×)。配置见 cogvideox_5b.yamlch_mult: [1,2,2,4]temporal_compress_times: 4z_channels: 16

阶段像素空间latent 空间(VAE 后)DiT token 网格(patch=2)
例:480×720,49 帧$T{=}49,\; H{=}480,\; W{=}720$$T'{=}13,\; H'{=}60,\; W'{=}90$(约 8×8×4)$\text{rope}_T{=}13,\; \text{rope}_H{=}30,\; \text{rope}_W{=}45$
压缩来源ContextParallelEncoder3D 前 2 级 compress_time=TrueImagePatchEmbeddingMixin 对 latent 做 $2{\times}2$ patch(时间维 patch=1)

关于「时间 ×4」:用户常把 time_compressed_rate: 4 与 VAE 时间压缩混淆——二者一致:VAE 把帧数压到约 $T' = \lfloor(T-1)/4\rfloor + 1$,故原始帧数需满足 4k+1(代码里 nearest_smaller_4k_plus_1)。

因果卷积:ContextParallelCausalConv3d 只在时间维过去侧 padding(pad_mode="first"),当前帧不窥视未来帧 → 自回归解码友好、减少时序泄漏。

# vae_modules/cp_enc_dec.py — Encoder 下采样逻辑(简化) for i_level in range(num_resolutions - 1): compress_time = (i_level < log2(temporal_compress_times)) # 前 2 级:时空同压 down.downsample = DownSample3D(..., compress_time=compress_time) # compress_time=True → avg_pool1d(kernel=2) 压 T;同时 spatial 2×

② 图像 / 单帧视频 — encode & decode

训练把图像当 T=1 的视频混入 batch。推理 I2V 时输入首帧,后续帧由 DiT 生成。

# 伪代码 — 像素 ↔ latent(DiT 训练/推理共用) # x: [B, 3, T, H, W] 取值约 [-1, 1] z = vae.encode(x) # [B, 16, T', H/8, W/8] 冻结权重 z_noisy = add_noise(z, t) # 扩散加噪在 latent 上 v_pred = dit(z_noisy, t, text) # Expert Transformer 预测 v z_hat = denoise_step(...) video = vae.decode(z_hat) # [B, 3, T, H, W]

DiT 阶段 first_stage_config 加载 3d-vae.ptloss_config: Identity —— VAE 不参与 DiT 反传,与 LDM 相同两阶段范式。

③ 3D Full Attention — 机制与伪代码

对比 2D+1D:先做帧内 spatial attention,再做跨帧 temporal attention——相邻帧同一物体 token 不直接相连(Fig.5)。3D Full 把文本 token 与所有时空 patch token 拼成一条序列,做一次标准多头 self-attention;视频 token 的 Q/K 经 3D-RoPE 注入 $(t,y,x)$ 相对位置。

# dit_video_concat.py — AdaLNMixin.layer_forward(核心逻辑简化) text_h, img_h = hidden[:, :n_text], hidden[:, n_text:] # Expert AdaLN 分路调制 text_h = modulate(LN(text_h), text_shift, text_scale) img_h = modulate(LN(img_h), img_shift, img_scale) seq = cat([text_h, img_h], dim=1) # [B, n_text + T·H·W, D] Q, K, V = linear(seq) # 同一套 W_q,W_k,W_v Q_vid, K_vid = rotary3d(Q[:, n_text:], K[:, n_text:]) # 仅视频 token 加 3D-RoPE attn = softmax(Q @ K^T / sqrt(d)) @ V # 全连接:文本↔任意帧任意位置 # 文本 token 可 attend 到第 i 帧物体 → 第 i+1 帧同位置(大动作一致)

复杂度:序列长度 $L = n_{\text{text}} + T' \cdot H' \cdot W'$(再除以 patch²)。5B 配置 768×1360×10s 时 $L$ 可达 70 万级(附录),依赖 FlashAttention + 激活检查点。

④ Frame Pack — len < max 与 len > max 怎么处理?

每个 training step 为 batch 设定统一目标帧数 num_frames(由当前 stage 的 max duration × fps 决定,如 6s×8fps=49)。sat/data_video.py

def pad_last_frame(tensor, num_frames): if len(tensor) < num_frames: pad_len = num_frames - len(tensor) last = tensor[-1] pad = last.unsqueeze(0).expand(pad_len, ...) return cat([tensor, pad], dim=0) # ⬅ 短于目标:末帧重复,不用黑帧 else: return tensor[:num_frames] # ⬆ 长于目标:均匀采样后仍超长则截断前 num_frames 帧

⑤ VAE 与 DiT — 两阶段训练(非端到端联合)

论文 §VAE + 附录明确:先单独训 3D VAE,再冻结训 CogVideoX DiT。VAE 自身亦分两阶段。

# 阶段 A — 3D Causal VAE(独立 job,vae_modules/autoencoder.py) for step in vae_steps: x = batch["video"] # [B,3,T,H,W] z, x_rec, reg = vae(x) loss = L1(x, x_rec) + LPIPS(x, x_rec) + KL(reg) if step > disc_start: loss += GAN(x, x_rec) # A1: 256², 17 帧;A2: context parallel 拉长到 161 帧微调 save("3d-vae.pt") # 阶段 B — CogVideoX DiT(cogvideox_5b.yaml,VAE 冻结) vae.load("3d-vae.pt"); vae.eval(); freeze(vae) for step in dit_steps: frames = pad_last_frame(load_video(...), num_frames) # 数据 z = vae.encode(frames) # no_grad,latent 扩散 z_t = q_sample(z, t) v_pred = dit(z_t, t, t5(text)) loss = ||v - v_pred||² # B1→B2→B3→B4: 256→480→768 分辨率;末 10k step HQ 子集微调
阶段训练对象分辨率 / 时长备注
A1 VAEEncoder+Decoder+判别器256²,17 帧L1+LPIPS+KL,后加 GAN
A2 VAE同上context parallel,161 帧扩展长视频重建
B1–B3 DiTExpert Transformer + T5 冻结256→480→768,6s→10sFrame Pack + v-pred + Uniform Sampling
B4 FTDiT768×1360,10stop 20% 干净数据,去字幕/水印

3. Training — Frame Pack & Progressive Curriculum

原文翻译解析

Mix images and videos (image = 1-frame video). Diffusion uses v-prediction + zero SNR schedule (LDM-style).

Multi-Resolution Frame Pack: Inspired by Patch'n Pack — pack videos of different durations/resolutions into same batch shape. 3D RoPE extrapolation (extend position table front portion per video) preserves detail vs interpolation.

Pad / truncate rule (code): Shorter clips → repeat last frame to num_frames; longer → uniform subsample then truncate to first num_frames. See 代码 §④.

Progressive training: 256px → 512px → 768px; short side resize, aspect ratio preserved; final HQ fine-tune on top 20% clean subset.

图文混合训练(图=单帧视频)。扩散用 v-prediction + zero SNR 调度。

Multi-Resolution Frame Pack:不同长度/分辨率视频 pack 进同 batch。3D RoPE 外推(按分辨率取表前段)保细节。

Pad / 截断(代码):短于目标 → 末帧重复 填满;长于目标 → 均匀抽帧后 截断num_frames 帧。详见 代码 §④

渐进训练:256→512→768px;保宽高比;末阶段 20% 高质量子集微调。

训练策略

逻辑角色

Frame Pack 解决固定帧数训练的「双模态分裂」与数据浪费;pad_last_frame 用末帧重复(非黑帧)避免引入假运动静止段。

📄 原文 Figure:Mixed-Duration Training & Frame Pack

CogVideoX multi resolution frame pack
Frame Pack:同 batch 内 pack 不同时长/分辨率视频,充分利用数据、增强泛化。点击放大。

Explicit Uniform Sampling: Standard DDPM samples $t$ uniformly per rank — empirically non-uniform, loss fluctuates (loss magnitude varies by $t$). Split $[1,T]$ into $n$ intervals ($n$ = data-parallel ranks); each rank samples uniformly within its interval → stable loss (Fig. ablation).

Explicit Uniform Sampling:常规每 rank 随机采 $t$ 实际不够均匀、loss 波动大。将 $[1,T]$ 划为 $n$ 段($n$=并行 rank 数),每 rank 在各自区间均匀采样 → loss 更稳、收敛更快。

采样技巧

论证技巧

工程向但可消融:各 timestep 单独 loss 均下降——不是某一 $t$ 的 trick,而是全局训练动力学改善。

4. Data — Filtering & Dense Captioning

原文翻译解析

~35M filtered single-shot clips (~6s avg) + 2B aesthetic-filtered images (LAION-5B, COYO-700M).

Video filtering: 6 negative categories (Editing, Lack of Motion Connectivity, Low Quality, Lecture Type, Text Dominated, Noisy Screenshots) — Video-LLaMA classifiers + optical flow + aesthetic dynamic thresholds.

Dense caption pipeline: Panda70M short caption → CogVLM per-frame dense caption → GPT-4 summary → LLaMA2 fine-tune for scale → CogVLM2-Caption end-to-end model (also enables video-to-video via caption).

3500 万过滤单镜头片段(均 ~6s)+ 20 亿美学过滤图像。

视频过滤:6 类负样本(剪辑/无运动连贯/低质/讲座/文字主导/屏幕录制)+ 光流与美学动态阈值。

密集 caption:Panda70M 短 caption → CogVLM 帧级 dense caption → GPT-4 汇总 → LLaMA2 规模化 → CogVLM2-Caption 端到端(亦可 video-to-video)。

数据论点

段落功能

文生视频瓶颈常在caption 质量而非仅算力——CogVideoX 把数据工程(过滤+重标注)与模型设计并列论证。

📄 原文 Figure:Dense Video Caption 流水线

CogVideoX dense video caption pipeline
Caption 流水线:Panda70M 短视频 caption → 抽帧 CogVLM dense 图像 caption → GPT-4 汇总 → LLaMA2 微调加速。点击放大。

5. Experiments

原文翻译解析

Ablations: 3D RoPE beats sinusoidal absolute PE (faster loss convergence). Expert AdaLN beats no-expert and MMDiT (same params) on FVD & CLIP4Clip. 3D full attention beats 2D+1D (lower FVD early; 2D+1D unstable at 5B). Explicit Uniform Sampling stabilizes loss per timestep.

VAE: Ours 3D VAE — flickering 85.5, PSNR 29.1 vs Open-Sora 92.4/28.5 on WebVid 17-frame 256².

消融:3D RoPE 优于正弦绝对位置编码。Expert AdaLN 优于无 expert 与同参 MMDiT(FVD、CLIP4Clip)。3D full attention 优于 2D+1D(5B 时后者易崩溃)。Explicit Uniform Sampling 稳定各 timestep loss。

VAE:本 3D VAE flickering 85.5、PSNR 29.1,优于 Open-Sora 等开源 3D VAE。

消融链

论证技巧

架构选择均有 loss/FVD 曲线支撑——Expert AdaLN 是「够用且省参」相对 MMDiT 的关键论据。

📄 原文 Figure:WebVid 消融(FVD / CLIP4Clip)

CogVideoX ablation FVD CLIP4Clip
消融:Expert AdaLN vs MMDiT vs 无 expert;3D full vs 2D+1D;Uniform Sampling——CogVideoX 设计在 FVD/CLIP4Clip 上均占优。点击放大。

Automated metrics (Table 2): On VBench-aligned dimensions + Dynamic Quality + GPT4o-MTScore, CogVideoX-5B wins 5/7 metrics; CogVideoX-2B best on Dynamic Degree (66.39) and competitive elsewhere. Baselines: T2V-Turbo, AnimateDiff, VideoCrafter2, OpenSora, Show-1, Gen-2, Pika, LaVie-2.

Human eval vs Kling (2024.7): CogVideoX-5B wins on Sensory Quality (0.722), Instruction Following (0.495), Physics Simulation (0.667), Cover Quality (0.712); total 2.74 vs Kling 2.17.

自动指标(表 2):CogVideoX-5B 在 7 项中 5 项最佳;2B 在 Dynamic Degree 最高(66.39)。基线含 T2V-Turbo、AnimateDiff、VideoCrafter2、OpenSora、Show-1、Gen-2、Pika、LaVie-2。

人类评测 vs Kling:CogVideoX-5B 在感官质量、指令遵循、物理仿真、封面质量全胜;总分 2.74 vs Kling 2.17。

主结果
ModelHuman ActionDynamic DegreeMultiple ObjectsDynamic QualityGPT4o-MT
OpenSora V1.285.847.2258.4163.72.52
LaVie-296.431.1164.882.46
CogVideoX-2B96.666.3957.6857.73.09
CogVideoX-5B96.862.2270.9569.53.36
  • 论点↔证据:强调 Dynamic Degree / Dynamic Quality / GPT4o-MT——避免「静态视频刷分」;5B 在复杂动态场景领先。

6. Conclusion

原文翻译解析

We present CogVideoX, a SOTA text-to-video diffusion model with 3D VAE and Expert Transformer, generating coherent long videos with significant motion. We explore scaling laws and aim for larger models and longer, higher-quality generation.

我们提出 CogVideoX——SOTA 文生视频扩散模型,以 3D VAE + Expert Transformer 生成动作丰富、时序连贯的长视频。正探索 scaling law,目标更大模型与更长更高质量生成。

总结

逻辑角色

闭环:长叙事 T2V 难题 → 架构+训练+数据三件套 → 开源 2B/5B 商用级 → scaling 展望。

符号速查表

符号含义
$T,H,W,C$视频 latent 帧数 / 高 / 宽 / 通道
$z_{\text{vision}}, z_{\text{text}}$patchify 后视频 token 序列;T5 文本 embedding 序列
3D VAE时空 8×8×4 因果 VAE,KL + LPIPS + GAN 训练
Expert AdaLN视觉/文本分支独立 adaptive LayerNorm(timestep 调制)
3D-RoPE对 $(x,y,t)$ 三分量 RoPE,通道 3/8+3/8+2/8
Frame Pack同 batch pack 不同时长/分辨率视频(Patch'n Pack 思路)
Explicit Uniform Sampling各 DP rank 负责 $t$ 区间分段均匀采样
v-prediction扩散目标预测 velocity $v$(非 $\epsilon$)
FVD / CLIP4Clip视频 Fréchet 距离;文本-视频 CLIP 对齐分

论证结构总览

问题(T2V 动作小、时长短、叙事难连贯;数据 caption 差)
→ 论点(3D VAE 降维减 flicker + Expert DiT 深融合 + 渐进/Frame Pack 训练 + 密集 caption 数据)
→ 方法(3D causal VAE 8×8×4;Expert AdaLN + 3D full attention + 3D-RoPE;v-pred + zero SNR;Explicit Uniform Sampling)
→ 数据(35M 过滤 clip + 2B 图;6 类负样本过滤;Panda→CogVLM→GPT-4→CogVLM2-Caption)
→ 证据(消融 Fig.8;Table 2 七指标;人类评测 vs Kling;VAE PSNR/flicker)
→ 结论(开源 2B/5B T2V+I2V;ICLR 2025)

核心主张(一句话)

通过 3D 因果 VAE、Expert Transformer(Expert AdaLN + 3D 全注意力)与渐进式 multi-resolution 训练,配合大规模 dense video caption 流水线,CogVideoX 在开源文生视频中实现长时、高动作、高分辨率且文本对齐的 SOTA 生成。

论证最强处:架构-训练-数据三线并列且均有消融;Dynamic Degree/Quality 指标针对「静态刷分」;开源 5B 商用级权重;人类评测正面刚 Kling。
论证最弱处:部分 VBench 维度(aesthetic/imaging)非最优;训练细节(算力、步数)主要在附录;caption 流水线依赖 GPT-4/CogVLM 闭源组件;10s/768p 推理成本未充分量化。

来源:arXiv:2408.06072 · github.com/THUDM/CogVideo · 生成工具:paper-logic-reading skill(三栏版)

🧩 结构化十问(AI 解构)

让 AI 当助教,从十个角度提取论文骨架。

Q1 · 论文试图解决什么问题?
DiT 时代文生视频仍难生成长时、动作大、叙事连贯的视频;网络视频 caption 短/不准限制语义对齐。目标:10 秒、768×1360、16fps、与 prompt 强对齐(§1)。
Q2 · 这是否是一个新问题?
CogVideo、Make-A-Video、OpenSora 等已有 T2V;CogVideoX 独特在 3D causal VAE + Expert AdaLN DiT + Frame Pack + dense caption 工业化流水线 组合,并首个开源商用级 5B T2V。
Q3 · 要验证什么科学假设?
① 3D VAE 比 2D 逐帧编码减 flicker 且更高压缩;② Expert AdaLN 足够融合图文,无需 MMDiT 双塔;③ 3D full attention 优于 2D+1D 于大动作一致;④ dense caption 显著提升 text-video 对齐。
Q4 · 有哪些相关研究?
CogVideo/Phenaki(Transformer T2V);Make-A-Video/Video LDM;DiT/Sora;AnimateDiff(2D+1D);MMDiT/SD3;OpenSora/HunyuanVideo 等开源 T2V。作者:清华 + 智谱 AI。
Q5 · 解决方案的关键是什么?
四件套:3D causal VAE(8×8×4)→ Expert Transformer(3D-RoPE + Expert AdaLN + 3D full attention)→ 渐进训练 + Frame Pack + Uniform Sampling → 过滤 + dense recaption(CogVLM2-Caption)。
Q6 · 实验是如何设计的?
WebVid 消融(FVD/CLIP4Clip/loss 曲线);VBench 子集 + Dynamic Quality + GPT4o-MT vs 8 开源/闭源基线;人类四维评分 vs Kling;VAE 重建 flicker/PSNR 对比。
Q7 · 用什么数据集?代码开源吗?
~35M 过滤单镜头 + 2B 美学图;6 类负样本过滤。代码/权重:github.com/THUDM/CogVideo(2B/5B T2V + I2V + VAE + CogVLM2-Caption)。
Q8 · 实验结果是否支持假设?
较好支持:消融验证 RoPE/Expert/3D attention/Uniform Sampling;5B 七指标五冠;人类评测胜 Kling。保留:部分 aesthetic 维度非第一;依赖外部 caption 模型。
Q9 · 主要贡献?
① 3D causal VAE + Expert DiT 架构;② Frame Pack + 渐进训练 + Uniform Sampling;③ dense video caption 流水线;④ 开源商用级 2B/5B;⑤ ICLR 2025。
Q10 · 下一步?
更大模型/更长视频 scaling law;更高 VAE 压缩比;端到端 caption 去 GPT-4 依赖;音视频联合(CogVideoX 后续线);降低 768p 10s 推理成本。

🔬 深挖追问

第一性原理 · 视频 vs 图像扩散

视频生成难在时间维:token 数 $\propto T\times H\times W$。CogVideoX 先 VAE 压时空,再在 token 序列上做 DiT——与 Sora 同范式,但公开了 VAE 结构、Expert AdaLN 与数据流水线细节。

第一性原理 · Expert AdaLN vs MMDiT

MMDiT 用双 Transformer 分别处理图文再交互;CogVideoX 拼接 token 后单塔,仅用 Expert AdaLN 分模态调制——参数更少、更接近 LLM scaling 路径;消融显示同参下 FVD 更优。

第一性原理 · 数据即模型

35M clip 若用原始短视频 caption,模型学不到「闪电劈石、人跳出」级叙事。Dense caption 把数据工程升格为与架构同级贡献——后续 HunyuanVideo/Wan 亦强调 caption/filter。

批判性思维 · 盲区

  • 指标博弈:VBench 部分维度偏好静态高保真;作者主动加 Dynamic Quality/GPT4o-MT 但仍难覆盖叙事正确性。
  • Caption 闭环:训练 caption 来自 GPT-4/CogVLM 蒸馏,分布偏移与幻觉 caption 风险未量化。
  • 算力透明度:5B 全阶段训练 GPU·day 披露有限,复现门槛仍高。
  • 2D+1D 遗留:社区 AnimateDiff 生态仍广;CogVideoX 全 3D attention 推理更贵。
  • 版权:35M 网络视频 + 2B 图,合规与 opt-out 未讨论。