arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.10733cs.CVcs.AI
收藏

用于高效高分辨率扩散模型的深度压缩自编码器

Deep Compression Autoencoder for Efficient High-Resolution Diffusion Models

MIT(麻省理工学院);Tsinghua University(清华大学);NVIDIA(英伟达)

Junyu Chen, Han Cai, Junsong Chen, Enze Xie, Shang Yang, Haotian Tang, Muyang Li, Yao Lu, Song Han

AI总结:

针对现有自编码器高空间压缩比下重建精度不足的问题,研究提出含残差自编码与解耦式高分辨率适配的DC-AE,将压缩比提至128倍,应用于潜扩散模型可在精度更优的同时实现显著训练与推理加速。

摘要:

我们提出了深度压缩自编码器(Deep Compression Autoencoder,DC-AE),这是一类用于加速高分辨率扩散模型的新型自编码器模型。现有自编码器模型在中等空间压缩比(例如8倍)下已展现出出色效果,但在高空间压缩比(例如64倍)下无法维持令人满意的重建精度。我们通过引入两项关键技术解决这一挑战:(1)残差自编码:我们设计模型基于空间-通道变换后的特征学习残差,以缓解高空间压缩自编码器的优化难度;(2)解耦式高分辨率适配:一种高效的解耦三阶段训练策略,用于减轻高空间压缩自编码器的泛化损失。通过这些设计,我们将自编码器的空间压缩比提升至128倍,同时保持了重建质量。将我们的DC-AE应用于潜扩散模型,我们在无精度下降的情况下实现了显著加速。例如,在ImageNet 512x512数据集上,与广泛使用的SD-VAE-f8自编码器相比,我们的DC-AE在H100 GPU上为UViT-H提供了19.1倍的推理加速和17.9倍的训练加速,同时取得了更优的FID。我们的代码可在https://github.com/mit-han-lab/efficientvit获取。

英文摘要:

We present Deep Compression Autoencoder (DC-AE), a new family of autoencoder models for accelerating high-resolution diffusion models. Existing autoencoder models have demonstrated impressive results at a moderate spatial compression ratio (e.g., 8x), but fail to maintain satisfactory reconstruction accuracy for high spatial compression ratios (e.g., 64x). We address this challenge by introducing two key techniques: (1) Residual Autoencoding, where we design our models to learn residuals based on the space-to-channel transformed features to alleviate the optimization difficulty of high spatial-compression autoencoders; (2) Decoupled High-Resolution Adaptation, an efficient decoupled three-phases training strategy for mitigating the generalization penalty of high spatial-compression autoencoders. With these designs, we improve the autoencoder's spatial compression ratio up to 128 while maintaining the reconstruction quality. Applying our DC-AE to latent diffusion models, we achieve significant speedup without accuracy drop. For example, on ImageNet 512x512, our DC-AE provides 19.1x inference speedup and 17.9x training speedup on H100 GPU for UViT-H while achieving a better FID, compared with the widely used SD-VAE-f8 autoencoder. Our code is available at https://github.com/mit-han-lab/efficientvit.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