{
  "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.",
  "body": "",
  "notes": "Primary: arxiv abs. ICML 2026. BrainChip Inc.; correspondence akayyam@brainchip.com (Kayyam previously published as Ali Borji). Code MIT https://github.com/Brainchip-Inc/Do-Transformers-Need-3-Projections (46 stars at check). HF paper page 2 upvotes; no linked models/datasets. Discord posted abs. Trains on SlimPajama and standard vision sets; no new corpus, so no datasets_local row. ArXiv license widget not visible in converted abs HTML, so paper license left blank.",
  "url": "https://arxiv.org/abs/2606.04032",
  "links": [],
  "authors": [
    "Ali Kayyam",
    "Anusha Madan Gopal",
    "M Anthony Lewis"
  ],
  "tags": [
    "qkv",
    "projection-sharing",
    "kv-cache",
    "gqa",
    "mqa",
    "brainchip",
    "icml",
    "slimpajama"
  ],
  "topics": "transformer architecture, attention, KV cache",
  "venue": "arXiv / BrainChip",
  "publisher": "",
  "source": "",
  "language": "",
  "access": "",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-01T16:45:04.296Z",
  "verified_at": null,
  "attrs": {
    "scale": "300M (20L, d=1024, 16 heads) and 1.2B (22L, d=2048, 32 heads) on ~10B SlimPajama tokens, 8xA100; 5 synthetic list tasks; MNIST/FashionMNIST/CIFAR-10/100/TinyImageNet/anomaly; 5-shot ARC/HellaSwag/PIQA/WinoGrande",
    "purpose": "Test whether Q, K, and V need three separate projections, and whether sharing them stacks with GQA/MQA",
    "time_period": "2026-06-01 (arXiv 2606.04032 v1); last revised 2026-08-12 (v3). ICML 2026 (PMLR vol. 306). HF paper publishedAt 2026-06-04."
  },
  "enrichment": {
    "s2": {
      "venue": "arXiv.org",
      "paper_id": "dab74b0df580c364bb1cf3e7075b1b10e0ee1b7c",
      "published": "2026-06-01",
      "fetched_at": "2026-10-03T14:56:29.463Z",
      "citation_count": 3,
      "reference_count": 63,
      "influential_citation_count": 2
    },
    "arxiv": {
      "id": "2606.04032",
      "title": "Do Transformers Need Three Projections? Systematic Study of QKV Variants",
      "authors": [
        "Ali Kayyam",
        "Anusha Madan Gopal",
        "M Anthony Lewis"
      ],
      "comment": "Accepted at ICML 2026 (PMLR vol. 306). 26 pages, 12 figures, 16 tables. Code: https://github.com/Brainchip-Inc/Do-Transformers-Need-3-Projections",
      "updated": "2026-08-12",
      "abstract": "Transformers have become the standard solution for various AI tasks, with the query, key, and value (QKV) attention formulation playing a central role. However, the individual contribution of these three projections and the impact of omitting some remain poorly understood. We systematically evaluate three projection sharing constraints: a) Q-K=V (shared key-value), b) Q=K-V (shared query-key), and c) Q=K=V (single projection). The last two variants produce symmetric attention maps; to address this, we also explore asymmetric attention via 2D positional encodings. Through experiments spanning synthetic tasks, vision (MNIST, CIFAR, TinyImageNet, anomaly), and language modeling (300M and 1.2B parameter models on 10B tokens), we discovered that our transformers perform on par or occasionally better than the QKV transformer. In language modeling, Q-K=V projection sharing achieves 50% KV cache reduction with only 3.1% perplexity degradation. Crucially, projection sharing is complementary to head sharing (GQA/MQA): combining Q-K=V with GQA-4 yields 87.5% cache reduction, while Q-K=V + MQA achieves 96.9%, enabling practical on-device inference. We show that Q-K=V preserves quality because keys and values can occupy similar representational spaces and attention operates in a low-rank regime, whereas Q=K-V breaks attention directionality. Our results systematically characterize projection sharing as an underexplored instance of weight tying in attention, with direct, quantifiable inference memory benefits, particularly valuable for edge deployment. The code is publicly available at https://github.com/Brainchip-Inc/Do-Transformers-Need-3-Projections",
      "published": "2026-06-01",
      "categories": [
        "cs.LG",
        "cs.AI",
        "cs.CL",
        "cs.PF"
      ],
      "fetched_at": "2026-10-03T14:56:29.463Z"
    }
  },
  "enriched_at": "2026-10-03T14:56:30.235Z",
  "license_class": "unknown",
  "langs": [],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "515",
    "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-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/496",
  "markdown": "https://papers.projxon.ai/entries/496.md",
  "api": "https://papers.projxon.ai/api/entries/496",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "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.",
      "url": "https://x.com/techNmak/status/2103488645642793165",
      "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"
      ],
      "venue": "X / Tech with Mak",
      "source": "x",
      "license": "n/a (X post / educational graphic)",
      "published_year": 2026,
      "added_at": "2026-09-26T12:56: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/1066",
      "markdown": "https://papers.projxon.ai/entries/1066.md",
      "api": "https://papers.projxon.ai/api/entries/1066"
    },
    {
      "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": 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": 492,
      "kind": "paper",
      "title": "Still: Amortized KV Cache Compaction in a Single Forward Pass",
      "summary": "Still is a per-layer Perceiver (~50M / ~1% of Qwen3-4B at t=128) that cross-attends the full KV cache in a position-free RoPE frame and writes compact (C_k, C_v) in one forward, leaving base weights frozen. Occupies the speed–quality frontier at 8x–200x compression and 8k–128k context vs H2O/SnapKV/StreamingLLM/Attention Matching/KV-Distill. Matched-training RULER: +8–22 points vs KV-Distill in 16/18 cells. HELMET multi_lexsum recovers 74–95% of full-context gain at 8k–64k. Iterative chunked compaction at fixed ratio 1/c is possible because compaction is a forward pass; 8k-trained compactors collapse at 128k. No official code repo on the abs page. Project https://www.baseten.co/research/still-amortized-kv-cache-compaction-in-a-single-forward-pass/.",
      "url": "https://arxiv.org/abs/2606.07878",
      "authors": [
        "Charles O'Neill",
        "Alex Sandomirsky",
        "Harry Partridge",
        "Mudith Jayasekara",
        "Max Kirkby"
      ],
      "tags": [
        "still",
        "kv-cache",
        "perceiver",
        "compaction",
        "amortized-synthesis",
        "baseten",
        "ruler",
        "helmet"
      ],
      "venue": "arXiv / Baseten",
      "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": 2,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/492",
      "markdown": "https://papers.projxon.ai/entries/492.md",
      "api": "https://papers.projxon.ai/api/entries/492"
    },
    {
      "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": 631,
      "kind": "code",
      "title": "VBR: Variable Bit-Rate KV Cache for llama.cpp",
      "summary": "spiritbuun llama.cpp fork (buun-llama-cpp) ships VBR as the default KV cache. Cache starts FP16 and degrades one (layer, side) tensor at a time down a price-ordered ladder (f16 → turbo8 → turbo4 → turbo3_tcq → turbo2_tcq → turbo1_tcq) using TurboQuant/TCQ codecs, following per-model KLD degrade tables. Default implicit VBR floors at turbo4; explicit -ct vbr opens the full ladder to t1. Budget is leftover VRAM after weights/compute; -c caps context so the budget is spent on quality instead of max length. CUDA-first with ROCm/HIP mirror. Related to TurboQuant (papers_local 606/640) but this is a dynamic controller, not a new codec paper.",
      "url": "https://github.com/spiritbuun/buun-llama-cpp",
      "authors": [
        "buun"
      ],
      "tags": [
        "vbr",
        "kv-cache",
        "llama-cpp",
        "turboquant",
        "quantization",
        "inference",
        "x"
      ],
      "venue": "GitHub",
      "source": "web",
      "license": "MIT",
      "published_year": 2026,
      "added_at": "2026-08-14T19:35:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 881,
      "page": "https://papers.projxon.ai/entries/631",
      "markdown": "https://papers.projxon.ai/entries/631.md",
      "api": "https://papers.projxon.ai/api/entries/631"
    }
  ]
}
