QaRL: Rollout-Aligned Quantization-Aware RL for Fast and Stable Training under Training-Inference Mismatch

Hao Gu, Hao Wang, Jiacheng Liu, Lujun Li, Qiyuan Zhu, Bei Liu, Binxing Xu, Lei Wang, Xintong Yang, Sida Lin, Sirui Han, Yike Guo

TL;DR

Quantizing the rollout phase in Large Language Model (LLM) reinforcement learning (RL) significantly accelerates training but introduces a severe "training-inference mismatch" that destabilizes optimization. The authors propose QaRL, which aligns the learner's forward pass with the quantized rollout, and Trust-Band Policy Optimization (TBPO), a sequence-level objective that neutralizes garbled "error tokens" in long generations. Together, they deliver up to a 1.3× training speedup with virtually no loss in downstream reasoning performance.

What Problem Does This Paper Address?

Reinforcement learning from verifiable rewards (RLVR) has driven massive breakthroughs in LLM reasoning (e.g., DeepSeek-R1). However, these models achieve high accuracy by generating long Chains-of-Thought (CoT), making the autoregressive decoding ("rollout") phase the dominant bottleneck—consuming roughly 70% of total RL training time.

While quantizing the rollout model (e.g., to W4A16 precision) speeds up generation, it introduces a major hurdle: training-inference mismatch. The responses are sampled from a low-precision model, but the learner updates the policy using full-precision (BF16) representations. This precision gap causes the importance sampling ratios to drift wildly, destabilizing training. Furthermore, low-bit models frequently suffer from an "error token" failure mode during long generations, where noise accumulates and causes the model to spit out repetitive, garbled text. Standard token-level PPO clipping fails to handle these extreme outliers, leading to training collapse.

Quantized rollout alone introduces a training-inference mismatch, whereas aligned QaRL matches the distributions to stabilize training.

Methods

The authors introduce a two-pronged solution to achieve fast, stable, low-bit RL training:

  1. QaRL (Rollout-Aligned Quantization-Aware RL): Instead of just using standard fake-quantization to simulate noise, QaRL precisely mirrors the arithmetic behavior of the inference engine. During the learner's forward pass, it performs on-the-fly quantization and executes low-bit GEMM operations directly. Master weights are kept in high-precision BF16, and gradients are backpropagated using a Straight-Through Estimator (STE). Updated low-bit weights are then synchronized back to the rollout engine at each step.
  2. TBPO (Trust-Band Policy Optimization): To combat error tokens, the authors shift from token-level clipping to a sequence-level objective. TBPO treats an entire response as a single action, calculating its probability as the geometric mean of its token probabilities. Crucially, it implements a negative dual clipping scheme for samples with negative advantages. If a sequence's importance ratio explodes due to low-probability error tokens, TBPO caps the ratio or drops the broken trajectory entirely, keeping updates strictly within a stable trust region.
Overview of the decoupled QaRL hybrid system, synchronizing low-bit weights between the rollout and training engines.

Datasets

  • Training: The models were trained on OpenR1-Math-46K, a dataset containing 46,000 mathematical problems designed to induce emergent reasoning behaviors.
  • Evaluation:
  • In-Distribution Math: AIME2024/2025, AMC, Math-500, OlympiadBench, and Minerva.
  • Out-of-Distribution (OOD): ARC-Challenge, GPQA-Diamond, LiveCodeBench, and MMLU Pro.
  • Base Models: Evaluated across Qwen2.5-Math-1.5B/7B, Qwen3-8B-Base, and the Qwen3-30B-A3B-Base Mixture-of-Experts (MoE) model.

Key Insights and Ideas

  • The Vulnerability of Negative Samples: The authors discovered that error tokens predominantly appear in negative trajectories (wrong answers). Because these garbled tokens have very low baseline probabilities under the old policy, minor absolute probability shifts cause their importance ratios to explode exponentially.
  • Token-Level vs. Sequence-Level Failure: Standard PPO clipping only enforces a lower bound for negative advantages. Consequently, exploded token ratios dominate the gradient magnitude and break the trust region. Because autoregressive errors cascade (one bad token corrupts all subsequent states), clipping must happen at the sequence level to prevent the model from learning from entirely derailed trajectories.
A mid-response error propagates to future tokens, creating a cascade that token-level clipping cannot properly isolate.

Key Results

  • Performance Recovery: On the challenging Qwen3-30B-A3B MoE model, naive quantized rollout training caused the average math score to plummet to 45.7%. QaRL TBPO successfully stabilized optimization, achieving a score of 51.2%, nearly matching the full-precision BF16 baseline of 52.1%.
  • Wall-Clock Speedups: By offloading the heavy rollout phase to W4A16 precision, QaRL achieved a 1.3× end-to-end training speedup over standard BF16 training, even when accounting for the minor overhead of on-the-fly quantization on the learner side.
  • Quantization Invariance: Ablation studies showed that once stabilized by TBPO, the RL convergence was highly robust across multiple low-bit formats, yielding virtually identical final rewards whether using FP8W8A8, W4A16, or W4A8.

Limitations and Future Work

While highly effective, sequence-level optimization introduces a minor computational bottleneck due to the need to compute geometric means across entire sequences, which can lower overall sample utilization.

For future work, the authors aim to explore fully quantized RL training (incorporating low-bit backward passes to reduce memory further) and intend to develop token-level approximations that can replicate TBPO's stability without the sequence-level coordination overhead.

Summary updated

BibTeX
@inproceedings{gu2026qarl,
  author = {Hao Gu and Hao Wang and Jiacheng Liu and Lujun Li and Qiyuan Zhu and Bei Liu and Binxing Xu and Lei Wang and Xintong Yang and Sida Lin and Sirui Han and Yike Guo},
  title = {{QaRL: Rollout-Aligned Quantization-Aware RL for Fast and Stable Training under Training-Inference Mismatch}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.841},
}
Figure