FlagRot: Selective Rotation for Low-Bit KV Caches

Kunming Shao, Xijie Huang, Jierun Chen, Jiaqi Shao, Yanli Wang, Jiangnan Yu, Qiwei Li, Wei Zhang, Kwang-Ting Cheng, Chi Ying Tsui

arXiv 2026arXiv preprintFirst author

FlagRot overview

A Hadamard rotation can spread a large key activation across several channels, making the group easier to quantize. In a group whose activations are already evenly distributed, the same rotation can introduce a peak. Both patterns occur within a single cached key.

FlagRot compares the original and rotated versions of each 32-channel group using a calibrated estimate of attention error. With per-channel quantization, it fixes the choices during calibration. With per-token quantization, it can choose again for each key and record the decision in the scale’s sign bit. The vLLM plugin applies the corresponding rotation to the query when reading the cache.

Citation

Kunming Shao, Xijie Huang, Jierun Chen, Jiaqi Shao, Yanli Wang, Jiangnan Yu, Qiwei Li, Wei Zhang, Kwang-Ting Cheng, and Chi Ying Tsui. FlagRot: Selective Rotation for Low-Bit KV Caches. arXiv preprint arXiv:2611.03992, 2026.