On SWE-bench Lite, agents running against a 4-bit KV cache resolve 59 of 100 tasks on MiniMax M2.5 versus 62 at BF16, and 24 of 100 on Qwen3-235B versus 28, ahead of FP8 KV’s 21. Those are the agent-task numbers from UltraQuant: 4-bit KV Caching for Context-Heavy Agents (full text), a paper from AMD and UCLA authors dated 28 August 2026, and they hold a specific pattern: task resolution lands within a few points of BF16 on both models, while retrieval is where 4 bits cost you. On the official RULER suite, MiniMax M2.5 falls from 74.03 to 67.08, a 6.95-point aggregate drop concentrated in two needle-lookup task types.
The serving results are equally specific about mechanism. On an adaptive-SLO replay of production Claude Code traces (two AMD MI355X GPUs, tensor parallel 2), the authors report UltraQuant sustaining 2.71x (MiniMax M2.5) and 4.38x (Qwen3-235B) BF16’s count of SLO-qualified requests, matching or exceeding hardware FP8 KV at half the KV bytes. The kernel-level comparison, though, is near-parity: 1.38x versus FP8’s 1.37x BF16-relative output throughput at concurrency 64. The advantage that produces those replay multipliers is cache capacity and avoided re-prefill, not per-token speed, and that is the claim to plan against.
Why do agent workloads break the old KV-cache math?
The paper’s framing is obvious to anyone running multi-turn agents but rarely the headline in quantization work: context-heavy agents stress the KV cache differently from single-shot long-context prompts. Each session keeps a long prefix resident across many short turns, and the number of agents a GPU can serve under a latency SLO depends on how much KV state fits in memory. A smaller cache budget fills first, evicts reusable prefix blocks, and forces expensive re-prefill that spikes time-to-first-token.
The paper makes this concrete with a replay protocol operators can learn from: anonymized, production-derived Claude Code sessions from the kv-cache-tester corpus, replayed by virtual users against a vLLM endpoint, with an admission controller ramping from 6 to 48 concurrent sessions gated by a rolling p95 TTFT against a 120-second target. The primary metric is TTFT-qualified goodput: completed requests whose first token lands inside the budget. That is much closer to how a production scheduler behaves than a fixed-batch throughput benchmark, and it is the regime where FP4’s capacity advantage compounds. FP8 KV ramps faster at low pressure but fills earlier; UltraQuant tracks FP8 decode speed while offering 3.2–3.4x BF16’s logical KV capacity (versus 2x for FP8), reaching 2.34x and 3.25x BF16’s prefix-hit ratio on MiniMax and Qwen respectively, against FP8’s 1.07x and 0.85x.
What is UltraQuant’s 4-bit path, exactly?
UltraQuant stores the cache as MXFP4: FP4 E2M1 codes with one UE8M0 power-of-two scale per 32-channel group, 17 bytes per group, or 4.25 bits per element, within 6% of an ideal 4-bit format. Queries are Hadamard-rotated and rounded to FP8 E4M3, so attention runs on an FP8-by-FP4 path; keys are rotated and values are not, the asymmetric K/V treatment the field has favored since KIVI and KVQuant. The group scale derives from a single global constant, c=0.156, fitted once on rotated key activations and deployed unchanged across MiniMax and Qwen with no per-model recalibration, while a per-group absmax absorbs per-token and per-head magnitude variation. The reason this works as serving code rather than a research artifact is that dequantization folds into the CDNA4 scaled-MFMA instruction itself (v_mfma_scale_f32_16x16x128_f8f6f4), so keys and values are never materialized in BF16.
The design lineage is visible: TurboQuant’s rotation and codebook ideas as the quality anchor, QJL removed, block scales added. Plain FP4 grids do carry more quantization error than fitted Lloyd-Max codebooks, an MSE gap documented in separate analysis the paper cites; the constant-optimized per-block scale closes most of it while keeping the hardware grid. The ablations are blunt about which choice matters: switching from a per-token norm to a per-block absmax is the load-bearing change, and once per-block scaling is in place, swapping the calibrated codebook for a uniform grid lands within single-seed noise.
One deployment-relevant detail sits in the evaluation setup rather than the method: every KV-compressed run uses boundary-layer protection, keeping the first and last two attention layers in BF16. The accuracy numbers below describe 4-bit-plus-boundary, not uniform 4-bit.
How big is the speedup, and over what baseline?
On the production-trace replay, cumulative SLO-qualified requests over a 600-second window, normalized to BF16:
| KV format | MiniMax M2.5 | Qwen3-235B |
|---|---|---|
| FP8 KV (hardware) | 2.18x | 2.16x |
| Ultra-TQ (codebook 4-bit) | 1.82x | 3.54x |
| UltraQuant (FP4) | 2.71x | 4.38x |
Against BF16, 4-bit KV serves roughly 2.7 to 4.4 times more agent requests under a fixed 120-second SLO. Against FP8, the gap is smaller and entirely capacity-driven: FP8 has lower compute overhead at low pressure, and the 4-bit schemes pull ahead once prefix replacement and re-prefill become expensive. At the kernel level, the paper reports UltraQuant at 1.38x BF16 output throughput versus FP8’s 1.37x at concurrency 64, median TPOT at 1.40x versus 1.37x, and within 1.18x of FP8’s kernel time at 32K context, a remaining gap the authors put near 18%. Their own summary is that end-to-end wins come from capacity and avoided re-prefill, not a universal per-token speedup.
The 3.47x figure needs its scope stated. It is a late-round P50 TTFT improvement over FP8 KV in a controlled multi-turn ablation, vLLM-synthesized Gutenberg conversations at 32 concurrent sessions on MiniMax M2.5, where FP8 degrades once accumulated context exceeds its resident cache. The production-trace replay reports no single TTFT multiplier; it reports qualified goodput. More useful for planners is the input-length sweep at fixed load: FP8 hits its resident memory wall around 40K context, with TTFT exploding to roughly 7x its short-context level while UltraQuant stays flat, about 5x faster to first token at that setting.
The limitations section states the flip side plainly: UltraQuant’s benefits over FP8 appear only when context length or concurrency exceeds the FP8 baseline’s resident cache capacity. At shorter contexts and lower concurrency the benefits are not realized, and FP8 is faster, with UltraQuant paying a 1–3% decode tax in the short-context sweep. If your sessions are short or your concurrency is low, 4-bit KV buys nothing and costs a little.
Where does accuracy actually break?
SWE-bench Lite is the only benchmark in the paper that grades a complete multi-turn agent loop, on a fixed 100-task cohort per model with prefix caching enabled:
| SWE-bench Lite, resolved of 100 | BF16 | FP8 KV | Ultra-TQ | UltraQuant |
|---|---|---|---|---|
| MiniMax M2.5 | 62 | 62 | 61 | 59 |
| Qwen3-235B | 28 | 21 | 27 | 24 |
Two things stand out. Four bits lands within a few points of BF16 on both models (95% retention on MiniMax), and on Qwen both 4-bit schemes beat the 8-bit baseline despite its larger per-token budget. The paper’s implied mechanism is that capacity effects, fewer evictions and more resident context, offset precision loss on long-context agent workloads. That is plausible, but the paper reports the effect without an ablation that isolates it.
Retrieval is where the floor shows. On Llama-3.1-8B-Instruct, UltraQuant matches BF16 on needle-in-a-haystack and on a 13-task LongBench-E average. On the official RULER suite (4K to 131K context, four tasks), Qwen3.5-35B-A3B reaches exact parity at 99.38. MiniMax M2.5 does not: 74.03 at BF16 versus 67.08 with UltraQuant, the paper’s largest single regression, concentrated in the single_2 and multikey_1 task types with a gain on multiquery. That shape matters more than the aggregate. Multi-key needle lookups are exactly the pattern an agent hits when it recalls a specific earlier tool result or file edit, so the one measured break sits uncomfortably close to the workload FP4 KV is meant to serve.
Reasoning is close to flat. Across GPQA Diamond, GSM8K, and AIME25, UltraQuant stays within 2 points of BF16 on every model-benchmark pair except Qwen3-32B GPQA Diamond, where it gains 5.58 points. And the deployed scaling constant is doing real work: in the paper’s sweep, c=0.156 beats an FP8 baseline by 4.4 points, while c=1.0 (raw absmax, no MSE-optimal shrinkage) falls 4.3 points below FP8. A one-constant distance from a worse-than-8-bit outcome is a thin margin, and it argues for keeping the calibration step if anyone re-implements the scheme.
What changes for capacity planning and per-session cache budgets?
Per-session cache budget was already the planning variable for agent serving; the paper gives it numbers. Logical KV capacity lands at 3.2–3.4x BF16 for UltraQuant versus 2x for FP8, not the 4x a naive bit-width halving suggests, because MXFP4 costs 4.25 bits per element and boundary layers stay in BF16. The roofline analysis is candid about the same effect at the kernel level: metadata and padding shift arithmetic intensity by about 1.6x rather than 2x. Plan with 3.4x, and check whether your sessions actually reach the pressure regime where that capacity converts into qualified requests.
The failure shape matters as much as its size. The RULER loss concentrates in specific task types rather than spreading uniformly, so a KV-precision regression in production will likely look like a model that suddenly misretrieves particular earlier context, not like a general quality droop. The practical guard follows: replay golden agent traces, especially ones with multi-key recall across long prefixes, and diff per turn.
The results are AMD-specific. They describe MI355X hardware and a CDNA4 instruction path; NVIDIA’s FP4 support is a different kernel story the paper does not test. The FP8 baseline is also moving. vLLM’s April 2026 validation fixed a Flash Attention 3 accumulation bug that had dropped long-context FP8 accuracy on Hopper from 91% to 13% on a needle task, and now recommends FP8 KV as the default starting point for long-context serving, with named exceptions: head-dim-256 prefill, hybrid models with small sliding-window layers, and models showing uncalibrated drops below 95%. A 4-bit scheme that merely matches FP8 on kernels has to beat it on capacity to matter, which is what the replay results show it doing under pressure.
The paper’s thesis is that task quality, cache residency, and serving throughput must be measured jointly, and its tables deliver the joint measurement: 4-bit KV exchanges a workload-specific accuracy margin, small on agent tasks and real on multi-key retrieval, for cache capacity that shows up as qualified requests under pressure. What remains open is the rest of the matrix: layer-wise scaling constants, other serving frameworks, larger clusters, and non-CDNA4 hardware are all outside the evaluation, and the accuracy tables cover a handful of models on fixed cohorts. Whether that trade is yours depends on which of those two workloads your agents actually run.
Join the discussion
Share a useful perspective or ask a question about this article.