cs.LGFeb 16, 2026

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

Authors: Hengshuai Yao, Xing Chen, Ahmed Murtadha, Guan Wang

Organizations: Sapient Intelligence · Department of Computing Science, University of Alberta

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)O(\log N) dimensions to distinguish among NN 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 WK≈Ad×rBr×dW_K \approx A_{d \times r} B_{r \times d} via truncated singular value decomposition (SVD) (where rr is the chosen compression dimension), set WK′=AW_K' = A as the new key projection producing compact rr-dimensional keys for the cache, and absorb B⊤B^\top into the query projection (WQ′=WQB⊤W_Q' = W_Q B^\top) at zero cost -- since queries are never cached. At the 7B scale, training from scratch with r=d/4r = d/4 (where dd is the model dimension) matches full-attention perplexity (9.249.24 vs 9.259.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×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.

Figures & tables

Explore similar work

CardsList
  1. Keyless Attention: Value-Space Routing and Value-Only Caching for Efficient Transformers

    Jun 20, 2026Xin GaoTransformer InferenceKV Caching

  2. AttSVD:Prompt-Adaptive Low-Rank KV Cache Compression via Attention-Guided SVD

    Oct 3, 2026Sara Abdali, Jongwoo Ko, Pashmina CameronKV-Cache CompressionLow-Rank Compression

  3. A JoLT for the KV cache: Near-Lossless KV Cache Compression via Joint Rank-bit Allocation

    Jul 14, 2026Rahul Krishnan, Volker SchulzKV CachingLow-Rank Matrix Decomposition