WorksComputer Science
A Unified Hessian-Guided Framework for Post-Training Quantization
Abstract
Low-bit quantization enables efficient deployment of large language models by reducing memory footprint and computational cost. Achieving high accuracy at low precision requires selecting quantization ranges, linear transformations, and weight rounding decisions. Existing approaches typically optimize these components independently using local reconstruction objectives, which fail to account for the varying impact of quantization errors on downstream predictions. Direct optimization of task-level metrics would provide a more faithful objective, but is challenging due to the discontinuous nature of quantization operations and the high computational cost of evaluating their downstream effects. In this work, we derive a Hessian-guided approximation of the output change induced by joint weight and activation quantization. Based on a tractable Fisher approximation, we formulate a unified post-training quantization framework that enables the joint optimization of quantization ranges, linear transformations, and weight rounding under a common output-sensitivity objective. The resulting method remains practical for modern large language models and consistently outperforms state-of-the-art transformation and rounding methods across both channel-wise and block-wise quantization settings.
Introduction
Large language models achieve strong performance across a wide range of language tasks, but their memory and computational requirements make deployment expensive. Quantization reduces these costs by representing weights and activations at lower precision, improving memory efficiency and enabling faster integer computation. The central challenge is to obtain these benefits while preserving the predictions of the full-precision model.
We focus on integer post-training quantization (PTQ) of both weights and activations. A small calibration set informs the quantization parameters. At a fixed bit width, accuracy depends on the quantization ranges, rounding choices, and representation basis. Quantization ranges set the scales: narrower ranges give finer grids but can increase clipping error. Rounding then selects weights on those grids. Both choices operate on a given representation of the layer. An invertible, function-preserving transform ([28]), such as a rotation or Hadamard transform ([3]), changes that representation by redistributing weight and activation magnitudes while preserving the full-precision layer output. Range selection and transforms can address both weights and activations, whereas adaptive rounding primarily addresses weights.
Local reconstruction evaluates these choices by the error they introduce at a layer’s output. But, as shown in Figure 1, the magnitude of local perturbations is not necessarily a good proxy for the

Figure 1. Relationship between the KL divergence between the original and quantized model outputs and several layer-local error proxies across linear layers of Llama 3.2 1B Instruct under W4A4 quantization. Conventional reconstruction metrics, such as the output Frobenius norm, exhibit weak correlation with downstream output degradation. Fisher-weighted weight error fails to capture the effect of activation quantization. Output Fisher-weighted error correlates more strongly with the KL divergence, and our proposed Kronecker factorization of the Output Fisher retains this correlation.
Qualcomm AI Research is an initiative of Qualcomm Technologies, Inc. changes in the model output. Existing methods [27] capture these downstream effects through an approximation to the Hessian of the full-model output KL divergence with respect to a layer’s weights. However, methods based on the Weight Hessian fail to capture the error introduced by quantizing the activations (Figure 1, second column).
In this work, we use a quadratic expansion of the KL divergence between the original and quantized model predictions around the layer output with a tractable approximation (Figure 1, third and last column). This lets us derive a unified algorithm that optimizes transformations, range setting, and weight rounding under the same curvature metric, accounting for the downstream effects of both weight and activation quantization.
Our contributions are:
We introduce a layer Output Kronecker-factorized approximation to the layer-output Fisher matrix that defines a quadratic proxy for the KL divergence between original and quantized outputs, accounting for both weight and activation quantization.
Using the output Kronecker factorization, we derive -PTQ, a unified procedure for transformation design, weight range selection, adaptive rounding, and activation clipping under a common downstream-sensitivity objective.
We demonstrate improvements over existing PTQ baselines across multiple model families and quantization granularities.
Background
We first introduce the quantization choices considered in this work. Let represent the activation matrix for tokens and input features, and let be the weights of a linear layer with output features. Its output is .
Quantization scales and clipping. For signed integer quantization with bits, and . Given a grid step and shift , round-to-nearest quantization is
The grid step determines the tradeoff between clipping and rounding resolution. Increasing expands the representable range and reduces clipping, but produces a coarser quantization grid. Decreasing improves resolution within the representable range, but may clip large-magnitude values.
Unlike weights, whose grid steps are fixed after calibration, activation scales depend on the current input. We therefore optimize a shared clipping factor [24] compute the corresponding input-dependent activation steps at runtime. The activations are clipped to under symmetric quantization and to under asymmetric quantization. We then apply Eq. (1) using a grid fitted to these bounds, with a zero-centered grid in the symmetric case and a shifted grid in the asymmetric case.
Weight rounding. Once the representation and quantization grid are fixed, rounding assigns each weight to a representable value. Round-to-nearest treats weights independently, whereas adaptive rounding methods coordinate these decisions so that later choices can compensate for errors introduced earlier ([20, 11]). Existing methods generally optimize either a layer-reconstruction objective or a weight-space approximation to the downstream model loss.
Transformations. For any invertible transformation , transforming the activations and weights preserves the full-precision output, , but generally changes the quantized output, . We write for the resulting layer-output perturbation. If reduces a weight group’s range under the same quantizer, can use a finer grid and have lower weight error than in their respective representations ([24]). Diagonal transforms scale channels ([19, 29, 15]). Orthogonal transforms mix channels through randomized Hadamard transforms ([26, 2]), learned rotations ([16]), or blockwise rotations with permutations ([14]). More general transforms combine rotations and scaling ([13]). FlatQuant jointly learns invertible Kronecker factors, channel scaling, and clipping through block reconstruction ([24]). CAT ([9]) and WUSH ([6]) design transforms to minimize a local error proxy.
Method
Our derivation proceeds in four steps. We first express PTQ as the minimization of the prediction divergence induced by replacing one full-precision layer with its quantized counterpart. We then approximate this divergence by a quadratic form in the layer-output perturbation. Because the resulting output Hessian is intractably large, we introduce a tractable approximation. Finally, we use this common quadratic proxy to derive practical optimization procedures for transformations, weight scales and rounding, and activation clipping.
Joint objective
Ideally, post-training quantization would jointly select the transforms, weight and activation grids, and weight rounding decisions to minimize the downstream discrepancy between the full-precision and quantized models. For a linear layer, this idealized objective can be written as:
in which refers to a measure of change of the model output.
To model the downstream effect of weight and activation quantization, we use a second-order Taylor expansion around the full-precision layer output .
in which refers to a vectorization operation that stacks the rows of a matrix into a single column vector, is the loss gradient with respect to , and is the (flattened) Hessian matrix with shape .
Common choices of loss include measures of divergence of the model output distribution with respect to the original (unperturbed model). For these choices of loss, the zero and first order terms vanish since is a global minimum for which the divergence is zero:
where and refer to the model output distribution induced by the original and quantized layer, respectively. We use the shorter expression to indicate that the norm of the layer output perturbation is weighted by a quadratic proxy of the output loss sensitivity .
Modeling the Hessian matrices
Empirically estimating a full rank Hessian matrix is intractable for modern-sized deep learning architectures due to the computation and memory requirements. However, when selecting the Kullback-Leibler divergence for Equation (4), the Hessian becomes equivalent to the Fisher Information Matrix (FIM). The (empirical) Fisher matrix can be estimated by considering the outer product of the flattened Output gradients with respect to sampled labels from the output distribution:
Estimating a full Fisher matrix, which is quadratic in the product of sequence length and output feature dimension, is clearly still not practical for full-scale deep neural networks. For this reason, following a similar procedure as Tseng et al. [27], we simplify the computation by factorizing the effect of the FIM on the sequence dimension and feature output dimension :
in which and represent proxies for the sequence and feature curvatures, respectively.
We refer to this approximation as the Output Kronecker Fisher factorization, which exactly reproduces each sampled gradient outer product when is rank 1. A summary and comparison with the literature is included in Table 1, while the correlation between the Output Kronecker Fisher weighted error and the KL divergence is visualized in Figure 1.
| Estimate | Output Fisher: | Weight Fisher: | Input Fisher: | Assumptions |
| Isotropic | Isotropic | |||
| K-FAC | Isotropic | |||
| YAQA | Rank-1 | |||
| Ours | Rank-1 |
Table 1. Comparison of Fisher Information Metric estimates for linear layer output, weights and input implied by different approaches in literature. Normalization factors are omitted for brevity.
In order to perform the optimization, we estimate and store the following quantities on a small calibration set: the expected output feature curvature , the weight input curvature and the token gradient magnitude vector . The input feature curvature can be obtained at runtime by left and right multiplying the output feature curvature by the weight matrices .
HZ-PTQ: Optimization Procedure
We start optimizing the output-Fisher-weighted proxy by considering the linear transformation . This is because the transformation affects model weights, activations, and intermediate gradients, making a joint optimization very challenging:
in which represents the optimal transformation , and is the output discrepancy with the transformation applied. Once is fixed, we denote the transformed activations and weights by and , respectively. We express the corresponding activation and weight Fisher estimates in these coordinates and use them to determine the remaining quantization parameters.
Once the transformations are fixed, using mild independence assumptions, we can factorize the effect of activation and weight quantization:
The approximate split in Eq. (8) permits disentangling weight- and activation-specific parameters. First, we find the optimal weight scale and rounding:
Lastly, we can determine the optimal clipping based on the updated weights by determining:
We refer to the resulting framework as -PTQ because all optimization stages are derived from the same layer-output curvature proxy . Sections 3.4–3.6 describe each stage.
Optimal Transformations
In order to find the optimal transformation , we first use standard rounding-noise assumptions to explicitly express our quadratic loss proxy as a function of the transformed quantization ranges for activation and weights, which determine the stretching of the quantization grid, and the norm of the transformed gradients:
The activation and weight bit widths are , , and denotes the range of the quantization grid. The weights and measure the relative gradient energy of token and output feature . They remain unchanged by the transforms because . A full derivation is reported in Appendix A.1. Overall, as expected, the expression in Eq. (11) is invariant to scaling of . Furthermore, the norm of the transformed gradients and are invariant to orthogonal transformations.
Following Federici et al. [9], we approximately minimize Eq. (11) with a two-step procedure. First, we choose the symmetric positive-definite component to minimize the sum of squared transformed gradient norms:
Here, denotes the matrix geometric mean, see Appendix A.2 for the derivation. In practice, we use a block-wise approximation to reduce the memory and computation cost ([9, 6]).
Secondly, we apply a Hadamard rotation to reduce the quantization ranges ([9]). The final transformation is obtained by combining the two components .
Note that by making the additional assumption that the output gradients are isotropic (), the expression in Eq. (11) simplifies to the one reported in Federici et al. [9], and the solution in Eq. (12) is equivalent to the transforms proposed in Federici et al. [9]; Chen et al. [7], for which aligns the directions of variations of activations and weights instead of their gradients.
Weight scales and rounding
The optimal quantization scales and rounding can be determined by considering:
In which determines the (transformed) weight input-side curvature while the output-side curvature. In order to disentangle the optimization of scales and rounding, we follow a procedure similar to the one introduced in Tseng et al. [27]: first we perform a block-LDL decomposition of the input and output curvature based on the size of the quantization tile . Here represents the number of input channels that share the same scale, while represents the number of output channels that share the same scale (usually 1):
Then, we use an iterative procedure in which we alternately set a quantization scale and adjust the weight rounding, starting from the original (transformed) weights .
The curvature for the quantization tile in coordinate is fully determined by the block diagonal components of and . Since is a scalar, the optimal scale can be determined by selecting:
in which is used to indicate the entries of the block . The expression in Eq. (15) can be easily optimized using a grid search over a few candidates to pick the best scale. Fixing the scale , we can determine the quantization error given by the quantization function in the block :
and zero everywhere else. Lastly, we can use the and matrices to determine the correction and update the rounded weight for the remaining blocks
Proceeding in anti-diagonal order starting from the bottom-right, the quantization scales can be set one at a time, and the final represents the adjusted weights . The key difference from Tseng et al. [27] lies in using to set the scale of each block and in the different Fisher proxy. Similar to Frantar et al. [10], before running the algorithm, we sort the block rows and columns so that blocks corresponding to larger Fisher traces are quantized first.
Activation clipping.
For the activation clipping it is non-trivial to determine a good : a heuristic constant value may not be optimal, but training it end-to-end is expensive and may yield sub-optimal solutions. We propose to use the Hessian proxy as a good middle ground that takes into account the downstream sensitivity.
The optimal can then be determined on a small calibration set by picking the minimum error over a small set of candidates. Note that instead of using the dense sequence curvature , we consider only a diagonal component . This is to drastically reduce the memory requirements since only one vector needs to be stored. This approximation results in little error since we empirically validated that the sequence curvature component is mostly diagonal.
Experimental Results
We evaluate our downstream-output proxy, compare quantization performance across models and quantization granularities, and ablate the contributions of individual components. Appendix B experimental details and Appendix C includes additional results.
Quantization and Calibration We consider two quantization granularities and evaluate three configurations: (i) W4A4KV4, a channel-wise setting in which weights, activations, and the KV cache are quantized to 4-bit integers [24, 3, 9]; weights use one scale per output channel, while activations use one scale per token; (ii) W4-g32, a block-wise weight-only setting in which groups of 32 weight values share a floating-point scale, similar to the one used in Tseng et al. [27]; and (iii) W4A4-g32, a block-wise weight-and-activation setting in which groups of 32 values share a floating-point scale Chen et al. [7]. For all methods, quantization parameters and Hessian estimates are computed using 2048 randomly sampled sequences of 2048 tokens from the DCLM-Edu dataset Allal et al. [1].
Evaluation Protocol Following standard evaluation practice for LLM quantization [24, 9], we report perplexity on WikiText Merity et al. [17] using a context length of 2048 tokens and the mean normalized accuracy across six common-sense reasoning tasks (csr): PIQA Bisk et al. [4], WinoGrande Sakaguchi et al. [23], HellaSwag Zellers et al. [31], ARC-e and ARC-c Clark et al. [8], and LAMBADA Paperno et al. [21]. For methods involving calibration-dependent optimization, we report the mean and standard deviation over three random calibration seeds.
Channel-wise W4A4KV4 Quantization
We first evaluate the W4A4KV4 setting, where only a single scale is available for each weight output channel and activation token. Results are reported in Table 2. -PTQ consistently achieves the lowest perplexity across all evaluated architectures while matching or improving reasoning accuracy. Importantly, the gains are observed for every model family considered, ranging from the 1B-parameter Llama model to larger 8B-parameter architectures. This consistency indicates that the benefits of the proposed objective are not tied to a specific model architecture or size. Compared to FlatQuant, which learns quantization-aware transformations through layer-wise optimization, -PTQ achieves lower perplexity on all four models. Likewise, -PTQ consistently outperforms CAT, despite both methods relying on the same transformation with different parameters.
| Method | Llama v3.2 1B inst. wiki () | Llama v3.2 1B inst. csr () | Llama v3 8B wiki () | Llama v3 8B csr () | Ministral 8B inst. wiki () | Ministral 8B inst. csr () | Qwen v3 8B wiki () | Qwen v3 8B csr () |
| FP | 13.16 | 57.61 | 6.14 | 70.12 | 6.97 | 71.29 | 9.73 | 67.46 |
| RTN | 878.89 | 30.02 | 317.60 | 32.40 | 39.73 | 40.62 | 10441.69 | 29.23 |
| QuaRot+GPTQ | ||||||||
| CAT+GPTQ | ||||||||
| FlatQuant+GPTQ | ||||||||
| -PTQ |
Table 2. W4A4KV4 channel-wise quantization results. The effectiveness of -PTQ demonstrates the advantage of the joint optimization under a unified Hessian-guided objective.
Block-wise Quantization
We next consider block-wise quantization using groups of size 32. This setting is particularly challenging for transformation-based methods since smaller quantization groups already reduce range variability, leaving less room for improvement through range equalization alone. Following Chen et al. [7], we apply independent block-wise transforms before quantization and fuse the corresponding inverses into the weights. We evaluate both weight-only (W4-g32) and weight-and-activation (W4A4-g32) quantization scenarios. Results are reported in Table 3.
| Method | Llama v3.2 1B inst. wiki (↓) | Llama v3.2 1B inst. csr (↑) | Llama v3 8B wiki (↓) | Llama v3 8B csr (↑) | Ministral 8B inst. wiki (↓) | Ministral 8B inst. csr (↑) | Qwen v3 8B wiki (↓) | Qwen v3 8B csr (↑) |
| FP | 13.16 | 57.61 | 6.14 | 70.12 | 6.97 | 71.29 | 9.73 | 67.46 |
| W4-g32 RTN | 15.47 | 55.27 | 6.65 | 68.67 | 7.28 | 70.88 | 9.99 | 65.95 |
| Had.+GPTQ | 13.73±0.02 | 56.83±0.18 | 6.43±0.01 | 68.97±0.19 | 7.13±0.01 | 71.01±0.12 | 9.99±0.05 | 66.80±0.15 |
| CAT+GPTQ | 13.77±0.08 | 56.77±0.17 | 6.44±0.01 | 69.64±0.18 | 7.14±0.00 | 70.99±0.03 | 9.92±0.04 | 67.14±0.28 |
| WUSH+GPTQ | 13.85±0.08 | 56.81±0.14 | 6.44±0.01 | 69.43±0.33 | 7.13±0.01 | 70.83±0.05 | 9.88±0.08 | 67.06±0.32 |
| Had.+YAQA | 13.74±0.02 | 57.02±0.18 | 6.39±0.00 | 69.61±0.03 | 7.22±0.00 | 70.96±0.12 | 9.93±0.06 | 67.29±0.22 |
| HZ-PTQ | 13.53±0.04 | 57.04±0.19 | 6.32±0.00 | 69.93±0.17 | 7.09±0.01 | 70.97±0.04 | 9.84±0.01 | 67.42±0.25 |
| W4A4-g32 RTN | 17.99 | 51.75 | 7.25 | 66.68 | 7.72 | 69.21 | 10.39 | 63.89 |
| Had.+GPTQ | 14.57±0.02 | 55.59±0.29 | 6.72±0.01 | 67.66±0.37 | 7.35±0.02 | 70.19±0.23 | 10.19±0.06 | 66.20±0.27 |
| CAT+GPTQ | 14.54±0.09 | 55.64±0.45 | 6.71±0.01 | 68.66±0.20 | 7.40±0.01 | 70.02±0.14 | 10.11±0.04 | 66.38±0.11 |
| WUSH+GPTQ | 14.65±0.04 | 55.28±0.45 | 6.74±0.02 | 67.98±0.54 | 7.42±0.01 | 69.83±0.21 | 10.11±0.09 | 66.30±0.31 |
| Had.+YAQA | 14.56±0.02 | 55.53±0.17 | 6.68±0.01 | 68.51±0.15 | 7.46±0.01 | 70.10±0.11 | 10.13±0.07 | 66.22±0.33 |
| HZ-PTQ | 14.22±0.05 | 55.75±0.16 | 6.56±0.00 | 68.82±0.15 | 7.29±0.00 | 70.38±0.13 | 9.99±0.01 | 66.77±0.38 |
Table 3.
Despite the reduced optimization headroom available in the block-wise setting, -PTQ consistently achieves the lowest perplexity and highest accuracy across all evaluated architectures and quantization formats. The improvement persists in both W4 and W4A4 settings, indicating that the proposed objective benefits not only transformation design, but also downstream range selection and rounding decisions. Notably, the relative gains remain stable across model families, further supporting the robustness of the proposed framework.
Table 3: For block-wise quantization, -PTQ consistently achieves the lowest perplexity across both W4-g32 and W4A4-g32 settings, demonstrating that the proposed Hessian-guided objective remains effective even at finer quantization granularities.
Table 4: Ablation for the components for -PTQ on W4A4KV4. −Round refers to a version with round-to-nearest and a standard weight range-setting. −Trans. refers to the use of Hadamard transform instead of our gradient alignment transforms. −Hess. indicates the use of a GPTQ-style Hessian approximation instead of our output Kronecker approximation.
| Method | Llama v3.2 1B inst. wiki (↓) | Llama v3.2 1B inst. csr (↑) | Llama v3 8B wiki (↓) | Llama v3 8B csr (↑) | Ministral 8B inst. wiki (↓) | Ministral 8B inst. csr (↑) | Qwen v3 8B wiki (↓) | Qwen v3 8B csr (↑) |
| -PTQ | 16.05±0.02 | 54.11±0.19 | 7.06±0.01 | 67.25±0.23 | 7.69±0.01 | 69.30±0.26 | 10.43±0.03 | 65.56±0.46 |
| −Round | 16.52±0.07 | 53.13±0.57 | 7.13±0.00 | 66.54±0.04 | 7.74±0.02 | 69.10±0.15 | 10.56±0.04 | 65.14±0.42 |
| −A.clip | 17.05±0.03 | 52.35±0.36 | 7.41±0.01 | 65.72±0.14 | 7.89±0.01 | 68.35±0.62 | 10.63±0.05 | 64.08±0.05 |
| −Tran. | 18.64±0.13 | 51.68±0.86 | 7.61±0.01 | 66.06±0.39 | 8.13±0.01 | 67.98±0.30 | 25.19±0.90 | 55.80±0.48 |
| −Hess. | 16.83±0.10 | 52.80±0.64 | 7.37±0.02 | 65.75±0.11 | 7.83±0.03 | 68.90±0.34 | 10.42±0.04 | 65.77±0.03 |
Table 4.
Ablation Studies
Contribution of Individual Components Table 4 evaluates the contribution of each component within -PTQ in the W4A4KV4 setting. Removing any component results in a measurable degradation in performance, demonstrating that the final gains arise from the interaction of all optimization stages rather than from a single dominant factor. Among the examined components, the transformation stage provides the largest individual contribution, followed by activation clipping and Hessian modeling. Replacing the proposed output Kronecker Hessian approximation with a simpler gradient-free Hessian estimate also degrades performance, providing evidence that the improved results are not solely due to the optimization procedure but also depend on the quality of the underlying curvature model.
Hessian-Guided Weight Range Selection Existing range-setting methods typically minimize an reconstruction objective, requiring the practitioner to select an appropriate value of . Figure 2 evaluates the sensitivity of this choice. The optimal value of varies substantially across quantization settings and transformation choices, making fixed reconstruction objectives difficult to tune. In contrast, the proposed Hessian-weighted objective proposed in eq. (13) directly incorporates downstream sensitivity information and consistently matches or outperforms the best manually selected objective without requiring any hyperparameter tuning. These results suggest that incorporating curvature information into scale selection provides a more reliable objective than purely reconstruction-based metrics.
Hessian estimation and Rounding Strategies Table 5 compares different rounding algorithms under several Hessian approximations. This experiment disentangles the effect of the curvature estimate from that of the rounding procedure itself. First, for a fixed rounding algorithm, our proposed output Kronecker Hessian proxy performs on par with or outperforms the YAQA-style estimate, outperforming the gradient-free GPTQ-style hessian sketches.
| Tran. | Hessian Estimate | W4 Per-channel | W4 Per-block (32) | ||||
| GPTQ | YAQA | ours | GPTQ | YAQA | ours | ||
| Id. | |||||||
| Id. | |||||||
| Id. | |||||||
| Had. | |||||||
| Had. | |||||||
| Had. |
Table 5. Comparison of rounding algorithms for different hessian estimates on the Llama v3.2 1B instruct architecture in two quantization settings. The bottom rows report the effect of applying a Hadamard transform prior to quantization. refers to our approximation.

Figure 2. WikiText perplexity obtained by several weight scale-setting objectives on Llama 3.2 1B inst. under W4 per-channel quantization, with and without Hadamard transformations. Weighting the quantization error using the proposed Fisher estimate consistently exceeds the best reconstruction objective without requiring hyperparameter tuning.
Second, for a fixed Hessian estimate, incorporating our Hessian-aware rounding and range-setting procedure consistently improves performance over conventional GPTQ/LDLQ and YAQA optimization. This observation suggests that using hessian information to set the weight ranges while performing the rounding correction can better incorporate curvature information into the local decisions. This is especially relevant for coarse grained quantization granularities. Note that when using GPTQ rounding, the output Kronecker and YAQA-style hessian are equivalent since only the first component of the Kronecker product determines the weight corrections.
Discussion and Conclusion
We introduced a unified Hessian-guided framework for post-training quantization. Unlike existing approaches that optimize transformations, range selection, activation clipping, and rounding independently and using separate reconstruction objectives, our framework derives all quantization decisions from a common approximation of downstream prediction loss. Central to this framework is the proposed Output Kronecker approximation, a tractable output-space Fisher factorization that better correlates with downstream KL divergence than conventional local reconstruction metrics. Across diverse architectures and quantization granularities, jointly optimizing these components consistently improved performance over existing state-of-the-art methods. These results suggest that much of the PTQ design space can be viewed as a single downstream optimization problem rather than a collection of independent heuristics.
The method, nevertheless, remains an approximation to the ideal downstream objective. Its derivation relies on a second-order expansion, a Kronecker-rank-one Fisher approximation, a decomposition of activation and weight errors, and rounding-noise and covariance assumptions. Moreover, estimating output gradients adds calibration time and memory relative to gradient-free reconstruction methods. Future work could investigate richer output-curvature models, adaptive approximations that trade accuracy for calibration cost, and extensions to non-uniform, mixed-precision, and hardware-aware quantization.
Quantization loss decomposition
Derivation of the transformation objective
We derive Eq. (11) from the output KL divergence, first separating activation and weight errors to make the derivation of the optimal transform tractable.
From output KL to a quadratic proxy. Using the second-order KL approximation in Eq. (4) and the Output Kronecker approximation in Eq. (6), we obtain
For a label , define . Here and below, expectations average calibration inputs, sampled labels, and the rounding-noise model defined next.
For the trace calculations, write , , and . For and any output perturbation , row vectorization gives .
Rounding model and error decomposition. For this derivation, activation row uses grid step and weight column uses grid step . We model scalar rounding errors as conditionally independent and uniform on their quantization bins, with negligible clipping. Conditioning on the full-precision activations, weights, sampled gradients, and grid steps, the errors have zero mean and variances and .
The output perturbation satisfies . The product contributes terms of third and fourth order in the quadratic proxy, so we omit it in the second-order approximation. Conditional independence and zero means eliminate the mixed quadratic term between and . This gives the activation–weight decomposition in Eq. (8), following Federici et al. [9].
Activation contribution. The chain rule gives . Using the trace form of the proxy,
Only matching scalar error indices survive the conditional expectation. Thus
using .
Write and . For our asymmetric per-token activation grid, .
Weight contribution. For the weights, . The same calculation contracts , whose conditional expectation is . Thus
using . For column , define using the step of the configured symmetric weight grid. This range is the grid span, with the signed endpoints defined in § 2.
Separating ranges and gradient norms. Let and . Averaging the conditional results gives and for the activation and weight contributions, respectively. To split the range and gradient terms we assume and over calibration inputs and sampled labels. Applying to the two contributions yields
Combining these with Eq. (8) gives Eq. (11).
Geometric-mean solution for gradient balancing
We derive the solution of the gradient-norm objective in Eq. (12). Define the gradient second-moment matrices
and assume . For any invertible , set . Using and cyclicity of the trace, the two terms become
The objective therefore depends on only through . Every positive-definite has a unique symmetric positive-definite square root , so Eq. (12) is equivalent to
This is exactly the trace minimization in Zadeh et al. [30]. Their solution following Eq. (12) gives the unique minimizer
where is the Pusz–Woronowicz geometric mean [22]. Taking the symmetric positive-definite square root yields
which is the solution stated in Eq. (12). Over all invertible matrices, the minimizers are with . Thus the gradient-norm objective fixes the positive-definite component while leaving the rotation free for the subsequent range-reduction step.
Range clipping for weights derivation
Our algorithm applies the selected transformation before setting quantization ranges and rounding the weights. These steps require gradients and Fisher estimates in the transformed coordinates. The chain rule lets us compute these quantities from the original gradient estimates, avoiding an additional backward pass through the model. For the transformed coordinates defined in § 2, the chain rule gives
This shows that, instead of estimating the Fisher approximation directly from , we can transform the existing approximation computed from the untransformed gradient , using the identity . This relation is used in Eq. (13) and in the weight contribution to Eq. (11).
For fixed and , write and . We assume that is constant, and that the correlations between the input- and output-side curvature factors contribute negligibly to the expected weight-error proxy:
Using in the trace form of the proxy gives
Under the constant-norm assumption, . Substituting the definitions of and and applying row vectorization therefore yields
Experimental details
Models and Baselines
We evaluate across multiple model families and scales, including Llama v3 8B and Llama v3.2 1B instruct [12], Ministral 8B instruct (Mistral.ai, 2025), and Qwen v3 8B [25]. We compare against representative state-of-the-art transformation methods, including QuaRot [3], FlatQuant [24], CAT [9] and WUSH [7]. For rounding algorithms, we consider GPTQ/LDLQ [10, 5], and YAQA Sketch B [27].
Detailed Setup
The experimental configuration for the results reported in Table 2 and Table 3 is reported in Table 6 and Table 7, respectively. In the tables refers to , to , and , . The matrix refers to the eigen-decomposition of . refers to the extraction of a block-diagonal component. Note that for block-wise quantization experiments, we omit the activation clipping strategy because of the limited impact on the small block size.
| Method | W. Scale | W. Round | Act. Clip | Transforms |
| RTN | None | None | ||
| QuaRot | GPTQ | (Fused) | ||
| CAT | GPTQ | |||
| FlatQuant | Learned | GPTQ | Learned | Learned |
| -PTQ | Algorithm in Sec. 3.5 | Sec. 3.6 |
Table 6. Details on the setting used to produce Table 2. The block size for the transforms used for CAT and our method is 128.
| Method | Weight Scale | Weight Round | Act. Clip | Block Transforms |
| RTN | None | None | ||
| Had. | GPTQ | Hadamard | ||
| Had. | YAQA | Hadamard | ||
| CAT | GPTQ | |||
| WUSH | GPTQ | |||
| -PTQ | Algorithm in Sec. 3.5 |
Table 7. Details on the setting used to produce Table 3. The transformation in this table already refer to a single block of size 32.
For all the experiments, we use 500 candidates sampled uniformly in to determine the minimizer for Hessian-weighted and norms. For the minimization of the clipping parameter, we use only 100 candidates uniformly sampled in , determining the best by summing the error over 32 different sequences. In block-wise quantization settings, both YAQA and our algorithm process 32 output channels at a time during rounding. We select the quantization scale independently for each block, but batch the scale search across the 32 blocks. This reduces runtime without significantly affecting quantization performance.

Figure 3. Wikitext perplexity obtained by different activation clipping objectives on Llama 3.2 1B Instruct under 4-bit per token quantization, with and without Hadamard transformations.
Additional Results
Activation Clipping Figure 3 shows the effect of different activation clipping strategies. Overall, using the proposed Hessian proxy , performs strongly against manual selection of the clipping percentage or clipping using simpler hessian proxies. However, the sub-optimality is likely due to the fact that the same ”average” offline estimated curvature is used for all tokens instead of using a curvature estimation for each token independently. For -PTQ we assume the covariances have been transformed by according to Eq. (29).
Results with simple Round to Nearest Table 8 reports the results for the methods and quantization setting in Table 2 without any weight rounding adjustment. Our -PTQ still outperforms the baselines even without the improved weight-rounding and scale setting algorithm, demonstrating the effectiveness of our transformations and activation clipping method.
| Method | Llama v3.2 1B inst. wiki (↓) | Llama v3.2 1B inst. csr (↑) | Llama v3 8B wiki (↓) | Llama v3 8B csr (↑) | Ministral 8B inst. wiki (↓) | Ministral 8B inst. csr (↑) | Qwen v3 8B wiki (↓) | Qwen v3 8B csr (↑) |
| FP | 13.16 | 57.61 | 6.14 | 70.12 | 6.97 | 71.29 | 9.73 | 67.46 |
| QuaRot | 29.77 | 46.23 | 10.99 | 57.07 | 9.14 | 64.55 | 13.68 | 57.33 |
| CAT | ||||||||
| FlatQuant | ||||||||
| -PTQ | ||||||||
| -PTQ |
Table 8. A4W4KV4 Quantization results without any weight rounding optimization and standard -based ranges.
References
- [1]Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Gabriel Martín Blázquez, Guilherme Penedo, Lewis Tunstall, Andrés Marafioti, Hynek Kydlíček, Agustín Piqueres Lajarín, Vaibhav Srivastav, Joshua Lochner, Caleb Hegner, Xuan-Son Nguyen, Clémentine Fourrier, Ben Burshtenshav, Hugo Larcher, Haojun Zhao, Cyril Zakka, Mathieu Morlon, Colin Raffel, Leandro von Werra, and Thomas Wolf. SmolLM2: When smol goes big – data-centric training of a small language model, 2025. URL https://arxiv.org/abs/2502.02737.
- [2]Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. QuaRot: Outlier-Free 4-bit inference in rotated LLMs. arXiv preprint arXiv:2404.00456, 2024a. URL https://arxiv.org/abs/2404.00456.
- [3]Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs, March 2024b. URL https://arxiv.org/abs/2404.00456v1.
- [4]Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: Reasoning about Physical Commonsense in Natural Language. Proceedings of the AAAI Conference on Artificial Intelligence, 34(05):7432–7439, April 2020. ISSN 2374-3468. doi: 10.1609/aaai.v34i05.6239. URL https://ojs.aaai.org/index.php/AAAI/article/view/6239. Number: 05.DOI
- [5]Jerry Chee, Yaohui Cai, Volodymyr Kuleshov, and Christopher De Sa. QuIP: 2-Bit Quantization of Large Language Models With Guarantees, July 2023. URL https://arxiv.org/abs/2307.13304v2.
- [6]Jiale Chen, Vage Egiazarian, Roberto L. Castro, Torsten Hoefler, and Dan Alistarh. WUSH: Near-optimal adaptive transforms for LLM quantization. In Forty-third International Conference on Machine Learning, 2026a. URL https://openreview.net/forum?id=ZsECxUKbkB.arxiv.org/abs/2512.00956
- [7]Jiale Chen, Vage Egiazarian, Roberto L. Castro, Torsten Hoefler, and Dan Alistarh. Wush: Near-optimal adaptive transforms for llm quantization, 2026b. URL https://arxiv.org/abs/2512.00956.
- [8]Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge, March 2018. URL http://arxiv.org/abs/1803.05457. arXiv:1803.05457 [cs].
- [9]Marco Federici, Boris van Breugel, Paul N. Whatmough, and Markus Nagel. Dissecting quantization error: A concentration-alignment perspective. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=7BoFyTpQm r.arxiv.org/abs/2603.04359
- [10]Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. Gptq: Accurate post-training quantization for generative pre-trained transformers. arXiv preprint arXiv:2210.17323, 2022.arxiv.org/abs/2210.17323
- [11]Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. GPTQ: Accurate post-training quantization for generative pre-trained transformers. In The Eleventh International Conference on Learning Representations, 2023. URL https://arxiv.org/abs/2210.17323.
- [12]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.arxiv.org/abs/2407.21783
- [13]Xing Hu, Yuan Cheng, Dawei Yang, Zukang Xu, Zhihang Yuan, Jiangyong Yu, Chen Xu, Zhe Jiang, and Sifan Zhou. OSTQuant: Refining large language model quantization with orthogonal and scaling transformations for better distribution fitting. arXiv preprint arXiv:2501.13987, 2025. URL https://arxiv.org/abs/2501.13987.
- [14]Haokun Lin, Haobo Xu, Yichen Wu, Jingzhi Cui, Yingtao Zhang, Linzhan Mou, Linqi Song, Zhenan Sun, and Ming Wei. DuQuant: Distributing outliers via dual transformation makes stronger quantized LLMs. arXiv preprint arXiv:2406.01721, 2024. URL https://arxiv.org/abs/2406.01721.
- [15]Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. AWQ: Activation-aware weight quantization for LLM compression and acceleration. arXiv preprint arXiv:2306.00978, 2023. URL https://arxiv.org/abs/2306.00978.
- [16]Zechun Liu, Changsheng Zhao, Igor Fedorov, Bilge Soran, Dhruv Choudhary, Raghuraman Krishnamoorthi, Vikas Chandra, Yuandong Tian, and Tijmen Blankevoort. SpinQuant: LLM quantization with learned rotations. arXiv preprint arXiv:2405.16406, 2024. URL https://arxiv.org/abs/2405.16406.
- [17]Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations, 2017.arxiv.org/abs/1609.07843
- [19]Markus Nagel, Mart van Baalen, Tijmen Blankevoort, and Max Welling. Data-free quantization through weight equalization and bias correction. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), October 2019.arxiv.org/abs/1906.04721
- [20]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 37th International Conference on Machine Learning, pp. 7197–7206, 2020. URL https://proceedings.mlr.press/v119/nagel20a.html.arxiv.org/abs/2004.10568
- [21]Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Ngoc-Quan Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernández. The lambada dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1525–1534, 2016.arxiv.org/abs/1606.06031
- [22]W. Pusz and S.L. Woronowicz. Functional calculus for sesquilinear forms and the purification map. Reports on Mathematical Physics, 8(2):159–170, 1975. ISSN 0034-4877. doi: https://doi.org/10.1016/0034-4877(75)90061-0. URL https://www.sciencedirect.com/science/article/pii/0034487775900610.
- [23]Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. WinoGrande: an adversarial winograd schema challenge at scale. Commun. ACM, 64(9):99–106, August 2021. ISSN 0001-0782. doi: 10.1145/3474381. URL https://dl.acm.org/doi/10.1145/3474381.DOI
- [24]Yuxuan Sun, Ruikang Liu, Haoli Bai, Han Bao, Kang Zhao, Yuening Li, Jiaxin Hu, Xianzhi Yu, Lu Hou, Chun Yuan, Xin Jiang, Wulong Liu, and Jun Yao. Flatquant: Flatness matters for LLM quantization. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=uTz2Utym5n.arxiv.org/abs/2410.09426
- [25]Qwen Team. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388.
- [26]Albert Tseng, Jerry Chee, Qingyao Sun, Volodymyr Kuleshov, and Christopher De Sa. QuIP#: Even better LLM quantization with hadamard incoherence and lattice codebooks. arXiv preprint arXiv:2402.04396, 2024. URL https://arxiv.org/abs/2402.04396.
- [27]Albert Tseng, Zhaofeng Sun, and Christopher De Sa. Model-preserving adaptive rounding, 2026. URL https://openreview.net/forum?id=oGLghJYkBi.arxiv.org/abs/2505.22988
- [28]Boris van Breugel, Yelsei Bondarenko, Paul Whatmough, and Markus Nagel. FPTQuant: Function-preserving transforms for LLM quantization. In Forty-third International Conference on Machine Learning, 2026. URL https://arxiv.org/abs/2506.04985.
- [29]Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. SmoothQuant: Accurate and efficient post-training quantization for large language models. In Proceedings of the 40th International Conference on Machine Learning, pp. 38087–38099, 2023. URL https://proceedings.mlr.press/v202/xiao23c.html.arxiv.org/abs/2211.10438
- [30]Pourya Zadeh, Reshad Hosseini, and Suvrit Sra. Geometric mean metric learning. In Proceedings of the 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 2464–2471. PMLR, 2016. URL https://proceedings.mlr.press/v48/zadeh16.html.arxiv.org/abs/1607.05002
- [31]Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a Machine Really Finish Your Sentence?, May 2019. URL http://arxiv.org/abs/1905.07830. arXiv:1905.07830 [cs].