跳到正文
arXiv cs.AI· Zhongzhu Zhou, Donglin Zhuang, Jisen Li, Ziyan Chen, Shuaiwen Leon Song, Ben Athiwaratkun, Xiaoxia Wu·· 3 小时前AI 评分47

OSCAR:面向 2-bit KV cache 量化的离线谱协方差感知旋转方法

OSCAR: Offline Spectral Covariance-Aware Rotation for 2-bit KV Cache Quantization

AI 导读

研究者提出 OSCAR,一种超低比特 KV cache 量化方法,通过离线估计注意力感知的协方差目标来推导逐层固定旋转和裁剪阈值。

正文 · 原文

View PDF

Abstract:INT2 KV-cache quantization is attractive for long-context LLM serving, yet making it both accurate and practical remains challenging. Data-oblivious rotations such as Hadamard transforms flatten channel outliers, but still degrade sharply at INT2 because they ignore how downstream attention queries the cache. We propose OSCAR, an ultra-low-bit KV-cache quantization method that estimates attention-aware covariance targets offline and uses them to derive fixed per-layer rotations and clipping thresholds. By aligning the quantization basis with the second-moment structures consumed by attention, OSCAR preserves attention fidelity at 2-bit precision. Beyond theoretical analysis under a frozen-error surrogate, we build a serving-ready OSCAR system with fused Triton write and decode kernels that preserve paged KV-cache layouts and prefix caching, integrating into modern serving engines such as SGLang and vLLM.
We evaluate OSCAR on reasoning and coding benchmarks with generation traces of up to 32K tokens across five tasks. On Qwen3-4B-Thinking-2507 and Qwen3-8B, OSCAR narrows the BF16 accuracy gap to 3.78 and 1.21 points, respectively, where Hadamard-only INT2 collapses, and matches BF16 within run-to-run variance on Qwen3-32B and GLM-4.7 (358B parameters). On RULER-NIAH up to 128K tokens, OSCAR substantially outperforms QuaRot-style INT2 across context lengths. System-wise, OSCAR compresses KV-cache memory by nearly $8\times$, boosts multi-request throughput by up to $7.8\times$ at large batch sizes within the same memory budget, and accelerates batch-size-1 decoding by up to $3.1\times$ over BF16 by cutting KV memory traffic.
Comments: 46 pages, 10 figures. v2 adds matched-baseline comparisons, residual diagnostics, and expanded long-context analysis
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Distributed, Parallel, and Cluster Computing (cs.DC); Performance (cs.PF)
Cite as: arXiv:2605.17757 [cs.LG]
  (or arXiv:2605.17757v2 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2605.17757

arXiv-issued DOI via DataCite

Submission history

From: Zhou Zhongzhu [view email]
[v1] Mon, 18 May 2026 02:24:29 UTC (9,064 KB)
[v2] Tue, 10 Nov 2026 23:07:42 UTC (15,729 KB)

来源:arXiv cs.AI · arxiv.org