SODA:面向敏感性的动态加速方法用于扩散变换器
SODA: Sensitivity-Oriented Dynamic Acceleration for Diffusion Transformer
AI总结:
SODA通过细粒度敏感性分析动态调整缓存与剪枝策略,提升扩散变换器在可控加速比下的生成质量,实验表明其生成保真度达到最优。
摘要:
扩散变换器已成为视觉生成的主导范式,但其低推理效率仍是主要瓶颈。在无训练技术中,缓存提供高加速效率但牺牲保真度,而剪枝则相反。将缓存与剪枝结合可平衡加速与生成质量。然而,现有方法通常采用固定和启发式方案配置缓存与剪枝策略。虽然它们大致遵循生成模型对加速的整体敏感性趋势,但无法捕捉细粒度和复杂变化,导致高敏感计算被跳过,生成质量下降。此外,手动设计的策略泛化能力差。为此,我们提出SODA,一种面向敏感性的动态加速方法,根据细粒度敏感性动态执行缓存与剪枝。SODA构建了一个跨时间步、层和模块的离线敏感性误差建模框架,以捕捉不同加速操作的敏感性。通过动态规划优化缓存间隔,以敏感性误差为成本函数,最小化缓存对模型敏感性的影响。在剪枝和缓存重用过程中,SODA动态决定剪枝时机和比例,以保留高敏感标记的计算,显著提升生成保真度。在DiT-XL/2、PixArt-α和OpenSora上的大量实验表明,SODA在可控加速比下实现了最佳生成保真度。我们的代码已公开发布:https://github.com/leaves162/SODA。
英文摘要:
Diffusion Transformers have become a dominant paradigm in visual generation, yet their low inference efficiency remains a key bottleneck hindering further advancement. Among common training-free techniques, caching offers high acceleration efficiency but often compromises fidelity, whereas pruning shows the opposite trade-off. Integrating caching with pruning achieves a balance between acceleration and generation quality. However, existing methods typically employ fixed and heuristic schemes to configure caching and pruning strategies. While they roughly follow the overall sensitivity trend of generation models to acceleration, they fail to capture fine-grained and complex variations, inevitably skipping highly sensitive computations and leading to quality degradation. Furthermore, such manually designed strategies exhibit poor generalization. To address these issues, we propose SODA, a Sensitivity-Oriented Dynamic Acceleration method that adaptively performs caching and pruning based on fine-grained sensitivity. SODA builds an offline sensitivity error modeling framework across timesteps, layers, and modules to capture the sensitivity to different acceleration operations. The cache intervals are optimized via dynamic programming with sensitivity error as the cost function, minimizing the impact of caching on model sensitivity. During pruning and cache reuse, SODA adaptively determines the pruning timing and rate to preserve computations of highly sensitive tokens, significantly enhancing generation fidelity. Extensive experiments on DiT-XL/2, PixArt-$α$, and OpenSora demonstrate that SODA achieves state-of-the-art generation fidelity under controllable acceleration ratios. Our code is released publicly at: https://github.com/leaves162/SODA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。