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

BitsFusion:扩散模型的 1.99 比特权重量化

BitsFusion: 1.99 bits Weight Quantization of Diffusion Model

Snap Inc.(Snap公司);Rutgers University(罗格斯大学)

Yang Sui, Yanyu Li, Anil Kag, Yerlan Idelbayev, Junli Cao, Ju Hu, Dhritiman Sagar, Bo Yuan, Sergey Tulyakov, Jian Ren

AI总结:

本文提出 BitsFusion 权重量化方法,通过逐层最优比特分配、量化初始化和训练策略改进,将 Stable Diffusion v1.5 的 UNet 压缩至 1.99 比特,体积缩小 7.9 倍且生成质量更优。

摘要:

近年来,基于扩散的图像生成模型通过展现合成高质量内容的能力取得了巨大成功。然而,这些模型包含海量参数,导致模型体积显著庞大。保存和传输它们是各类应用的主要瓶颈,尤其是在资源受限设备上运行的应用。在本工作中,我们开发了一种新颖的权重量化方法,将 Stable Diffusion v1.5 中的 UNet 量化至 1.99 比特,得到一个体积缩小 7.9 倍的模型,同时其生成质量甚至优于原始模型。我们的方法包含多项新技术,例如为每一层分配最优比特数、初始化量化模型以获得更好性能,以及改进训练策略以大幅降低量化误差。此外,我们在多个基准数据集上并通过人工评估对量化模型进行了广泛评测,以证明其卓越的生成质量。

英文摘要:

Diffusion-based image generation models have achieved great success in recent years by showing the capability of synthesizing high-quality content. However, these models contain a huge number of parameters, resulting in a significantly large model size. Saving and transferring them is a major bottleneck for various applications, especially those running on resource-constrained devices. In this work, we develop a novel weight quantization method that quantizes the UNet from Stable Diffusion v1.5 to 1.99 bits, achieving a model with 7.9X smaller size while exhibiting even better generation quality than the original one. Our approach includes several novel techniques, such as assigning optimal bits to each layer, initializing the quantized model for better performance, and improving the training strategy to dramatically reduce quantization error. Furthermore, we extensively evaluate our quantized model across various benchmark datasets and through human evaluation to demonstrate its superior generation quality.

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

↑