paper-with-me

홈 › Papers

FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving

2026-08-20 · Qihang Fan, Huaibo Huang, Zhiying Wu, Bingning Wang, Ran He arxiv

Long-context modeling is a pivotal capability for Large Language Models, yet the quadratic complexity of attention remains a critical bottleneck, particularly during the compute-intensive prefilling phase. Our previous work, FlashPrefill, mitigates this cost through instantaneous pattern discovery and max-based dynamic thresholding; however, it remains an algorithmic prototype that is still distant from production deployment. In this paper, we present FlashPrefill V2, which evolves FlashPrefill from a prototype toward practical long-context serving along three dimensions. First, we introduce a mean correction term that effectively suppresses the approximation error, keeping performance degradation manageable even at extreme sparsity levels. Second, we redesign the sparse attention operator with PackGQA memory access, warp specialization, and pingpong pipelining, fully aligning with the latest FlashAttention-3/4 implementations and supporting FP8 inference to meet practical quantization requirements. Third, FlashPrefill V2 natively supports paged KV cache and continuous batching, allowing integration as an attention backend in modern inference frameworks such as SGLang. Extensive evaluations on NVIDIA H20 GPUs---among the most widely deployed inference accelerators---demonstrate that FlashPrefill V2 delivers up to 47.26x and 27.19x speedups over FlashAttention-2 at 128K context length under FP8 and BF16 precision, respectively, and, in FP8, still achieves a 30.49x speedup against an FA3/4-aligned dense baseline.

📄 PDF Abstract BibTeX arXiv:2608.19758

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefilling

2026-03-06 · Qihang Fan, Huaibo Huang, Zhiying Wu, Juqiu Wang 외 arxiv

Long-context modeling is a pivotal capability for Large Language Models, yet the quadratic complexity of attention remains a critical bottleneck, particularly during the compute-intensive prefilling phase. While various …

CompactAttention: Accelerating Chunked Prefill with Block-Union KV Selection

2026-05-16 · Jiwon Song, Dongwon Jo, Beomseok Kang, Jae-Joon Kim arxiv

Chunked prefill has become a widely adopted serving strategy for long-context large language models, but efficient attention computation in this regime remains challenging. Existing sparse attention methods are primarily…

Sparser Block-Sparse Attention via Token Permutation

2025-10-24 · Xinghao Wang, Pengyu Wang, Dong Zhang, Chenkun Tan 외 arxiv

Scaling the context length of large language models (LLMs) offers significant benefits but is computationally expensive. This expense stems primarily from the self-attention mechanism, whose $O(N^2)$ complexity with resp…

Computational Efficiency

SALE : Low-bit Estimation for Efficient Sparse Attention in Long-context LLM Prefilling

2025-05-30 · Xiaodong Ji, Hailin Zhang, Fangcheng Fu, Bin Cui

Many advanced Large Language Model (LLM) applications require long-context processing, but the self-attention module becomes a bottleneck during the prefilling stage of inference due to its quadratic time complexity with…

Large Language Model

UniPrefill: Universal Long-Context Prefill Acceleration via Block-wise Dynamic Sparsification

2026-05-07 · Qihang Fan, Huaibo Huang, Zhiying Wu, Bingning Wang 외 arxiv

As large language models (LLMs) continue to advance rapidly, they are becoming increasingly capable while simultaneously demanding ever-longer context lengths. To improve the inference efficiency of long-context processi…