LoSpAttn: Fast Training-Free Hybrid Attention for Vision and Diffusion Transformers
원문 초록
Softmax attention is central to modern vision and diffusion transformers, but its quadratic complexity in tokens remains a major computational bottleneck. Uniformly replacing softmax attention with linear or sparse attention in large pretrained models often degrades performance, as attention rank and sparsity vary across heads and layers, and additionally across denoising timesteps in diffusion transformers. We show that selectively exploiting these two complementary structures enables inference acceleration in large pretrained models while retaining competitive task performance, with the largest gains at long token sequences. In particular, we propose Low-Rank and Sparse Attention (LoSpAttn), a training-free hybrid framework that uses fast, one-time calibration to select low-rank or block-sparse replacements, retaining exact softmax when neither is sufficiently accurate. For reliable low-rank replacement, we develop a numerically stable Nystr\"om approximation using symmetric kernel lifting and preconditioning, with theoretical error guarantees for normalized attention. Experiments on ViT-Large, DiT-XL/2, and PixArt-$\Sigma$ demonstrate inference acceleration while maintaining classification accuracy and generation quality comparable to the original pretrained models. For example, on PixArt-$\Sigma$ at 2K resolution ($16{,}384$ tokens), LoSpAttn achieves up to $1.4\times$ end-to-end and $11\times$ attention speedup over the FlashAttention-2. Code provided at https://github.com/J-Karthik-palaniappan/LospAttn
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2611.39521v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.