Manuscript Offprint
arXiv:2610.41112Calibration of Large Model Quantization based on HiFloat4 Format
Abstract
Quantization of Large Language Models (LLMs) has becoming increasingly important for reducing the computational costs and resource requirements for practical deployment. Growing interest in this area has motivated the community to move beyond 8-bit quantization towards 4-bit precision, leading to the development of customized 4-bit formats such as MXFP4 and NVFP4. Recently, HiFloat4 (HiF4) has emerged as a competitive alternative which adopts a Block Floating-Point (BFP) format with a three-level scaling hierarchy, thereby achieving a significantly larger dynamic range. While quantization can substantially reduce memory usage and accelerate inference, it frequently introduces accuracy degradation. Calibration is therefore essential for narrowing the performance gap between low-precision quantized models and their full-precision counterparts. Nevertheless, existing calibration methods are mainly designed and validated using integer-precision formats, such as INT4, lacking support for HiF4 due to its hierarchical BFP structure. In this paper, we investigate three calibration approaches, namely HiGPTQ, HiAutoRound, and HiFlatQuant, to further enhance model quantization based on the HiF4 format. Extensive experiments demonstrate that all three proposed approaches improve inference accuracy compared with direct HiF4 conversion, reducing the gap between HiF4 and BF16 to less than 1% and outperforming the state-of-the-art NVFP4 format across various models and downstream tasks.
Introduction
Recent years have witnessed a surge in Large Language Models (LLMs) with increasing model sizes and widespread deployment across diverse applications (Naveed et al. 2025). Consequently, the trade-offs among model performance, memory usage, and deployment cost have received substantial attention, particularly for resource-constrained deployment scenarios (Zhou et al. 2024). As a result, model quantization has emerged as a critical approach for reducing memory consumption and improving computational throughput by converting high-precision model parameters into low-bit numerical formats (Lang, Guo, and Huang 2024). Research on model quantization is mainly advanced through two complementary directions: designing low-bit data formats to improve numerical expressiveness (Rouhani et al. 2023a) and
developing calibration algorithms to reduce accuracy degradation caused by low-precision representation (Yang et al. 2025).
Recently, 8-bit formats such as FP8 (NVIDIA 2022), MXFP8 (AMD 2025; Rouhani et al. 2023a) and HiF8 (Eric 2025; Luo et al. 2024) have been deployed in commercial products, motivating further investigation into even higher compression rates. As a result, 4-bit formats have emerged as a promising direction for further reducing model sizes. For example, MXFP4 (Rouhani et al. 2023a) uses a block size of 32, representing each element with a 4-bit E2M1 format and assigning an E8M0 scaling factor to each block. Here, in the EXMY notation, X denotes the number of exponent bits, while Y represents the number of mantissa bits. Similarly, NVFP4 (Abecassis et al. 2025) adopts the same E2M1 format for each element, but uses an E4M3 floating-point scale and reduces the block size to 16, enabling a more fine-grained representation. More recently, HiFloat4 (HiF4) (Luo et al. 2026) has emerged as a competitive alternative, which introduces a three-level hierarchical scaling mechanism with a block size of 64, capturing both inter- and intra-group dynamic ranges within the limited 4-bit representational space. As a result, HiF4 achieves a broader dynamic range and higher accuracy while also reducing hardware cost.
While low-bit data formats define the underlying representation schemes, model quantization refers to the process of converting high-precision model parameters, such as FP32, FP16 or BF16, into low-precision formats (Yang et al. 2025). Model quantization can be classified into two categories: Quantization-Aware Training (QAT) and Post-Training Quantization (PTQ) (Zhu et al. 2024). QAT refers to training models with quantization in mind, enabling the models to adapt to the effect of quantization during training. In contrast, PTQ directly quantizes a full-precision model without the requirement for retraining. While QAT frequently achieves better results, its dependence on model retraining requires substantial training data and computational resources, making PTQ a more practical choice for large-scale deployment (Zhou et al. 2024).
Despite its benefits in reducing memory usage and accelerating inference, quantization inevitably introduces quantization error, which reflects the discrepancy between the quantized model and the high-precision counterpart (Sun et al. 2024). To mitigate this error, various calibration techniques
*Corresponding author.
have been proposed within the PTQ framework, including GPTQ (Frantar et al. 2022), AutoRound (Cheng et al. 2024) and FlatQuant (Sun et al. 2024). These methods improve the quantization process through different calibration mechanisms, reducing the accuracy gap and enhancing downstream task performance. Nevertheless, these approaches are primarily designed and validated for the naive integer-based formats, such as INT4, and cannot be directly applied to HiF4 due to its hierarchical BFP structure.
To address this research gap, this work proposes three HiF4-based quantization calibration approaches, namely HiGPTQ, HiAutoRound, and HiFlatQuant. Experimental results demonstrate that, compared with vanilla HiF4 conversion, the proposed approaches further improve quantization accuracy, achieving better performance across various downstream tasks and surpassing the state-of-the-art NVFP4-based quantization. The main contributions of this work are summarized as follows:
-
We propose HiGPTQ, HiAutoRound, and HiFlatQuant, three calibration algorithms for HiF4-based LLM quantization.
-
We conduct extensive experiments across various LLMs and downstream tasks, demonstrating the effectiveness of the proposed approaches in enhancing HiF4-based quantization.
HiFloat4
HiF4 (Luo et al. 2026) represents an emerging 4-bit Block Floating-Point (BFP) format that employs a three-level scaling hierarchy with a block size of 64. Figure 1 illustrates the structure of a HiF4 block. The first-level scale is represented by an FP8 value, with 6 bits allocated to the exponent and 2 bits to the mantissa, denoted as E6M2. HiF4 uses an exponent bias of 48 and an implicit integer bit of 1 in the mantissa field. As a result, the first-level scale has a maximum value of and a minimum value of . Additionally, the E6M2 component encodes NaN (Not a Number) when all 8 bits are set to 1.
The second- and third-level scales adopt 8-way and 16-way 1-bit micro-exponents, denoted as E1_8 and E1_16. Each micro-exponent directly encodes either 1 or 0 for a fine-grained power-of-two scaling. Under this hierarchy, each level-3 group contains 4 elements, while each level-2 group contains two level-3 groups. Overall, the three levels of scaling metadata require 32 bits, corresponding to an overhead of 0.5 bits per element.
The in-group elements are represented using a 4-bit sign-magnitude S1P2 format. In this notation, S denotes the sign bit, the following 1 bit represents the integer part, and P2 represents two-bit fractional part. Consequently, the S1P2 component can represent a maximum value of 1.75 and a minimum value of 0.25, with the corresponding signed values ranging from to . When the 1-bit integer part

