Q-PACE: Dynamic Precision Allocation for Quantization-Aware Training
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Today's paper: "Q-PACE: Dynamic Precision Allocation for Quantization-Aware Training".
Jane: The gist: Q-PACE proposes a new approach, called Q-PACE,
Tom: First, who's behind it and why it matters.
Paper summary: Jane: We’ve talked about the mechanics of Q-PACE, so let’s recap what the paper is actually proposing. The main thrust of this work is introducing Q-PACE as a new approach to quantization-aware training, focusing on how to choose the bit-widths for all n layers during that process.
Tom: It starts by defining the problem formally: they are seeking to find an optimal sequence of allocations B = (b one b n) that minimizes the loss function L(W, B) while staying within a resource cost constraint C(W, B) C zero <ref:2610.09183#pg2>.
Lu: The core idea is that they use a second-order sensitivity model to predict the loss increase as a sum of quantization noise MSE weighted by per-layer curvature coefficients. This is the mechanism they call Equation five <ref:2610.09183#pg2>.
Jane: They then periodically re-compute these coefficients using perturbations across layers and use them to solve a knapsack problem to determine the optimal bit-widths for each layer during training.
Meng: That sounds mathematically intensive, but what does that actually mean in practice for someone running a training job? It implies they aren't just guessing or using some simple heuristic.
Tom: They claim this process consistently improves over existing mixed-precision training recipes and achieves comparable loss at substantially lower total memory budgets.
Jane: The paper is showing that Q-PACE provides a better quality precision trade-off, producing better final loss than both SNIP and the NVIDIA heuristic when you fix the precision budget.
Lalam: And when you match the final loss, Q-PACE requires fewer bits per model parameter, which is a huge win for deployment.
Tom: The paper also shows that these estimated per-layer sensitivity coefficients depend only on the model weights and are reasonably stable across iterations, so they re-estimate them periodically during training.
Jane: They found that the sensitivity profile itself evolves over training; it’s structured by layer type and depth, with later blocks generally being more sensitive for Q-PACE.
Lu: That structure suggests that the model learns to prioritize precision allocation differently as it trains, which is a pretty deep idea about representation learning.
Meng: So if I'm deploying a model, knowing this evolution helps me predict where my biggest performance gains will actually come from during the training run.
Tom: The methodology requires evaluating L high on D, adding noise delta W i about N(zero sigma squared k) to layer weight W i, and then determining MSE between
W i, W i + delta W i: <ref:2610.09183#pg2>.
Jane: And from that MSE estimate, they use least squares with Equation six to estimate the sensitivity coefficient alpha i, which they interpret as an aggregated curvature <ref:2610.09183#pg2>.
Lalam: This entire procedure relies on approximating the intractable loss L(W, B) with a proxy provided by Equation five <ref:2610.09183#pg2>.
Tom: Finally, the bit-width assignment is solved by solving Equation one using Equation five as a proxy for that hard loss function, which constitutes a multiple choice knapsack problem or MCKP <ref:2610.09183#pg2>.
Conclusion: Jane: So we’ve covered how Q-PACE works and what the specific results are. To wrap up, the authors of this paper call their work Q-PACE: Dynamic Precision Allocation for Quantization-Aware Training.
Tom: The title really captures the essence of what they did—it's dynamic precision allocation based on curvature estimation to guide training. It’s about making those bits flexible throughout the training process.
Lu: The implications are that you can move beyond static mixed-precision schemes and instead use a method that adapts layer precision based on how sensitive it is during the learning process.
Meng: For production deployment, this means they can get better results for less memory usage than previous methods, without needing massive re-training runs every single time.
Jane: It’s about finding a better way to balance the quality of your model against the cost of storing it on hardware.
Tom: In simple terms, they showed that this method consistently improves over existing mixed-precision training recipes across various scales and formats.
Lu: They achieved comparable loss at substantially lower total memory budgets than what was previously achievable with other methods, which is a key finding.
Lalam: The overall message is that Q-PACE offers a new way to achieve better performance for the same or less storage cost when dealing with large language models during pretraining and fine-tuning.
Alexandra Volkova, Matin Ansaripour, Erik Schultheis, Christoph H. Lampert, Dan Alistarh
Institute of Science and Technology Austria (ISTA) · EPFL
cs.LG
Submitted: 2026-10-06
Updated: 2026-10-06
Code: https://github.com/huggingface/trl
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 92/100
The gist: The gist: Q-PACE proposes 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
Key concepts
- QAT with Adaptive Mixed-Precision
- This is the goal of choosing optimal quantization levels for different layers in a neural network during training. The challenge is finding the best sequence of bit-widths that minimizes the final loss while respecting a strict memory budget at every step.
- Sensitivity Coefficients (αi)
- These coefficients estimate how sensitive each layer's weights are to changes in precision. Q-PACE estimates these by observing how much the loss increases when small, random noise is added to a layer's weights during forward passes. This acts as a measure of the layer's aggregated curvature.
- Q-PACE Procedure
- The core method involves two steps: first, estimating per-layer sensitivity using only forward passes; second, solving a complex knapsack problem to determine the optimal bit-width allocation for each layer based on those sensitivities and a fixed memory budget.
Terminology
Summary
The gist: Q-PACE proposes 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, which consistently improves over existing mixed-precision training recipes and achieves comparable loss at substantially lower total memory budgets
The Problem: QAT with Adaptive Mixed-Precision
The goal is to choose the quantization levels of n layers in a network during quantization-aware training The problem formally seeks to find B∗ = argmin B=(b1,..., bn) L(W, B) subject to X i bidi ≤ C0 (Equation 1), where L(W, B) is the loss and C(W, B) is the resource cost For QAT, we are interested in finding a sequence of allocations B1,..., BT that ultimately achieves the lowest final loss while adhering to the cost budget at each iteration
Methodology: Q-PACE Procedure
Q-PACE involves estimating per-layer sensitivity coefficients αi using only forward passes and then solving a knapsack problem to determine “optimal” per-layer bit-widths
The procedure outlined in Algorithm 1 requires evaluating Lhigh on D, adding noise δWi ∼ N(0, σ2k) to layer weight Wi, determining MSE([Wi, Wi + δWi), and estimating sensitivity αi via least squares using Equation (6)
The expected loss change is approximated as E[L(W + δW) − L(W)] ≈ X i αi MSE([Q(Wi, Bi), Wi), (5), where Lhigh = L(W) is the loss over full-precision weights and αi is an estimate of 1/2 Tr(Hii) that can be interpreted as the aggregated curvature of a layer
The bitwidth assignment is then solved by solving Equation (1) using Equation (5) as a proxy for the intractable L(W, B), which constitutes a multiple choice knapsack problem (MCKP)
Key Findings on Performance and Trade-offs
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 evaluated, recovering up to 81% of the loss gap between uniform NVFP4 and MXFP8 training
Q-PACE provides a substantially better quality–precision trade-off, producing better final loss than both SNIP and the NVIDIA heuristic at a fixed precision budget, while at matched loss it requires fewer bits per model parameter
The quantization sensitivity is highly structured across the network, depending on both layer type and depth, and its profile evolves over the course of training
Sensitivity Analysis and Dynamics
Sensitivity is structured by layer type and depth, with Q-PACE promoting five of the six quantized linear layers to full precision in the final block Sensitivity evolves during training; the largest changes occur between the early and middle stages of training, after which the allocation becomes substantially more stable
The relative sensitivity by layer type over training for the 800M model shows that Q-PACE assigns the largest relative sensitivity to the MLP projections, whereas SNIP places comparatively greater sensitivity on K projections Sensitivity is also strongly structured by model depth, with later blocks generally being more sensitive for Q-PACE
Computational Overhead and Practicality
Q-PACE calibration requires only forward passes, resulting in negligible memory overhead compared to gradient-based methods One recalibration costs mn + 1 forward passes over D, and the relative compute overhead is linear in both m and D and inversely proportional to τ In experiments, the measured wall-clock time overhead was only 5% for a 4B model corresponding to a conservative choice of τ = 5k
Conclusion
Q-PACE is a new method for adaptive mixed-precision LLM training that probes linear layers and estimates their sensitivity, which is then used for periodic reassignment of precision across layers during training With no memory overhead, our method consistently improves over existing baselines and allows for substantial memory savings at a matched performance Across pretraining experiments from 350M to 4B parameters and supervised fine-tuning of Qwen3-4B, it outperforms other methods and recovers up to 81% of the NVFP4-to-MXFP8 loss gap at 6.5 bit/parameter
How it works
The core mechanism relies on modeling the quantization error as a sum of per-layer errors weighted by sensitivity coefficients This is formalized in Equation (5), where L(W, B) ≈ Lhigh + X i αi MSE([Q(Wi, Bi), Wi), where Lhigh = L(W) is the loss over full-precision weights and αi is an estimate of 1/2 Tr(Hii) that can be interpreted as the aggregated curvature of a layer
The sensitivity coefficients αi are estimated via a forward-pass calibration procedure, which is viewed as a variant of Hutchinson trace estimation, where the layerwise curvature αi is estimated from the increase in loss induced by isotropic random perturbations
Bitwidth Assignment
Once sensitivities αi are determined, the optimal sequence of allocations (B1,..., BT) is found by solving Equation (2), which involves minimizing L(WT(B1,..., BT-1), BT) subject to max t=1,… T C(Bt) ≤ C0 This discrete selection problem is solved using pseudo-polynomial dynamic programming (Pisinger, 1995), where the budget C0 is discretized into M bins and each layer cost dibi is rounded up to the whole number of bins
MSE Estimation
The estimate MSE([can be obtained empirically by measuring the statistics of the actual weight tensors’ quantization error, but we rely on the efficient analytic approximation, MSE([Q(Wi), Wi) ∝ 4-bi, based on the following analysis This analytic approximation recovers expressions of high-resolution quantization (Gish & Pierce, 1968)
Alternative Sensitivity Models
The paper compares Q-PACE against several alternative approximations, including Q-PACE inversed, which uses a symmetric linear approximation relative to the loss of uniformly FP4 quantized model Other models include the first-order Taylor sensitivity (Equation 27) and cosine similarity (Equation 28), showing that Q-PACE remains the strongest variant in Table 7
Downstream Task Scores
Q-PACE achieves superior performance on downstream benchmarks, such as GSM8K, IFEval, HumanEval, Natural Questions (NQ), and TruthfulQA across all tested budgets For instance, at budget 6.5 bits/parameter for the 4B model with menu set to 4 and 16, Q-PACE achieves an accuracy of 80.1±0.
Improvements for AI systems
- Bold header: Adaptive Layer Precision Allocation during Training
The Q-PACE method consistently improves over existing mixed-precision training strategies across model scales, precision budgets, and format options,
allowing it to recover up to 81% of the loss gap between uniform NVFP4 and MXFP8 training.
This enables the system to achieve substantially lower total memory budgets
while maintaining high accuracy during pretraining.
- Bold header: Dynamic Sensitivity Recalibration
Q-PACE re-estimates layer sensitivities periodically during training,
and because sensitivity evolves during training,
it proposes that 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.
This allows for dynamic adaptation to changing network dynamics without excessive computational cost.
- Bold header: Optimized Hardware Utilization
The system can be configured to utilize specific hardware features by testing formats like NVFP4, MXFP6, MXFP8,
and the results show that Q-PACE outperforms baselines across these options at a fixed precision budget.
This allows for optimal mapping of model operations to available low-bit data formats on supported accelerators.
- Bold header: Robust Performance Across Formulations
The method is robust across alternative sensitivity models, as shown by Table 7, where the default Q-PACE formulation remains the strongest variant,
suggesting that the core mechanism—a second-order loss model as a sum of per-layer errors weighted by sensitivity coefficients
—is fundamentally sound regardless of whether it uses forward error only
or other approximations.
- Bold header: Inference Memory Trade-off Optimization
Q-PACE forms an empirical Pareto frontier,
meaning it can achieve lower loss, or equivalently reach a comparable loss with less memory
across various inference formats like WmixAmix and W4A8. This allows the system to select the optimal precision allocation based on the required inference memory budget.
Sources
- Quartet: Native FP4 Training Can Be Optimal for Large Language Models
- TetraJet-v2: Accurate NVFP4 Training for Large Language Models with Oscillation Suppression and Outlier Control
- BinaryConnect: Training Deep Neural Networks with binary weights during propagations
- DeepSeek-V3 Technical Report
- Model Compression with Exact Budget Constraints via Riemannian Manifolds
- Statistically-Lossless Quantization of Large Language Models
- Adam: A Method for Stochastic Optimization
- Muon is Scalable for LLM Training
- ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM Quantization
- Decoupled Weight Decay Regularization
- Pretraining Large Language Models with NVFP4
- 2 OLMo 2 Furious
- Olmo 3
- Microscaling Data Formats for Deep Learning
- Augmenting Hessians with Inter-Layer Dependencies for Mixed-Precision Post-Training Quantization
- Qwen3 Technical Report
- Mixed Precision Quantization of ConvNets via Differentiable Neural Architecture Search
- Root Mean Square Layer Normalization
- Instruction-Following Evaluation for Large Language Models
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks