← Latest papers
🤖 machine learning

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

Faster Flash Decoding (FFD) is a training-free, hardware-algorithm co-design framework that achieves up to 11.6x kernel-level speedup and scales to 256K context lengths by fusing selection and computation into a single kernel and employing a top-delta strategy for distribution-adaptive sparsity, all while maintaining model accuracy.

Original authors: Zhigeng Liu, Zhiyuan Ning, Ruixiao Li, Xiaoran Liu, Yuerong Song, Min Zhang, Ziwei He, Xipeng Qiu

Published 2026-09-02
📖 4 min read☕ Coffee break read

Original authors: Zhigeng Liu, Zhiyuan Ning, Ruixiao Li, Xiaoran Liu, Yuerong Song, Min Zhang, Ziwei He, Xipeng Qiu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of artificial intelligence, modern computer programs known as large language models have become remarkably skilled at understanding and generating human language. These systems work by predicting the next word in a sentence, one token at a time, building a coherent response step by step. However, as these models grow more capable, they face a significant physical hurdle when asked to process very long documents or conversations. The more context a model needs to remember, the more data it must constantly shuffle between its fast internal memory and its main storage. This constant movement of data creates a bottleneck, much like trying to fill a swimming pool with a garden hose while the drain is wide open. The computer spends most of its time waiting for information to arrive rather than actually thinking, which slows down the entire process and limits how much text a model can handle at once.

To solve this, researchers from Fudan University and the Shanghai Innovation Institute have developed a new method called Faster Flash Decoding. Their approach tackles the problem by changing how the model decides which pieces of information to keep and which to ignore. Instead of trying to read every single word in a massive document to find the relevant ones, the new system uses a clever shortcut. It first creates a tiny, compressed sketch of the entire history of the conversation. This sketch is so small that the computer can scan through it almost instantly. By looking at this sketch, the system can quickly identify which parts of the history are likely to be important and which can be safely ignored. Only after this quick scan does the model retrieve the full, detailed version of the selected parts to perform the final calculation. This two-step process allows the model to skip over vast amounts of irrelevant data without losing the ability to understand the core meaning of the text.

The researchers tested this method on powerful graphics cards, the kind used for high-end gaming and scientific computing, and found it to be dramatically faster than current standard techniques. When processing a context of 256,000 tokens, the new system reduced the time it took to generate a single token from over one millisecond to just a fraction of that. In terms of overall speed, the system generated text up to 2.37 times faster than previous methods while maintaining the same level of accuracy. The team verified this performance across a wide range of tasks, including complex reasoning and retrieving specific facts from long documents, confirming that the speed gains did not come at the cost of intelligence. The system works without needing to retrain the model, meaning it can be plugged into existing artificial intelligence systems immediately to improve their efficiency.

A key innovation in this work is the specific way the system filters information. Traditional methods often rely on fixed rules, such as keeping only the top ten most important words, or complex calculations that require the entire system to pause and synchronize before proceeding. The new method uses a dynamic threshold that adapts to the natural flow of the conversation. It looks for words that are significantly important compared to the most important word in the current context, allowing it to adjust how much it keeps based on how concentrated the attention is. This flexibility, combined with the use of extremely low-precision data for the initial scan, allows the computer to bypass the memory bottleneck that has long held back long-context processing. The result is a system that can handle massive amounts of text with a speed that was previously thought impossible without sacrificing the quality of the answers it provides.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →