The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

A simple SVD-based factorization of Transformer keys cuts KV cache size by up to 75% with only ~2% perplexity cost and, at 7B scale, saves ~25 GB per user for 128K contexts—enabling roughly 60% more concurrent users; training-from-scratch at r=d/4 matches full-attention perplexity while reducing parameters and speeding training.

Thin Keys, Full Values: Reducing KV Cache via Low-Dimensional Attention Selection
Hengshuai Yao, Xing Chen, Ahmed Murtadha, Guan Wang · February 16, 2026
arxiv descriptive medium evidence 8/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Hengshuai Yao unresolved corpus identity
  2. Xing Chen unresolved corpus identity
  3. Ahmed Murtadha unresolved corpus identity
  4. Guan Wang unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Hengshuai Yao provider ID
  2. Xing Chen provider ID
  3. Ahmed Murtadha provider ID
  4. Guanghui Wang provider ID
Factored keys (truncated-SVD compression of key projections with query-side absorption) greatly reduce KV-cache size for LLMs with minimal quality loss and modest training/fine-tuning cost, enabling substantial inference concurrency and serving-cost savings for 7B models.

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

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.

Summary

Main Finding

Factored keys — reducing key/query dimensionality for selection (dselect) while keeping value dimensionality full — lets practitioners shrink the KV cache of pretrained transformers with minimal quality loss. A simple truncated-SVD on each key projection (WK ≈ A·B) yields “thin” cached keys (A) and absorbs B⊤ into the ephemeral query projection (WQ B⊤), preserving attention scores exactly. Optional lightweight QK fine-tuning (3 epochs on <1% pretraining data) recovers most quality. Result: large reductions in per-user memory for long-context inference, measurable decode throughput gains, modest parameter and training-time savings for from‑scratch models, and straightforward composition with GQA/MLA and quantization for greater compression.

Key Points

  • Conceptual split: attention does selection (Q·K⊤ → scalar weights) and value transfer (weights·V). Selection needs far fewer dimensions (O(log N)) than value transfer.
  • Factored keys method:
    • Compute truncated SVD of pretrained WK: WK ≈ A (d×r) · B (r×d).
    • Use W′K = A as r-dimensional cached keys; set W′Q = WQ B⊤ so queries are r-dimensional at runtime.
    • No change to values, attention computation, or inference kernels.
    • One-time offline SVD per layer; no retraining required. Optional small QK fine-tune improves results.
  • Compression asymmetry: keys are far more compressible than queries. K-only SVD degrades quality much less than Q-only.
  • Empirical results (highlights):
    • GPT-2 (post-hoc SVD): K-only rank 384 (dmodel/2) → +2% PPL; rank 192 (dmodel/4) with 3-epoch QK fine-tune → +1.8% residual gap while saving 75% of key cache.
    • Mistral-7B: SVD + QK fine-tune at rank 256 (75% K cache saved) → residual ≈ +2% vs control; some math/reasoning tasks are more sensitive but recover with domain fine-tuning.
    • LLaMA-7B trained from scratch with dselect = dmodel/4: matches full-attention perplexity after 20B tokens while using 12% fewer parameters and training ~8% faster.
  • Deployment/throughput:
    • For a 7B model at 128K context, factored keys (dselect=dmodel/4) save ~25.2 GB per user (37.5% total KV reduction). SVD-only (dselect=dmodel/2) saves ~16.8 GB (25%).
    • Measured decode throughput gains for Mistral-7B (context 4096): up to 1.44× speedup (batch size 32, r=256). Gains grow with batch size since inference is bandwidth-bound.
  • Composition: factored keys compose with GQA and MLA; e.g., GQA-8 + thin keys → ~84.4% KV savings. Combined with quantization, authors report up to ~16× combined key compression potential.
  • Limitations noted: reasoning-heavy math tasks (GSM8K) can be sensitive; domain-matched fine-tuning mitigates this.

Data & Methods

  • Theoretical basis: Johnson–Lindenstrauss lemma to argue selection (ranking) needs O(log N) dims; independent lower bounds (Haris & Onak 2025) show Ω(log n) per-token is necessary.
  • Core method: truncated SVD of each layer’s WK to rank r ≡ dselect; set W′K = UrΣr and W′Q = WQ Vr, so q′·k′⊤ = original q·k⊤ exactly.
  • No change to V projections, FFNs, output heads, or attention computation.
  • Experiments:
    • Small-scale controlled algorithmic/positional experiments supporting 1 dimension per head for positional selection and log2 N scaling for content selection.
    • Post-hoc compression: GPT-2 (124M), SVD-only and SVD+QK fine-tuning on WikiText-103 (3 epochs).
    • Large-scale training: LLaMA-7B variants trained from scratch (2B and 20B tokens) comparing full attention vs thin keys (dselect = dmodel/4).
    • Post-hoc at 7B scale: Mistral-7B SVD + QK fine-tuning (r = 512, 256, 128) evaluated on validation PPL and downstream tasks (Hellaswag, ARC-Challenge, WinoGrande, MMLU, GSM8K).
    • Decode throughput measured on H100 SXM; bandwidth roofline model used to predict speedups.
  • Metrics: perplexity (PPL), downstream task accuracy/EM, decode tokens/sec, KV cache size (GB).
  • Fine-tuning footprint: reported QK fine-tuning uses ~3 epochs, ~10M tokens (<1% of pretraining corpora in presented cases).

Implications for AI Economics

  • Lower marginal cost of long-context inference:
    • Per-user KV cache reductions (e.g., ~25 GB saved per user for 7B at 128K) reduce memory footprint per active session, directly lowering required GPU memory resources and enabling higher concurrency on the same hardware.
    • Authors report enabling ~60% more concurrent users on identical hardware in representative config; this maps to proportional reductions in per-request infrastructure cost.
  • Capital and operational expenditure (CapEx and OpEx) impact:
    • Fewer or smaller GPUs required for a given user load and context length reduces CapEx (hardware purchases) and OpEx (power, cooling).
    • Smaller model-weight footprint (thinner WQ/WK) and reduced KV transfer during decode lower memory bandwidth demand and energy per token, cutting runtime energy costs and potentially instance-hour billing.
  • Faster time-to-result and throughput improvements:
    • Measured 1.1–1.44× throughput improvements (depending on batch) accelerate aggregate throughput, enabling better utilization and higher revenue per GPU-hour.
    • For latency-sensitive services, improved throughput at large batch sizes (e.g., multi-user batched serving) allows more efficient multiplexing.
  • Reduced switching and deployment friction:
    • Zero-cost SVD (no retrain) offers a low-friction retrofit to existing, large pretrained models—firms can extend context length support and cut serving costs without costly pretraining re-runs.
    • This lowers barriers for incumbents to adopt long-context capabilities, reducing incentives to retrain or switch architectures solely for cache savings.
  • Product and market implications:
    • Cheaper long-context inference enables new product features (multi-document synthesis, long personalized assistants) at lower unit costs, potentially increasing demand.
    • Lower marginal cost per session can shift pricing models—providers may offer longer-context tiers at competitive prices or adjust metering (e.g., cost per token vs cost per context).
    • Small providers or on-prem deployments may be more viable as memory requirements fall, increasing competition and reducing concentration.
  • Composability multiplies value:
    • Combining factored keys with GQA/MLA and quantization multiplies KV reductions, so integrators can tune trade-offs across latency, quality, and cost. This flexibility has strategic value when optimizing SLAs and pricing.
  • Risks, caveats, and follow-ups:
    • Quality-sensitive workloads (multi-step reasoning/math) can require domain fine-tuning; some business-critical tasks may need validation before compressing deployed models.
    • Economic gains depend on workload characteristics: user concurrency, context lengths, batching behavior, and GPU pricing. Savings are largest when KV cache dominates bandwidth (long contexts, large batches).
    • One-time operational cost: performing per-layer SVDs and optional fine-tuning is cheap relative to full retrain but involves engineering validation and CI to ensure no regressions.
    • Competitive dynamics: since this is a low-friction retrofit, widespread adoption could compress margins in the inference market as providers pass savings to customers or engage in price competition.
  • Policy and societal considerations:
    • Lower inference costs and better resource efficiency reduce environmental footprint per token, aligning with sustainability goals.
    • Easier access to long-context LLMs could accelerate adoption in sensitive domains (health, law); firms must ensure robustness and monitor downstream harms.

Overall, factored keys present a practical, low-cost lever to reduce memory- and bandwidth-related inference costs for long-context transformers, with measurable throughput and concurrency benefits and modest quality trade-offs that are often recoverable with lightweight fine-tuning. For AI economics, the method lowers marginal serving costs, reduces friction to adopt long-context features, and enables new product and pricing configurations while increasing competitive pressure in the inference services market.

Assessment

Paper Typedescriptive Evidence Strengthmedium — The paper presents controlled empirical results (training-from-scratch and fine-tuning) demonstrating large KV-cache compression with small quality loss on 7B-scale models and on two existing model families (GPT-2, Mistral-7B). Results are replicated over seeds and report concrete metrics (perplexity, parameter/training savings, cache bytes). However, evidence is limited to a narrow range of model sizes/architectures, tasks (LM perplexity), and short fine-tuning budgets, so claims about broader performance, downstream task behavior, and production robustness are not yet fully established. Methods Rigorhigh — The approach uses principled linear-algebraic compression (truncated SVD), controlled ablations (different r values, composition with GQA/quantization), training-from-scratch comparisons with matched token budgets and seeds, and small but pragmatic fine-tuning experiments; metrics reported are standard (perplexity, parameter counts, KV cache bytes, concurrency estimates). Weaknesses include limited model diversity, few downstream/evaluation axes beyond PPL, and brief fine-tuning regimes. SampleExperiments on 7B-scale transformer models: (a) training-from-scratch 7B models for 20B tokens (reported mean over two seeds) comparing full attention vs. factored keys at r=d/4; (b) applying SVD + QK fine-tuning (3 epochs, <1% of pretraining data) to existing GPT-2 and Mistral-7B models; evaluation primarily via language-model perplexity and KV-cache size/bytes for 128K context lengths. Datasets for pretraining/finetuning are not fully specified in the provided summary. Themesadoption productivity GeneralizabilityTested primarily at 7B scale; effects on much larger (e.g., 70B–175B) or smaller models are unproven, Evaluations focus on LM perplexity; downstream task performance, instruction-following, safety/behavioral changes not assessed, Only two existing model families reported (GPT-2, Mistral-7B); other architectures (decoder-only variants, encoder-decoder, multimodal) may behave differently, Fine-tuning used a small fraction of data and short regimes; results may vary with different datasets, domains, or longer fine-tuning, Reported hardware/concurrency gains depend on specific KV cache implementations and deployment stacks, so real-world savings may differ

Claims (10)

ClaimDirectionOutcomeConfidence & EvidenceDetails
Selection (queries & keys) 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. Other positive dimensionality required for selection
Reading fidelity high
Study strength medium
O(log N) dimensions
0.18
Factored keys let you physically shrink the KV cache of any pretrained model without retraining from scratch (unlike Grouped-Query Attention and Multi-Head Latent Attention, which must be designed into the architecture before pretraining). Adoption Rate positive ability to shrink KV cache without retraining
Reading fidelity high
Study strength medium
not reported
0.18
At the 7B scale, training from scratch with r = d/4 matches full-attention perplexity (9.24 vs 9.25 PPL after 20B tokens, mean over two seeds). Output Quality null_result perplexity
Reading fidelity high
Study strength medium
n=2
9.24 vs 9.25 PPL
0.18
At the 7B scale, the r = d/4 configuration uses 12% fewer parameters. Other positive parameter count
Reading fidelity high
Study strength medium
n=2
12% fewer parameters
0.18
At the 7B scale, the r = d/4 configuration trains 8% faster. Organizational Efficiency positive training time
Reading fidelity high
Study strength medium
n=2
training 8% faster
0.18
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. Other mixed key cache size and model quality (unspecified quality metric)
Reading fidelity high
Study strength medium
n=2
75% key cache savings; roughly 2% quality cost
0.18
Factored keys compose with Grouped-Query Attention (GQA) and quantization for up to 16× combined key cache compression. Other positive combined key cache compression ratio
Reading fidelity medium
Study strength low
up to 16× combined key cache compression
0.05
For a 7B model serving a 128K context, factored keys save 25 GB of KV cache per user. Adoption Rate positive KV cache memory saved per user (GB)
Reading fidelity high
Study strength low
save 25 GB of KV cache per user
0.09
Those 25 GB KV cache savings enable roughly 60% more concurrent users on identical hardware for the 7B/128K context scenario. Adoption Rate positive concurrent user capacity
Reading fidelity high
Study strength low
roughly 60% more concurrent users
0.09
You can factorize each key projection W_K ≈ A_{d×r} B_{r×d} via truncated SVD, set W_K' = A to produce compact r-dimensional keys for the cache, and absorb B^T into the query projection (W_Q' = W_Q B^T) at zero cost since queries are not cached. Other positive ability to compress key projection and absorb factor into query projection without cache cost
Reading fidelity high
Study strength medium
not reported
0.18

Notes