Attend to Not Attended: Structure-then-Detail Token Merging for Post-training DiT Acceleration
Haipeng Fang, Sheng Tang, Juan Cao, Enshuo Zhang, Fan Tang, Tong-Yee Lee
TL;DR
This work tackles the high computational cost of diffusion transformers (DiTs) by introducing SDTM, a post-training, finetuning-free token merging framework that leverages structure-then-detail denoising priors. By applying two stage-specific visual token mergers—similarity-prioritized structure merging (SSM) for early structure-focused steps and inattentive-prioritized detail merging (IDM) for later detail-focused steps—coupled with compression ratio adjusting and prompt reweighting, SDTM dynamically reduces redundancies during generation. Extensive experiments across backbones, schedulers, and datasets demonstrate that SDTM achieves around $1.55\times$ acceleration with negligible image quality loss and improved CLIP/FID metrics in many configurations. The method integrates seamlessly into existing DiT architectures and maintains performance without requiring fine-tuning, offering a practical pathway to faster diffusion-based generation in real-world deployments.
Abstract
Diffusion transformers have shown exceptional performance in visual generation but incur high computational costs. Token reduction techniques that compress models by sharing the denoising process among similar tokens have been introduced. However, existing approaches neglect the denoising priors of the diffusion models, leading to suboptimal acceleration and diminished image quality. This study proposes a novel concept: attend to prune feature redundancies in areas not attended by the diffusion process. We analyze the location and degree of feature redundancies based on the structure-then-detail denoising priors. Subsequently, we introduce SDTM, a structure-then-detail token merging approach that dynamically compresses feature redundancies. Specifically, we design dynamic visual token merging, compression ratio adjusting, and prompt reweighting for different stages. Served in a post-training way, the proposed method can be integrated seamlessly into any DiT architecture. Extensive experiments across various backbones, schedulers, and datasets showcase the superiority of our method, for example, it achieves 1.55 times acceleration with negligible impact on image quality. Project page: https://github.com/ICTMCG/SDTM.
