# Breaking the Exactness Barrier: Interleaved DeepSeek Sparse Attention for Efficient Long Context Reasoning

*Yifan GUO, Wei Cui*

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

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

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

## Summary
IDSA introduces an interleaved token layout and relaxed local Top-m selection to achieve efficient distributed inference for long contexts without retraining, delivering large throughput gains while preserving reasoning performance.

## Explained to a 5-year-old
We have a big computer brain that reads long stories. It picks a few important words to pay attention to. Right now, it has to ask all the computers to talk to each other a lot, which is slow. We found out we can split the story among the computers, and each one looks at a small part, then they together still get the important words. This makes the brain faster without making mistakes, so it can read very long stories quickly.

## Explained to a 5-year-old, longer
A big computer program can read very long texts, like a story with thousands of words. To understand the story, it looks at some special words and remembers them. The program currently needs all the computers to share information all at once, which takes a lot of time. Researchers noticed that they could split the long text into pieces and give each piece to a different computer. Each computer only looks at its own piece and picks the most important words for that piece. Even though each computer only sees a small part, when they combine their choices they get almost all the important words from the whole story. This way the computers don't need to talk to each other as much, so the whole process becomes faster. The new idea works without having to retrain the program, so it can be used right away. It helps the program read very long texts quickly while still understanding them well. The improvement is especially useful for tasks that need a lot of thinking, like solving math problems. Tests show the program is much faster for texts longer than 100,000 words. Overall, the method makes big computer brains more efficient for long-range reasoning.

## For a technical reader
The paper identifies a bottleneck in distributed sparse attention where exact global top-K selection forces heavy synchronization across GPUs. It demonstrates that this exactness is unnecessary for inference, as admitting extra context does not harm accuracy. The proposed solution interleaves tokens across devices, letting each GPU perform a relaxed local top-m selection whose union approximates the global top-K. This reduces communication overhead and avoids costly cross-device merging, yielding substantial throughput gains for contexts exceeding 100K tokens while preserving or improving reasoning performance. The approach can be applied to existing models without any retraining, making it attractive for production deployments of large language models.

## Problem
Exact global top-K selection in distributed sparse attention creates heavy communication overhead and redundant computation, limiting scalability to very long sequences.

## Method
Tokens are distributed across devices in an interleaved layout, allowing each device to perform a relaxed local top-m selection; the union of these selections approximates the global top-K, eliminating the need for exact global selection and costly cross-device synchronization.

## Results
The approach achieves large throughput improvements for contexts over 100K tokens while maintaining or improving reasoning performance on AIME and Needle-In-A-Haystack.

## Contributions
It shows that exact global top-K selection is unnecessary for inference, proposes an interleaved token layout with relaxed local selections that approximates global relevance, and demonstrates significant speedups on long contexts without retraining.

## Practical relevance
The method enables scalable, low-overhead inference for very long contexts on existing models, making it practical for applications requiring extensive reasoning.

## Research questions this paper is counted under

- [How can top-K selection in attention be made both differentiable and communication-efficient?](../q/844.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/154778)
