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

FreqCa:通过频率感知缓存加速扩散模型

FreqCa: Accelerating Diffusion Models via Frequency-Aware Caching

EPIC Lab,STJU(EPIC实验室,STJU);Tencent Hunyuan(腾讯文言);SDU;THU(清华大学);JLU(吉林大学);CMU(卡内基梅隆大学);UESTC;SCUT(华南理工大学)

Jiacheng Liu, Peiliang Cai, Qinming Zhou, Yuqi Lin, Deyang Kong, Benhao Huang, Yupei Pan, Haowen Xu, Chang Zou, Junshu Tang, Shikang Zheng, Linfeng Zhang

AI总结:

本文提出频率感知缓存方法FreqCa,通过频域分析直接重用低频特征并用二阶Hermite插值预测高频特征,同时缓存累积残差特征减少99%内存,有效加速了扩散模型。

摘要:

扩散Transformer的应用正因其显著的推理成本而受到影响。最近,特征缓存被提出用于通过重用先前时间步的特征来解决此问题,从而跳过未来时间步的计算。然而,先前的特征缓存假设相邻时间步的特征是相似或连续的,这在所有设置中并不总是成立。为了研究这一点,本文从频域进行分析,揭示了扩散模型特征中不同的频带在各个时间步表现出不同的动态。具体而言,决定图像结构的低频分量表现出较高的相似性但连续性较差。相反,解码图像细节的高频带表现出显著的连续性但相似性较差。这些有趣的观察促使我们提出频率感知缓存(Frequency-aware Caching, FreqCa),它基于相似性直接重用低频分量的特征,同时使用二阶Hermite插值器根据其连续性预测波动的高频分量。此外,我们进一步提出缓存累积残差特征(Cumulative Residual Feature, CRF)而不是所有层的特征,这将特征缓存的内存占用减少了99%。在FLUX.1-dev、FLUX.1-Kontext-dev、Qwen-Image和Qwen-Image-Edit上的大量实验证明了其在生成和编辑方面的有效性。代码可在补充材料中找到,并将在GitHub上发布。

英文摘要:

The application of diffusion transformers is suffering from their significant inference costs. Recently, feature caching has been proposed to solve this problem by reusing features from previous timesteps, thereby skipping computation in future timesteps. However, previous feature caching assumes that features in adjacent timesteps are similar or continuous, which does not always hold in all settings. To investigate this, this paper begins with an analysis from the frequency domain, which reveal that different frequency bands in the features of diffusion models exhibit different dynamics across timesteps. Concretely, low-frequency components, which decide the structure of images, exhibit higher similarity but poor continuity. In contrast, the high-frequency bands, which decode the details of images, show significant continuity but poor similarity. These interesting observations motivate us to propose Frequency-aware Caching (FreqCa) which directly reuses features of low-frequency components based on their similarity, while using a second-order Hermite interpolator to predict the volatile high-frequency ones based on its continuity. Besides, we further propose to cache Cumulative Residual Feature (CRF) instead of the features in all the layers, which reduces the memory footprint of feature caching by 99%. Extensive experiments on FLUX.1-dev, FLUX.1-Kontext-dev, Qwen-Image, and Qwen-Image-Edit demonstrate its effectiveness in both generation and editing. Codes are available in the supplementary materials and will be released on GitHub.

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

↑