mlsanityData to 24 Nov 2026

Attention under Bounded Key-Query Similarity: Space Complexity and Transformer Anisotropy

arXiv 2610.35020 ↗Submitted 26 Oct 2026cs.LG cs.DScited by 0

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

A growing body of work on KV-cache compression aims to reduce the memory requirements of autoregressive generation. These methods compress the stored context while approximately preserving attention computation, enabling generation with reduced memory consumption. Almost tight theoretical results on the worst case space complexity of attention have recently been obtained, but they are achieved by instances where queries can be perfectly aligned with keys. This directly contradicts the observed anisotropy of the key/query geometry in real transformers. In particular, it has been shown empirically that key/query cosine similarities are small even for most correlated pairs, i.e., near-perfect alignment of queries with keys does not happen in practice. In this paper, we study the space complexity of attention approximation under the assumption that key/query cosine similarities belong to a small interval around zero, i.e., a query cannot align too much with any key. We give a nearly space optimal algorithm and a corresponding space lower bound. Surprisingly, the distribution of key/query cosine similarities in our lower bound exhibits the anisotropy property empirically established and studied in the literature. Additionally, we show that the simple uniform sampling algorithm is nearly optimal for a typical range of parameters, supporting its surprising effectiveness on real datasets.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 19 of its 22 references that are in the map. Submitted 26 Oct 2026.

Builds on

19 of 22 references.

Closest ancestors · 9

Same direction, newest first

  1. 2026Towards Tight Bounds for Streaming Attention5 Jun
  2. 2025Compression Barriers for Autoregressive Transformers21 Feb
  3. 2024Palu: Compressing KV-Cache with Low-Rank Projection30 Jul
  4. 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference16 Jul
  5. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
  6. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  7. 2024SubGen: Token Generation in Sublinear Time and Memory8 Feb
  8. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
  9. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May

Other references · 10

  1. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
  2. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 747
  3. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 670
  4. 2025TurboQuant: Online Vector Quantization with Near-optimal Distortion Ratecited by 150
  5. 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 102
  6. 2024Anisotropy Is Inherent to Self-Attention in Transformerscited by 69
  7. 2025Inference-time sparse attention with asymmetric indexingcited by 15
  8. 2025Streaming Attention Approximation via Discrepancy Theorycited by 14
  9. 2026Random Attention: Rethinking KV Cache Eviction for Efficient Reasoningcited by 6
  10. 2026Nearly Optimal Attention Coresetscited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Thin Keys, Full Values: Reducing KV Cache via Low-Dimensional Attention Selection
  2. 2025Homogeneous Keys, Heterogeneous Values: Exploiting Local KV Cache Asymmetry for Long-Context LLMs
  3. 2026Bridging KV-Cache Quantization and Linear Attention: From Theory to Pretrained Weight Migration
  4. 2025Q-Filters: Leveraging QK Geometry for Efficient KV Cache Compression
  5. 2025Expected Attention: KV Cache Compression by Estimating Attention from Future Queries Distribution
  6. 2026Read What Matters: Query-Adaptive Quantization for KV Caches
  7. 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attention
  8. 2026LOOKAT: Lookup-Optimized Key-Attention for Memory-Efficient Transformers