FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefilling
Not on the map. Why?
Abstract (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 sparse attention mechanisms have been explored, they typically suffer from either significant search latency or insufficient sparsity. In this paper, we propose FlashPrefill, a framework enabling ultra-fast prefilling via instantaneous pattern discovery and thresholding. FlashPrefill leverages a fast block-searching technique to simultaneously locate dynamic vertical, slash, and block-sparse attention patterns. Crucially, it introduces a dynamic thresholding mechanism that bypasses the prohibitive overhead of sorting or accumulating attention scores while effectively eliminating the long-tail distribution to enhance sparsity. Extensive evaluations demonstrate that FlashPrefill achieves a substantial leap in efficiency, delivering an unprecedented 27.78x speedup on 256K sequences. Notably, unlike existing methods that incur efficiency degradation on shorter contexts, FlashPrefill maintains a 1.71x speedup even at a 4K context length, demonstrating its robustness and practical utility across varying sequence scales.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 39 of its 40 references that are in the map. First posted on arXiv 6 Mar 2026.
Builds on
39 of 40 references.
References · 39
- 2017Attention Is All You Needcited by 60,361
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2025Qwen3 Technical Reportcited by 8,820
- 2023Visual Instruction Tuningcited by 7,869
- 2025Qwen2.5-VL Technical Reportcited by 5,587
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,234
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023Qwen Technical Reportcited by 3,344
27 more
- 2025Qwen3-VL Technical Reportcited by 2,793
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2024Video-MME: The First-Ever Comprehensive Evaluation Benchmark of Multi-modal LLMs in Video Analysiscited by 1,413
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2024Yi: Open Foundation Models by 01.AIcited by 719
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 198
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 166
- 2025Qwen2.5-1M Technical Reportcited by 164
- 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 137
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 123
- 2025InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long Adaptationcited by 32
- 2024Breaking the Low-Rank Dilemma of Linear Attentioncited by 31
- 2025Rectifying Magnitude Neglect in Linear Attentioncited by 16
- 2025ProxyAttn: Guided Sparse Attention via Representative Headscited by 9
- 2025Optimizing Mixture of Block Attentioncited by 9
- 2024Semantic Equitable Clustering: A Simple and Effective Strategy for Clustering Vision Tokenscited by 5
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026Mix-Quant: Quantized Prefilling, Precise Decoding for Agentic LLMscited by 4
- 2026UniPrefill: Universal Long-Context Prefill Acceleration via Block-wise Dynamic Sparsificationcited by 2
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Servingcited by 2
- 2026CoSA: Accelerating Long-Context Inference via Proxy-Kernel Co-Designed Sparse Attentioncited by 1
- 2026CompactAttention: Accelerating Chunked Prefill with Block-Union KV Selectioncited by 0
- 2026Training-free sparse attention based on cumulative energy filteringcited by 0
- 2026Evidence-Driven Dynamic Visual Selector for Efficient Long Video Understandingcited by 0
- 2026RBS-Attention: Radius-Bounded Sparse Prefill for Long-Context Large Language Modelscited by 0
- 2026QUILT: Rethinking Sparse-Attention Prefill through Shared Query Executioncited by 0
- 2026QUILT: Rethinking Sparse-Attention Prefill through Shared Query Execution8 Oct 2026
- 2026RBS-Attention: Radius-Bounded Sparse Prefill for Long-Context Large Language Models17 Sep 2026
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving20 Aug 2026
- 2026Evidence-Driven Dynamic Visual Selector for Efficient Long Video Understanding6 Aug 2026
- 2026CoSA: Accelerating Long-Context Inference via Proxy-Kernel Co-Designed Sparse Attention28 Jul 2026
- 2026Training-free sparse attention based on cumulative energy filtering15 Jun 2026
- 2026Mix-Quant: Quantized Prefilling, Precise Decoding for Agentic LLMs19 May 2026
- 2026CompactAttention: Accelerating Chunked Prefill with Block-Union KV Selection16 May 2026
- 2026UniPrefill: Universal Long-Context Prefill Acceleration via Block-wise Dynamic Sparsification7 May 2026