Live
Black Hat USADark ReadingBlack Hat AsiaAI BusinessMassachusetts Sen. Ed Markey is putting AV firms on blast for using human staffersFast Company TechIntel to Report First-Quarter 2026 Financial Resultsnewsroom.intel.comMeta’s Court Losses Put AI Governance Under New Pressure - The National CIO ReviewGNews AI MetaCompanies bet on agentic SOC as AI reshapes security - SiliconANGLEGNews AI IBMStop Searching, Start Contributing: How GoodFirstGo is Making Open Source ApproachableDEV CommunityBest-Selling AI SEO Book “AI SEO 2026” Now Available for Business Owners and Personal Brands Seeking to Be Found by AI Search - StreetInsiderGNews AI searchMicrosoft closes worst quarter on Wall Street since 2008 on AI concerns: 'Redmond is in a pickle' - CNBCGNews AI CopilotCalifornia Tightens AI Contract Rules as Fight With Trump Admin Grows - YahooGNews AI regulationCalifornia Tightens AI Contract Rules as Fight With Trump Admin GrowsDecrypt AIBuilding a LEGO-like remote Agent - Jean2DEV CommunityStudents Renting Smart Glasses to Cheat on TestsFuturism AIWhat's next after bitcoin's historic underperformance stretch against stocksCoinDesk AIBlack Hat USADark ReadingBlack Hat AsiaAI BusinessMassachusetts Sen. Ed Markey is putting AV firms on blast for using human staffersFast Company TechIntel to Report First-Quarter 2026 Financial Resultsnewsroom.intel.comMeta’s Court Losses Put AI Governance Under New Pressure - The National CIO ReviewGNews AI MetaCompanies bet on agentic SOC as AI reshapes security - SiliconANGLEGNews AI IBMStop Searching, Start Contributing: How GoodFirstGo is Making Open Source ApproachableDEV CommunityBest-Selling AI SEO Book “AI SEO 2026” Now Available for Business Owners and Personal Brands Seeking to Be Found by AI Search - StreetInsiderGNews AI searchMicrosoft closes worst quarter on Wall Street since 2008 on AI concerns: 'Redmond is in a pickle' - CNBCGNews AI CopilotCalifornia Tightens AI Contract Rules as Fight With Trump Admin Grows - YahooGNews AI regulationCalifornia Tightens AI Contract Rules as Fight With Trump Admin GrowsDecrypt AIBuilding a LEGO-like remote Agent - Jean2DEV CommunityStudents Renting Smart Glasses to Cheat on TestsFuturism AIWhat's next after bitcoin's historic underperformance stretch against stocksCoinDesk AI

Thin Keys, Full Values: Reducing KV Cache via Low-Dimensional Attention Selection

arXivMarch 31, 202610 min read0 views
Source Quiz

arXiv:2603.04427v4 Announce Type: replace-cross Abstract: Standard Transformer attention uses identical dimensionality for queries, keys, and values, yet these components serve different roles: queries and keys produce scalar attention weights (selection), while values carry rich representations (value transfer). We show that selection requires only $O(\log N)$ dimensions to distinguish among $N$ relevant token categories (e.g., syntactic roles, semantic clusters, positional patterns) -- far fewer than value transfer needs. We introduce factored keys, which exploit this asymmetry to physically — Hengshuai Yao, Xing Chen, Ahmed Murtadha, Guan Wang

View PDF HTML (experimental)

Abstract:Standard Transformer attention uses identical dimensionality for queries, keys, and values, yet these components serve different roles: queries and keys produce scalar attention weights (selection), while values carry rich representations (value transfer). We show that selection requires only $O(\log N)$ dimensions to distinguish among $N$ relevant token categories (e.g., syntactic roles, semantic clusters, positional patterns) -- far fewer than value transfer needs. We introduce factored keys, which exploit this asymmetry to physically shrink the KV cache of any pretrained model without retraining from scratch -- unlike Grouped-Query Attention (GQA) and Multi-Head Latent Attention (MLA), which must be designed into the architecture before pretraining. We factorize each key projection $W_K \approx A_{d \times r} B_{r \times d}$ via truncated singular value decomposition (SVD) (where $r$ is the chosen compression dimension), set $W_K' = A$ as the new key projection producing compact $r$-dimensional keys for the cache, and absorb $B^\top$ into the query projection ($W_Q' = W_Q B^\top$) at zero cost -- since queries are never cached. At the 7B scale, training from scratch with $r = d/4$ (where $d$ is the model dimension) matches full-attention perplexity ($9.24$ vs $9.25$ PPL after 20B tokens, mean over two seeds) while using 12% fewer parameters and training 8% faster. For existing models, SVD followed by QK fine-tuning (3 epochs, less than 1% of pretraining data) achieves 75% key cache savings at roughly 2% quality cost on both GPT-2 and Mistral-7B. The approach composes with GQA and quantization for up to $16\times$ combined key cache compression. For a 7B model serving a 128K context, factored keys save 25 GB of KV cache per user, enabling roughly 60% more concurrent users on identical hardware.

Subjects:

Machine Learning (cs.LG); Artificial Intelligence (cs.AI)

Cite as: arXiv:2603.04427 [cs.LG]

(or arXiv:2603.04427v4 [cs.LG] for this version)

https://doi.org/10.48550/arXiv.2603.04427

arXiv-issued DOI via DataCite

Submission history

From: Yao Hengshuai [view email] [v1] Mon, 16 Feb 2026 23:45:39 UTC (16 KB) [v2] Tue, 17 Mar 2026 17:54:04 UTC (39 KB) [v3] Wed, 18 Mar 2026 15:05:32 UTC (39 KB) [v4] Sat, 28 Mar 2026 06:06:40 UTC (40 KB)

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by AI News Hub · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

Knowledge Map

Knowledge Map
TopicsEntitiesSource
Thin Keys, …researchpaperarxivaiartificial-…arXiv

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 73 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!