Linear Indexer: Understanding and Accelerating DeepSeek Sparse Attention
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:08 UTC · 633751983b3f ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "Dgx5g0L9qg"- }- ],- "title": "Linear Indexer: Understanding and Accelerating DeepSeek Sparse Attention",- "authors": [],- "abstract": "DeepSeek's Lightning Indexer scores every query against all visible\nkeys, incurring quadratic prefill cost. In our DeepSeek-V4-Flash\nprofile at 256K context, it accounts for $33.3$% of prefill GPU\nbusy time. Surprisingly, we find that removing its head-wise\nReLUs largely preserves retrieval. This observation yields\n**Linear Indexer**, a training-free method that folds the\n64 weighted query heads exactly into one before the global scan,\nreducing 64 query--key dot products per key to one. The resulting\nlinear score directly selects keys for attention; for higher\nretrieval recall, the original scorer can rerank an enlarged\nlinear shortlist. Our analysis links the high recall to learned\ncoupling between stable query--key signs and head weights,\na pattern observed across domains, context lengths, checkpoints,\nand Indexer architectures. On V4-Flash, Linear Indexer maintains\nperformance comparable to the original model on LongBench-v2\nand RULER at context lengths up to 256K. At 256K on NVIDIA\nH20 GPUs, direct mode achieves a $10.4\\times$ indexer speedup\nand a $1.39\\times$ speedup in end-to-end prefill time to first token (TTFT).",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "8b8d7bfa-d763-46b4-897c-9ae53e2fb80d"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "Linear Indexer: Understanding and Accelerating DeepSeek Sparse Attention",+ "authors": [],+ "abstract": "DeepSeek's Lightning Indexer scores every query against all visible\nkeys, incurring quadratic prefill cost. In our DeepSeek-V4-Flash\nprofile at 256K context, it accounts for $33.3$% of prefill GPU\nbusy time. Surprisingly, we find that removing its head-wise\nReLUs largely preserves retrieval. This observation yields\n**Linear Indexer**, a training-free method that folds the\n64 weighted query heads exactly into one before the global scan,\nreducing 64 query--key dot products per key to one. The resulting\nlinear score directly selects keys for attention; for higher\nretrieval recall, the original scorer can rerank an enlarged\nlinear shortlist. Our analysis links the high recall to learned\ncoupling between stable query--key signs and head weights,\na pattern observed across domains, context lengths, checkpoints,\nand Indexer architectures. On V4-Flash, Linear Indexer maintains\nperformance comparable to the original model on LongBench-v2\nand RULER at context lengths up to 256K. At 256K on NVIDIA\nH20 GPUs, direct mode achieves a $10.4\\times$ indexer speedup\nand a $1.39\\times$ speedup in end-to-end prefill time to first token (TTFT).",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}