potentialpaper

Finding the Needles in Long-Context Attention through Sparse Features

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:30 UTC · 7a9372d579e0 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "bYuShrqKZz"
- }
- ],
- "title": "Finding the Needles in Long-Context Attention through Sparse Features",
- "authors": [],
- "abstract": "In long-context decoding, high attention scores often concentrate on a small fraction of historical tokens scattered throughout the context.\nAttending only to these tokens can preserve generation quality, but finding them efficiently is a needle-in-a-haystack problem.\nWe show that these tokens are not arbitrarily distributed in feature space: although they may differ in many respects, they share query-relevant features in a high-dimensional sparse representation.\nTo expose this structure, we develop a shared query-key sparse autoencoder (SAE) that decomposes dense queries and keys into a common dictionary of sparse features.\nMost high-scoring keys share active features with the query, whereas such overlap is uncommon among the remaining keys.\nBuilding on this finding, we introduce PrismKV, which indexes historical keys by their active SAE features to form overlapping buckets.\nCompact bucket summaries identify relevant tokens without scanning the entire history, allowing attention to operate only on the selected original KV entries.\nAcross RULER and LongBench on the 27B model, PrismKV retains an average of 99.90\\% of full-attention performance.\nRelative to optimized full attention, it achieves attention-path speedups of 3.37x on Qwen3-8B at a 128K context length and 2.78x on the 27B model with a 256K total window.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "df0368b4-cb0e-4368-9637-630329b41944"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Finding the Needles in Long-Context Attention through Sparse Features",
+ "authors": [],
+ "abstract": "In long-context decoding, high attention scores often concentrate on a small fraction of historical tokens scattered throughout the context.\nAttending only to these tokens can preserve generation quality, but finding them efficiently is a needle-in-a-haystack problem.\nWe show that these tokens are not arbitrarily distributed in feature space: although they may differ in many respects, they share query-relevant features in a high-dimensional sparse representation.\nTo expose this structure, we develop a shared query-key sparse autoencoder (SAE) that decomposes dense queries and keys into a common dictionary of sparse features.\nMost high-scoring keys share active features with the query, whereas such overlap is uncommon among the remaining keys.\nBuilding on this finding, we introduce PrismKV, which indexes historical keys by their active SAE features to form overlapping buckets.\nCompact bucket summaries identify relevant tokens without scanning the entire history, allowing attention to operate only on the selected original KV entries.\nAcross RULER and LongBench on the 27B model, PrismKV retains an average of 99.90\\% of full-attention performance.\nRelative to optimized full attention, it achieves attention-path speedups of 3.37x on Qwen3-8B at a 128K context length and 2.78x on the 27B model with a 256K total window.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}