UniPrefill: Universal Long-Context Prefill Acceleration via Block-wise Dynamic Sparsification
Qihang Fan, Huaibo Huang, zhiyingwu, Bingning Wang, Ran He
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Sparse Long-Context Attention · Type: new method · Keywords: prefill acceleration, long-context LLMs, block-wise sparsification, continuous batching, vLLM integration, inference latency
Areas: Long Context › Long-context mechanisms › Long-context attention mechanisms; Model Architectures & Sequence Modeling › Language Model Architectures › Sparse Attention
Summary
UniPrefill is a universal prefill acceleration framework that accelerates token-level computation using block-wise dynamic sparsification and integrates with vLLM to achieve up to 2.1x TTFT speedup, especially under concurrent requests.
Explained to a 5-year-old
Large computer programs called language models need to remember a lot of words. Making them faster when they start answering is hard. The new idea is to skip some unimportant parts of the work so they can answer quicker. It also works with the way these programs are run now. This helps them answer faster, especially when many people ask questions at once.
Explained to a 5-year-old, longer
People use big computer programs that can talk and write called language models. These programs need to look at a long story or conversation to answer a question. Looking at a lot of text takes a lot of time and computer power. When a user asks something, the program first processes all the text before giving an answer. This first step is called prefill, and it can be slow. Some previous tricks try to make this faster, but they only work for certain types of programs. The new idea works for any kind of language model, no matter how it is built. It looks at the text and decides which parts are most important, then skips the less important bits. This skipping is done in small blocks, so it is fast and accurate. The trick also works with the way modern programs run many tasks at once. By doing this, the program can start answering questions much more quickly, especially when many people ask questions together.
For a technical reader
The framework accelerates token-level computation by dynamically sparsifying blocks of attention, making it architecture-agnostic. It is implemented as a continuous batching operator and extends vLLM’s scheduler to co-process prefill and decode phases. This integration yields up to 2.1× faster time-to-first-token, with larger gains under higher concurrency.
Problem
Existing long-context prefill acceleration methods rely on sparse attention and only work well with full-attention models, causing performance loss when applied to newer hybrid architectures and making integration with continuous batching difficult.
Method
The approach uses block-wise dynamic sparsification to accelerate token-level computation and implements a continuous batching operator, extending vLLM's scheduling to enable prefill-decode co-processing.
Results
The approach achieves up to 2.1x speedup in Time-To-First-Token, with larger gains as concurrent requests increase.
Contributions
The paper introduces a universal prefill acceleration framework that works with any model architecture, integrates with continuous batching and vLLM, and yields substantial TTFT speedups especially under concurrent load.
Practical relevance
Enabling faster LLM inference with long contexts on modern inference engines, reducing latency for users and allowing better resource utilization.
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