Metraipolis › archive › dc_3e13b3f908eb
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-04T18:36:16.848Z
- SHA-256 of the archived text
175e0e4af6d3806fddbe5a677c5068587ef4daba0956c16a35c8b1c8a3908355- Stable URL of this page
https://metraipolis.com/documento/dc_3e13b3f908eb
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_3e13b3f908eb (Metraipolis archive dc_3e13b3f908eb, sha256 175e0e4af6d3806fddbe5a677c5068587ef4daba0956c16a35c8b1c8a3908355)
BibTeX
@misc{dc3e13b3f908eb,
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_3e13b3f908eb; sha256 175e0e4af6d3806fddbe5a677c5068587ef4daba0956c16a35c8b1c8a3908355},
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-04T18:32:37.402Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).