GRACE: Generation-aware latent compression for efficient video generation

AK's Picks GenAI Diffusion TDIG
2026年10月07日
高倍率压缩的视频自编码器为加速视频扩散模型提供了一种有效途径,因为扩散变换器(DiT)可直接在数量大幅减少的隐变量(token)上运行。然而,此类自编码器的训练颇具挑战性:更高的压缩比会损害重建质量;而要恢复重建质量,则需增加通道数,而这已被证实会显著拖慢DiT的收敛速度。此外,压缩后得到的隐变量分布也与DiT原始训练所用的隐变量分布不同,因此预训练好的DiT模型要么需从头开始重新训练,要么必须付出高昂代价进行适配。虽然对DiT原本所依赖的自编码器进行压缩看似能维持兼容性,但若仅以重建质量为目标对其进行优化,仍会使压缩后的隐变量偏离DiT已学习到的理想隐空间分布。为解决这一问题,我们提出了“面向生成任务的隐变量压缩方法”(GRACE),一种两阶段框架,可在压缩预训练视频自编码器的同时,确保其与预训练DiT模型完全兼容。具体而言,我们固定原始编码器输出的基础隐变量(base latent),并额外学习一个残差隐变量(residual latent),用于表征在更高压缩率下丢失的信息;同时,在冻结的DiT模型特征空间中对齐压缩后的隐变量(即基础隐变量与残差隐变量之和)与原始预训练隐变量,从而使自编码器的优化目标直接服务于高质量生成任务。随后,我们采用轻量级微调与非对称去噪策略对DiT进行适配:即先对基础隐变量执行去噪,再对残差隐变量进行去噪。实验表明,GRACE将Wan2.1-I2V-14B模型在480×832×81分辨率下的隐变量数量降低了8倍,推理延迟降低了11.1倍,同时在VBench基准测试中,其生成质量与压缩前的原始预训练流程完全相当。
Highly compressed video autoencoders offer an effective way to accelerate video diffusion models, as the Diffusion Transformer (DiT) operates on far fewer tokens. However, such autoencoders are challenging to train, since a higher compression ratio degrades reconstruction quality and recovering it requires more channels, which is known to slow the convergence of the DiT. The compressed latent also differs from the one the DiT was trained on, so the pretrained DiT must be either retrained from scratch or adapted at considerable cost. Compressing the autoencoder the DiT was trained with appears to preserve compatibility, yet optimizing it for reconstruction alone still shifts the latent away from the distribution the DiT has learned. To address this, we propose Generation-Aware Latent Compression for Efficient Video Generation (GRACE), a two-stage framework that compresses a pretrained video autoencoder while keeping it compatible with the pretrained DiT. Specifically, we keep a frozen base latent from the pretrained encoder and learn a residual latent for the information lost under stronger compression, while aligning the compressed latent with the pretrained latent in the feature space of the frozen DiT so that the autoencoder is optimized for generation. We then adapt the DiT with lightweight fine-tuning and asymmetric denoising, where the base is denoised ahead of the residual. GRACE reduces the token count of Wan2.1-I2V-14B by 8x and its latency by 11.1x at 480x832x81, while matching the generation quality of the pretrained pipeline before compression on VBench.
许愿