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

DevFeed: [OSCAR: Offline Spectral Covariance-Aware Rotation for 2-bit KV Cache Quantization](<https://devfeed.tech/articles/oscar-offline-spectral-covariance-aware-rotation-for-2-bit-kv-cache-quantization-131513.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.17757>)

Author: Zhongzhu Zhou, Donglin Zhuang, Jisen Li, Ziyan Chen, Shuaiwen Leon Song, Ben Athiwaratkun, Xiaoxia Wu

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [vllm](<https://devfeed.tech/topics/vllm.md>)

Tags: [attention](<https://devfeed.tech/tags/attention.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [bf16](<https://devfeed.tech/tags/bf16.md>), [cache](<https://devfeed.tech/tags/cache.md>), [clipping](<https://devfeed.tech/tags/clipping.md>), [coding](<https://devfeed.tech/tags/coding.md>), [context](<https://devfeed.tech/tags/context.md>), [covariance](<https://devfeed.tech/tags/covariance.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-pf](<https://devfeed.tech/tags/cs-pf.md>), [decode](<https://devfeed.tech/tags/decode.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [engines](<https://devfeed.tech/tags/engines.md>), [error](<https://devfeed.tech/tags/error.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [gap](<https://devfeed.tech/tags/gap.md>), [generation](<https://devfeed.tech/tags/generation.md>), [glm](<https://devfeed.tech/tags/glm.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [offline](<https://devfeed.tech/tags/offline.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [rotation](<https://devfeed.tech/tags/rotation.md>)

## AI overview

OSCAR makes 2-bit KV-cache quantization more attention-aware by estimating covariance targets offline and using them to set fixed per-layer rotations and clipping thresholds. This contrasts with data-oblivious Hadamard rotations, which the abstract says degrade sharply at INT2. Fused Triton write and decode kernels preserve paged cache layouts and prefix caching, with integration into SGLang and vLLM. On reported reasoning and coding benchmarks, OSCAR narrows the BF16 accuracy gap on Qwen3-4B-Thinking-2507 and Qwen3-8B, and matches BF16 within run-to-run variance on Qwen3-32B and GLM-4.7; it also outperforms QuaRot-style INT2 on RULER-NIAH up to 128K tokens. The authors report nearly 8x KV-cache memory compression, up to 7.8x multi-request throughput at large batch sizes within the same memory budget, and up to 3.1x faster batch-size-1 decoding than BF16. These are abstract-reported results; the excerpt does not provide evaluation details.

## Source excerpt

arXiv:2605.17757v2 Announce Type: replace-cross 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.