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

在一个时间步内仅计算16个Token:利用聚类驱动特征缓存加速扩散Transformer

Compute Only 16 Tokens in One Timestep: Accelerating Diffusion Transformers with Cluster-Driven Feature Caching

Shanghai Jiao Tong University(上海交通大学);University of Electronic Science and Technology of China(电子科技大学);Shandong University(山东大学)

Zhixin Zheng, Xinyu Wang, Chang Zou, Shaobo Wang, Linfeng Zhang

AI总结:

本文提出聚类驱动特征缓存(ClusCa),通过对token进行空间聚类并在每簇仅计算一个token来减少90%以上的token数量,无需训练即可加速扩散Transformer,在FLUX上实现4.96倍加速且图像质量超越原始模型。

摘要:

扩散Transformer近年来因其在生成高质量图像和视频方面的能力而受到广泛关注,但由于其迭代去噪过程,仍面临巨大的计算开销。最近,特征缓存技术被引入以加速扩散Transformer,其通过缓存先前时间步的特征计算并在后续时间步中复用,该技术利用了扩散模型的时间相似性,却忽略了空间维度上的相似性。本文提出聚类驱动特征缓存(ClusCa),作为先前特征缓存技术的正交互补视角。具体而言,ClusCa在每个时间步对token进行空间聚类,在每个聚类中仅计算一个token,并将其信息传播至所有其他token,从而能将token数量减少90%以上。在DiT、FLUX和HunyuanVideo上的大量实验证明了其在文本到图像和文本到视频生成中的有效性。此外,它可直接应用于任何扩散Transformer,无需训练。例如,ClusCa在FLUX上实现了4.96倍加速,其ImageReward为99.49%,较原始模型超出0.51%。代码可在https://github.com/Shenyi-Z/Cache4Diffusion获取。

英文摘要:

Diffusion transformers have gained significant attention in recent years for their ability to generate high-quality images and videos, yet still suffer from a huge computational cost due to their iterative denoising process. Recently, feature caching has been introduced to accelerate diffusion transformers by caching the feature computation in previous timesteps and reusing it in the following timesteps, which leverage the temporal similarity of diffusion models while ignoring the similarity in the spatial dimension. In this paper, we introduce Cluster-Driven Feature Caching (ClusCa) as an orthogonal and complementary perspective for previous feature caching. Specifically, ClusCa performs spatial clustering on tokens in each timestep, computes only one token in each cluster and propagates their information to all the other tokens, which is able to reduce the number of tokens by over 90%. Extensive experiments on DiT, FLUX and HunyuanVideo demonstrate its effectiveness in both text-to-image and text-to-video generation. Besides, it can be directly applied to any diffusion transformer without requirements for training. For instance, ClusCa achieves 4.96x acceleration on FLUX with an ImageReward of 99.49%, surpassing the original model by 0.51%. The code is available at https://github.com/Shenyi-Z/Cache4Diffusion.

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

↑