Shiva-DiT:基于残差的可微分Top-k选择实现高效Diffusion Transformer
Shiva-DiT: Residual-Based Differentiable Top-$k$ Selection for Efficient Diffusion Transformers
Shiva-DiT采用基于残差的可微分Top-k选择,前向执行硬性top-k筛选,残差感知直通估计器同时向token分数与预算k传播梯度,无需评估第二条骨干路径。在SD3-Medium、Flux.1-dev和PixArt-Σ上,该方法一致降低FLOPs与实测延迟;在SD3-Medium上提供四个保真度-延迟工作点,实现1.54倍实际耗时加速且保真度具竞争力。
arXiv:2602.05605v3 Announce Type: replace Abstract: 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-{\Sigma} 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org