Iceberg Attention: Sublinear Long-Context Decoding with Mixture-of-Gaussians
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:06 UTC · edab90b213d9 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "G92torFvqJ"- }- ],- "title": "Iceberg Attention: Sublinear Long-Context Decoding with Mixture-of-Gaussians",- "authors": [],- "abstract": "Autoregressive decoding over long contexts repeatedly scans the entire KV cache, though only a small fraction of cached tokens strongly influence each query. \nWe introduce \\emph{Iceberg Attention}, a class of attention mechanisms that exploits this asymmetry by attending exactly to a small, query-dependent subset of the KV cache while analytically approximating the contribution of remaining tokens. \nUnlike sparse or retrieval-based attention, Iceberg Attention does not discard the residual cache; instead, it represents its aggregate contribution using a compact approximation. \nThis formulation decouples the cost of exact attention from the context length and enables sublinear KV-cache access.\n\nWe present \\emph{Mixture-of-Gaussians (MoG) Attention}, the first Iceberg Attention mechanism. \n% After prefill, \nMoG hierarchically partitions the keys of each attention head into $\\mathcal{O}(\\sqrt{N})$ clusters and $\\mathcal{O}(\\log N)$ subclusters per cluster, representing each group by a Gaussian distribution. \nDuring decoding, the query is scored against these compact representations to identify the most relevant clusters and subclusters, which are attended exactly. \nThe remaining cache is approximated from the means and variances of its Gaussian representations. \nMoG reduces per-token attention from $\\mathcal{O}(N)$ to $\\mathcal{O}(\\sqrt{N}\\log N)$ without retraining or fine-tuning the model.\n\nWe implement MoG as a drop-in replacement for attention in vLLM with a custom CUDA implementation that substantially reduces KV-cache data movement. \nAt a context length of 1M tokens, MoG decoding is 27$\\times$ faster than vLLM with FlashAttention and 2$\\times$ faster than RetroInfer, a state-of-the-art sparse attention system, on an Nvidia H100 GPU. \nAcross eleven long-context benchmarks using Qwen3-4B, Olmo3-7B, and Qwen3-14B at 8K--128K tokens, MoG matches exact attention while reading less than 5.3\\% of the KV cache. \nAblations show the residual is what makes the method safe, cutting error of attending the top clusters alone from $15\\%$ to $3\\%$. These results demonstrate that long-context decoding can avoid reading most of the KV cache without modifying or retraining the underlying model.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "8eb013cc-31c4-44f0-98e0-46cde7d82c0e"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "Iceberg Attention: Sublinear Long-Context Decoding with Mixture-of-Gaussians",+ "authors": [],+ "abstract": "Autoregressive decoding over long contexts repeatedly scans the entire KV cache, though only a small fraction of cached tokens strongly influence each query. \nWe introduce \\emph{Iceberg Attention}, a class of attention mechanisms that exploits this asymmetry by attending exactly to a small, query-dependent subset of the KV cache while analytically approximating the contribution of remaining tokens. \nUnlike sparse or retrieval-based attention, Iceberg Attention does not discard the residual cache; instead, it represents its aggregate contribution using a compact approximation. \nThis formulation decouples the cost of exact attention from the context length and enables sublinear KV-cache access.\n\nWe present \\emph{Mixture-of-Gaussians (MoG) Attention}, the first Iceberg Attention mechanism. \n% After prefill, \nMoG hierarchically partitions the keys of each attention head into $\\mathcal{O}(\\sqrt{N})$ clusters and $\\mathcal{O}(\\log N)$ subclusters per cluster, representing each group by a Gaussian distribution. \nDuring decoding, the query is scored against these compact representations to identify the most relevant clusters and subclusters, which are attended exactly. \nThe remaining cache is approximated from the means and variances of its Gaussian representations. \nMoG reduces per-token attention from $\\mathcal{O}(N)$ to $\\mathcal{O}(\\sqrt{N}\\log N)$ without retraining or fine-tuning the model.\n\nWe implement MoG as a drop-in replacement for attention in vLLM with a custom CUDA implementation that substantially reduces KV-cache data movement. \nAt a context length of 1M tokens, MoG decoding is 27$\\times$ faster than vLLM with FlashAttention and 2$\\times$ faster than RetroInfer, a state-of-the-art sparse attention system, on an Nvidia H100 GPU. \nAcross eleven long-context benchmarks using Qwen3-4B, Olmo3-7B, and Qwen3-14B at 8K--128K tokens, MoG matches exact attention while reading less than 5.3\\% of the KV cache. \nAblations show the residual is what makes the method safe, cutting error of attending the top clusters alone from $15\\%$ to $3\\%$. These results demonstrate that long-context decoding can avoid reading most of the KV cache without modifying or retraining the underlying model.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}