Metraipolis › archive › dc_e5934cb473ad

Tensor Decomposition of Transformer Key-Value Caches: Spectral Structure and Format Comparison — arXiv:2609.28029

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.28029
License (as archived)
CC0-1.0
Archived
2026-10-08T10:05:41.945Z
SHA-256 of the archived text
c1a55a9031ef27efc717ccf194ba4b9333c4c6032d97eeb5ba3aeb2c3820ce13
Stable URL of this page
https://metraipolis.com/documento/dc_e5934cb473ad

How to cite

Tensor Decomposition of Transformer Key-Value Caches: Spectral Structure and Format Comparison — arXiv:2609.28029 — arXiv (en), https://arxiv.org/abs/2609.28029 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_e5934cb473ad (Metraipolis archive dc_e5934cb473ad, sha256 c1a55a9031ef27efc717ccf194ba4b9333c4c6032d97eeb5ba3aeb2c3820ce13)
BibTeX
@misc{dce5934cb473ad,
  title = {Tensor Decomposition of Transformer Key-Value Caches: Spectral Structure and Format Comparison — arXiv:2609.28029},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.28029},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_e5934cb473ad; sha256 c1a55a9031ef27efc717ccf194ba4b9333c4c6032d97eeb5ba3aeb2c3820ce13},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.28029. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

The key-value (KV) cache of autoregressive transformers can be viewed as a fourth-order tensor spanning attention heads, tokens, features, and grouped layers. We measure the singular-value spectra of all four mode unfoldings on Mistral-7B-v0.3 and LLaMA-2-13B and compare four standard tensor decompositions: Tucker, CP, tensor train, and t-SVD, at matched storage. The spectra partition the four axes into two classes. The token and feature modes carry low-rank structure, particularly for keys. The head and layer modes are nearly full-rank and resist compression at any practical error level. Among the four decompositions, Tucker achieves the lowest reconstruction error at every compression ratio from $2\times$ to $5\times$, because it can leave the full-rank modes untouched. Comparisons with two-dimensional unfolding baselines show that the preferred representation differs between keys and values: 2D methods achieve lower key error, while four-way Tucker achieves lower value error at matched storage. A mode-pinning theorem certifies the full-rank preservation from the measured spectra alone. Two further spectral properties affect the compressible modes without touching the full-rank ones: values reach a higher error floor than keys at every ratio, and post-RoPE keys lose $41\%$ - $64\%$ of their pre-RoPE compressibility on both models.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-24 in cs.CL).
Categorie arXiv: Numerical Analysis (math.NA) ; Computation and Language (cs.CL); Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2609.28029 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T09:11:49.693Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-24?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).