arXiv:2610.09346cs.CLOct 2026

Manuscript Offprint

arXiv:2610.09346

OnlineQAT: On-Policy Distillation for Ultra-Low-Bit Large Language Models

Wenjun Wang, Heng Li, Yanggan Gu, Hongxia Yang

ABSTRACT

Quantization-aware training (QAT) can recover much of the accuracy lost when large language models are compressed below four bits. Existing recovery stages, however, are commonly optimized on fixed completions or teacher-generated answers, whereas the deployed quantized model conditions on prefixes generated by itself. Quantization errors can therefore move the model into states that are absent from offline recovery data. We introduce ONLINEQAT, a two-stage framework that first obtains a usable low-bit initialization through block-wise QAT and then performs on-policy distillation (OPD) on student-generated responses. At each visited prefix, a frozen full-precision teacher provides a sampled reverse-KL training signal. On Qwen3-1.7B, ONLINEQAT obtains the best average among the compared quantized methods: 57.28 at W3A16 and 32.52 at W2A16, improving over ReasoningQAT by 2.90 and 0.44 points, respectively. The results suggest that student-visited states provide a useful recovery signal beyond fixed-completion training, particularly at three bits.

1 INTRODUCTION

Weight-only quantization reduces the memory footprint and bandwidth cost of large language models (LLMs), but two- and three-bit weights still incur a substantial accuracy loss. For reasoning models, a small perturbation to an early token can also change the states encountered throughout the remaining generation. Recovering useful behavior at such low precision therefore remains an open problem.

BitDistiller, EfficientQAT, and ReasoningQAT recover low-bit models through QAT and distillation (Du et al., 2024; Chen et al., 2025; Okoshi et al., 2026). We use ReasoningQAT as our strongest offline baseline. Its recovery stage evaluates the student and teacher on gold completions and therefore visits reference prefixes. At inference time, however, the quantized model conditions on its own previous tokens. Once quantization changes an early decision, later prefixes can leave the distribution covered by the fixed-completion objective. Figure 1 illustrates this distinction: offline recovery and deployment use different prefix distributions, whereas OPD trains on the prefixes visited by the deployed student.

STAGE 1

Low-bit initialization

BF16 teacher πT\pi_{T}

block-wise QAT

W2/W3 student πθq\pi_{\theta}^{q}

MSE reconstruction

mixed-domain calibration

STAGE 2 Behavioral recovery

OFFLINE fixed-completion trajectory

x→y1∗→y2∗→⋯→htref∼dref→teacher πT→offline lossx \rightarrow y_{1}^{*} \rightarrow y_{2}^{*} \rightarrow \cdots \rightarrow h_{t}^{\text{ref}} \sim d_{\text{ref}} \rightarrow \text{teacher } \pi_{T} \rightarrow \text{offline loss}

ONLINEQAT student-generated trajectory

x→y1→y2→⋯→htq∼dπθq→frozen πT→sampled RKLx \rightarrow y_{1} \rightarrow y_{2} \rightarrow \cdots \rightarrow h_{t}^{q} \sim d_{\pi_{\theta}^{q}} \rightarrow \text{frozen } \pi_{T} \rightarrow \text{sampled RKL}

update quantized student

DEPLOYMENT

Autoregressive rollout

x→y1→y2→⋯x \rightarrow y_{1} \rightarrow y_{2} \rightarrow \cdots

htq∼ddeployh_{t}^{q} \sim d_{\text{deploy}}

dref≠ddeployd_{\text{ref}} \neq d_{\text{deploy}}

dπθq=ddeployd_{\pi_{\theta}^{q}} = d_{\text{deploy}}

Figure 1: Stage 1 produces a W2/W3 student. In Stage 2, offline recovery queries the teacher on fixed-completion prefixes, while deployment follows student-generated prefixes. OnlineQAT queries the frozen teacher on the student trajectory and applies sampled reverse KL, aligning the training and deployment states.

To address this mismatch, we propose ONLINEQAT, a two-stage recovery framework. Stage 1 performs block-wise QAT on mixed-domain calibration data, producing a student that can generate meaningful trajectories. Stage 2 samples responses from this student and uses a frozen full-precision teacher to provide a sampled reverse-KL signal at the visited prefixes. On Qwen3-1.7B, ONLINEQAT improves the six-task average over ReasoningQAT by 2.90 points at W3A16 and 0.44 points at W2A16, giving the best average among the compared methods in both settings. The W3A16 gain is broad, whereas the smaller W2A16 gain remains task-dependent.