Manuscript Offprint

arXiv:2610.09183

Q-PACE: Dynamic Precision Allocation for Quantization-Aware Training

Alexandra Volkova, Matin Ansaripour, Erik Schultheis, Christoph H. Lampert, Dan Alistarh

ABSTRACT

Quantization-aware training (QAT) leverages lower-precision arithmetic to reduce the cost of LLM deployment, but aggressive quantization degrades final model performance. A common remedy is mixed-precision training, in which high precision is assigned to some of the layers to maintain performance while keeping the cost constrained. This approach then requires precision assignments for model layers during training. We provide a new approach, called Q-PACE, consisting of a second-order sensitivity model that predicts the loss increase as a sum of quantization noise MSE weighted by per-layer curvature coefficients. During training, we periodically re-compute these coefficients using perturbations across layers, and re-assign precision. Pretraining and supervised fine-tuning experiments on LLMs of up to 4B parameters show that Q-PACE consistently improves over existing mixed-precision training recipes, and achieves comparable loss at substantially lower total memory budgets. We further find that quantization sensitivity is highly predictable by depth and layer type, and its stability during training allows for infrequent, cheap recalibration.

1 INTRODUCTION

Quantization-aware training (QAT) methods (Courbariaux et al., 2016; Jacob et al., 2018) use low-precision arithmetic to lower the cost of both deploying LLMs, as they result in lower-bitwidth accurate models, and training them, as the matrix multiplications during training can be mapped to lower precision. Recent recipes make end-to-end NVFP4 and MXFP4 pretraining viable by leveraging techniques such as block (micro) scaling, stochastic rounding, rotations, and unbiased gradient estimators (Castro et al., 2026; Chen et al., 2026b; NVIDIA et al., 2026). However, there is still a clear loss gap between lower-precision approaches and BF16 and MXFP8 training, and uniform four-bit training can be lossy or even become unstable over long horizons (NVIDIA et al., 2026).

It is known that not every network layer needs the same precision, e.g. Malinovskii et al. (2025). Moreover, modern microscaling formats allow matrix products across various precisions, or even mixed-precision operands (Rouhani et al., 2023), so the bitwidth of each linear layer can be chosen separately, assuming a global budget constraint. The key question, which we consider here, is how to choose the layer-wise bitwidths that maximize accuracy while satisfying a precision budget. Current approaches either keep a fixed set of layers, typically the last few, in higher precision (NVIDIA et al., 2026), or rank layers by a local proxy, such as the product of gradient norm and quantization error (Pan et al., 2026). It is not clear whether these heuristics can be improved.

In this paper, we show that the second-order loss model as a sum of per-layer errors weighted by sensitivity coefficients accurately predicts loss increase due to quantization during training (Sec. 3). This gives a training-time analogue of the “linearity theorem” model of Malinovskii et al. (2025), previously used for one-shot, post-training quantization.

∗^{*}Equal contribution.

Figure

Figure

Figure 1: Final loss improvement for a 500M model trained with mixed precision across methods and budgets. We improve over last layers in BF16 (NVIDIA et al., 2026) and SNIP (Pan et al., 2026).

We call our approach Q-PACE, Precision Allocation via Curvature Estimation for Quantization-aware training, and apply it at training iterates. Estimated per-layer sensitivity coefficients depend only on the model weights and are reasonably stable across iterations, so Q-PACE re-estimates them periodically during training: once they are determined, we solve a knapsack problem to determine “optimal” per-layer bit-widths. This approach only requires forward passes for coefficient estimation, and has negligible memory overhead and marginal computational overhead.

We evaluate Q-PACE on pretraining experiments for models between 350M and 4B parameters, and on supervised fine-tuning of Qwen3 models, against state-of-the-art baselines (NVIDIA et al., 2026; Pan et al., 2026), at budgets between 5.0 and 6.5 bits per weight. Our findings are as follows:

• Q-PACE consistently improves over existing mixed-precision training strategies across model scales, precision budgets, and format options. In pretraining, it achieves the lowest final loss in every setting we evaluate, recovering up to 81% of the loss gap between uniform NVFP4 and MXFP8 training; the same trend holds for supervised fine-tuning.

• Q-PACE provides a substantially better quality–precision trade-off. At a fixed precision budget, Q-PACE produces better final loss than both SNIP and the NVIDIA heuristic, while at matched loss it requires fewer bits per model parameter (Figure 1).

• A detailed analysis of the produced allocations shows that quantization sensitivity is highly structured across the network: it depends on both layer type and depth, and its profile evolves over the course of training. However, these changes occur much slower than parameter updates. As a result, only a small number of reallocations (on the order of 10 over a full training run) is sufficient, keeping the overhead of Q-PACE low in practice.

All in all, our results show that layer-wise precision can be assigned from a sensitivity model estimated using only forward passes, rather than from more complex error proxies. Doing so can recover a large fraction of the accuracy gap to uniform higher-precision training, at a small fraction of the training cost.

References (78)