arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.15448cs.CVcs.AIcs.ARcs.LG
收藏

SQ-DM:通过激进量化与时间稀疏性加速扩散模型

SQ-DM: Accelerating Diffusion Models with Aggressive Quantization and Temporal Sparsity

University of Michigan(密歇根大学);NVIDIA(英伟达)

Zichen Fan, Steve Dai, Rangharajan Venkatesan, Dennis Sylvester, Brucek Khailany

AI总结:

针对扩散模型推理慢的问题,提出对权重和激活值进行激进量化并利用时间稀疏性,设计了异构混合精度密集-稀疏架构的加速器,在保持4比特生成质量的同时实现6.91倍加速与51.5%节能。

摘要:

扩散模型在图像生成任务中获得了极大的普及。然而,生成高质量内容仍然非常缓慢,因为需要在许多时间步上运行模型推理。为了加速这些模型,我们提出对权重和激活值进行激进量化,同时促进显著的激活稀疏性。我们进一步观察到,这种稀疏模式在不同通道之间存在差异,并随时间步演变。为了支持这种量化与稀疏方案,我们提出了一种新型扩散模型加速器,该加速器具有异构混合精度密集-稀疏架构、通道最后地址映射,以及用于高效处理稀疏模式的时间步感知稀疏检测器。我们的4比特量化技术与现有的4比特方法相比,展现出了更优的生成质量。与传统密集型加速器相比,我们的定制加速器实现了6.91倍的加速和51.5%的能耗降低。

英文摘要:

Diffusion models have gained significant popularity in image generation tasks. However, generating high-quality content remains notably slow because it requires running model inference over many time steps. To accelerate these models, we propose to aggressively quantize both weights and activations, while simultaneously promoting significant activation sparsity. We further observe that the stated sparsity pattern varies among different channels and evolves across time steps. To support this quantization and sparsity scheme, we present a novel diffusion model accelerator featuring a heterogeneous mixed-precision dense-sparse architecture, channel-last address mapping, and a time-step-aware sparsity detector for efficient handling of the sparsity pattern. Our 4-bit quantization technique demonstrates superior generation quality compared to existing 4-bit methods. Our custom accelerator achieves 6.91x speed-up and 51.5% energy reduction compared to traditional dense accelerators.

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

↑