# Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps

*Yanke Zhou, Yiduo Li, Hanlin Tang, Maohua Li, Kan Liu, Tao Lan, Lin Qu, Yuan Yao, Xiaoxing Ma*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151309) · [Open on the map](../papers.html#p151309)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Sparse Long-Context Attention](../pgroup/226.md) · Type: new method · Keywords: sparse attention, long-context inference, efficiency, full-attention models, token indexing

Areas: [LLM Reasoning](../areas/reasoning.md) › Efficient Reasoning › Sparse Attention; [Long Context](../areas/longcontext.md) › Long-context mechanisms › Efficient attention

## Summary
RTPurbo transforms full-attention LLMs into highly sparse models within a few hundred training steps, preserving near-lossless accuracy while delivering up to 9.36× prefill and 2.01× decode speedups.

## Explained to a 5-year-old
Big computer programs that read long texts use a lot of math to pay attention to everything. This makes them slow. The researchers found that these programs already only need to look at a few important parts. They built a simple system that helps the program focus only on those parts, making it faster while keeping it almost as accurate. This way, the program can read longer texts quickly without needing to learn from scratch.

## Explained to a 5-year-old, longer
Many big computer programs that read long stories have to think about every word at the same time. Thinking about everything takes a lot of computer power and makes them slow. The researchers noticed that these programs actually only need to pay attention to a few key words most of the time. They also discovered that the important words can be found using a tiny set of numbers. The useful words depend on what the program is trying to understand, so picking the right ones changes each time. Using these ideas, the team created a simple helper that tells the program which words to focus on. The helper keeps a small memory of the most important words and uses it to skip the rest. This makes the program work much faster while still giving almost the same correct answers. The speed-up is biggest when the program looks at very long texts, like a million words. In everyday use, this means you can get answers from a language model more quickly. The method works without having to train the program again from the beginning. Overall, the approach lets big language models read long texts efficiently and cheaply.

## For a technical reader
Large language models currently compute attention over all tokens, leading to quadratic time and memory costs for long contexts. The authors observe that only a small fraction of attention heads actually need full-context information and that relevant tokens lie in a low-dimensional subspace. They introduce a lightweight indexer and dynamic top-p selection to sparsify attention, keeping full key/value caches only for retrieval heads. This transformation can be applied in just a few hundred training steps, yielding near-lossless accuracy while providing up to 9× prefill and 2× decode speedups. The result is a practical way to obtain efficient sparse inference from existing full-attention models without costly native sparse pretraining.

## Problem
Large language models for long contexts suffer from quadratic computational cost of full attention, and existing efficient alternatives trade off efficiency, training cost, and accuracy.

## Method
The approach leverages the intrinsic sparsity of full-attention models by identifying a small subset of heads that need full context, using a low-dimensional indexer for retrieval, and applying dynamic top-p token selection to sparsify attention, while retaining full KV cache only for retrieval heads.

## Results
The approach preserves near-lossless accuracy and achieves up to a 9.36× prefill speedup at 1M context and about a 2.01× decode speedup.

## Contributions
It shows that full-attention LLMs are intrinsically sparse, proposes a lightweight token indexer and dynamic top-p selection to sparsify attention, and demonstrates that strong sparse inference can be obtained without expensive native sparse pretraining.

## Practical relevance
This work enables efficient long-context inference on standard hardware, allowing practitioners to scale language models without costly specialized training.

## Research questions this paper is counted under

- [How can we reduce the quadratic attention cost and memory usage of large language models for long contexts while preserving performance?](../q/4.md)

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](../feedback/?on=p/151309)
