🧠Sparse Attention Cuts Long-Context Cost, But the Indexer Eats 47% of Prefill
Your long-context bill just moved, not vanished
TL;DR
Long-context attention is now the bottleneck at 128K tokens, and sparse attention only moves the cost. DeepSeek V3.2's indexer and Top-k take 47% of prefill per layer. Model developers tuning sparse attention for NVIDIA GPUs need to tune the indexer, not just the attention kernel.
Long-context attention is the expensive part of a transformer now, and sparse attention is the fix everyone is reaching for. The catch: it doesn't make the cost disappear, it relocates it. Core attention stops scaling with context length, but the indexer still scores every key, and that work lands in a separate stage. If you're designing models with sparse attention for NVIDIA GPUs, the indexer is where your performance decisions now live. Its knobs include query heads, key heads, head dimension, compression ratio, and speculative-decoding depth. Get them wrong and the indexer dominates your latency budget even when the attention math looks cheap on paper. In DeepSeek V3.2's prefill at 128K tokens, the indexer and Top-k together take 47% of the layer, compared with dense MLA in DeepSeek-R1. Top-k cost scales with N, the indexer scales with N, and only the final core attention stage scales with k. Tables in the source compare how recent models set these knobs, from DSA's 64 query heads with 128-dim heads to block-of-4 selection in GLM 5.3 Flash.

Key Points
At 128K tokens, DeepSeek V3.2's indexer and Top-k take 47% of prefill time per layer, versus dense MLA in DeepSeek-R1, per the paper's Figure 1 benchmark setup.
Keep reading — it's free
Enter your email to keep reading — plus the best of AI & tech, daily. Free, forever.
Already a member? Sign in
Comments
Be the first to comment