FlagRot: Selective Rotation for Low-Bit KV Caches
On the map: Efficient LLM inference and serving → KV cache quantization also fits: KV cache optimization
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Placed in KV cache quantization, one of 12 directions in Efficient LLM inference and serving. Builds on 37 of its 53 references that are in the map. Submitted 2 Nov 2026.
Builds on
37 of 53 references.
Closest ancestors · 12
Same direction, newest first
- 2026WUSH-KV: KV Cache Quantization with Data-Adaptive Transforms29 Sep
- 2026Output-Aware Rotation for INT2 KV-Cache Quantization3 Aug
- 2026OSCAR: Offline Spectral Covariance-Aware Rotation for 2-bit KV Cache Quantization18 May
- 2025Accurate KV Cache Quantization with Outlier Tokens Tracing16 May
- 2025RotateKV: Accurate and Robust 2-Bit KV Cache Quantization for LLMs via Outlier-Aware Adaptive Rotations25 Jan
- 2024QJL: 1-Bit Quantized JL Transform for KV Cache Quantization with Zero Overhead5 Jun
- 2024SpinQuant: LLM quantization with learned rotations26 May
- 2024ZipCache: Accurate and Efficient KV Cache Quantization with Salient Token Identification23 May
- 2024KV Cache is 1 Bit Per Channel: Efficient Large Language Model Inference with Coupled Quantization7 May
- 2024QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs30 Mar
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache5 Feb
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization31 Jan
Other references · 25
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,661
- 2021Training Verifiers to Solve Math Word Problemscited by 11,055
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2023Let's Verify Step by Stepcited by 4,259
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2016Pointer Sentinel Mixture Modelscited by 3,344
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 3,191
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 2,225
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 2,076
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,557
13 more
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,356
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,191
- 2025τ2-Bench: Evaluating Conversational Agents in a Dual-Control Environmentcited by 797
- 2023QuIP: 2-Bit Quantization of Large Language Models With Guaranteescited by 452
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 447
- 2024QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebookscited by 429
- 2024DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMscited by 182
- 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLMcited by 175
- 2025TurboQuant: Online Vector Quantization with Near-optimal Distortion Ratecited by 150
- 2024FlatQuant: Flatness Matters for LLM Quantizationcited by 148
- 2024No Token Left Behind: Reliable KV Cache Compression via Importance-Aware Mixed Precision Quantizationcited by 110
- 2025QuEST: Stable Training of LLMs with 1-Bit Weights and Activationscited by 29
- 2026KV Cache Compression Through the Lens of Transform Codingcited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026HeadQ: Model-Visible Distortion and Score-Space Correction for KV-Cache Quantization
- 2026Fractal KV-Cache Archives: Lossless Symbolic Storage with In-Place Retrieval for Long-Context LLM Inference
- 2026CORE: COverage CAlibration and Evicted-Mass REdistribution for KV Cache
- 2025Kitty: Accurate and Efficient 2-bit KV Cache Quantization with Dynamic Channel-wise Precision Boost
- 2026FibQuant: Universal Vector Quantization for Random-Access KV-Cache Compression
- 2026Runtime-Certified Bounded-Error Quantized Attention
- 2026Alignment Collapse Under KV Cache Quantization: Diagnosis and Mitigation
- 2026Read What Matters: Query-Adaptive Quantization for KV Caches