arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.00492cs.CV
收藏

通过向量量化实现文本到图像扩散模型的精确压缩

Accurate Compression of Text-to-Image Diffusion Models via Vector Quantization

Vage Egiazarian, Denis Kuznedelev, Anton Voronov, Ruslan Svirschevski, Michael Goin, Daniil Pavlov, Dan Alistarh, Dmitry Baranchuk

AI总结:

本文针对十亿级文本到图像扩散模型提出基于向量量化的训练后压缩方法,在SDXL和SDXL-Turbo上将2B+参数模型压缩至约3比特,达到与先前4比特方法相当的图像质量和文本对齐效果。

摘要:

文本到图像扩散模型已成为一种强大的框架,能够根据文本提示生成高质量图像。它们的成功推动了生产级扩散模型的快速发展,这些模型的规模持续增大,并且已经包含数十亿个参数。因此,最先进的文本到图像模型在实践中变得愈发难以获取,尤其是在资源受限的环境中。训练后量化(PTQ)通过将预训练模型权重压缩为更低比特表示来解决这一问题。最近的扩散量化技术主要依赖均匀标量量化,在将模型压缩到4比特时提供了不错的性能。本工作表明,更灵活的向量量化(VQ)可以为大规模文本到图像扩散模型实现更高的压缩率。具体而言,我们针对近期十亿级文本到图像模型(SDXL和SDXL-Turbo)定制了基于向量的PTQ方法,并表明使用VQ将2B+参数的扩散模型压缩到约3比特时,其图像质量和文本对齐程度与先前的4比特压缩技术相似。

英文摘要:

Text-to-image diffusion models have emerged as a powerful framework for high-quality image generation given textual prompts. Their success has driven the rapid development of production-grade diffusion models that consistently increase in size and already contain billions of parameters. As a result, state-of-the-art text-to-image models are becoming less accessible in practice, especially in resource-limited environments. Post-training quantization (PTQ) tackles this issue by compressing the pretrained model weights into lower-bit representations. Recent diffusion quantization techniques primarily rely on uniform scalar quantization, providing decent performance for the models compressed to 4 bits. This work demonstrates that more versatile vector quantization (VQ) may achieve higher compression rates for large-scale text-to-image diffusion models. Specifically, we tailor vector-based PTQ methods to recent billion-scale text-to-image models (SDXL and SDXL-Turbo), and show that the diffusion models of 2B+ parameters compressed to around 3 bits using VQ exhibit the similar image quality and textual alignment as previous 4-bit compression techniques.

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

↑