剖析视觉生成模型量化中的比特级缩放定律
Dissecting Bit-Level Scaling Laws in Quantizing Vision Generative Models
AI总结:
本研究发现语言式视觉生成模型的量化比特级缩放定律优于扩散式模型,提出TopKLD蒸馏方法平衡隐式与显式知识,提升了两类量化设置下的缩放表现。
摘要:
视觉生成模型近期沿两大主流范式取得了显著进展:扩散式和语言式,二者均展现出优异的缩放定律。量化对于高效部署这些模型至关重要,可降低内存与计算成本。本研究系统探究了量化对这两种范式的影响。令人意外的是,尽管全精度下性能相当,但在各类量化设置中,语言式模型始终优于扩散式模型。这一发现表明,语言式模型具备更优的比特级缩放定律,能在模型质量与总比特数间实现更好的权衡。为深入剖析这一现象,我们开展了大量实验,发现核心原因在于语言式模型的离散表示空间对量化过程中的信息损失容忍度更高。此外,分析显示提升量化视觉生成模型的比特级缩放定律颇具挑战,而模型蒸馏被证实是一种极为有效的方法。具体而言,我们提出TopKLD方法,通过在蒸馏过程中平衡“隐式知识”与“显式知识”,优化蒸馏知识的传递。该方法在整数和浮点量化设置下,均将比特级缩放定律提升了一个层级。
英文摘要:
Vision generative models have recently made significant advancements along two primary paradigms: diffusion-style and language-style, both of which have demonstrated excellent scaling laws. Quantization is crucial for efficiently deploying these models, as it reduces memory and computation costs. In this work, we systematically investigate the impact of quantization on these two paradigms. Surprisingly, despite achieving comparable performance in full precision, language-style models consistently outperform diffusion-style models across various quantization settings. This observation suggests that language-style models have superior bit-level scaling laws, offering a better tradeoff between model quality and total bits. To dissect this phenomenon, we conduct extensive experiments and find that the primary reason is the discrete representation space of language-style models, which is more tolerant of information loss during quantization. Furthermore, our analysis indicates that improving the bit-level scaling law of quantized vision generative models is challenging, with model distillation identified as a highly effective approach. Specifically, we propose TopKLD to optimize the transfer of distilled knowledge by balancing ``implicit knowledge'' and ``explicit knowledge'' during the distillation process. This approach elevates the bit-level scaling laws by one level across both integer and floating-point quantization settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。