Skip to content
AI.info

Research

KV4-RL: Unlocking Faster Asynchronous Rollouts for RLVR with INT4 KV Cache Quantization

KV4-RL: Unlocking Faster Asynchronous Rollouts for RLVR with INT4 KV Cache Quantization Overview Research area: Machine learning systems for reinforcement learning with verifiable rewards (RLVR) — spe

KV4-RL: Unlocking Faster Asynchronous Rollouts for RLVR with INT4 KV Cache Quantization
arXiv
2610.14448
Published
2026-10-10
Authors
Sihwan Park, Sung-Yub Kim, Doohyuk Jang, Eunho Yang

AI summary

KV4-RL: Unlocking Faster Asynchronous Rollouts for RLVR with INT4 KV Cache Quantization

Overview

Research area: Machine learning systems for reinforcement learning with verifiable rewards (RLVR) — specifically, low-precision KV cache quantization combined with asynchronous rollout scheduling for LLM reasoning training.

Technical level: Advanced. The paper assumes familiarity with GRPO/PPO-style policy optimization, importance sampling corrections (TIS), KV cache mechanics, paged attention kernels, affine quantization, and roofline-style memory/compute analysis.

Scope: The paper characterizes how asynchronous rollout scheduling concentrates KV-cache work into fewer, heavier decode steps, shows that KV cache quantization is therefore the highest-leverage acceleration target, and proposes KV4-RL — a calibration-free INT4 KV cache with bounded INT8 protection of attention sinks and recent context — validated through full-parameter GRPO training of Qwen3-4B-Base and Qwen3-8B-Base.

What This Paper Is About

RLVR training (e.g., GRPO) is dominated by rollout generation, and long-tailed response lengths leave GPUs idle unless the system admits new requests asynchronously. But sustaining that concurrency pushes far more context processing into each decode step, so the KV cache — not model weights — becomes the bottleneck. The paper's goal is to accelerate those rollouts with aggressive 4-bit KV cache quantization while preventing the numerical sampler error that 4-bit caches introduce from degrading the learned policy.

