NeurIPS 2026QuestionsPapersAreasAboutMarkdown

SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference

Yaosheng Fu, Guangxuan Xiao, Xin Dong, Song Han, Oreste Villa

NeurIPS page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › Sparse Long-Context Attention · Type: new method · Keywords: sparse attention, KV cache, lookahead selection, LLM inference, efficient long context

Areas: Memory › Model Memory Optimization › Efficient Attention for LLMs; Long Context › Long-context mechanisms › Efficient long-context attention; Model Architectures & Sequence Modeling › Language Model Architectures › Sparse Attention

Summary

SparDA introduces a decoupled Forecast projection that predicts KV blocks for lookahead selection, enabling overlapped CPU-GPU prefetch and reducing selection complexity, which together improve LLM inference speed and efficiency.

Explained to a 5-year-old

We want computers to read long stories without using too much memory. The computer makes a guess about which parts it will need next, so it can load them early. This helps it work faster and use less memory. It works like a librarian who predicts which books you will need next. This makes the computer faster when answering questions.

Explained to a 5-year-old, longer

Large language models can read long texts, but they need a lot of memory. The memory needed grows with how long the text is. To save memory, researchers use a method that only looks at parts of the text. However, even this method still needs a lot of work to decide which parts to look at. The new idea adds a special guesser that predicts which parts will be needed next. This guesser works like a scout that looks ahead before the main process starts. By looking ahead, the computer can load the needed parts while it is still processing the current part. This overlapping of loading and processing makes the computer faster. It also reduces the amount of memory that must be stored on the fast memory. The guesser is trained to copy the choices of the original method, so it learns what to predict. As a result, the model can answer questions faster and handle longer texts without slowing down too much. This helps people use big language models on regular computers without needing huge amounts of memory.

For a technical reader

The paper addresses the high memory and compute cost of quadratic attention in long-context LLM inference. It adds a fourth Forecast projection per transformer layer that predicts which KV cache blocks will be needed by the next layer, allowing a lookahead selection step. This lookahead can be performed while the current layer is executing, overlapping CPU-to-GPU data transfers and reducing the PCIe bottleneck. The design uses one Forecast head per GQA group, which lowers the overhead of the selection step compared to a multi-head selector. Only the Forecast parameters are trained by matching the attention distribution of the original selector, keeping the model lightweight and enabling up to 1.7× faster decoding and higher throughput on a single GPU.

Problem

Long-context LLM inference suffers from high compute and memory usage due to quadratic attention cost and KV cache growth, and offloading to CPU introduces a PCIe bottleneck. Additionally, the sparse selection step itself remains O(T2) and can dominate the attention cost.

Method

The approach adds a fourth Forecast projection per layer that predicts which KV blocks will be needed by the next layer, allowing lookahead selection. This enables overlapping CPU-to-GPU prefetch with current-layer execution, and uses one Forecast head per GQA group to reduce selection overhead. Only the Forecast projections are trained by matching the original selector's attention distribution.

Results

The approach matches or slightly improves accuracy on two sparse-pretrained 8B models while delivering up to 1.25× prefill speedup and 1.7× decode speedup over the sparse-attention offload baseline, and up to 5.3× higher decode throughput than the non-offload sparse baseline.

Contributions

A decoupled Forecast projection that predicts KV blocks for lookahead selection, reducing selection complexity and enabling overlapped prefetch, along with a GQA-grouped selector and a parameter-efficient training scheme that only updates the Forecast.

Practical relevance

The approach allows running longer contexts on a single GPU with higher throughput, making efficient LLM inference more practical for resource-constrained settings.

Research questions this paper is counted under

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