UltraQuant: 4-bit KV Caching for Context-Heavy Agents

Chakrabarti, Inesh, Limpus, David, Rana, Aditi Ghai, Bao, Bowen, Tiwari, Spandan, Crepaldi, Thiago, Sirasao, Ashish

–arXiv.org Artificial Intelligence 

Abstractrequire long-running memory: the model must retain system instructions, tool definitions, retrieved Context-heavy agents place substantial pres-documents, codebase context, and the evolving sure on the key-value (KV) cache: long prefixes are reused across many short turns, whileplan across many turns. As model releases push concurrency determines whether the servingcontext windows toward one million tokens and besystem can keep GPUs utilized. We study 4-yond (Gemini Team, 2024; Ding et al., 2024), the bit KV-cache compression for this setting, us-KV cache grows linearly with context length and ing TurboQuant-style rotation and codebookbecomes a first-order consumer of high-bandwidth quantization (Zandieh et al., 2026) as a qual-memory (HBM). Second, we describe 2024a,b) and linear or state-space alternatives (Gu the practical design choices needed to make theand Dao, 2023; Dao and Gu, 2024; Yang et al., 4-bit path robust, including asymmetric K/V 2024c,b). Another line treats the memory hiertreatment, Walsh-Hadamard rotation (Walsh, archy as a systems problem, using cache reuse, 1923; Hadamard, 1893), QJL removal (Zandiehoffloading, and paged-memory management to et al., 2024), and block-scale variants. Third, we present serving optimizations on AMDkeep scarce HBM occupied by the most useful GPUs, including optimized decode-attentionstate (Kwon et al., 2023; Zheng et al., 2023; Zhang kernels and UltraQuant, an FP4 approxima-et al., 2024). KV quantization adopts the first approach: we preserve the standard interface whiletion path that uses FP8 queries, FP4 KV tensors, UE8M0 group scales, and native scaled-reducing memory overhead. On an adaptive-Compression leads to some challenges; a deSLO replay of production Claude Code traces, ployable 4-bit method must offer more than just UltraQuant sustains 2.71 (MiniMax-M2.5) FP8 KV caching is a strong deploylargest gains in long-context, high-concurrency, ment baseline in vLLM, giving roughly 2 commemory-constrained serving regimes.