Metraipolis › archive › dc_62a9b887339d

FlagRot: Selective Rotation for Low-Bit KV Caches — arXiv:2611.03992

Source
arXiv (en)
Original
https://arxiv.org/abs/2611.03992
License (as archived)
CC0-1.0
Archived
2026-11-04T21:39:44.831Z
SHA-256 of the archived text
25681de69daf51dfe46259d66b79ee334352e2c4459699da2059c0501a3cad9b
Stable URL of this page
https://metraipolis.com/documento/dc_62a9b887339d

How to cite

FlagRot: Selective Rotation for Low-Bit KV Caches — arXiv:2611.03992 — arXiv (en), https://arxiv.org/abs/2611.03992 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_62a9b887339d (Metraipolis archive dc_62a9b887339d, sha256 25681de69daf51dfe46259d66b79ee334352e2c4459699da2059c0501a3cad9b)
BibTeX
@misc{dc62a9b887339d,
  title = {FlagRot: Selective Rotation for Low-Bit KV Caches — arXiv:2611.03992},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2611.03992},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_62a9b887339d; sha256 25681de69daf51dfe46259d66b79ee334352e2c4459699da2059c0501a3cad9b},
  year = {2026}
}

Archived text

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

Long-context inference is bound by the KV cache, which 2-bit codes could shrink about sixfold if their error stays in check. The usual remedy rotates keys before quantizing, assuming rotation always helps. However, we observe that it does not: rotation flattens a spiky piece of a key but can give a flat one a new peak, and both coexist within one key. We therefore propose FlagRot, which stores each 32-channel piece rotated or as is, whichever has the smaller calibrated attention error, and rotates the query instead when reading. We further show that how often to decide follows the quantization axis: per-channel caches such as KIVI need one decision per head, at no write cost, while per-token caches decide per key, with the choice stored in existing sign bits. At 2.5 bits per value, FlagRot lowers the twelve-model KL divergence of KIVI from 18.7 to 12.4 x 10^-3, below RotateKV on 9 of 12 models. Served as a vLLM plugin, it raises RULER at 128k tokens by +2.9 points and the LongBench v1 mean by +0.4 to +1.9 points on the three of four models where 2-bit KIVI loses accuracy. It also lowers the error of 4-bit integer and FP4 caches.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Computation and Language (cs.CL) ; Artificial Intelligence (cs.AI); Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2611.03992 — 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-11-04T21:35:49.633Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).