DexAttention: Distributed Sparse Attention through Rapid Online Planning and Persistent GPU Execution
Sirui Chen, Xuehai Qian
Abstract
Sparse attention reduces computation, but distributed execution may still transfer unnecessary data and incur substantial per-operation overhead. Mask-aware assignment and scheduling can reduce these costs, but replanning for dynamic masks must be cheaper than the execution time it saves. We present DexAttention, a distributed sparse attention system that co-designs fast online planning with persistent execution. Its assigner uses GPU-accelerated, topology-aware clustering to balance computational load and reduce communication. A lightweight greedy scheduler orders coarse communication and computation operations, while a persistent kernel on each GPU enforces fine-grained dependencies and dispatches ready tasks. This division keeps detailed synchronization out of planning while enabling overlap without repeated attention launches. The framework supports static and dynamic per-head masks across multiple attention compute kernels. On a four-node, 16-GPU cluster, DexAttention achieves a 1.39× geometric-mean end-to-end training speedup over the fastest applicable baseline across 11 configurations. For dynamic video attention, it achieves 2.11--2.37× speedups over Ring Attention including planning.
Create a lesson
Related papers
Accelerating Mixture of Block Attention via Dynamic Routing, KV-Centric Execution and Runtime Pipelining
Shared title terminology · Yingqi Shi, Junru Lu, Yun Liu et al.
Twindex: Index Cache Offloading with Coarse-to-Fine Selection for Long-Context Sparse-Attention Serving
Shared title terminology · Yuxuan Xia, Jiakun Fan, Han Meng et al.
XM-Sparse: High-Throughput Sparse-Attention LLM Serving over Scale-up Memory Pools
Shared title terminology · Yijun Sun, Xudong Liao, Zhuobin Huang et al.
Decode Token Parallelism: Memory-Efficient Distributed Attention Parallelism for Scalable LLM Decoding
Shared title terminology · Susav Shrestha, Brad Settlemyer, Narasimha Reddy
HeteroTask: Multi-Variant Task Scheduling and Execution on Distributed Heterogeneous Clusters
Shared title terminology · Hongzheng Tian, Alok Mishra, Haocheng Xu et al.
Contention-Aware Flexible Execution for Machine Learning Workloads
Shared title terminology · Marco Kurzynski, Shaizeen Aga, Di Wu