DisSparse: Pipelined Top-p Sparse Attention for Long-Context LLM Serving
Nurlan Nazaraliyev, Elaheh Sadredini, Nael Abu-Ghazaleh
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Sparse Long-Context Attention · Type: new method · Keywords: sparse attention, top-p selection, vLLM, KV cache, long-context inference, batch size scaling
Areas: LLM Reasoning › Efficient Reasoning › KV Cache Compression; Long Context › Long-context mechanisms › Efficient long-context attention; Model Architectures & Sequence Modeling › Language Model Architectures › Sparse Attention
Summary
DisSparse is a serving system that integrates top-p sparse attention into vLLM via pipelined selection and token relocation, achieving up to 1.45× faster sparsity analysis and 8× larger batch sizes under the same memory budget.
Explained to a 5-year-old
Imagine a big computer brain that reads long stories. It needs to remember everything, but that takes a lot of memory. To save memory, it only pays attention to the most important parts. The usual way picks a fixed number of parts, which can be wasteful or miss things. The new idea picks parts based on how important they are, moves them around, and makes the brain faster and able to handle more stories at once.
Explained to a 5-year-old, longer
A big computer brain called an LLM can read very long texts. To remember what it read, it stores a lot of information in its memory. This memory use grows quickly as the text gets longer. To help the brain use less memory, it can focus only on the most important words. The old way of focusing always looks at the same number of words, even if some words are more important than others. This can waste memory on unimportant words or miss important ones. The new idea looks at how important each word is and picks a flexible number of words. It does this picking in a way that fits into the computer's memory schedule. It also moves important words around so that they are not mixed with unimportant ones in the memory blocks. This makes the picking process faster and hides it while the brain does other work. As a result, the brain can run faster and handle many more texts at the same time. Overall, the new method lets the brain read longer texts using less memory and more speed.
For a technical reader
DisSparse integrates top-p sparse attention into the vLLM serving pipeline, allowing token selection based on importance rather than a fixed budget. It decouples selection from the scheduler’s critical path and uses a two-stream pipeline to overlap selection latency with layer computation. A histogram-based kernel performs top-p selection in a single pass, while a token relocation kernel mitigates intra-block sparsity. The result is faster inference and support for much larger batch sizes under the same memory budget.
Problem
Long-context LLM inference suffers from high memory usage due to key-value caches that grow linearly with context length, and existing sparse attention methods use fixed-budget top-k selection that can waste bandwidth or drop important tokens.
Method
The approach decouples block selection from the scheduler, uses a two-stream pipeline to hide selection latency behind layer computation, introduces a single-pass histogram-based top-p kernel, and applies a token relocation kernel to mitigate intra-block sparsity.
Results
The approach achieves up to 1.45× speedup in sparsity analysis over state-of-the-art top-p methods with no accuracy loss and supports up to 8× larger maximum batch sizes than dense vLLM under the same memory budget.
Contributions
It introduces a pipelined top-p sparse attention integration for vLLM, a histogram-based selection kernel, and a token relocation technique to address intra-block sparsity, enabling larger batch sizes and faster inference.
Practical relevance
Enables serving larger batches of long-context LLMs on existing hardware, reducing memory pressure and improving throughput.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction