Manuscript Offprint
arXiv:2610.09877Layerwise Error Attribution for Fast and Robust Mixed-Precision Post-Training Quantization
ABSTRACT
Mixed-precision post-training quantization is a network compression method that assigns bits layer by layer, under a global memory budget using a small calibration set. The main difficulties are to overcome the combinatorial nature of the allocation problem and to manage the sensitivity to small, potentially corrupted databases. Hence, an efficient allocation method should be fast to compute and preserve model quality when calibration data are corrupted. To design such a method, we derive a layerwise probabilistic analysis of the quantization error that separates propagated error from the local perturbation introduced at a given layer. We use this local term to build a separable score for a simple allocation algorithm, that requires no external solver. The probabilistic nature of our approach brings robustness to corrupted data. On denoising tasks with DRUNet, with an average budget of 4 bits per weight, our method matches or improves state-of-the-art mixed-precision baselines under clean calibration, and is more robust to corrupted calibration, with PSNR gains of up to 7.5 dB under the tested corruptions. Experiments show bit-allocation speed-ups from to over the studied baselines. For quantized diffusion models, our experiments show that a direct application of our framework also improves the state-of-the-art.
1 INTRODUCTION
Large neural networks can exceed the memory and energy budgets of embedded hardware (Choukroun et al., 2019). This is a major bottleneck for embedded vision systems, including autonomous vehicles and avionics, where models must run with limited onboard resources. On the one hand, reducing model size and numerical precision lowers storage and memory traffic. On compatible hardware, it can also reduce computation and energy use (Wang et al., 2019). But on the other hand, such a compression step deteriorates the quality of the networks. This is the reason why, for such applications, there is a need to find an optimal trade-off between the accuracy of a network and its memory/energy budget. The goal of this paper is to propose a complete post-training quantization (PTQ) framework that tackles this problem.
Post-training quantization compresses a trained network by lowering the precision of its weights, using a small calibration set. Most PTQ pipelines use the same bit-width for every layer. This can be suboptimal because layers have different sensitivities to quantization leading to different effects on the network output. Mixed-precision PTQ addresses this by assigning a varying bit-width to each layer under a memory budget. In consequence an algorithm for mixed-precision PTQ must decide which layers need more precision. This flexibility can improve the quality–memory trade-off at a fixed budget (Dong et al., 2020; Ma et al., 2023). However, choosing these layerwise bit-width configurations jointly is difficult. For example, consider a network with 36 quantized layers and six candidate bit-widths per layer, from 3 to 8 bits. There are then possible assignments before applying the memory constraint. Exhaustive evaluation is therefore impractical.
A practical alternative to exhaustive search must also meet two requirements. First, the quantized model should retain its quality when calibration inputs are degraded. This matters when calibration samples are acquired from sensors affected by noise, missing measurements, or acquisition faults. Second, selection should be fast enough to repeat when the model, calibration set, candidate precisions, or memory budget changes. This cost matters during design exploration, where many settings may need to be tested. To avoid evaluating every configuration, mixed-precision methods estimate layer sensitivity on calibration data. Existing scores use Hessian information (Dong et al., 2019; 2020; Yao et al., 2021), block reconstruction and second-order loss information (Li et al., 2021), network orthogonality (Ma et al., 2023), pairwise cross-layer loss terms (Deng et al., 2025), or a learned predictor (Mills et al., 2025). The bit-width assignment is then obtained by learned search (Wang et al., 2019), Pareto search (Pandey et al., 2023), linear programming (Ma et al., 2023), or integer programming (Yao et al., 2021; Deng et al., 2025). The main drawback of these methods is that they can require repeated network evaluations, pairwise interactions, or an external solver, which make the allocation stage slow and computationally expensive. Their scores are also estimated from a small calibration set, whose quality and composition affect the final quantized model (Yuan et al., 2023; Williams & Aletras, 2024).
Theoretical analyses of quantization error can also guide the choice of sensitivity measure. Gonon et al. (2023) derive a global deterministic error bound for PTQ controlled by a worst-case norm quantity. Houache et al. (2026) provide a finer analysis by using layer dependent operator norms, yielding tighter bounds that better follow the behavior of PTQ observed in practice. This suggests that keeping the layer error information is useful for mixed-precision decisions. Note that while they offer important qualitative insight on how error is propagated, such deterministic results are pessimistic in nature, as worst-case scenarios are not likely to occur in practical settings.
Contributions. We propose a probabilistic layerwise analysis of quantization error for a simple, yet fast and robust, mixed-precision post-training quantization algorithm. Our contributions are:
• A probabilistic layerwise analysis. We give probabilistic upper bounds of mixed-precision quantization error. We separate the error propagated from earlier layers from the perturbation introduced at the current layer (Section 4.2). This keeps the source of each quantization error visible and generalize previous worst-case deterministic analysis. We also derive a global bound for modern architectures, including self-attention (Appendix A.3).
• A separable, solver-free allocation algorithm. Using the theoretical insight from Section 4.2, we propose a fast and robust mixed-precision PTQ algorithm. It computes separable local scores from one full-precision pass per calibration image, then assigns bit-widths with a simple greedy rule and no external solver.
• Fast and robust bit-width allocation. On image denoising tasks with a DRUNet, our method combines competitive quality under clean calibration with stable PSNR under both tested calibration corruptions, at target budgets (Section 6.3). Bit-width allocation is to faster than the studied baselines in matched timing comparisons (Section 6.4). The same score and greedy rule also transfer to latent diffusion, where our method gives competitive FID and the highest mean PSNR to FP32 in the paired comparison (Section 6.5).
Sensitivity-driven mixed precision. Existing methods differ in two parts: how they measure sensitivity to quantization of layers and how they meet the budget. Sensitivity can come from Hessian statistics in HAWQ and HAWQ-V2 (Dong et al., 2019; 2020), block reconstruction in BRECQ (Li et al., 2021), network orthogonality in OMPQ (Ma et al., 2023), quantizer-group perturbations in AIMET AMP (Pandey et al., 2023), pairwise interactions in CLADO (Deng et al., 2025), or topological entropy in GMPQ-TE (Li et al., 2025). The budget is then handled by a learned policy in HAQ (Wang et al., 2019), Pareto search in AIMET AMP, or linear and integer optimization in HAWQ-V3, OMPQ, CLADO, and GMPQ-TE (Yao et al., 2021; Ma et al., 2023; Deng et al., 2025; Li et al., 2025). Our method changes both parts: its score comes from the local term of our layerwise quantization error analysis, and all sensitivity scores are computed once before performing a solver-free greedy allocation. Earlier greedy PTQ work updates layer sensitivity after each decision (Tsuji et al., 2021); our scores remain fixed and can be reused across budgets. Matched measurements in Section 6.4 show bit-width allocation speed-ups from to over the studied baselines.
Calibration and quantization backends. PTQ relies on a small calibration set, whose size and composition can affect the quantized model (Yuan et al., 2023; Williams & Aletras, 2024). QDrop addresses overfitting during reconstruction (Wei et al., 2022). AdaRound learns weight-rounding decisions (Nagel et al., 2020), BRECQ reconstructs quantized blocks (Li et al., 2021), and PTQ4SR adapts scale calibration to image restoration (Tu et al., 2023). These methods change how the quantized weights or scales are obtained. Our DRUNet comparisons share a round-to-nearest (RTN) or TF-Enhanced backend, without AdaRound; AdaRound is used in the diffusion experiment. We then corrupt only the calibration inputs when testing allocation stability.
Quantization of diffusion models. Diffusion PTQ must account for the changing distributions across denoising steps. Q-Diffusion and PTQ4DM adapt calibration and reconstruction to this setting (Li et al., 2023; Shang et al., 2023). PTQD models quantization noise during denoising (He et al., 2023), TFMQ-DM preserves temporal features during reconstruction (Huang et al., 2024), and Qua SeDiMo learns sensitivity estimates for mixed-precision choices (Mills et al., 2025). Our contribution is different: we reuse the Q-Diffusion/AdaRound backend but apply to a pretrained latent diffusion model the same local score and greedy rule used for DRUNet (Rombach et al., 2022).
3 SETUP AND NOTATION
Network and quantization. We first introduce the notation for a sequential network to keep the section simple. Appendix A.3 gives the corresponding rules for the full architectures used in our experiments. The network has depth and linear layers without biases. Layer has weights . At bit-width , its quantized weights are , where is the chosen quantization method, e.g. round-to-nearest. The input follows a distribution on . The full-precision and quantized forward passes are and , with . Their difference, i.e. the quantization error, at depth is . It satisfies the exact decomposition used in deterministic analyses (Gonon et al., 2023; Houache et al., 2026):
The first term in Equation (1) propagates the error from previous layers. The second is the local quantization error introduced at layer . These two terms drive the analysis below.
Definition 1 (Random amplification ratios). For each layer , define the random variables
We set when and when .
These ratios measure how much the propagated and local terms are amplified on the current input. They satisfy
The operator norms cover the worst case error while these ratios track the error actually reached by the data, making them suitable for a probabilistic approach. Our analysis below uses their moments.
Definition 2 ( -probabilistic upper bound). Let be a nonnegative random variable and let . A deterministic constant is a -probabilistic upper bound for if .
For each layer , the recursion in Section 4.2 uses a -probabilistic upper bound for . At the input, we assume a bounded domain and choose such that , .
Mixed-precision allocation problem Each layer uses a bit-width from a finite candidate set , and is its number of weights. A mixed-precision bit-width configuration has cost , and the admissible set under a memory budget Bud is . For comparison, we express the memory budget as , where is the target average number of bits per weight. For example, gives the same weight-memory budget as uniform 4-bit PTQ. Under configuration , the output error is . The objective of robust mixed-precision PTQ is to solve the following minimization problem:
Here is close to one and is the corresponding tail level. Using a quantile instead of worst-case errors permits increased robustness to outliers in available datasets. In practice, we only have access to a calibration set . This ideal solution depends on the complete bit-width configuration. Testing one configuration requires a full-network evaluation, and the number of configurations grows exponentially with the number of layers. We begin by providing a probabilistic PTQ error analysis. Section 4.1 first, bounds the output error of a fixed configuration. Section 4.2 then keeps track of where the error is introduced. Then, Section 5 turns the local term of the layerwise analysis into a practical allocation score.
4 PROBABILISTIC ERROR BOUNDS FOR MIXED-PRECISION PTQ
We give two bounds. We present first a simple global result as a warm-up; answering the natural question: how large is the final output error? It also shows why that view alone cannot help with layerwise bit-width allocation. The following layerwise result is the main link to the allocation algorithm. Our layerwise bound keeps the information needed for mixed precision: where each error is introduced and how it is carried forward.
4.1 A GLOBAL BOUND FOR A FIXED CONFIGURATION
For a fixed configuration, define the sequential model
Equation (1) and induction give for every input. Since , varies with the input, and one concentration step at the output gives the following result.
Lemma 1 (Global bound). Assume has finite second moment under , and let , . For any ,
Once the pointwise recursion has been established, the probabilistic step is a direct application of the one-sided Chebyshev inequality (Cantelli, 1928) (Appendix A.2). We write the recursion for a sequential model only to keep this warm-up simple. Appendix A.3 proves propagation rules for modern computation graphs, so the same global bound applies to architectures built from these operations, including U-Nets and vision transformers. For a chosen configuration b, the moments of can be estimated on the calibration set. The theorem uses the true mean and variance. Estimating them from calibration data does not provide the same guarantee automatically. The global bound controls a complete configuration, but it does not say which layer should use a higher bit-width. The next Section gives such information through probabilistic layerwise bounds.
4.2 A LAYERWISE BOUND FOR MIXED-PRECISION QUANTIZATION
First remark that Equation (1) and sub-multiplicativity give the deterministic one-step bound
This is the layer-dependent structure used by Houache et al. (2026). The random ratios and introduced earlier are the realized counterparts of the two operator norms in Equation (6). We use their moments to derive a probabilistic layerwise bound that keeps the source of each error visible. To do this, we apply a concentration inequality at each layer and combine them through a union bound. Thanks to this approach, we preserve the two terms of Equation (1). This is the information needed by a mixed-precision allocation algorithm. The recursion uses two bounds at each layer. The bound is a -probabilistic upper bound of output :
The error bound is constructed recursively as follows. At layer , define the event
We start from and . Conditionally on , define the moments
(9)
We assume these moments are finite. On , the decomposition in Equation (1) gives
The quantities and in the theorem below are the conditional mean and variance of the right side of Equation (10).
Theorem 1 (Layerwise bound). Fix a bit-width configuration, levels , and , with
and define recursively
(12)
Then
In other words, the quantity is an -probabilistic upper bound of .
The proof in Appendix A.1 applies a conditional one-sided Chebyshev inequality (Cantelli's inequality) at each layer to . The bounds replace the norms of by fixed values on the considered events. The conditional mean keeps the propagated and local terms separate, while the variance also contains their covariance. This is the structure needed by the algorithm: each layer adds a local perturbation, and later layers carry earlier error forward. However, computing the exact propagated contribution for every joint bit-width configuration would remain expensive. Section 5 therefore keeps the local quantity that identifies the source layer and evaluates it on full-precision activations. This result is also of mathematical interest because it generalizes the deterministic layerwise analysis of Houache et al. (2026) to a probabilistic setting.
Algorithm 1: Local score construction and mixed-precision allocation
Input: Full-precision network; calibration set ; blocks and sizes ; candidate sets ; feasible budget Bud; .
Output: Bit-width configuration .
Initialize running statistics for every pair ;
foreach do
Run one full-precision forward pass and capture the required layer inputs; foreach and do
Compute from Equation (15) and update its running statistics;
Release the captured activations;
foreach and do Compute ;
Set for every block;
while Cost() > Bud do
foreach with do
Set to the next lower candidate and compute (Equation (17));
Select a block minimizing , breaking ties deterministically;
Update ;
return ;
5 AN ALGORITHM FOR FAST AND ROBUST MIXED-PRECISION PTQ
To design our algorithm, we want to estimate the local influence of each layer and candidate bit-width on quantization error. Computing the exact influence of a layer requires a full pass in the quantized network for a given configuration b. We therefore retain the local quantization error identified by Theorem 1 and evaluate it before choosing a complete configuration. By definition, the local perturbation introduced at layer satisfies
The moments of are then used to build the layerwise probabilistic error bounds. The main idea of our algorithm is to consider this local perturbation to design a sensitivity score. The analysis above is layerwise. For efficiency, our practical algorithm groups layers into allocation blocks , as in other grouped mixed-precision methods (Pandey et al., 2023; Sun et al., 2022). This reduces the number of decisions and matches the block partitions used in our comparisons. All layers in a given block share one bit-width . Let be the number of weights in block ; the practical cost is . For a block quantized at bit-width , we define the approximated local quantization error
The sum gives one value for each image in the calibration set and each block . In practice, we evaluate the local perturbation on the full-precision layer input instead of as in (14). This is justified in our case because our algorithm navigates configurations yielding low quantization errors, i.e. on the whole optimization path of Algorithm 1. The algorithm starts from the highest candidate bit-widths, where quantization errors are expected to be small. Using the same full-precision inputs makes the values independent of the bit-widths assigned to other blocks. We summarize the values of into one score on the calibration set by their mean and standard deviation:
where and are the sample mean and sample standard deviation of on . The mean captures the average perturbation, while the standard deviation penalizes variation across calibration images. The value of only sets the fixed weight of the dispersion term; it is not a confidence level for the selected allocation. To calculate , each image in the calibration dataset is passed once through the full-precision network in order to update the scores for all candidate bit-widths. Computing for every block and candidate bit-width gives the scores used by our algorithm described below. Each score depends only on one pair and can be reused for any configuration .
Bit-width allocation with a greedy algorithm Our algorithm is initialized with every block at its largest candidate bit-width. The idea is to greedily decrease the bit-width block by block, based on the sensitivity score . Given a current value , let be the next lower candidate bit-width. At each step, the algorithm selects the block with the smallest score increase per weight bit saved,
and sets . The denominator is the number of weight bits saved by this change, and sets a negative score difference to zero. The process stops when the budget is met. All decisions use the precomputed scores, so this stage requires no new network evaluation and no external solver. Algorithm 1 precisely describes our method.
6 EXPERIMENTS
We evaluate two applications: image denoising with DRUNet and image generation with a latent diffusion U-Net. We first test whether our algorithm gives competitive allocations under clean calibration. We then keep the test set fixed and corrupt only the calibration inputs. At moderate budgets, our method matches the strongest references under clean calibration and performs better under corrupted calibration dataset. Finally, we measure the time needed to compute the scores and assign bit-widths, and transfer the method to a latent diffusion U-Net. Some PTQ methods also optimize rounding decisions or quantization ranges. Our contribution is a local score and a simple greedy allocation rule; each DRUNet comparison uses a shared quantizer.
6.1 EXPERIMENTAL SETUP
DRUNet denoising. We use the pretrained color DRUNet from (Zhang et al., 2022) on CelebA images (Liu et al., 2015). The input noise has standard deviation . DRUNet has 32.64 million weights in 64 convolutions, grouped into 36 allocation blocks. We use three calibration sets of 256 images and the same 100 clean test images. Quantization is weight-only; intermediate layer outputs remain in FP32. PSNR is averaged over images and calibration runs.
Matched comparisons. The reference methods use different quantizers and candidate bit-widths, so we match our algorithm to each reference separately when possible. Within each matched baseline comparison, both methods use the same quantization backend and allocation blocks. OMPQ-ORM scores blocks by network orthogonality and uses an algorithm for mixed-integer linear programming. CLADO models pairwise interactions between layer choices and uses integer quadratic programming. AIMET measures quantizer-group sensitivity and searches a Pareto set. Table 5 in the appendix summarizes these settings and an additional output signal to quantization noise ratio (SQNR) score control. We compare the bit-width configurations produced by the methods and the resulting model quality. These are allocation comparisons, not reproductions of each paper's complete PTQ pipeline. For OMPQ-ORM, both algorithms use symmetric per-channel round-to-nearest quantization (RTN) with candidates from 3 to 8 bits. Each output channel has its own scale, and each weight is rounded to the nearest representable value. CLADO uses the same RTN backend with candidates , while our main configuration uses . For AIMET, both algorithms use TF-Enhanced with candidates . This scheme selects quantization ranges to reduce quantization error. The adapted output-SQNR control quantizes one block at a time and measures the SQNR at the final DRUNet output, then uses our greedy rule. AIMET AMP is evaluated separately. Realized precision is the average bit-width weighted by the number of weights. It measures weight storage, not inference time.
Corrupted calibration datasets. Only the inputs used to build the allocation are corrupted. We use , where is a binary corruption pattern and is the same denoising noise as in the
Table 1: Clean DRUNet results with the RTN backend at target budget , equivalent to uniform 4-bit quantization. Data-dependent values are averaged over three calibration sets and the same 100 test images.
| Method | Candidate bit-widths | Mean bit-width | PSNR (dB) |
|---|---|---|---|
| FP32 | 32 | 32.000 | 34.664 |
| Uniform, | 3 | 3.000 | 24.497 |
| Uniform, | 4 | 4.000 | 28.978 |
| OMPQ-ORM, | 3–8 | 3.988 | 32.587 |
| CLADO, | 3, 4, 8 | 3.988 | 34.409 |
| Our method, | 3–8 | 3.987 | 34.401 |
Table 2: Clean DRUNet comparison with the common AIMET TF-Enhanced backend.
| B | Our mean bit-width | AIMET mean bit-width | Our PSNR | AIMET PSNR | Difference |
|---|---|---|---|---|---|
| 5 | 4.932 | 4.961 | 34.639 | 34.629 | +0.010 |
| 6 | 5.984 | 5.716 | 34.653 | 34.636 | +0.017 |
| 7 | 6.811 | 6.835 | 34.655 | 34.656 | -0.0003 |
clean protocol. Each entry of is kept with probability and set to zero with probability . We test one spatial pattern shared across RGB channels at , and independent per-channel patterns at . Calibration images and noise are paired across algorithms, and the test set is unchanged. These are distinct stress conditions. We report confidence intervals for mean PSNR differences, comparing the methods on the same test images (Appendix B.1). Our score uses in Equation (16). Visual examples are in Appendix B.6. In the top row of Figure 7, CLADO leaves more visible residual grain than our method under shared-channel calibration corruption.
6.2 EXPERIMENTS WITH CLEAN CALIBRATION DATASET
Table 1 compares the different methods at a target average bit-width of 4. Uniform quantization loses 5.687 dB relative to FP32, showing that the importance of mixed-precision PTQ. Our method improves OMPQ-ORM by 1.814 dB and matches the performance of CLADO (only 0.008 dB below). For our method minus CLADO, the confidence interval for the mean difference is dB. The complete experiments with different budgets give a complete picture (Appendix B.2). Our method outperforms OMPQ-ORM and the adapted output-SQNR score at every reported budget. CLADO is slightly better at the smallest target budget, , while their absolute PSNR gap remains below 0.01 dB from to in their main candidate spaces. Restricting our method to the same W3/W4/W8 candidates leads to the same conclusion (Appendix B.3). The speed of our method allows us to explore a larger allocation space, with one bit-width decision per layer instead of per block. At , this matches CLADO on CelebA and slightly exceeds it on BSDS500 under clean calibration (Appendix B.9). However, the next sections show that our algorithm shows large improvements in both computational efficiency and robustness.
Table 2 tests a separate TF-Enhanced backend. At , our method matches AIMET (0.010 dB higher) while using a slightly lower average bit-width; the confidence interval for the mean difference is [0.007, 0.013] dB. At , the difference is negligible (-0.0003 dB, with interval [-0.0011, 0.0005] dB). At , our PSNR is higher, but the realized precisions differ. Overall, the proposed score reaches the quality of the stronger references for quantization down to an average 4 bits per weight, without using pairwise optimization or Pareto search. Bit-width allocation times are reported in Section 6.4.
6.3 STABILITY UNDER CALIBRATION CORRUPTION
Table 3 compares the methods at one representative budget while keeping the clean test set unchanged. With the main W3–W8 candidates, our PSNR remains within 0.03 dB of values obtained with a clean calibration dataset from B = 4 to B = 5. OMPQ-ORM is also stable but reaches lower absolute quality, and AIMET remains close to our method at B = 5. In contrast, CLADO
Table 3: DRUNet results when only the calibration inputs used for allocation are corrupted. Each pair of rows uses the same quantization backend. PSNR is in dB. CLADO uses W3/W4/W8 and our main method uses W3–W8; realized average bit-widths are therefore shown explicitly.
| Comparison | Method | clean | p = 0.5 shared | p = 0.9 per-channel | |||
|---|---|---|---|---|---|---|---|
| Mean bit-width | PSNR | Mean bit-width | PSNR | Mean bit-width | PSNR | ||
| AIMET (B = 5) | Our method | 4.932 | 34.639 | 4.940 | 34.640 | 4.980 | 34.637 |
| AIMET | 4.961 | 34.629 | 4.970 | 34.529 | 4.792 | 34.512 | |
| OMPQ-ORM (B = 4) | Our method | 3.987 | 34.401 | 3.991 | 34.429 | 3.925 | 34.429 |
| OMPQ-ORM | 3.988 | 32.587 | 3.988 | 32.587 | 3.988 | 32.576 | |
| CLADO (B = 4) | Our method | 3.987 | 34.401 | 3.991 | 34.429 | 3.925 | 34.429 |
| CLADO | 3.988 | 34.409 | 3.939 | 27.824 | 3.987 | 28.928 | |
matches our clean result at but loses more than 5 dB under either corruptions. These results are specific to the protocols in Table 5. The same pattern holds across the complete CLADO experiments with different budgets, our largest observed gain is 7.509 dB at under the shared corruption (Figure 1). The allocation diagnostics support this result. At , the Spearman correlations between clean and corrupted bit-width configurations are 0.961 and 0.987 for our method, compared with 0.060 and 0.313 for CLADO, under shared and per-channel corruption, respectively (Figure 2). Our method therefore better preserves the relative ordering of blocks by assigned bit-width. The W3/W4/W8 candidate-matched control leads to the same conclusion: our method remains more than 5 dB ahead under both corruptions. This gain is therefore not only due to the additional intermediate bit-widths, but from our specific algorithm relying on local probabilistic sensitivity scores. Full curves and allocation diagnostics are in Appendix B.5 and random qualitative figures are in Appendix B.6. On BSDS500, our main W3–W8 method also gives comparable clean quality to CLADO and higher PSNR under both corruptions (Appendix B.8).
6.4 MEASURED COST
On DRUNet with 256 clean calibration images, our method selects the bit-widths faster than AIMET AMP and faster than OMPQ-ORM with a fixed . When OMPQ must also search for , our method is faster. With the same W3/W4/W8 candidates, our method is faster than CLADO. Times cover score computation and allocation, with medians over three runs. CLADO uses two A100 GPUs, whereas our method uses one in this comparison (Appendix B.4). The same scores can be reused when only the memory budget changes. The estimated layerwise selection time is 24.32 seconds on one A100. For comparison, CLADO took about longer in the separate benchmark reported in Table 9.
6.5 LATENT-DIFFUSION TRANSFER
We apply the same local score and greedy rule to DRUNet denoising and latent-diffusion generation, without adding a diffusion-specific allocation score or solver. Q-Diffusion and TFMQ-DM use a uniform 4-bit weight allocation in the PSNR comparison. Q-Diffusion uses the same Q-Diffusion/AdaRound backend (Li et al., 2023). TFMQ-DM is a separate diffusion-specific pipeline with temporal feature-aware reconstruction (Huang et al., 2024). Using 50,000 generated images per method, our mixed-precision model obtains a FID of 20.853, compared with 22.626 for Q-Diffusion. Our quantized model is competitive for generation. Across 50,000 outputs paired by generation seed, our method has the highest mean PSNR to FP32: 34.644 dB, compared with 24.545 dB for the uniform-W4 TFMQ-DM configuration. Appendix B.7 gives full results, PSNR distributions, and visual comparisons showing fewer artifacts with our quantized model.
7 DISCUSSION AND CONCLUSION
Mixed-precision PTQ needs sensitive information at each layer in order to evaluate different bit-width configurations. Our layerwise analysis keeps track of the origin of the quantization error by separating what is carried from previous layers from what is introduced locally. Our practical algorithm turns the local perturbation into a reusable table of scores for each block and bit-width, and then meets the budget with a simple greedy algorithm and no external solver. This addresses the two practical requirements set out in the introduction: fast allocation and robustness to corrupted calibration data. On DRUNet, our method combines competitive quality under clean calibration with gains of up to 7.5 dB under the tested corruptions and bit-width allocation speed-ups from to . On CelebA-HQ, our mixed-precision model combines competitive FID with the highest mean PSNR to FP32 in the paired comparison. For future work, a major issue is to implement our quantized models on embedded platforms, facing the limitations of current software to manage mixed-precision models. From a theoretical perspective, the question of improving our layerwise probabilistic bounds remains an open question.
AI USE STATEMENT
We used generative AI tools to improve the English and to find related papers and public code for mixed-precision comparisons. All AI-assisted suggestions are subject to review by the authors, who take responsibility for the final version. The mathematical framework and the proofs were developed by the authors. AI assistance with code was limited to general-purpose utilities, such as retrieving layer names, counting parameters, etc. It was not used to implement the allocation algorithm or the core experimental pipeline.
ETHICS STATEMENT
This work studies a general-purpose method for model compression. Its ethical implications depend on the underlying models, datasets, and applications. Appropriate safeguards are needed for each application.
REPRODUCIBILITY STATEMENT
Proofs are provided in Appendix A. Algorithm 1 describes the allocation procedure. Appendix B reports the datasets, calibration and evaluation protocols, quantization settings, and runtime measurements.
REFERENCES
Yamato Arai and Yuma Ichikawa. Quantization Error Propagation: Revisiting layer-wise post-training quantization. In Advances in Neural Information Processing Systems, volume 38, 2025.
Pablo Arbeláez, Michael Maire, Charless Fowlkes, and Jitendra Malik. Contour detection and hierarchical image segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(5):898–916, 2011. doi: 10.1109/TPAMI.2010.161.
Francesco Paolo Cantelli. Sui confini della probabilità. In Atti del Congresso Internazionale dei Matematici, Bologna, volume 6, pp. 47–59. Nicola Zanichelli Editore, 1928.
Yoni Choukroun, Eli Kravchik, Fan Yang, and Pavel Kisilev. Low-bit quantization of neural networks for efficient inference. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), 2019.
Zihao Deng, Sayeh Sharify, Xin Wang, and Michael Orshansky. Mixed-precision quantization for deep vision models with integer quadratic programming. In 2025 62nd ACM/IEEE Design Automation Conference (DAC), pp. 1–7, 2025. doi: 10.1109/DAC63849.2025.11132777.
Zhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney, and Kurt Keutzer. HAWQ: Hessian aware quantization of neural networks with mixed-precision. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2019.
Zhen Dong, Zhewei Yao, Daiyaan Arfeen, Amir Gholami, Michael W. Mahoney, and Kurt Keutzer. HAWQ-V2: Hessian aware trace-weighted quantization of neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
Antoine Gonon, Nicolas Brisebarre, Rémi Gribonval, and Elisa Riccietti. Approximation speed of quantized versus unquantized ReLU neural networks and beyond. IEEE Transactions on Information Theory, 69(6):3960–3977, 2023. doi: 10.1109/TIT.2023.3240360.
Yefei He, Luping Liu, Jing Liu, Weijia Wu, Hong Zhou, and Bohan Zhuang. PTQD: Accurate post-training quantization for diffusion models. In Advances in Neural Information Processing Systems (NeurIPS), 2023.
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems, volume 30, 2017.
Nicholas J. Higham and Theo Mary. A new approach to probabilistic rounding error analysis. SIAM Journal on Scientific Computing, 41(5):A2815–A2835, 2019.
Samy Houache, Jean-François Aujol, and Yann Traonmilin. On the impact of the parametrization of deep convolutional neural networks on post-training quantization. Transactions on Machine Learning Research, 2026. ISSN 2835-8856. URL https://openreview.net/forum?id=GPs0RA7jxD.
Yushi Huang, Ruihao Gong, Jing Liu, Tianlong Chen, and Xianglong Liu. TFMQ-DM: Temporal feature maintenance quantization for diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7362–7371, 2024.
Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In International Conference on Learning Representations, 2018.
Hyunjik Kim, George Papamakarios, and Andriy Mnih. The lipschitz constant of self-attention. In Proceedings of the International Conference on Machine Learning (ICML), 2021.
Nan Li, Yonghui Su, and Lianbo Ma. Efficient and generalizable mixed-precision quantization via Topological Entropy. In Advances in Neural Information Processing Systems, volume 38, pp. 132178–132209, 2025.
Xiuyu Li, Yijiang Liu, Long Lian, Huanrui Yang, Zhen Dong, Daniel Kang, Shanghang Zhang, and Kurt Keutzer. Q-Diffusion: Quantizing diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 17535–17545, 2023.
Yuhang Li, Ruihao Gong, Xu Tan, Yang Yang, Peng Hu, Qi Zhang, Fengwei Yu, Wei Wang, and Shi Gu. BRECQ: Pushing the limit of post-training quantization by block reconstruction. In International Conference on Learning Representations (ICLR), 2021.
Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pp. 3730–3738, 2015.
Yuexiao Ma, Taisong Jin, Xiawu Zheng, Yan Wang, Huixia Li, Yongjian Wu, Guannan Jiang, Wei Zhang, and Rongrong Ji. OMPQ: Orthogonal mixed precision quantization. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pp. 9029–9037, 2023.
Keith G. Mills, Mohammad Salameh, Ruichen Chen, Negar Hassanpour, Wei Lu, and Di Niu. Qua SeDiMo: Quantifiable quantization sensitivity of diffusion models. In Proceedings of the AAAI Conference on Artificial Intelligence, pp. 6153–6163, 2025.
Markus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos, and Tijmen Blankevoort. Up or down? adaptive rounding for post-training quantization. In Proceedings of the International Conference on Machine Learning (ICML), 2020.
Nilesh Prasad Pandey, Markus Nagel, Mart van Baalen, Yin Huang, Chirag Patel, and Tijmen Blankevoort. A practical mixed precision algorithm for post-training quantization. In BMVC Workshop on Computational Aspects of Deep Learning, 2023.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10684–10695, 2022.
Yuzhang Shang, Zhihang Yuan, Bin Xie, Bingzhe Wu, and Yan Yan. Post-training quantization on diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023.
Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021.
Zhenhong Sun, Ce Ge, Junyan Wang, Ming Lin, Hesen Chen, Hao Li, and Xiuyu Sun. Entropy-driven mixed-precision quantization for deep network design. In Advances in Neural Information Processing Systems, volume 35, 2022.
Satoki Tsuji, Hiroshi Kawaguchi, Atsuki Inoue, Yasufumi Sakai, and Fuyuka Yamada. Greedy search algorithm for mixed precision in post-training quantization of convolutional neural network inspired by submodular optimization. In Proceedings of the 13th Asian Conference on Machine Learning, volume 157 of Proceedings of Machine Learning Research, pp. 886–901. PMLR, 2021. URL https://proceedings.mlr.press/v157/satoki21a.html.
Zhijun Tu, Jie Hu, Hanting Chen, and Yunhe Wang. Toward accurate post-training quantization for image super resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5856–5865, 2023.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, 2017. URL https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html.
Kuan Wang, Zhijian Liu, Yujun Lin, Ji Lin, and Song Han. HAQ: Hardware-aware automated quantization with mixed precision. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
Xiuying Wei, Ruihao Gong, Yuhang Li, Xianglong Liu, and Fengwei Yu. QDrop: Randomly dropping quantization for extremely low-bit post-training quantization. In International Conference on Learning Representations, 2022.
Miles Williams and Nikolaos Aletras. On the impact of calibration data in post-training quantization and pruning. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL), pp. 10100–10118, 2024.
Zhewei Yao, Zhen Dong, Zhangcheng Zheng, Amir Gholami, Jiali Yu, Eric Tan, Leyuan Wang, Qijing Huang, Yida Wang, Michael W. Mahoney, and Kurt Keutzer. HAWQ-V3: Dyadic neural network quantization. In Proceedings of the International Conference on Machine Learning (ICML), pp. 11875–11886, 2021.
Zhihang Yuan, Jiawei Liu, Jiaxiang Wu, Dawei Yang, Qiang Wu, Guangyu Sun, Wenyu Liu, Xinggang Wang, and Bingzhe Wu. Benchmarking the reliability of post-training quantization: a particular focus on worst-case performance. arXiv preprint arXiv:2303.13003, 2023.
Kai Zhang, Yawei Li, Wangmeng Zuo, Lei Zhang, Luc Van Gool, and Radu Timofte. Plug-and-play image restoration with deep denoiser prior. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(10):6360–6376, 2022. doi: 10.1109/TPAMI.2021.3088914.
A PROOFS
With, , the ratios are defined in (2) with their zero conventions, and all conditional moments of Theorem 1 assumed finite. Recall the bounded domain assumption of Section 3: is deterministic with .
A.1 PROOF OF THEOREM 1 (LAYERWISE BOUND)
For , define the comparison variable
This replaces the two random norms by the deterministic bounds and .
Step 1: domination on the conditioning event. Taking norms in the exact decomposition (1) and using the triangle inequality gives
(19)
The equality remains valid when either denominator in the definitions of and is zero, by the corresponding zero convention. Therefore, on
we have
Step 2: exact conditional moments and conditional one-sided Chebyshev. Suppose that . Since and are deterministic constants, the first two conditional moments of are
where and are defined in (12). If , set
Since , the one-sided Chebyshev inequality (Cantelli's inequality) gives
(24)
If , then almost surely conditionally on . The probability of the strict event in (24) is therefore zero. Thus (24) holds in both cases.
Step 3: the first layer. Let
The event holds almost surely. Hence the conditional probability in (24) is well defined at . Moreover, (21) gives
It follows that
(27)
If , then , and this already proves the theorem. We now assume .
Step 4: induction up to layer . For , we prove
Base case . Since
Equation (7) and the preceding estimate give
This proves (28) at .
Inductive step. Let and assume (28) at . Then
Thus the conditional bound (24) is well defined at layer .
Let
By (21),
Therefore, using (24) and the induction hypothesis,
Finally,
Using Equation (7) once more,
This proves the induction claim.
Conclusion. By (28),
Hence (24) applies at the final layer. Let
The same event decomposition gives
(39)
A.2 PROOF OF LEMMA 1 (GLOBAL BOUND)
The recursion (4) is the sequential construction used in this proof.
Step 1: almost-sure domination. We show for every by induction. At , . For the step, by (19), the nonnegativity of , and the induction hypothesis,
This step is deterministic.
Step 2: one-sided Chebyshev. has finite mean and variance by assumption, set . If , then and the one-sided Chebyshev inequality (Cantelli, 1928) gives
If , then almost surely and , so ; the non-strict event would fail in this degenerate case, which is why Lemma 1 is stated with a strict inequality. In both cases, by Step 1, , and (5) follows.
A.3 PROOF OF THE PROPAGATION RULES OF TABLE 4
For the global bound, we represent a neural network, including self-attention operations, by a directed acyclic graph with node set V and edge set E. A node stores the output of an operation, and an edge means that the operation at v uses the output of u. The input and output nodes are and . Nodes are evaluated after their parents.
At each node, the full-precision and quantized passes produce and , with . We take Euclidean norms of the outputs viewed as vectors. For a single-parent operation, indexes the parameters of the operation at , such as for a linear layer. Addition and concatenation have two parents, denoted by and .
For a quantized linear or convolutional edge, define
with the same zero conventions as in Definition 1.
Self-attention combines token features using weights computed from the tokens themselves (Vaswani et al., 2017). For example, one dot-product attention head computes
Each row of S is a token, is the key dimension, and softmax is applied row by row. Multiple heads are computed in parallel, then concatenated and projected to the output space.
We write for the complete attention block, with collecting its quantizable parameters. The map is the same block with quantized parameters. All other operations are unchanged. Define
(43)
with when . For self-attention, use the edge-indexed form of Equation (43):
with when . The realized normalization ratios below are also set to zero when .
Table 4: Propagation rules for the global bound on a computation DAG. If the bounds hold at the parent nodes, each update ensures .
| Operation | Update of the bound | Justification |
|---|---|---|
| Quantizable linear | decomposition (1) | |
| affine, frozen statistics | ||
| Frozen affine norm., | , | affine, frozen statistics |
| , | affine, frozen statistics | |
| Data-dependent norm., | , | realized ratio (Group-Norm, LayerNorm) |
| , | realized ratio (Group-Norm, LayerNorm) | |
| , | Lipschitz property | |
| , | triangle inequality | |
| Residual addition | triangle inequality | |
| triangle inequality | ||
| Channel concatenation | Pythagorean identity | |
| NN-upsampling, factor , | replication identity | |
| replication identity | ||
| Additive embedding | shared across the two passes (per sample) | |
| realized ratio and local term, Eq. (43) | ||
| Self-attention | realized ratio and local term, Eq. (43) | |
| realized ratio and local term, Eq. (43) |
We prove that, on a computation directed acyclic graph (DAG) whose nodes are the operations of Table 4, the bound defined by the table rules satisfies almost surely at every node . The proof is a deterministic induction in topological order; the base case is the input node, where . For the inductive step, assume at every parent of ; we treat each rule. Throughout, and denote the exact and quantized outputs at , and .
(1) Quantizable linear. Identical to (19)–(21) with in place of : , using and the induction hypothesis.
(2) Frozen affine normalization. The notation BN refers to batch normalization with fixed statistics; the same rule applies to any fixed affine normalization. With frozen affine parameters , the shift cancels in the difference: , so by the definition of and its zero convention.
(2b) Data-dependent normalization (GroupNorm, LayerNorm). Here with statistics computed from the current activation, so is not an affine image of . By the definition of the realized ratio , . The zero convention is safe on both sides: implies , hence , since the normalization carries no quantized parameters in our setting.
(3) .
(4) Residual addition. Here, and are the two parent nodes of , whose outputs are added. , so by the triangle inequality and the induction hypothesis at both parents, .
(5) Channel concatenation. Here, and are the two parent nodes of , whose outputs are concatenated along the channel dimension. , using ; taking square roots gives the rule.
(6) Nearest-neighbor upsampling. Upsampling by factor in spatial dimensions replicates each entry of its input exactly times, and acts entrywise, so it commutes with the difference: and
so . In two spatial dimensions the factor is , i.e. 2 for the standard upsampling.
(7) Additive embedding.
An additive embedding supplies extra information to the network. A vector , for example an encoding of the diffusion timestep, is projected by and added to the current output:
The embedding input is identical on both forward passes for each sample; for timestep embeddings, varies across samples but is shared between the exact and quantized passes, which is all the rule needs. Hence and ; the local term is used in absolute form, so no normalization convention is needed.
(8) Self-attention (or any deterministic map with quantizable parameters, evaluated on the same inputs in both passes). Write for the block with exact parameters and with quantized parameters. The error decomposes exactly as
By the triangle inequality and the definitions (43) (the zero convention on is safe, since makes the propagated term vanish identically; the local term is absolute and needs no convention),
No Lipschitz property of is used: is the realized ratio on each input, so the domination follows directly from the exact decomposition in (46). Dot-product attention has no finite global Lipschitz constant on its unbounded input space (Kim et al., 2021), so need not admit a useful almost-sure bound; the only additional assumption is the finite second moment of required by Lemma 1. When the block is kept in full precision ( ), the local term of (46) vanishes and the rule reduces to .
A.4 A LAYERWISE BOUND ON DAGS
For completeness, we extend Theorem 1 to the DAG defined above. At each node v, the output bound is a deterministic constant satisfying
These bounds are assumed to be available. The recursion below constructs the error bounds .
Start with and , and process nodes after their parents. For a parent u, define
Let contain the nodes where we apply conditional Cantelli: quantizable linear layers and frozen affine or data-dependent normalization layers. For such a node v with parent u and edge , define
We then set
This is the construction in Equation (12), applied to a node rather than a layer. The proof below establishes that each conditioning event has positive probability.
The other nodes use deterministic updates:
For the additive-embedding update, we assume that is fixed across samples, so is a deterministic constant. The global rule only requires the two passes to share for each sample; it allows to vary between samples.
Lemma 2 (Layerwise bound on DAGs). Assume
• the DAG is built from operations from Table 4 excluding self-attention (see the closing remark);
• for each node , the levels and are fixed, and is a deterministic bound satisfying , with under the bounded-support convention;
• for each with parent , has finite conditional mean and variance given ;
- , which by the invariant (55) keeps every conditioning event of positive probability.
Then, defining events for all nodes , we have
Proof. For each node v where conditional Cantelli is applied with parent u, define the local failure event
Here is the comparison variable defined above. Its local failure probability is bounded during the induction below. For each node , define the output failure event , with by the assumed bound on .
We prove, by induction in topological order, the set inclusion
where ranges over the ancestors of (including ). Because the right-hand side is a union of sets, an ancestor shared by several branches contributes a single set, and no double counting can occur at merge nodes; the union bound is paid exactly once, at the output.
Base case. At the input node, deterministically, so and (55) holds. Inductive step.
Assume that the invariant and the local failure bounds hold at all previously processed nodes. For each parent u,
The last inequality follows from the total probability budget in the lemma. Thus the conditional moments used at v are well defined.
A single-parent node using conditional Cantelli. On , we have . Hence
Conditional Cantelli gives
including the zero-variance case as in (24). Since ,
The induction hypothesis at u proves the invariant at v.
A single-parent node using a deterministic update. Write the update as . For a pointwise nonlinearity, upsampling, and additive embedding, respectively,
The embedding case uses the deterministic e assumed above. On ,
Therefore,
The induction hypothesis proves the invariant at v. There is no local event in this case.
An addition or concatenation node. On , addition gives
For concatenation,
Thus, in both cases,
Every ancestor of either parent is an ancestor of v. Applying the induction hypothesis at both parents and adding proves the invariant. Shared ancestors appear only once in the union.
Conclusion. Applying (55) at the output node, the inclusion , and the union bound once,
Remark 1 (Scope). Lemma 2 covers the operations in Table 4 except self-attention. At a self-attention node, the comparison variable dominates on by the same argument, so the lemma extends at the cost of finite conditional moments of given , including their conditional covariance, the comparison variable being the linear combination ; we do not use this extension in our experiments, where attention graphs are handled by the global bound of Lemma 1.
A.5 SENSITIVITY OF THE EMPIRICAL FUNCTIONALS
Let and let be the calibration values of and replace one sample by an arbitrary . The empirical mean moves by , a bound attained when one sample jumps across the full range. For the standard deviation with divisor , gives , and yields . The empirical maximum admits no such bound: with and , replacing by 0 moves the maximum by for every .
At the level of the score (16) the two rates combine: the worst-case displacement of is at most , dominated by the standard-deviation term scaled by . At the operating point of our experiments ( , ) this evaluates to about 0.49 M, against M for the maximum; the asymptotic separation in n is therefore partly consumed by the factor at practical sample sizes. This replacement calculation concerns one changed value; it is not a stability guarantee for the selected allocation.
B EXPERIMENTAL DETAILS AND COMPLETE CONTROLS
B.1 DRUNET IMPLEMENTATION DETAILS
The 36 allocation blocks contain 64 convolutions: a one-convolution head; three downsampling stages with four residual blocks and one downsampling convolution each; four residual blocks in the body; three upsampling stages with one upsampling convolution and four residual blocks each; and a one-convolution tail. Activations stay in FP32. Weight quantization is symmetric and per output channel within the RTN comparisons. The AIMET comparison uses the common TF-Enhanced backend described in Section 6.1. It runs both official AMP selection phases, adapted to our blocks and weight-memory budget. The selection uses calibration SQNR, not the test set.
For every data-dependent method, calibration seeds 0, 1, and 2 select 256 images each. The fixed test set contains 100 images selected with seed 42. The input denoising noise has standard deviation 0.1. The clean target, test input, and evaluation code are shared within every comparison. The reported average bit-widths are weighted by the number of weights in each block.
Confidence intervals. For each test image, we compute the PSNR difference between the two methods for each of the three calibration runs. We then average the three differences. This gives 100 values, one per test image. The 95% confidence interval for their mean is , where is their sample standard deviation. CLADO uses the normal critical value . The reported AIMET intervals are reproduced with the Student critical value (99 degrees of freedom). These intervals do not account for new calibration sets.
Table 5: DRUNet comparison settings. The block partition and parameter-weighted budget are shared within every baseline comparison.
| Reference | Quantizer | Candidate bit-widths | Allocation rule |
|---|---|---|---|
| OMPQ-ORM (Ma et al., 2023) | per-channel RTN | 3–8 | adapted ORM + MILP |
| CLADO (Deng et al., 2025) | per-channel RTN | 3, 4, 8 | pairwise IQP |
| AIMET AMP (Pandey et al., 2023) | TF-Enhanced | 4, 6, 8 | sensitivity + Pareto |
| Adapted output-SQNR (Pandey et al., 2023) | per-channel RTN | 3–8 | output SQNR + greedy |
B.2 CLEAN OUTPUT-SQNR CONTROL FOR DIFFERENT BUDGETS
This clean control adapts the output-SQNR sensitivity used by Pandey et al. (2023) to the common DRUNet blocks and weight-only RTN backend. One block is quantized at a time, the final DRUNet output is compared with the FP32 output, and the resulting negative SQNR is passed to the same greedy allocation rule. It is a score control, not the complete AIMET AMP pipeline. Writing for the network in which only block is quantized to bits, the implemented score is
where the sums cover all calibration images and output elements, and is the smallest positive float64 value.
B.3 CLADO CONTROL WITH IDENTICAL CANDIDATE BIT-WIDTHS
The main CLADO comparison uses each algorithm in its intended candidate space: W3/W4/W8 for CLADO and W3–W8 for our method. The corrected control in Table 7 also restricts our algorithm to W3/W4/W8. Each move is ranked by score increase per weight bit saved, using the same denominator as in Section 5. Thus only the candidate set changes. Both methods share a target ceiling, but their realized precision can still differ.
Table 6: PTQ with different budgets. Entries are PSNR in dB, with realized average bit-widths in parentheses. Our method, output-SQNR, and OMPQ-ORM use W3–W8; CLADO uses W3/W4/W8.
| B | Ours | Output-SQNR | OMPQ-ORM | CLADO |
|---|---|---|---|---|
| 3.5 | 33.300 (3.483) | 31.957 (3.494) | 31.970 (3.494) | 34.101 (3.494) |
| 4.0 | 34.401 (3.987) | 34.247 (3.988) | 32.587 (3.988) | 34.409 (3.988) |
| 4.5 | 34.512 (4.439) | 34.446 (4.494) | 33.023 (4.494) | 34.503 (4.458) |
| 5.0 | 34.574 (4.895) | 34.460 (4.964) | 34.453 (4.964) | 34.578 (4.992) |
Table 7: Clean CLADO control with the same W3/W4/W8 candidates for both methods.
| B | Our mean bit-width | Our PSNR | CLADO mean bit-width | CLADO PSNR |
|---|---|---|---|---|
| 3.5 | 3.4704 | 32.9967 | 3.4935 | 34.1012 |
| 4.0 | 3.9684 | 34.4081 | 3.9884 | 34.4089 |
| 4.5 | 4.4021 | 34.4629 | 4.4583 | 34.5028 |
| 5.0 | 4.9803 | 34.5139 | 4.9923 | 34.5776 |
Table 8 uses the same candidates at under the two corruptions. The clean values are almost identical. Under corrupted calibration, our allocation keeps the same PSNR while CLADO loses more than 5 dB. This control shows that the corruption result is not created by giving our method intermediate bit-widths.
Table 8: CLADO control at target with W3/W4/W8 candidates for both methods. Positive differences favor our method.
| Calibration | Our mean bit-width | Our PSNR | CLADO mean bit-width | CLADO PSNR | Our gain |
|---|---|---|---|---|---|
| clean | 3.9684 | 34.4081 | 3.9884 | 34.4089 | -0.0008 |
| p = 0.5 shared | 3.9684 | 34.4081 | 3.9392 | 27.8235 | +6.5845 |
| p = 0.9 per-channel | 3.9684 | 34.4081 | 3.9870 | 28.9281 | +5.4800 |
B.4 MEASURED SELECTION TIME
We measure the complete mixed-precision selection stage on DRUNet with 256 clean calibration images. Table 9 reports median times over three runs after warm-up. Each comparison uses the backend and candidate bit-widths of the reference method. Model loading, data preparation, quantization application, and PSNR evaluation are excluded.
All methods use one NVIDIA A100-PCIE-40GB, except CLADO, which uses two. The reported CLADO speed-up compares the time required to complete the selection.
Layerwise allocation. We add the recorded times for collecting local perturbations, computing scores and assigning bit-widths. We count the full collection shared with the blockwise variant and exclude PSNR evaluation. The median over three calibration seeds is 24.32 seconds on one A100. These measurements are separate from the benchmark in Table 9.
B.5 COMPLETE DRUNET CURVES AND ALLOCATION STABILITY
Figure 1 reports the CLADO comparison, including a control with the same candidate bit-widths.
Figures 2, 3, 4, 5, and 6 give the corresponding allocation diagnostics and the complete OMPQ and AIMET comparisons. In the recorded AIMET condition, the input-noise standard deviation changes from 0.10 to 0.20; the block partition, calibration size, candidate bit-widths, and evaluation procedure are unchanged.
Table 9: Median DRUNet mixed-precision selection times over three runs. Speed-up is the reference time divided by our matched time.
| Matched comparison | Our time | Reference time | Speed-up |
|---|---|---|---|
| AIMET backend | 1 min 29 s | AIMET AMP: 42 min 04 s | 28.4× |
| OMPQ, fixed | 15.7 s | OMPQ-ORM: 8 min 01 s | 30.6× |
| OMPQ, including search | 15.7 s | OMPQ-ORM: 13 min 51 s | 52.9× |
| CLADO W3/W4/W8 | 8.66 s | CLADO: 6 h 11 min | 2,570× |


Figure 1: DRUNet PSNR versus average bit-width for the adapted CLADO comparison. Higher PSNR is better. The dotted curve uses W3/W4/W8 for both methods. Under both calibration corruptions, our method achieves much higher PSNR than CLADO, even with the same candidate bit-widths.

Figure 2: Allocation stability under corrupted calibration for our method and CLADO. Top: changed blocks (lower is better). Bottom: Spearman correlation with the configuration calculated with a clean dataset (higher is better). Values are averaged over three calibration seeds. Our method changes fewer block bit-widths than CLADO and better preserves their ordering under both calibration corruptions.

Figure 3: DRUNet PSNR versus average bit-width for the adapted OMPQ-ORM comparison under clean and corrupted calibration. Higher PSNR is better. Our method achieves higher PSNR at intermediate budgets under both clean and corrupted calibration.
(a) Allocation ranking stability

(b) Discrete allocation changes vs. clean
Figure 4: Allocation stability for the adapted OMPQ-ORM comparison under corrupted calibration. Left: Spearman correlation (higher is better). Right: changed blocks (lower is better). OMPQ-ORM often changes fewer block bit-widths, but its bit-width ordering is less stable under per-channel corruption at higher budgets.

(c) Calibration mask (shared RGB)
(d) Calibration mask (per-channel)
Figure 5: DRUNet PSNR versus average bit-width for AIMET under clean and corrupted calibration and at . Higher PSNR is better. Our method has an advantage at intermediate budgets under corrupted calibration, while both methods approach FP32 PSNR at higher budgets.

Figure 6: AIMET allocation stability under the conditions in Figure 5. Left: Spearman correlation (higher is better). Right: changed blocks (lower is better). Our method changes fewer block bit-widths than AIMET and better preserves their ordering under both calibration corruptions.
Allocation calibration p=0.5 shared RGB, target ceiling B=4.5 — fixed random sample (seed 20260814; representative selection) Realized bits: Ours 4.3699, CLADO 4.4923
Clean target
idx 93
CLADO-Ours=7.662 dB
Model input

FP32
idx 43
CLADO-Ours=5.636 dB
Ours (W3-W8)
CLADO
idx 98
CLADO-Ours=7.646 dB
34.524 dB
34.373 dB
26.711 dB
34.961 dB
34.802 dB
29.166 dB
34.126 dB
33.970 dB
26.324 dB
The 100-image test input is unchanged (nominal ). Calibration masking affects only the selected allocation. Labels are sealed A100 PSNR; display is clipped to [0,1].
Figure 7: Fixed-random DRUNet examples for the adapted CLADO comparison at B = 4.5 under the p = 0.5 shared calibration corruption. Test inputs are unchanged, and the displayed allocation uses calibration seed 0. In these examples, our outputs remain close to FP32, while CLADO leaves visibly more residual noise.
B.6 FIXED-RANDOM QUALITATIVE EXAMPLES
The following panels use indices selected with fixed random seeds before inspecting method differences. They are illustrations only; all numerical conclusions use the same 100 test images and three calibration sets as the quantitative tables. Images are clipped to for display, while PSNR is computed from the unclipped model outputs. The average bit-width labels in the panels describe the displayed calibration run, whereas the quantitative tables average three runs. Figures 7, 8, and 9 show the three comparisons.
Clean calibration, target ceiling B = 4 — Fixed random sample (seed 20260812; representative selection)
Realized bits: Ours 3.9905, OMPQ-ORM 3.9884

All panels use the same nominal test input. Display is clipped to ; PSNR uses unclipped outputs.
Figure 8: Fixed-random DRUNet examples for the adapted OMPQ-ORM comparison at B = 4 under clean calibration. Our outputs remain close to FP32 and have higher PSNR than OMPQ-ORM in these examples.
p050_shared, target budget 5 — Fixed random sample (seed 20260811; representative selection)

Display clipped to ; PSNR is computed on unclipped outputs, exactly as in the sealed protocol.
Figure 9: Fixed-random DRUNet examples for AIMET at B = 5 under the p = 0.5 shared calibration corruption. Both methods remain visually close to FP32, with slightly higher PSNR for our method in these examples.
B.7 LATENT-DIFFUSION PROTOCOL AND METRIC SCOPE
We use the pretrained CompVis CelebA-HQ latent diffusion model (Karras et al., 2018; Rombach et al., 2022). Weight reconstruction for our method and Q-Diffusion uses the Q-Diffusion/AdaRound backend (Li et al., 2023). The local score and greedy allocation rule are unchanged from the DRUNet experiment.
Our method and Q-Diffusion use the same 5,120 calibration timestep–latent pairs: 256 pairs at each of 20 timesteps, generated with seed 1234. The U-Net has 123 quantized weight tensors grouped into 48 allocation blocks. Our allocation uses candidates W3–W8 and reaches a parameter-weighted average of 3.9932 bits, with full-precision activations.
All methods generate 50,000 images with DDIM-200 (Song et al., 2021) and . They use seeds 40 and 41, the same historical 25,000-image reference, and torch-fidelity 0.3.0.
Table 10: CelebA-HQ results on 50,000 images. Paired PSNR is the mean of the per-image PSNR values relative to FP32.
| Method | Weights / activations | FID ↓ | Paired PSNR ↑ |
|---|---|---|---|
| FP32 | FP32 / FP32 | 20.807 | - |
| Our method | Mixed (3.9932) / A32 | 20.853 | 34.644 |
| Q-Diffusion | W4 / A32 | 22.626 | 24.060 |
| TFMQ-DM | W4 / A32 | 20.928 | 24.545 |
Q-Diffusion is the closest allocation-focused control. It shares the calibration pairs and reconstruction backend with our method. Its W4 weights and our mixed-precision weights are reconstructed separately, so this is not a score-only comparison.
TFMQ-DM is a separate end-to-end pipeline designed for diffusion models (Huang et al., 2024). It uses a Temporal Information Block and temporal-feature-aware weight reconstruction. It uses a uniform 4-bit weight allocation in the PSNR comparison, on the same 123 weight tensors as our method.
The four PSNR runs use aligned image indices, seeds, DDIM settings, and output counts. Pairing with historical FP32 and Q-Diffusion outputs is reconstructed from the recorded protocol, with a direct check on 1,000 identical FP32 images. Exact equality of all historical initial noise tensors cannot be verified.
FID (Heusel et al., 2017) compares the generated distribution with the CelebA-HQ reference. Paired PSNR compares each quantized output with the corresponding FP32 output. Figure 10 shows the PSNR distributions, and Figure 11 shows paired generated images.

N = 50,000 finite / 50,000 indices; historical FP32 pairing reconstructed
Figure 10: Paired PSNR distributions over 50,000 images. This metric measures fidelity to the corresponding FP32 output, not image realism or FID. Higher PSNR is better (further right). Our distribution is shifted towards higher PSNR values, showing closer visual similarity with the paired FP32 outputs.
Deterministic random samples
FP32
seed 40
#00218
TFMQ-DM
W4/A32
Q-Diffusion
W4/A32
Ours
Paper-score mixed

Generated FP32 reference
PSNR: 23.72 dB
PSNR: 25.66 dB
PSNR: 35.95 dB
seed 41
#30585

Generated FP32 reference
PSNR: 27.74 dB
PSNR: 25.08 dB
PSNR: 34.45 dB
seed 40
#22942
Generated FP32 reference
PSNR: 24.76 dB
PSNR: 23.92 dB
PSNR: 36.49 dB
seed 41
#31559

Generated FP32 reference
PSNR: 23.64 dB
PSNR: 25.10 dB
PSNR: 36.17 dB
Fidelity to FP32, not realism. Historical reference pairing reconstructed.
Figure 11: Paired CelebA-HQ samples. The four indices were selected by a fixed random rule before the metrics and images were inspected. FP32 is the reference output, not the ground truth. These examples show that our method better preserves the facial features and expressions of the FP32 outputs.
B.8 ADDITIONAL NATURAL-IMAGE RESULTS
We repeat the DRUNet allocation experiments on natural images from BSDS500 (Arbeláez et al., 2011). For each of three seeds, we draw 256 calibration images from the 400 images in the official training and test splits. We evaluate on the 100 validation images, using central RGB crops and Gaussian noise with . Calibration and evaluation images are disjoint. The evaluation images and noise are fixed across methods and seeds. We also report results on the CBSD68 subset of these 100 images; this is not an independent test set or the native-resolution CBSD68 protocol.
All methods use the same 36 allocation blocks, symmetric per-output-channel RTN and FP32 intermediate outputs. We compare our method with OMPQ-ORM using W3–W8, and with CLADO using W3/W4/W8. Only calibration inputs receive the corruptions defined in Section 6.1. OMPQ-ORM's is selected on clean calibration data and then fixed across conditions. The tables report means over the three calibration seeds. Budgets are upper limits, so mean bit-widths are shown explicitly.
Table 11 shows that our main W3–W8 configuration remains close to CLADO under clean calibration and outperforms OMPQ-ORM. With the common W3/W4/W8 candidates, our method matches CLADO at . CLADO has higher clean PSNR at . Under both corruptions, our method performs better than CLADO with either candidate set. Table 12 shows the same pattern on the CBSD68 subset.
Table 11: BSDS500 results on 100 images. Each entry gives PSNR in dB (higher is better), followed by mean bit-width in parentheses. FP32 obtains 31.062 dB and uniform W4 obtains 28.160 dB.
| Method | Candidate bit-widths | Clean | p = 0.5 shared | p = 0.9 per-channel |
|---|---|---|---|---|
| B = 3.5 | ||||
| Our method | 3-8 | 30.415 (3.479) | 30.229 (3.495) | 30.471 (3.494) |
| OMPQ-ORM | 3-8 | 29.038 (3.494) | 29.038 (3.494) | 29.043 (3.494) |
| Our method | 3, 4, 8 | 29.919 (3.470) | 30.007 (3.470) | 30.125 (3.470) |
| CLADO | 3, 4, 8 | 30.580 (3.496) | 25.782 (3.492) | 27.568 (3.500) |
| B = 4 | ||||
| Our method | 3-8 | 30.901 (3.970) | 30.899 (3.985) | 30.898 (3.916) |
| OMPQ-ORM | 3-8 | 29.551 (3.988) | 29.679 (3.988) | 29.878 (3.988) |
| Our method | 3, 4, 8 | 30.863 (3.968) | 30.863 (3.968) | 30.863 (3.968) |
| CLADO | 3, 4, 8 | 30.876 (3.988) | 26.704 (3.994) | 27.719 (3.969) |
Table 12: PSNR on the CBSD68 subset, using the same allocations and mean bit-widths as Table 11. FP32 obtains 31.240 dB and uniform W4 obtains 28.187 dB. Higher is better.
| Method | Candidate bit-widths | Clean | p = 0.5 shared | p = 0.9 per-channel |
|---|---|---|---|---|
| B = 3.5 | ||||
| Our method | 3-8 | 30.570 | 30.374 | 30.626 |
| OMPQ-ORM | 3-8 | 29.186 | 29.185 | 29.191 |
| Our method | 3, 4, 8 | 30.060 | 30.150 | 30.270 |
| CLADO | 3, 4, 8 | 30.745 | 25.829 | 27.604 |
| B = 4 | ||||
| Our method | 3-8 | 31.073 | 31.071 | 31.071 |
| OMPQ-ORM | 3-8 | 29.704 | 29.814 | 30.022 |
| Our method | 3, 4, 8 | 31.035 | 31.035 | 31.035 |
| CLADO | 3, 4, 8 | 31.047 | 26.711 | 27.778 |
Figures 12 and 13 show the quality of our W3–W8 allocations and their response to calibration corruption. Figure 14 gives fixed-random examples at B = 4, with central zooms in Figure 15.
DRUNet on natural images: PSNR vs. realized weight precision RGB center crops 256 x 256 | Gaussian noise sigma=0.1 | FP32 activations

Ours: clean calibration
Ours: shared mask, p=0.5
Ours: channel-wise mask, p=0.9
Uniform W4 / A32
FP32 quality reference (32-bit)
Mean +/- sample SD over 3 calibration seeds. Lines connect the two measured budgets; no intermediate runs.
Figure 12: DRUNet PSNR on BSDS500 and its CBSD68 subset. Our mixed-precision allocations remain close to FP32 at under all three calibration conditions. Higher PSNR is better. Error bars show the standard deviation over three calibration seeds. Lines connect the two tested budgets.
Effect of calibration corruption Corrupted-calibration PSNR minus clean-calibration PSNR; evaluation inputs remain fixed

shared mask, p=0.5
channel-wise mask, p=0.9
Same budget ceiling, not identical realized bits. Error bars: sample SD of 3 paired calibration-seed differences.
Figure 13: PSNR change when calibration inputs are corrupted, with the test set fixed. Values near zero indicate little change in quality. The effect is negligible at and larger at . Error bars show the standard deviation of the three paired calibration-seed differences.
The three images are selected independently of image quality and PSNR, and are shared across all displayed methods and conditions.
DRUNet / Berkeley | target B <= 4 bits | Full 256 x 256 crops
Same test inputs across methods | calibration seed 0 | deterministic image selection, independent of scores

PSNR labels use the full image and unclipped predictions. Only the display is clipped to [0,1]. All activations: FP32.
The outlined region and all zooms use the same fixed coordinates. Qualitative examples do not replace the 100-image results.
Figure 14: Fixed-random BSDS500 examples at B = 4, using calibration seed 0. The mixed-precision outputs are similar across calibration conditions. PSNR is computed on the full crop before display clipping.
DRUNet / Berkeley | target B <= 4 bits | Fixed central zoom (96 x 96)
Same test inputs across methods | calibration seed 0 | deterministic image selection, independent of scores

PSNR labels use the full image and unclipped predictions. Only the display is clipped to [0,1]. All activations: FP32.
The outlined region and all zooms use the same fixed coordinates. Qualitative examples do not replace the 100-image results.
Figure 15: Central zooms of Figure 14. The same region is shown for every method. PSNR labels refer to the full crops, not the zooms. Our outputs remain similar under the two calibration corruptions.
B.9 EFFECT OF ALLOCATION GRANULARITY
The low cost of our allocation method allows us to explore finer choices of bit-width. We replace the 36 blocks by 64 independent convolutional layers, keeping W3–W8, the local score and the greedy rule unchanged. Both variants reuse the same FP32 calibration passes. Each experiment uses three calibration sets of 256 images and a fixed test set of 100 images.
On CelebA, the layerwise allocation improves PSNR by 0.78 dB at and reaches the quality of CLADO (Table 13). The CLADO values are those reported in the main comparison; its 36 groups and W3/W4/W8 candidates differ from our layerwise configuration. The block–layer comparison uses its own paired block control.
Table 13: Allocation granularity on CelebA with clean calibration. Values are means over three calibration seeds. CLADO is included as a quality reference with its original groups and candidates.
| Method | Decisions | Candidate bit-widths | Mean bit-width | PSNR (dB) |
|---|---|---|---|---|
| Our method | 36 blocks | 3–8 | 3.482 | 33.298 |
| Our method | 64 layers | 3–8 | 3.494 | 34.078 |
| CLADO | 36 blocks | 3, 4, 8 | 3.494 | 34.101 |
| Our method | 36 blocks | 3–8 | 3.987 | 34.401 |
| Our method | 64 layers | 3–8 | 3.990 | 34.451 |
| CLADO | 36 blocks | 3, 4, 8 | 3.988 | 34.409 |
On BSDS500, finer allocation improves PSNR at in all three calibration conditions, while both granularities give nearly identical quality at (Table 14). These results show the benefit of allowing more allocation choices at tight budgets. They compare two grouping choices: grouping also determines which local perturbations are summed before their mean and dispersion are computed.
Table 14: Allocation granularity on BSDS500, with W3–W8 for both variants. Each entry gives mean PSNR in dB, followed by mean bit-width in parentheses.
| Decisions | Clean | shared | per-channel |
|---|---|---|---|
| 36 blocks | 30.415 (3.479) | 30.229 (3.495) | 30.471 (3.494) |
| 64 layers | 30.656 (3.498) | 30.581 (3.494) | 30.658 (3.498) |
| 36 blocks | 30.901 (3.970) | 30.899 (3.985) | 30.898 (3.916) |
| 64 layers | 30.904 (3.975) | 30.903 (3.993) | 30.899 (3.997) |