Key Contributions

  1. Identification and formalization of "KV concentration." The authors show that asynchronous continuous refill keeps all decode slots occupied, so the same total logical attention work is compressed into fewer steps. Proposition 4.1 proves the KV concentration factor is 𝒞_KV = 𝔼[M_B] / 𝔼[L] ≥ 1 (with M_B the max of B i.i.d. response lengths), strictly greater than 1 for any non-degenerate length distribution, and nondecreasing in the number of decode slots B.

  2. Matched-workload evidence that KV quantization beats weight and activation quantization. Under identical replayed decode states, KV4 gives the largest decode speedups while the evaluated W4A16 and W8A8 configurations stay close to or below BF16 speed.

  3. The first study (to the authors' knowledge) of sub-8-bit KV cache quantization for RLVR rollout. They show INT4 KV rollout degrades learning even with token-level truncated importance sampling (TIS), and diagnose it via a shared-prefix conditional KL metric.

  4. KV4-RL itself: calibration-free online INT4 quantization of keys and values with a Hadamard rotation on keys, plus a bounded INT8 side cache protecting the first s positions (attention sinks) and the most recent w positions, executed as disjoint INT4 and INT8 regions combined via regional softmax statistics so the extra storage and attention work stay bounded independently of context length.

Main Findings

  • KV concentration is large in practice. In a matched Qwen3-4B-Base trace (iteration 300, H200, DP2×TP2), asynchronous rollout maintains an 8.27× larger mean active batch and needs 8.35× fewer decode calls per collection interval, raising mean nominal resident KV volume by 7.82× and mean decode-step latency by 4.52×.

  • The concurrency gain is partly eaten by per-step cost. Despite the 4.52× latency increase, decode-service throughput is still 1.83× higher than synchronous (excluding prefill and collection work). At the late 8B checkpoint, higher per-step cost plus a fixed page budget reduce asynchronous decode-service throughput to 0.98× that of synchronous rollout.

  • KV reads dominate idealized service demand. Across early, middle, and late Qwen3-4B-Base checkpoints (iterations 100, 300, 500), KV reads are the largest idealized service demand and grow as responses lengthen, while weight traffic and GEMM work stay broadly flat.

  • KV quantization wins the matched-workload comparison. KV4 accelerates decode-forward by 1.53×, 1.71×, and 1.86× at the early, middle, and late 4B checkpoints; KV8 achieves 1.30–1.41×; W4A16 (vLLM Machete) and W8A8 (adapted CUTLASS FP8 GEMM) remain close to or below BF16 speed. On 8B, KV4 gives 1.44–1.97×.

  • INT4 KV alone damages learning. Under the same asynchronous GRPO + TIS recipe on Qwen3-8B-Base, KV8 tracks the BF16 trajectory, whereas KV4 matches early but misses BF16's later improvement and finishes 5.24 percentage points lower on MATH-500 avg@8.

  • Sink and recent protection are complementary, not interchangeable. With a fixed 144-position budget, allocating 16 positions to sinks and 128 to recent context reduces shared-prefix conditional KL by 7.0× relative to KV4 and beats giving the whole budget to either region alone.

  • The fidelity–efficiency trade-off is favorable. The default configuration (s = 16, w = 128) achieves 1.90× decode-forward speedup over BF16 and retains about 94% of KV4 throughput, while restoring late-stage learning to 87.68% MATH-500 avg@8 versus 88.16% for BF16 rollout under the same TIS correction.

  • End-to-end training results. Over 400 iterations of Qwen3-8B-Base GRPO, KV4-RL achieves 1.80× cumulative rollout speedup and 1.27× cumulative full-iteration speedup over BF16 rollout, reaching 1.97× rollout speedup over the final 50 iterations. Under a common BF16 evaluator, final six-benchmark mean accuracy is within 0.5 percentage points of BF16-rollout training for both Qwen3-4B-Base and Qwen3-8B-Base.

Methodology in Plain English

The authors first make the accounting argument that scheduling cannot change how much attention work a fixed set of responses requires — it only changes when that work happens. Keeping every decode slot full means the same total KV work lands in fewer steps, and that each occupied slot is disproportionately likely to hold a long response (an inspection-paradox length bias). They prove a clean ratio for this effect and then measure it on real rollout traces from a mid-training checkpoint, replaying decode states under each precision to compare precisions fairly.

Having established that KV traffic is the thing to shrink, they build a cache format that needs no offline calibration: every newly produced K/V vector is quantized on the fly into one affine INT4 group per 128-dimensional token-head vector, with FP16 scale and offset applied after the dot-product reduction, and keys are stored in a Hadamard-rotated basis (with queries rotated to match) so outlier coordinates get mixed before quantization. That costs 4 + 32/128 = 4.25 bits per element excluding paging, alignment, and side-cache storage. Crucially, the packed codes are consumed directly by the attention kernel rather than reconstructed to higher precision, since reconstruction would erase the traffic savings.

Because 4-bit cache noise changes which tokens the sampler picks — and those tokens become training data — they add a small INT8 side cache for the first 16 positions (attention sinks) and the most recent 128 positions, keeping the rest of the context in INT4. The two regions are attended as disjoint sets and merged with regional softmax statistics, so the extra work is capped at s + w positions per response regardless of context length. They then check whether the design actually preserves policy learning by running full-parameter GRPO with a BF16 learner and BF16 evaluation, so any difference is attributable to rollout precision alone.

Why This Matters

Impact on research. The paper reframes asynchronous rollout as a workload-shape change rather than just a scheduling trick, and provides a proof that the concentration effect is structural. It also extends KV quantization — largely studied for inference, where errors affect one user's output — into the RL setting, where errors change the training distribution itself, and shows that token-level TIS is not a sufficient fix at 4 bits.

Real-world applications:

  • Lowering the cost and wall-clock time of RL post-training for reasoning models, where rollout generation dominates the budget.
  • Increasing serving concurrency for long-context LLMs by fitting more resident context into a fixed HBM budget.
  • Making partial/asynchronous rollout practical at long context lengths, where KV capacity otherwise blocks request admission.
  • Informing precision choices in training stacks that already use FP8 weights/activations (e.g., the cited FP8-RL line of work) by showing where the marginal acceleration actually is.

Industry relevance. The reported 1.27× full-iteration and 1.80× cumulative rollout speedups translate directly into GPU-hours saved per training run, and the design is deliberately calibration-free and bounded in overhead — properties that matter for production training pipelines that cannot afford repeated offline recalibration or context-length-dependent costs.

Future Directions

  • Pushing below 4 bits. The framework of bounded high-precision protection suggests testing 3-bit or 2-bit caches with the same sink/recent scheme, and asking how the protection budget should scale.
  • Learned or adaptive protection allocation. The paper fixes s = 16 and w = 128; dynamically selecting which positions get INT8 (as some cited inference work does) is a natural extension, with the open question of whether selection cost stays bounded.
  • Interaction with more aggressive low-precision learners. KV4-RL keeps learner computation and evaluation in BF16 to isolate rollout precision; combining INT4 KV rollout with FP8 or lower-precision weight/activation training is untested here.
  • Beyond quota-based partial collection. The analysis targets colocated, quota-based partial rollout with re-prefill after each update; whether the concentration factor and the protection design transfer to fully disaggregated or concurrent rollout-learner setups is open.

Target Audience

Systems-minded ML researchers and engineers working on RL post-training infrastructure for LLMs, quantization specialists interested in KV cache compression beyond inference, and practitioners who operate large GRPO-style training runs and need to know whether 4-bit rollout caches are safe for policy learning. Readers without background in importance sampling corrections, paged attention, or quantization will find Sections 3 and 5 heavy going.

Note: the supplied paper text is truncated partway through Section 5.3, so Section 6's per-benchmark tables, the Appendix C proof details, the Appendix D.3 full fidelity/timing results, and the Appendix D.4 comparison against NVFP4 and MXFP4 are not available here and are not summarized above.

Authors’ abstract

Asynchronous rollout improves the efficiency of reinforcement learning with verifiable rewards (RLVR) by reducing under-utilization during long-tail generation. Sustained concurrency also concentrates context processing into fewer decode steps, increasing the KV workload per step. We characterize this \emph{KV concentration} and find that KV cache quantization delivers substantially greater acceleration than weight-only and weight-activation quantization in our matched-workload comparisons. However, INT4 KV rollout can degrade learning even with token-level truncated importance sampling (TIS). We propose \emph{KV4-RL}, which combines calibration-free INT4 KV quantization with selective INT8 protection of attention sinks and recent context. Protecting a bounded number of positions reduces sampler mismatch while retaining most of the speedup from INT4. Across 400 iterations of Qwen3-8B-Base GRPO training, KV4-RL achieves $1.80\times$ cumulative rollout speedup and $1.27\times$ cumulative full-iteration speedup over BF16 rollout, reaching $1.97\times$ rollout speedup over the final 50 iterations. Under a common BF16 evaluator, its final six-benchmark mean accuracy is within 0.5 percentage points of BF16-rollout training for both Qwen3-4B-Base and Qwen3-8B-Base.

Read the original paper