DisSparse: Pipelined Top- Sparse Attention for Long-Context LLM Serving
Abstract
Long-context LLM inference is bottlenecked by the memory demands of the key-value (KV) cache, whose size scales linearly with context length. Dynamic sparse attention reduces this bottleneck by fetching and attending only to a critical subset of tokens. The dominant primitive in dynamic sparse attention research and deployment is fixed-budget top- selection, which is favored because its deterministic block count aligns with the static memory allocation that systems like vLLM rely on. Top- uses a fixed budget regardless of how attention mass is distributed across heads, layers, and decode steps, leading to either wasted bandwidth on heads with peaky attention or dropped context on heads with diffuse attention. Top- (nucleus) selection adapts naturally to this variation but has seen limited adoption in production serving systems due to two system-level challenges: variable block counts that break deterministic block allocation and computationally expensive selection kernels that exceed the cost of attention itself. We present DisSparse, a serving system that integrates top- sparse attention into vLLM end-to-end. DisSparse decouples block selection from the scheduler's critical path, hides selection latency behind layer computation via a two-stream pipeline, and introduces a single-pass histogram-based top- kernel. We further observe intra-block sparsity, the inflation of selection budgets caused by mixing high- and low-importance tokens within fixed-size KV cache blocks, and address it with a token relocation kernel guided by accumulated prefill attention scores. Across long- and medium-context benchmarks on multiple models, DisSparse achieves 1.17x to 1.80x speedup in sparsity analysis (block selection) over state-of-the-art top- methods with negligible accuracy loss and supports up to 8x larger maximum batch sizes than dense vLLM under the same memory budget.
Create a lesson
Related papers
Auditing and Adapting kNNGuard for Long-Context Prompts
Shared title terminology · Niccolò Ronchetti
Topology Hub Optimal Transport: Eliminating Long Context Dilution at Flash Speed
Shared title terminology · Dylan Forde
HiPPO Functional Memory: Coordinate-Queryable Attention for Irregular Time Series
Shared title terminology · Zhaodong Guo, Haoyun Feng
Benchmarking EEG feature families for ADHD research in children and adolescents: performance and explainability across attention tasks
Shared title terminology · Javier Sanchis, Jorge García-Carrasco, Álvaro Navarro et al.
SONATI: Spatio-temporal ocean neighbourhood asymmetric transformer for imputation of sparse, tabular data with uncertainty
Shared title terminology · Yvonne Jenniges, Boris Peter Koch, Maike Sonnewald et al.
The Cross-Context Threshold Test: Detecting Discrimination Under Environmental Shifts
Shared title terminology · Jun Yuan, Xinyue Ye