{
  "id": 1066,
  "kind": "idea",
  "title": "KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)",
  "summary": "Single long X note_tweet + diagram (2026-09-25) by @techNmak explaining that during inference model weights are mostly fixed while per-request KV state grows with every cached token across attention layers. Frames context length and concurrency as GPU-memory costs; notes GQA/MQA (fewer KV heads), KV quantization (fewer bytes), and sliding-window attention (bounded history) as levers; stresses caching avoids recomputing old K/V projections but full attention still reads the cache each decode step. Diagram gives KV bytes = 2×B×T×L×H_kv×d_k×s (example: 8K tokens ≈ 1 GiB at L=32, H_kv=8, d_k=128, FP16). Pure original explainer — no primary paper; one reply promo-linked github.com/kvcachestore/kvcdn-cli.",
  "body": "",
  "notes": "Hudson user-fed 2026-09-26. Dedup clean (no prior techNmak / status / KV+serving hit). Walked conversation_id:2103488645642793165 via curator-bot: 7 replies, no arXiv/HF paper; only github.com/kvcachestore/kvcdn-cli (promo reply by @KVCacheStore). Cataloged X post itself as idea (precedent: idea+x for research-worthy explainers). Dump: /workspace/curator/research/kv-cache-technmak-2103488645642793165-20260926/",
  "url": "https://x.com/techNmak/status/2103488645642793165",
  "links": [],
  "authors": [
    "Tech with Mak (@techNmak)"
  ],
  "tags": [
    "kv-cache",
    "llm-serving",
    "gpu-memory",
    "gqa",
    "mqa",
    "kv-quantization",
    "sliding-window",
    "attention",
    "prefill-decode",
    "technmak",
    "x-thread",
    "idea"
  ],
  "topics": "LLM serving; KV cache; GPU memory; attention; inference concurrency",
  "venue": "X / Tech with Mak",
  "publisher": "X / Tech with Mak",
  "source": "x",
  "language": "en",
  "access": "https://x.com/techNmak/status/2103488645642793165 ; diagram dump /workspace/curator/research/kv-cache-technmak-2103488645642793165-20260926/diagram.jpg",
  "license": "n/a (X post / educational graphic)",
  "published_year": 2026,
  "added_at": "2026-09-26T12:56:00.000Z",
  "verified_at": "2026-09-26T12:56:00.000Z",
  "attrs": {
    "scale": "n/a (conceptual explainer); diagram example assumes L=32, H_kv=8, d_k=128, FP16 → ~1 GiB at 8192 tokens",
    "domain": "LLM serving; KV cache; GPU memory; attention; inference concurrency",
    "purpose": "Educational systems explainer: why KV cache dominates serving VRAM as context length and concurrency grow, and which architecture levers shrink it",
    "used_for": "Serving-memory intuition; KV cache sizing; GQA/MQA/quant/sliding-window as capacity levers; teaching prefill vs decode",
    "author_type": "independent educator / industry",
    "time_period": "X post 2026-09-25T14:15:48Z; cataloged 2026-09-26"
  },
  "enrichment": {},
  "enriched_at": "2026-10-03T14:33:49.895Z",
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1485",
    "needs_deep_eval": "no",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:30:16.149Z",
  "page": "https://papers.projxon.ai/entries/1066",
  "markdown": "https://papers.projxon.ai/entries/1066.md",
  "api": "https://papers.projxon.ai/api/entries/1066",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 496,
      "kind": "paper",
      "title": "Do Transformers Need Three Projections? Systematic Study of QKV Variants",
      "summary": "Evaluates Q=K≠V, Q≠K=V, and Q=K=V (plus 2D-PE + variants for non-causal tasks) against standard QKV. On language modeling, Q≠K=V cuts KV cache 50% at +3.1% val PPL (300M) and +2.48% (1.2B) vs QKV; Q=K≠V has no cache benefit, Q=K=V degrades ~25%. Combining Q≠K=V with GQA-4/MQA reaches 87.5%/96.9% cache reduction. K and V projections are highly similar (cosine 0.73) while Q stays distinct, so K=V preserves directional QK^T. Code https://github.com/Brainchip-Inc/Do-Transformers-Need-3-Projections.",
      "url": "https://arxiv.org/abs/2606.04032",
      "authors": [
        "Ali Kayyam",
        "Anusha Madan Gopal",
        "M Anthony Lewis"
      ],
      "tags": [
        "qkv",
        "projection-sharing",
        "kv-cache",
        "gqa",
        "mqa",
        "brainchip",
        "icml",
        "slimpajama"
      ],
      "venue": "arXiv / BrainChip",
      "source": "",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T16:45:04.296Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 3,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/496",
      "markdown": "https://papers.projxon.ai/entries/496.md",
      "api": "https://papers.projxon.ai/api/entries/496"
    },
    {
      "id": 740,
      "kind": "thread",
      "title": "Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)",
      "summary": "An X thread from @RampLabs titled 'Scaling KV Cache Compression to Frontier Models' (per the Discord link card), shared without additional caption. Claims relate to KV-cache compression methods scaled to frontier-scale models.",
      "url": "https://x.com/RampLabs/status/2104634941405266021?s=20",
      "authors": [
        "@RampLabs"
      ],
      "tags": [
        "kv-cache",
        "compression",
        "inference",
        "long-context",
        "x-thread",
        "unverified-claim"
      ],
      "venue": "X (Twitter)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/740",
      "markdown": "https://papers.projxon.ai/entries/740.md",
      "api": "https://papers.projxon.ai/api/entries/740"
    },
    {
      "id": 1253,
      "kind": "paper",
      "title": "Native Hybrid Attention for Efficient Sequence Modeling",
      "summary": "Native Hybrid Attention (NHA) unifies linear and full attention into a single softmax operation within one uniform layer design. Long-term history is compressed into fixed-size key-value memory slots updated by a linear RNN; short-term context comes from exact sliding-window tokens; one softmax over all keys and values learns per-token, per-head balancing dynamically with no extra fusion parameters. A single hyperparameter — the sliding window size — shifts each layer smoothly between pure linear attention (w=0), intra-layer hybrid, and full attention (w=N), with no structural changes; all layers share the same architecture. NHA beats Transformers and other hybrid baselines on recall-intensive and commonsense reasoning tasks, and pretrained LLMs (Llama-3, Qwen) can be structurally hybridized with NHA via lightweight finetuning (e.g., NHA-Qwen2.5-7B / NHA-Llama-3-8B trained on 10B tokens, NHA-Qwen3-30BA3B) to match accuracy with drastically lower GPU memory and inference latency.",
      "url": "https://arxiv.org/abs/2510.07019",
      "authors": [
        "Jusen Du",
        "Jiaxi Hu",
        "Tao Zhang",
        "Weigao Sun",
        "Yu Cheng"
      ],
      "tags": [
        "native-hybrid-attention",
        "linear-attention",
        "sliding-window",
        "memory-slots",
        "recall",
        "efficient-inference",
        "acl-2026"
      ],
      "venue": "arXiv 2510.07019 [cs.CL], submitted 8 Oct 2025, v3 15 Apr 2026; accepted ACL 2026",
      "source": "x",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-10-05T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1253",
      "markdown": "https://papers.projxon.ai/entries/1253.md",
      "api": "https://papers.projxon.ai/api/entries/1253"
    },
    {
      "id": 450,
      "kind": "paper",
      "title": "Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse",
      "summary": "Shows within-family matched-KV pairs (shared KV head count and head dim) have substantial linear structure: on Qwen3 14B->32B one source layer explains 56%/32% of target key/value variance, 79%/65% with multiple layers. A closed-form per-head ridge mapper with top-k cross-layer source selection and RoPE-stripped content-space keys retains 73-98% of standalone-prefill accuracy on four of six pairs (Qwen3, Llama 3.1, Ministral 3) and is 2.7-25x faster than re-prefill; two Ministral pairs collapse and a nonlinear MLP recovers up to +37 pp HellaSwag. Attention-output cosine predicts retention better than reconstruction R^2.",
      "url": "https://arxiv.org/abs/2608.03893",
      "authors": [
        "Taekyung Heo",
        "Rasoul Shafipour",
        "Ritchie Zhao",
        "Maximilian Golub",
        "Mohammad Mahdi Kamani",
        "Ritika Borkar",
        "Makesh Tarun Chandran",
        "Pantea Zardoshti",
        "Bita Darvish Rouhani"
      ],
      "tags": [
        "kv-cache",
        "prefill",
        "ridge-regression",
        "rope",
        "serving",
        "qwen3",
        "llama",
        "ministral",
        "nvidia"
      ],
      "venue": "arXiv / NVIDIA",
      "source": "arxiv",
      "license": "CC BY 4.0",
      "published_year": 2026,
      "added_at": "2026-08-14T16:24:56.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 9,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/450",
      "markdown": "https://papers.projxon.ai/entries/450.md",
      "api": "https://papers.projxon.ai/api/entries/450"
    },
    {
      "id": 1255,
      "kind": "paper",
      "title": "The Surprising Effectiveness of Shared Memory in Looped Transformers",
      "summary": "Looped Transformers add compute without parameters by re-applying the same layers, but each recursion writes its own KV cache, so memory grows with compute. This paper pretrains looped models to share memory instead: only the first recursion writes a cache; later recursions read it while keeping a short window of their own. Sharing memory does not cost quality — it improves it. At 150M-1B parameters, the Looped Prediction Transformer (LPT) and its hybrid variant set a new quality-memory frontier for looped models: with five recursions, the hybrid lowers FineWeb-Edu validation perplexity by 1.12-1.82 vs a same-size standard Transformer while using 76-79% less context memory. Analysis: shared and local memory develop different representations, later recursions attend mostly to the shared memory, which also acts as a gradient highway to the first recursion.",
      "url": "https://arxiv.org/abs/2610.02383",
      "authors": [
        "Giovanni Monea",
        "Keshav Ramji",
        "Yousef El-Kurdi",
        "Luis A. Lastras",
        "Yoav Artzi",
        "Nathan Godey",
        "Ramon Fernandez Astudillo"
      ],
      "tags": [
        "looped-transformers",
        "kv-cache",
        "shared-memory",
        "pretraining",
        "perplexity",
        "cornell",
        "ibm"
      ],
      "venue": "arXiv 2610.02383 [cs.LG/cs.AI], submitted 1 Oct 2026, preprint",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-05T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1255",
      "markdown": "https://papers.projxon.ai/entries/1255.md",
      "api": "https://papers.projxon.ai/api/entries/1255"
    },
    {
      "id": 621,
      "kind": "other",
      "title": "Shard: getting to 10x KV cache compression",
      "summary": "Engineering writeup of Shard, a drop-in HuggingFace Cache. Reimplementing TurboQuant stalled around 4-6x; authors split K and V: undo RoPE then PCA+int4 on K (rank 192/1024, DP bit allocation with a 4x drop penalty) and Hadamard + 4-d vector quantization on V. Attention scores run on int4 PCA coeffs via a relative-Delta RoPE identity; V Hadamard is applied after the weighted sum. 4 FP16 sink tokens + 64-token recency window. Decode stream uses data-oblivious Hadamard+Lloyd-Max (8-bit path 750/750 FP16 match at 150 tokens). Llama-3.1-8B: 10x at 8K / 11.2x at 32K, NIAH recall 1.000 across 4K-32K, LongBench-E avg 16.19 vs FP16 16.24, WikiText-2 PPL +0.26%. Decode throughput 0.39-0.49x FP16, so a memory win not a latency win. Code krish1905/shard.",
      "url": "https://krishgarg.com/shard",
      "authors": [
        "Krish Garg"
      ],
      "tags": [
        "shard",
        "kv-cache",
        "turboquant",
        "pca",
        "vector-quantization",
        "llama",
        "inference",
        "blog",
        "x"
      ],
      "venue": "krishgarg.com",
      "source": "web",
      "license": "MIT",
      "published_year": null,
      "added_at": "2026-08-14T19:20:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/621",
      "markdown": "https://papers.projxon.ai/entries/621.md",
      "api": "https://papers.projxon.ai/api/entries/621"
    }
  ]
}
