Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Together AI Unveils OSCAR: A Breakthrough 2-Bit KV Cache That Slashes LLM Memory Costs

SqueezeAttention cuts KV cache memory by 99% for long-context GPU decoding at high batch sizes.

MarkTechPost 2 min read

Together AI Unveils OSCAR: A Breakthrough 2-Bit KV Cache That Slashes LLM Memory Costs

Long-context inference has long been hampered by the growing size of the KV cache, which consumes vast GPU memory during autoregressive decoding—especially at high batch sizes and context lengths of 100K tokens. Quantization offers a direct path to reduce memory pressure, but pushing KV caches to INT2 (2-bit) precision proved nearly impossible due to accuracy collapse and incompatibility with standard serving systems.

Together AI's new open-source system, OSCAR (Offline Spectral Covariance-Aware Rotation), tackles both challenges head-on. Unlike previous rotation-based quantization methods that use a fixed, data-oblivious transform (e.g., Hadamard transform), OSCAR derives its rotation from the attention mechanism's own statistics. It applies a tailored rotation to keys using query covariance and to values using score-weighted value covariance, ensuring quantization errors are pushed into low-importance directions—critical when only four representable levels are available.

The rotation comprises three components: eigenvectors from attention statistics to align with important directions, a Hadamard transform to equalize channel importance, and a bit-reversal permutation to distribute importance levels across quantization groups. Together, these techniques preserve accuracy while achieving an average of 2.28 bits per KV element.

OSCAR integrates seamlessly into SGLang's production serving stack with full paged-attention compatibility. It uses a mixed-precision layout: sink tokens (first 64) and recent tokens (last 256) remain in BF16, while history tokens are quantized to INT2 after rotation and clipping. At 128K context, only 0.24% of tokens use BF16, yielding massive memory savings.

Performance Results

On benchmarks like AIME25, GPQA-Diamond, and MATH500, OSCAR achieves accuracy within 0–4 points of BF16 baselines across models from Qwen3-4B to GLM-4.7 (358B parameters). For instance, on Qwen3-32B, OSCAR scores 74.17 vs. BF16's 74.19—a negligible gap. In contrast, naive INT2 falls to 0.0 on many tasks, while QuaRot-INT2 (Hadamard-only) scores as low as 1.4.

Throughput improves dramatically: on an H100 at 100K context and batch size 1, OSCAR delivers 2.83–3.08× speedup over BF16. At batch size 32, job-level throughput reaches 6.17× on Qwen3-4B-Thinking and 7.83× on GLM-4.7-FP8. The speedup grows with context length as decoding becomes increasingly KV-bandwidth-bound.

Long-context robustness is also strong: on the RULER-NIAH benchmark, OSCAR maintains 93.9% accuracy at 16K and 86.3% at 32K for Qwen3-8B, compared to BF16's 98.9% and 97.3%. While performance degrades at 128K (45% vs. 78.2%), it far exceeds QuaRot-INT2's 0%.

OSCAR is now open-source and available for research and production use, promising to democratize long-context LLM serving by slashing memory costs without sacrificing quality.

React