Figure 1: HiFloat4 Block Floating-Point (BFP) data structure.
and 2-bit fractional parts are all zero, the value is represented as zero.
Let denote the -th element within a block size of 64, denote the -th micro-exponent in the 8-way level-2 scaling, denote the -th micro-exponent in the 16-way level-3 scaling. Each value where , in a HiF4 block can be represented as follows. If E6M2 = NaN, then for all . Otherwise, can be calculated as follows:
Readers are referred to the HiF4 white paper (Luo et al. 2026) for a more comprehensive explanation.
Large Model Quantization
This section reviews three representative quantization techniques, including GPTQ, AutoRound, and FlatQuant, which optimize the quantization process through different mechanisms.
GPTQ GPTQ performs weight quantization in a layer-wise manner and formulates the quantization of each layer as a reconstruction problem based on the principle of error compensation. Specifically, given a set of calibration data, GPTQ first collects the input activations for each layer and computes the Hessian matrix as , where is a small value for numerical stability. It then computes the inverse Hessian and applies Cholesky decomposition to obtain factors used for efficient error compensation during quantization. GPTQ subsequently splits the weight matrix into blocks of size and quantizes the weights block by block. For each block, it initializes an error matrix , and performs quantization along the columns of the block. After quantizing each column, GPTQ computes the corresponding quantization error and updates the remaining unquantized weights in the same block to compensate for this error, using the pre-computed Cholesky factors. This process is described in Eqs. (2)–(3), where denotes the starting column index of each block and denotes the column index within the current block.
GPTQ adopts a lazy batch-update strategy: only after a block has been fully processed, it updates and globally, thereby improving the efficiency of the quantization process. Specifically, the update of is realized by removing the corresponding rows from the Cholesky factors matrix, while the update of is realized according to Eq. (4).
As GPTQ quantizes weights column by column, it is not directly applicable to HiF4: processing each column independently could not fully exploit the hierarchical scaling structure of HiF4 and may lead to suboptimal quantization results. To address this limitation, we propose HiGPTQ, a calibration method tailored to the BFP-based data formats.
AutoRound AutoRound (Cheng et al. 2024) also formulates weight quantization as a layer-wise reconstruction problem. Its main idea is to introduce learnable parameters to control how high-precision weights are rounded to their corresponding low-precision values, thereby reducing the reconstruction error. For integer-based quantization, the quantization scale is computed from the weight range. AutoRound introduces two learnable parameters, and , to automatically adjust the upper and lower bounds used for scale computation, as shown in Eq. (5)
In addition, AutoRound learns a rounding matrix V to adjust the rounding direction of each weight element. The quantized weight matrix, , can be obtained as follows:
where denotes the zero point, and and denote the lower and upper bounds of the quantized integer range, respectively.
The learnable parameters , , and V are optimized together by minimizing the layer reconstruction error:
AutoRound adopts SignSGD optimizer, which updates parameters solely based on the sign of the gradient. This design reduces sensitivity to large variations in gradient magnitude and stabilizes the optimization process. The update rule is given by:
where denotes the learnable parameters, including , , and V.
Nevertheless, AutoRound is mainly designed for integer-based quantization formats, such as INT4 and INT8. Its learnable scale and rounding adjustments are defined around affine integer quantization. This formulation is not applicable to HiF4 due to its BFP format. In HiF4, the quantized values are determined jointly by the S1P2 element and multiple levels of shared scaling metadata, making the rounding and scaling processes fundamentally different from integer-based quantization. Therefore, we propose HiAutoRound, a calibration method that exploits the characteristics of BFP, enabling learnable parameters to be incorporated into the HiF4 quantization procedure.
FlatQuant FlatQuant is motivated by the observation that quantization errors are often amplified by outliers in weights and activations (Zhu et al. 2024). To mitigate this issue, FlatQuant learns affine transformations for each linear layer to flatten the distributions of weights and activations before quantization. Mathematically, it solves the following problem:
where denotes the original full-precision output, denotes the quantization function, and is the learnable affine transformation matrix. To reduce the computational cost of learning a large dense matrix, FlatQuant decomposes into two lightweight matrices using the Kronecker product, i.e., , where , and . This decomposition significantly reduces the number of learnable parameters while maintaining effective to reshape the weight and activation distributions.
Additionally, FlatQuant employs per-channel scaling to balance outliers between weights and activations, and introduces learnable weight clipping (LWC) and learnable activation clipping (LAC) parameters, denoted by and , to further suppress extreme values. Ultimately, FlatQuant solves the following reconstruction problem:
where and denote the original and the quantized Transformer block.
The learnable clipping parameters and play an important role in FlatQuant, as integer-based low-bit formats such as INT4 have a limited linear representational range and cannot effectively accommodate severe outliers. Adaptive clipping is therefore required to remove or suppress extreme values before quantization. In contrast, HiF4 has a substantially larger non-linear dynamic range, which makes it more naturally aligned with the distribution of LLM weights. As a result, HiF4-based calibration does not require learning the extra and parameters, which reduces calibration complexity.

