Shiva-DiT:基于残差的可微Top-k选择用于高效扩散变换器
Shiva-DiT: Residual-Based Differentiable Top-$k$ Selection for Efficient Diffusion Transformers
AI总结:
Shiva-DiT通过基于残差的可微Top-k选择,在保持端到端可学习性的同时,实现了高效扩散变换器的剪枝,提升了计算效率并减少了硬件开销。
摘要:
扩散变换器(DiTs)由于自注意力的二次扩展性而带来极高的计算成本。现有剪枝方法无法同时满足可微性、效率和硬件开销所需的严格静态预算。为此,我们提出了Shiva-DiT,通过基于残差的可微Top-k选择有效协调这些冲突的需求。通过利用残差感知的直通估计器,我们的方法在静态编译中强制确定性的token数量,同时通过残差梯度估计保持端到端的可学习性。此外,我们引入了上下文感知路由器和自适应比率策略,以自主学习自适应的剪枝计划。在主流模型,包括SD3.5上进行的实验表明,Shiva-DiT建立了新的帕累托前沿,实现了1.54倍的时钟速度提升,其保真度优于现有基线,有效消除了锯齿张量开销。
英文摘要:
Diffusion Transformers (DiTs) are costly at high resolution because self-attention scales quadratically with token sequence length. Existing pruning methods do not jointly provide end-to-end learnability, low training overhead, and deterministic token counts for predictable token-dependent computation. We propose Shiva-DiT, based on Residual-Based Differentiable Top-k Selection. Its forward pass executes hard top-k selection, while a residual-aware straight-through estimator propagates gradients to both token scores and the budget k without evaluating a second backbone path. A Context-Aware Router and Adaptive Ratio Policy learn layer- and timestep-dependent retention schedules under a target average budget. Experiments on SD3-Medium, Flux.1-dev, and PixArt-Σ show consistent reductions in FLOPs and measured latency. On SD3-Medium, Shiva-DiT provides four fidelity-latency operating points and reaches a 1.54x wall-clock speedup with competitive fidelity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。