SLA: Beyond Sparsity in Diffusion Transformers via Fine-Tunable Sparse–Linear Attention
Jintao Zhang, Haoxu Wang, Kai Jiang, Shuo Yang, Kaiwen Zheng, Haocheng Xi, Ziteng Wang, Hongzhou Zhu, Min Zhao, Ion Stoica, Joseph E. Gonzalez, Jianfei Chen, Jun Zhu
摘要
In Diffusion Transformer (DiT) models, particularly for video generation, attention latency is a major bottleneck due to the long sequence length and the quadratic complexity. Interestingly, we find that attention weights can be decoupled into two matrices: a small fraction of large weights with high rank and the remaining weights with very low rank. This naturally suggests applying sparse acceleration to the first part and low-rank acceleration to the second. Based on this finding, we propose SLA (Sparse-Linear Attention), a trainable attention method that fuses sparse and linear attention to accelerate diffusion models. SLA classifies attention weights into critical, marginal, and negligible, applying O(N 2 ) attention to critical weights, O(N ) attention to marginal weights, and skipping negligible ones. SLA combines these computations into a single GPU kernel and supports both forward and backward passes. With only a few fine-tuning steps using SLA, DiT models achieve a 20× reduction in attention computation, resulting in significant acceleration without loss of generation quality. Experiments show that SLA reduces attention computation by 95% without degrading end-to-end generation quality, outperforming baseline methods. In addition, we implement an efficient GPU kernel for SLA, which yields a 13.7× speedup in attention computation and a 2.2× end-to-end speedup in video generation on Wan2.1-1.3B. The code will be available at https://github.com/thu-ml/SLA . INTRODUCTION Among the operations in Transformers, attention (Vaswani et al., 2017) is the only one with quadratic computation complexity, while others mostly scale linearly with the sequence length N . In Diffusion Transformer (DiT) models (Peebles & Xie, 2022) , especially for video generation, attention becomes the primary computational bottleneck, as the sequence length typically ranges from 10K to 100K. Reducing the cost of attention is therefore critical for improving the efficiency of DiT models. Existing efficient attention methods (Zhang et al.) for DiTs fall into two main categories: (1) numerous sparse attention methods (
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- VMonarch: Efficient Video Diffusion Transformers with Structured Attention 引用了 Efficient Streaming Language Models with Attention Sinks
- VMonarch: Efficient Video Diffusion Transformers with Structured Attention 引用了 SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Training
- VMonarch: Efficient Video Diffusion Transformers with Structured Attention 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Training 引用了 Efficient Streaming Language Models with Attention Sinks
- SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Training 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Training 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Training 引用了 FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
- Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attention 引用了 Scalable Diffusion Models with Transformers
- Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attention 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- VideoNSA: Native Sparse Attention Scales Video Understanding 引用了 Efficient Streaming Language Models with Attention Sinks
- VideoNSA: Native Sparse Attention Scales Video Understanding 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- LinVideo: A Post-Training Framework towards O(n) Attention in Efficient Video Generation 引用了 Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attention
- LinVideo: A Post-Training Framework towards O(n) Attention in Efficient Video Generation 引用了 Scalable Diffusion Models with Transformers
- LinVideo: A Post-Training Framework towards O(n) Attention in Efficient Video Generation 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
引用它的顶会 Paper8
- SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit TrainingJintao Zhang, Jia Wei, Haoxu Wang, Pengle Zhang 等NeurIPS 2025 · 81 次引用
- VideoNSA: Native Sparse Attention Scales Video UnderstandingEnxin Song, Wenhao Chai, Shusheng Yang, Ethan Armand 等ICLR 2026 · 11 次引用
- Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse AttentionChengtao Lv, Yumeng Shi, Yushi Huang, Ruihao Gong 等ICML 2026 · 10 次引用
- LinVideo: A Post-Training Framework towards O(n) Attention in Efficient Video GenerationYushi Huang, Xingtong Ge, Ruihao Gong, Chengtao Lv 等CVPR 2026 · 9 次引用
- VMonarch: Efficient Video Diffusion Transformers with Structured AttentionCheng Liang, Haoxian Chen, Liang Hou, Qi Fan 等CVPR 2026 · 2 次引用
它引用的 Paper26
- Scalable Diffusion Models with TransformersWilliam Peebles, Saining XieICCV 2023 · 5,568 次引用
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
- FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 次引用
- Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han 等ICLR 2024 · 1,714 次引用
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisionJay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar 等NeurIPS 2024 · 727 次引用
相关 Paper
- DSA: Efficient Inference For Video Generation Models via Distributed Sparse AttentionShenggui Li, Runyu Lu, qiaoling chen, Haiyan Yin 等ICLR 2026
- Training-Free and Adaptive Sparse Attention for Efficient Long Video GenerationYifei Xia, Suhan Ling, Fangcheng Fu, Yujie Wang 等ICCV 2025 · 6 次引用
- Faster Video Diffusion with Trainable Sparse AttentionPeiyuan Zhang, Yongqi Chen, Haofeng Huang, Will Lin 等NeurIPS 2025 · 6 次引用
- Dynamic Sparsity in Large-Scale Video DiT TrainingXin Tan, Yuetao Chen, Yimin Jiang, Xing Chen 等ASPLOS 2026 · 1 次引用
- Fast Video Generation with Sliding Tile AttentionPeiyuan Zhang, Yongqi Chen, Runlong Su, Hangliang Ding 等ICML 2025
