arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.11211cs.ARcs.CVcs.LG
收藏

Ditto:通过时间值相似性加速扩散模型

Ditto: Accelerating Diffusion Model via Temporal Value Similarity

School of Electrical and Electronic Engineering, Yonsei University(延世大学电气与电子工程学院);Samsung Electronics(三星电子)

Sungbin Kim, Hyunwuk Lee, Wonho Cho, Mincheol Park, Won Woo Ro

AI总结:

针对扩散模型迭代计算开销大的问题,提出基于时间值相似性与量化的差分处理算法Ditto及专用硬件加速器,实现高达1.5倍加速和17.74%能耗节省。

摘要:

扩散模型在图像生成任务中取得了优越的性能。然而,由于其迭代结构,它带来了显著的计算开销。为了解决这些开销,我们分析了这种迭代结构,并观察到扩散模型中相邻时间步表现出高值相似性,导致连续时间步之间的差异变窄。我们将这些特征应用于量化扩散模型,并揭示这些差异中的大多数可以用减少的位宽表示,甚至为零。基于我们的观察,我们提出了Ditto算法,一种利用时间相似性与量化来提升扩散模型效率的差分处理算法。通过利用更窄的差异和层运算的分配律,它对初始时间步执行全位宽运算,并使用时间差异处理后续步骤。此外,设计了Ditto执行流优化,以减轻时间差异处理的内存开销,进一步提升Ditto算法的效率。我们还设计了Ditto硬件,一种专用硬件加速器,充分利用所提出算法的动态特性。因此,与其他加速器相比,Ditto硬件实现了高达1.5倍的加速和17.74%的能耗节省。

英文摘要:

Diffusion models achieve superior performance in image generation tasks. However, it incurs significant computation overheads due to its iterative structure. To address these overheads, we analyze this iterative structure and observe that adjacent time steps in diffusion models exhibit high value similarity, leading to narrower differences between consecutive time steps. We adapt these characteristics to a quantized diffusion model and reveal that the majority of these differences can be represented with reduced bit-width, and even zero. Based on our observations, we propose the Ditto algorithm, a difference processing algorithm that leverages temporal similarity with quantization to enhance the efficiency of diffusion models. By exploiting the narrower differences and the distributive property of layer operations, it performs full bit-width operations for the initial time step and processes subsequent steps with temporal differences. In addition, Ditto execution flow optimization is designed to mitigate the memory overhead of temporal difference processing, further boosting the efficiency of the Ditto algorithm. We also design the Ditto hardware, a specialized hardware accelerator, fully exploiting the dynamic characteristics of the proposed algorithm. As a result, the Ditto hardware achieves up to 1.5x speedup and 17.74% energy saving compared to other accelerators.

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

↑