Figure 2: Illustration of the proposed calibration algorithms. (a) HiGPTQ: columns in white represent the group currently being quantized; (b) HiAutoRound: learnable parameters are introduced to automatically adjust the micro-exponent and mantissa components, which are optimized via gradient descent; (c) HiFlatQuant: learnable transformation matrices and per-channel scaling are introduced to flatten outliers in weights and activations, which are optimized via gradient descent.
Algorithm 1: HiGPTQ
Require: Weight matrix , inverse Hessian , block size , group size with
Ensure: Quantized weight matrix
1:
2:
3:
4: for do
5: for do
6:
7:
8:
9:
10:
11: end for
12:
13: end for
HiF4 Quantization Calibration
In this section, we formally introduce the proposed calibration methods, namely HiGPTQ, HiAutoRound, and HiFlatQuant, which exploit the structural characteristics of HiF4, enabling more compatible and accurate LLM quantization into the HiF4 format.
HiGPTQ
As HiF4 employs a group size of 64, with the level-1 scaling metadata shared across all 64 elements, the original
GPTQ's column-wise quantization is not directly suitable. Therefore, HiGPTQ requires the block size to be a multiple of 64, and weights are quantized group by group, as shown in Fig. 2 (a). In each group, 64 columns are processed simultaneously so that the shared HiF4 scaling metadata can be derived based on all elements in the group. This design better aligns the quantization procedure with the hierarchical structure of HiF4 and allows the group-level scaling factors to be derived more effectively.
Algorithm 1 illustrates the whole procedure of HiGPTQ. Lines 1 and 2 initialize the quantized weight and error matrices. Line 3 pre-computes the Cholesky decomposition factors of the inverse Hessian. Line 4 iterates over each block of the weight matrix, while Line 5 iterates over each HiF4 group within the current block. For each group, HiGPTQ first quantizes the corresponding weights into the HiF4 format and then computes the quantization error between the original weights and the quantized weights. This error is subsequently propagated to the remaining unquantized weights within the same block using the pre-computed Hessian inverse information. After all groups within a block have been processed, Line 12 performs a global update to the remaining weight matrix using the lazy batch-update strategy.
It is worth-noting that, due to the three-level scaling hierarchy of HiF4, the group size can also be set as 8 or 4, corresponding to the level-2 and level-3 scaling granularities, respectively. In these cases, after each group of 8 or 4 columns is quantized, the remaining weights in the block are updated using the same Hessian-based error compensation mechanism. A smaller group size enables more frequent error updates and may provide finer-grained correction. In this paper, we employ the first strategy where 64 columns are processed simultaneously.
HiAutoRound
Inspired by AutoRound which introduces learnable parameters to adaptively adjust rounding operations for integer-based quantization, we propose a learnable calibration mechanism tailored to the floating-point structure of HiF4. Each HiF4 unit comprises 16 shared level-3 micro-exponents and 64 individual S1P2 element. Therefore, we introduce two sets of learnable parameters, denoted as K and M, to compensate the exponent and mantissa components, respectively.
For exponent compensation, K is added to the level-3 micro-exponents. Since each level-3 micro-exponent is shared by 4 elements, a HiF4 block of 64 elements contains 16 such micro-exponents. Therefore, we define with each element corresponding to one level-3 micro-exponent. The compensated exponent is computed as:
where RZ denotes the rounding-to-zero operation, ensuring that the adjusted exponent remains compatible with the discrete power-of-two scaling structure of HiF4.
Similarly, the mantissa compensation M is added to the individual S1P2 element, where . Since K determines the effective exponent offset, it also changes the numerical scale at which the mantissa compensation is interpreted. Therefore, directly applying M may introduce discontinuous changes in the reconstructed value when the exponent compensation change. To address this issue, we propose to apply a right-shift operation to M according to the value of K, as shown in Eq. (12), to make the mantissa compensation aligned with the adjusted exponent level. During calibration, numerical constraints may be applied to K and M to ensure that the compensated values remain consistent with the data distributions of the exponent and mantissa components in the HiF4 format.
Consequently, each reconstructed value can be expressed as:
Algorithm 2 illustrates the full process of HiAutoRound. For each layer to be quantized, the input activations X are first collected through forward propagation using calibration data. HiAutoRound then quantizes the weights into the HiF4 format according to Eq. (13). During calibration, the learnable parameters K and M are optimized by minimizing the reconstruction error between the full-precision layer output and the HiF4-quantized layer output using the SignSGD optimizer, as shown in Fig. 2 (b).
HiFlatQuant
As shown in Fig. 2 (c), HiFlatQuant aims to flatten outliers in weights and activations by introducing a learnable
Algorithm 2: HiAutoRound
Require: Weight matrix W, calibration data D, learning rate lr, total steps T, batch size bs.
Ensure: K*, M*
1: K ← 0, M ← 0, min_ℓ ← maximum
2: for i ← 0 to T do
3: d ← draw bs samples from D
4: X ← feedforward(d)
5: W ← quant_{HiF4}(W, K, M)
6: loss ← mse(XW^T, XW^T)
7: loss.backward()
8: if loss < min_ℓ then
9: K*, M*, ← K, M
10: min_ℓ ← loss
11: end if
12: update K and M via the SignSGD optimizer
13: end for
Algorithm 3: HiFlatQuant
Require: Weight matrix W, calibration data D, learning rate lr, total steps T, batch size bs.
Ensure: and
1: Initialize and
2: for to T do
3: d ← draw bs samples from D
4: X ← feedforward(d)
5: Y ← XW^T
6: X' ←
7: W' ←
8: Y ← quant_{HiF4}(X') × quant_{HiF4}(W')^\top
9: loss ← mse(Y, Y)
10: loss.backward()
11: if loss < min_ℓ then
12:
13: min_ℓ ← loss
14: end if
15: update and c via the AdamW optimizer
16: end for
transformation matrix and further decomposing into the Kronecker Product of two lightweight matrices, and , where . Accordingly, the transformed quantized computation can be written as (Sun et al. 2024):
where and are reshaped from and accordingly, and denotes the reduction over the -th axis.
Similar to FlatQuant, HiFlatQuant also applies per-channel scaling c to balance weights and activations before the quantization. However, FlatQuant further introduces
Table 1: Experimental results on diverse models and tasks.
| Model | Quantization | Datasets | Average | ||||||
|---|---|---|---|---|---|---|---|---|---|
| ARC-C | ARC-E | BoolQ | HellaS | LamOpai | Piqa | WinoG | |||
| Llama2-7B | BF16 | 46.25 | 74.62 | 77.92 | 75.99 | 73.63 | 78.84 | 68.82 | 70.87 |
| MXFP4 | 40.36 | 66.12 | 72.14 | 71.15 | 69.34 | 77.31 | 63.54 | 65.71 (-5.16) | |
| NVFP4 | 42.75 | 72.90 | 75.35 | 74.59 | 73.47 | 78.07 | 68.75 | 69.41 (-1.46) | |
| HiF4 | 44.03 | 73.44 | 76.76 | 74.94 | 72.91 | 78.35 | 67.56 | 69.71 (-1.16) | |
| HiGPTQ | 44.88 | 73.74 | 76.97 | 75.31 | 73.18 | 78.35 | 68.59 | 70.15 (-0.72) | |
| HiAutoRound | 45.31 | 73.15 | 77.06 | 75.19 | 73.24 | 78.56 | 68.35 | 70.12 (-0.75) | |
| HiFlatQuant | 45.48 | 73.70 | 77.71 | 74.59 | 72.37 | 78.40 | 68.35 | 70.09 (-0.78) | |
| Llama2-13B | BF16 | 49.06 | 77.48 | 80.46 | 79.38 | 76.71 | 80.79 | 72.06 | 73.71 |
| MXFP4 | 44.45 | 72.64 | 77.80 | 73.43 | 73.32 | 77.20 | 69.38 | 69.75 (-3.96) | |
| NVFP4 | 47.44 | 75.93 | 79.54 | 77.30 | 75.22 | 79.87 | 71.19 | 72.36 (-1.35) | |
| HiF4 | 48.21 | 76.22 | 79.76 | 77.89 | 75.43 | 80.25 | 71.27 | 72.72 (-0.99) | |
| HiGPTQ | 49.49 | 77.36 | 81.44 | 79.15 | 76.65 | 80.14 | 72.77 | 73.86 (+0.15) | |
| HiAutoRound | 50.94 | 77.27 | 79.79 | 78.85 | 75.88 | 79.98 | 71.19 | 73.41 (-0.30) | |
| HiFlatQuant | 50.94 | 77.69 | 80.03 | 78.23 | 76.25 | 80.58 | 72.69 | 73.77 (+0.06) | |
| Llama3-8B | BF16 | 53.75 | 77.90 | 81.07 | 79.18 | 75.72 | 80.69 | 73.24 | 74.51 |
| MXFP4 | 45.22 | 72.47 | 72.81 | 73.84 | 68.17 | 78.24 | 67.56 | 68.33 (-6.18) | |
| NVFP4 | 47.53 | 72.98 | 74.50 | 76.30 | 73.63 | 78.73 | 70.48 | 70.59 (-3.92) | |
| HiF4 | 50.60 | 76.26 | 80.40 | 77.86 | 73.47 | 78.94 | 73.72 | 73.04 (-1.47) | |
| HiGPTQ | 52.99 | 76.56 | 80.80 | 78.76 | 75.61 | 81.07 | 72.53 | 74.05 (-0.46) | |
| HiAutoRound | 50.68 | 76.35 | 80.76 | 78.21 | 75.63 | 80.36 | 74.35 | 73.76 (-0.75) | |
| HiFlatQuant | 53.16 | 77.53 | 80.49 | 77.74 | 73.53 | 79.49 | 73.88 | 73.69 (-0.82) | |
| Qwen2.5-7B | BF16 | 51.28 | 77.69 | 84.62 | 78.92 | 71.74 | 79.65 | 73.01 | 73.84 |
| MXFP4 | 50.17 | 75.93 | 79.66 | 73.75 | 58.84 | 78.56 | 66.22 | 69.02 (-4.82) | |
| NVFP4 | 50.43 | 77.78 | 84.43 | 77.36 | 68.17 | 79.33 | 69.46 | 72.42 (-1.42) | |
| HiF4 | 49.66 | 76.60 | 82.51 | 77.57 | 66.76 | 79.33 | 71.43 | 71.98 (-1.86) | |
| HiGPTQ | 51.28 | 76.35 | 83.39 | 78.07 | 71.07 | 80.30 | 73.32 | 73.40 (-0.44) | |
| HiAutoRound | 51.45 | 76.94 | 83.06 | 77.70 | 71.34 | 79.22 | 72.61 | 73.19 (-0.65) | |
| HiFlatQuant | 52.65 | 78.24 | 84.22 | 77.06 | 68.52 | 78.13 | 72.06 | 72.98 (-0.86) | |
| Qwen2.5-14B | BF16 | 59.13 | 79.34 | 85.41 | 82.93 | 74.17 | 82.32 | 75.14 | 76.92 |
| MXFP4 | 55.72 | 79.71 | 84.53 | 79.37 | 68.93 | 81.01 | 71.90 | 74.45 (-2.47) | |
| NVFP4 | 57.85 | 81.31 | 84.10 | 81.31 | 72.79 | 81.45 | 75.45 | 76.32 (-0.60) | |
| HiF4 | 58.70 | 82.03 | 85.93 | 81.48 | 72.71 | 81.61 | 73.56 | 76.57 (-0.35) | |
| HiGPTQ | 60.41 | 80.77 | 85.60 | 82.42 | 74.66 | 81.77 | 73.95 | 77.08 (+0.16) | |
| HiAutoRound | 57.94 | 81.23 | 85.87 | 81.43 | 72.54 | 81.99 | 75.37 | 76.62 (-0.30) | |
| HiFlatQuant | 59.90 | 81.82 | 84.74 | 82.08 | 73.53 | 81.61 | 75.85 | 77.08 (+0.16) | |
learnable weight clipping and activation clipping to suppress remaining outliers. In HiFlatQuant, these additional clipping parameters are not included. This design is motivated by the fact that HiF4 has a substantially larger dynamic range than integer-based low-bit formats. As a result, HiF4 can naturally accommodate a wider range of values, making explicit learnable clipping less necessary. Including and would bring little performance improvement while increasing calibration complexity. Therefore, HiFlatQuant retains the affine transformation and per-channel scaling mechanisms, while omitting learnable clipping to achieve a better trade-off between accuracy and calibration efficiency. The full procedure of HiFlatQuant is illustrated in Algorithm 3.
Experiment
In this section, we evaluate the effectiveness of the proposed HiF4-based calibration methods by addressing the following research questions:
- RQ1: Do HiGPTQ, HiAutoRound and HiFlatQuant improve model quantization compared with direct HiF4 casting?
- RQ2: How do HiF4-calibrated models perform compared with other state-of-the-art low-precision formats?
- RQ3: What are the differences and relationships among the three proposed calibration approaches?
Experimental settings
Datasets To evaluate quantization accuracy, we use a series of widely adopted LLMs benchmarks, including ARC-C(hallenge), ARC-E(asy) (Clark et al. 2018), BoolQ (Clark et al. 2019), HellaS(wag) (Zellers et al. 2019), Lam(bada)Op(en)ai (Paperno et al. 2016), Piqa (Bisk et al. 2020), and WinoG(rande) (Sakaguchi et al. 2021).
Models We evaluate the proposed calibration methods using various LLMs, including LLaMA2-7B (Touvron et al.
Table 2: Average performances across models and tasks.
| Metric | BF16 | MXFP4 | NVFP4 | HiF4 | HiGPTQ | HiAutoRound | HiFlatQuant |
|---|---|---|---|---|---|---|---|
| Accuracy | 73.970 | 69.452 | 72.220 | 72.804 | 73.708 | 73.420 | 73.522 |
| Accuracy gap | — | -4.518 | -1.750 | -1.166 | -0.262 | -0.550 | -0.448 |
Table 3: Comparison of three calibration approaches
| Dimension | HiGPTQ | HiAutoRound | HiFlatQuant |
|---|---|---|---|
| Mechanism | Compensate quantization error based on Hessian inverse | Learn offset parameters in micro-exponent and mantissa components | Learn equivalent transformations to flatten outliers |
| Optimization | Second-order approximation | Gradient-based parameter tuning | Gradient-based transformation learning |
| Quantization target | Weight | Weight | Weight and activation |
| Inference overhead | None | None | Depends on transformation folding |
2023), LLaMA2-13B (Touvron et al. 2023), LLaMA3-8B (Grattafiori et al. 2024), Qwen2.5-7B (Qwen Team et al. 2025), and Qwen2.5-14B (Qwen Team et al. 2025), which allows us to evaluate the robustness and generalizability of the proposed calibration methods across models.
Benchmarks To demonstrate the effectiveness of the proposed calibration methods, we compare them with direct HiF4 conversion (Luo et al. 2026), as well as MXFP4 (Rouhani et al. 2023b) and NVFP4 (Abecassis et al. 2025) 4-bit FP structures.
Implementation For calibration data, we sample 128 sentences from WikiText2 (Merity et al. 2017) training set, with each sample comprised of 2048 tokens. For HiGPTQ, we set the group size to and block size to . For HiAutoRound, we employ the SignSGD optimizer with a learning rate of 0.001 and set the number of iteration to be 100. For HiFlatQuant, we adopt the AdamW optimizer with an initial learning rate of 1e-3 and employ a learning rate decay schedule. The number of iterations is set to 5. Batch sizes are adjusted according to model sizes. All experiments are conducted in the simulated 4-bit format on Huawei Ascend NPU. To ensure a fair comparison, all evaluations are performed in a unified framework with the same prompt for model inference.
Results (RQ1 and RQ2)
The detailed evaluation results are presented in Table 1, and the average accuracies across all models and tasks are summarized in Table 2. Notably, direct HiF4 casting already achieves higher accuracy than both MXFP4 and NVFP4, demonstrating the inherent representational advantage of HiF4. This advantage can be attributed to its three-level scaling hierarchy, which provides a substantially broader dynamic range.
Across all models and datasets, HiGPTQ, HiAutoRound and HiFlatQuant achieve average accuracies of 73.708%, 73.420% and 73.522%, respectively, corresponding to improvements of 0.904, 0.616 and 0.718 percentage points over direct HiF4 casting. This reduces the accuracy gap between HiF4 and BF16 to less than 1%, highlighting the effectiveness of the proposed calibration methods in preserving model accuracy under 4-bit quantization.
Comparative analysis (RQ3)
Evaluation results demonstrate the effectiveness of all three proposed calibration methods for HiF4 quantization. Nevertheless, these methods differ in their underlying mechanisms, optimization strategies, quantization targets and inference overload. Table 3 summarizes these differences, providing a more comprehensive understanding of their characteristics and suitable usage scenarios.
Conclusion
In this paper, we propose three HiF4-based calibration algorithms, namely HiGPTQ, HiAutoRound and HiFlatQuant, for large model quantization. The proposed methods adapt existing calibration principles to the hierarchical BFP structure of HiF4 through distinct mechanisms. HiGPTQ leverages second-order information to compensate for quantization errors by updating the remaining unquantized weights. HiAutoRound introduces learnable offset parameters to adaptively adjust the micro-exponent and mantissa components. HiFlatQuant learns equivalent transformation matrices to flatten outliers in weights and activations before quantization. Experimental results demonstrate that all three calibration methods improve quantization accuracy over direct HiF4 casting. Moreover, the calibrated HiF4 models reduce the performance gap from the high-precision BF16 baseline to less than 1%, outperforming the state-of-the-art NVFP4 format across 5 models and 7 downstream tasks.
References
Abecassis, F.; Agrusa, A.; Ahn, D.; Alben, J.; Alborghetti, S.; Andersch, M.; Arayandi, S.; Bjorlin, A.; Blakeman, A.; Briones, E.; et al. 2025. Pretraining large language models with nvfp4. arXiv preprint arXiv:2509.25149.
AMD. 2025. AMD Instinct MI350X GPU Brochure. https://www.amd.com/content/dam/amd/en/documents/ instinct-techdocs/product-briefs/amd-instinct-mi350x-gpu-brochure.pdf. Accessed: 2026-05-11.
Bisk, Y.; Zellers, R.; Gao, J.; Choi, Y.; et al. 2020. Piba: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, volume 34, 7432–7439.
Cheng, W.; Zhang, W.; Shen, H.; Cai, Y.; He, X.; Kaokao, L.; and Liu, Y. 2024. Optimize weight rounding via signed gradient descent for the quantization of llms. In Findings of the Association for Computational Linguistics: EMNLP 2024, 11332–11350.
Clark, C.; Lee, K.; Chang, M.-W.; Kwiatkowski, T.; Collins, M.; and Toutanova, K. 2019. Boolq: Exploring the surprising difficulty of natural yes/no questions. In Proceedings of the 2019 conference of the north American chapter of the association for computational linguistics: Human language technologies, volume 1 (long and short papers), 2924–2936.
Clark, P.; Cowhey, I.; Etzioni, O.; Khot, T.; Sabharwal, A.; Schoenick, C.; and Tafjord, O. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457.
Eric, X. 2025. Groundbreaking SuperPod Interconnect: Leading a New Paradigm for AI Infrastructure. Huawei Connect 2025. Accessed: 2026-05-11.
Frantar, E.; Ashkboos, S.; Hoefler, T.; and Alistarh, D. 2022. Gptq: Accurate post-training quantization for generative pretrained transformers. arXiv preprint arXiv:2210.17323.
Grattaflori, A.; Dubey, A.; Jauhri, A.; Pandey, A.; Kadian, A.; Al-Dahle, A.; Letman, A.; Mathur, A.; Schelten, A.; Vaughan, A.; et al. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783.
Lang, J.; Guo, Z.; and Huang, S. 2024. A comprehensive study on quantization techniques for large language models. In 2024 4th International conference on artificial intelligence, robotics, and communication (ICAIRC), 224–231. IEEE.
Luo, Y.; Huang, J.; Cheng, Y.; Yu, Z.; Tang, K.; Ma, X.; Wang, X.; Tong, A.; Hu, G.; Xu, Y.; et al. 2026. Hifloat4 format for language model inference. arXiv preprint arXiv:2602.11287.
Luo, Y.; Zhang, Z.; Wu, R.; Liu, H.; Jin, Y.; Zheng, K.; Wang, M.; He, Z.; Hu, G.; Chen, L.; et al. 2024. Ascend hifloat8 format for deep learning. arXiv preprint arXiv:2409.16626.
Merity, S.; Xiong, C.; Bradbury, J.; and Socher, R. 2017. Pointer Sentinel Mixture Models. In International Conference on Learning Representations.
Naveed, H.; Khan, A. U.; Qiu, S.; Saqib, M.; Anwar, S.; Usman, M.; Akhtar, N.; Barnes, N.; and Mian, A. 2025. A comprehensive overview of large language models. ACM Transactions on Intelligent Systems and Technology, 16(5): 1–72.
NVIDIA. 2022. NVIDIA H100 Tensor Core GPU Architecture. https://resources.nvidia.com/en-us-hopper-architecture/nvidia-h100-tensor-c. Accessed: 2026-05-11.
Paperno, D.; Kruszewski, G.; Lazaridou, A.; Pham, N.-Q.; Bernardi, R.; Pezzelle, S.; Baroni, M.; Boleda, G.; and Fernández, R. 2016. 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), 1525–1534.
Qwen Team; Yang, A.; Yang, B.; Zhang, B.; Hui, B.; Zheng, B.; Yu, B.; Li, C.; Liu, D.; Huang, F.; Wei, H.; Lin, H.; Yang, J.; Tu, J.; Zhang, J.; Yang, J.; Yang, J.; Zhou, J.; Lin, J.; Dang, K.; Lu, K.; Bao, K.; Yang, K.; Yu, L.; Li, M.; Xue, M.; Zhang, P.; Zhu, Q.; Men, R.; Lin, R.; Li, T.; Tang, T.; Xia, T.; Ren, X.; Ren, X.; Fan, Y.; Su, Y.; Zhang, Y.; Wan, Y.; Liu, Y.; Cui, Z.; Zhang, Z.; and Qiu, Z. 2025. Qwen2.5 Technical Report. arXiv preprint arXiv:2412.15115.
Rouhani, B. D.; Zhao, R.; More, A.; Hall, M.; Khodamoradi, A.; Deng, S.; Choudhary, D.; Cornea, M.; Dellinger, E.; Denolf, K.; et al. 2023a. Microscaling data formats for deep learning. arXiv preprint arXiv:2310.10537.
Rouhani, B. D.; Zhao, R.; More, A.; Hall, M.; Khodamoradi, A.; Deng, S.; Choudhary, D.; Cornea, M.; Dellinger, E.; Denolf, K.; et al. 2023b. Microscaling data formats for deep learning. arXiv preprint arXiv:2310.10537.
Sakaguchi, K.; Bras, R. L.; Bhagavatula, C.; and Choi, Y. 2021. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9): 99–106.
Sun, Y.; Liu, R.; Bai, H.; Bao, H.; Zhao, K.; Li, Y.; Hu, J.; Yu, X.; Hou, L.; Yuan, C.; et al. 2024. Flatquant: Flatness matters for llm quantization. arXiv preprint arXiv:2410.09426.
Touvron, H.; Martin, L.; Stone, K.; Albert, P.; Almahairi, A.; Babaei, Y.; Bashlykov, N.; Batra, S.; Bhargava, P.; Bhosale, S.; et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
Yang, J.; Li, Z.; Feng, Z.; and Xie, Y. 2025. A survey on neural network quantization. In Proceedings of the 2025 6th International Conference on Computer Information and Big Data Applications, 384–394.
Zellers, R.; Holtzman, A.; Bisk, Y.; Farhadi, A.; and Choi, Y. 2019. Hellaswag: Can a machine really finish your sentence? In Proceedings of the 57th annual meeting of the association for computational linguistics, 4791–4800.
Zhou, Z.; Ning, X.; Hong, K.; Fu, T.; Xu, J.; Li, S.; Lou, Y.; Wang, L.; Yuan, Z.; Li, X.; et al. 2024. A survey on efficient inference for large language models. arXiv preprint arXiv:2404.14294.
Zhu, X.; Li, J.; Liu, Y.; Ma, C.; and Wang, W. 2024. A survey on model compression for large language models. Transactions of the Association for Computational Linguistics, 12: 1556–1577.