arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.19243cs.CV
收藏

通过误差优化缓存加速扩散Transformer

Accelerating Diffusion Transformer via Error-Optimized Cache

University of Science and Technology of China(中国科学技术大学);Hefei University of Technology(合肥工业大学)

Junxiang Qiu, Shuo Wang, Jinda Lu, Lin Liu, Houcheng Jiang, Xingyu Zhu, Yanbin Hao

AI总结:

本文提出误差优化缓存EOC,通过先验知识提取、缓存优化判断和缓存优化减少DiT采样中的缓存误差,在ImageNet上显著改善不同缓存级别下的FID。

摘要:

扩散Transformer(DiT)是内容生成的关键方法,但其采样需要大量时间。许多研究尝试利用缓存来减少采样耗时。现有缓存方法通过复用上一时间步的DiT特征并跳过下一步计算来加速生成,但它们倾向于定位并缓存低误差模块,而未专注于减少缓存引起的误差,导致在提高缓存强度时生成内容质量急剧下降。为解决该问题,我们提出了误差优化缓存(Error-Optimized Cache,EOC)。该方法引入三项关键改进:(1)先验知识提取:提取并处理缓存差异;(2)缓存优化的判断方法:确定某些缓存步骤是否需要优化;(3)缓存优化:减少缓存误差。实验表明,该算法显著减少了缓存引起的误差累积,尤其是在过度缓存情况下。在ImageNet数据集上,在不显著增加计算负载的情况下,该方法在基于规则的模型FORA缓存级别为75%、50%和25%以及基于训练的模型Learning-to-cache缓存级别为22%时,改善了生成图像的FID。具体而言,FID值分别从30.454降至21.690(28.8%),从6.857降至5.821(15.1%),从3.870降至3.692(4.6%),以及从3.539降至3.451(2.5%)。代码见https://github.com/qiujx0520/EOC_MM2025.git。

英文摘要:

Diffusion Transformer (DiT) is a crucial method for content generation. However, it needs a lot of time to sample. Many studies have attempted to use caching to reduce the time consumption of sampling. Existing caching methods accelerate generation by reusing DiT features from the previous time step and skipping calculations in the next, but they tend to locate and cache low-error modules without focusing on reducing caching-induced errors, resulting in a sharp decline in generated content quality when increasing caching intensity. To solve this problem, we propose the \textbf{E}rror-\textbf{O}ptimized \textbf{C}ache (\textbf{EOC}). This method introduces three key improvements: \textbf{(1)} Prior knowledge extraction: Extract and process the caching differences; \textbf{(2)} A judgment method for cache optimization: Determine whether certain caching steps need to be optimized; \textbf{(3)} Cache optimization: reduce caching errors. Experiments show that this algorithm significantly reduces the error accumulation caused by caching, especially excessive caching. On the ImageNet dataset, without substantially increasing the computational load, this method improves the FID of the generated images when the rule-based model FORA has a caching level of \textbf{75}\%, \textbf{50}\%, and \textbf{25}\%, and the training-based model Learning-to-cache has a caching level of \textbf{22}\%. Specifically, the FID values change from 30.454 to 21.690 (\textbf{28.8}\%), from 6.857 to 5.821 (\textbf{15.1}\%), from 3.870 to 3.692 (\textbf{4.6}\%), and from 3.539 to 3.451 (\textbf{2.5}\%) respectively. Code is available at https://github.com/qiujx0520/EOC_MM2025.git.

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

↑