Faster Than Flash: Exploiting Attention Sparsity for Efficient Long-Context Decoding

Zhigeng Liu, Zhiyuan Ning, Ruixiao Li, Xiaoran Liu, Yuerong Song +3 more
8/31/2026
4 citations
cs.LGcs.AI

Official code: qluoluo/faster-flash-decoding (5 stars, Python, Apache-2.0, last commit 2026-05-11).

Abstract

The development of long-context Large Language Models (LLMs) is constrained by the memory bandwidth bottleneck and quadratic complexity of the attention mechanism during decoding. To overcome the inherent trade-offs between the memory overhead of metadata-based metrics and the computational inefficiency of adaptive selection strategies, we present Faster Flash Decoding (FFD), a novel hardware-algorithm co-design framework designed to break the memory wall in long-context decoding.

Show full abstract

FFD integrates the selector and computer into a fully fused kernel, replacing external metadata indices with content-aware scanning via low-bit quantization. Furthermore, we introduce the top-delta strategy, which dynamically filters blocks to achieve distribution-adaptive sparsity without global synchronization. Offering a training-free and plug-and-play solution, FFD also enables the reuse of scanning results for computation, achieving up to 11.6x kernel-level speedup and scaling to 256K context length, with 2.37x end-to-end throughput improvement. Empirical validation on RULER and LongBench confirms that FFD maintains model accuracy while delivering high-ratio sparsity, with code available at https://github.com/qluoluo/faster-flash-decoding

View on arXivView PDF

Code Implementations(1)

Apache-2.0
51PythonMay 11, 20266 months agoApache-2.0

Similar Papers

Cite this paper

@article{liu2026faster,
  title  = {Faster Than Flash: Exploiting Attention Sparsity for Efficient Long-Context Decoding},
  author = {Zhigeng Liu and Zhiyuan Ning and Ruixiao Li and Xiaoran Liu and Yuerong Song and Min Zhang and Ziwei He and Xipeng Qiu},
  year   = {2026},
  eprint = {2609.00097},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.00097v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.00097.svg)](https://codeofpaper.com/paper/2609.00097)

Discussion