Block floating-point (BFP) quantization is widely adopted for efficient low-bit large language model (LLM) inference, where the choice of block scales plays a critical role in quantization accuracy. HiFloat4 (HiF4) employs a hierarchical scale encoding scheme consisting of a global E6M2 scale and two levels of binary scale extensions. However, its conventional rounding rule and fixed scale extension thresholds may not fully capture the statistical characteristics of the quantized tensors in practice, leading to suboptimal scale representations. In this work, we propose HiCal, an offline calibration approach that improves HiF4 quantization accuracy by refining the encoding decisions across all three scale levels. Specifically, we introduce a calibrated rounding bias for the Level-1 E6M2 scale and optimize the scale-extension thresholds at Levels 2 and 3 based on the empirical distributions of local group magnitudes. The resulting calibration parameters are determined offline and remain fixed during inference, while the hierarchical encoding continues to adapt to individual blocks through their local values. This design eliminates the need for per-block multi-candidate scale search while preserving the original deterministic HiF4 encoding procedure. Experiments across five synthetic and real activation distributions show that the proposed method reduces quantization MSE by 9.91%-23.50% relative to the original HiF4 scheme, including a 13.00% reduction on real Qwen3-8B activations. End-to-end evaluations across six benchmarks further show average-score improvements of 0.91 and 1.25 percentage points on Qwen3-8B and Qwen3-30B-A3B, respectively, without per-block multi-candidate search during inference.
Figures & tables
Figure 1: HiF4 three-level hierarchical scaling architecture. Each 64-element block shares one E6M2 global scale factor ( SF ), eight 1-bit Level-2 scale extensions ( E8 ), and sixteen 1-bit Level-3 scale extensions ( E4 ), providing scale adjustments at the block, eight-element-group, and four-element-group granularities, respectively. The three components highlighted in red—the E6M2 rounding rule and the Level-2 and Level-3 magnitude thresholds—are the parameters calibrated in this work; all other operations follow the original HiF4 procedure.
Figure 2: Level-1 E6M2 rounding-bias calibration. (a) A negative rounding bias shifts the oracle-selected offset distribution towards the default offset of zero on Qwen3-8B real activations. (b) Relative fixed-rule QDQ MSE reduction across Qwen3-8B real activations and four synthetic distributions. The outlier-bearing distributions exhibit improvements comparable to those observed on real activations. The dashed vertical line indicates the selected αrnd=−0.35 for Qwen3-8B.
Figure 3: KDE-based calibration of the HiF4 hierarchical thresholds on Qwen3-8B FFN-input activations with αrnd=−0.35 . (a) Level-3 state distributions and conditional crossovers: 2.1246 for E8=0 , and 4.2035 on the raw coordinate for E8=1 ( 2.10175 after normalization). (b) Level-2 parent-state distributions, with a crossover at 4.2529 . The selected thresholds are TH4=2.125 and TH8=4.25 .
Figure 4: HiF4 QDQ threshold sweep across five activation distributions with αrnd=−0.35 . The vertical marker indicates β8=−0.25 , corresponding to TH8=4.25 and TH4=2.125 . All five distributions achieve their largest MSE reduction at this setting.
Distribution
Original HiF4 (0,4,2)
Bias-only (−0.35,4,2)
Proposed (−0.35,4.25,2.125)
Uniform
1.60
1.24 (22.75%)
1.23 (23.50%)
Gaussian
2.19
2.09 (4.59%)
1.97 (9.91%)
Uniform + outliers
3.61
3.27 (9.62%)
3.21 (11.25%)
Gaussian + outliers
3.51
3.15 (10.41%)
3.08 (12.41%)
Qwen3-8B activations
2.45
2.18 (10.93%)
2.13 (13.00%)
Table 1: QDQ MSE comparison of different HiF4 configurations across five activation distributions. All MSE values are reported in units of 10−3 . Each column header shows the parameter tuple (αrnd,TH8,TH4) . Parenthetical values indicate relative MSE reductions compared with Original HiF4, calculated using unrounded MSE values.
Model
Method
MMLU
GSM8K
HumanEval
MBPP
ARC-C
ARC-E
Mean
Qwen3-8B
FP16
74.97
88.48
63.62
65.00
67.58
87.96
74.60
HiF4
73.16
85.14
59.15
63.20
65.53
87.54
72.29 (-2.31)
HiF4 Scale-bias
72.90
86.05
65.85
62.60
64.76
87.04
73.20 (-1.40)
Qwen3-30B-A3B
FP16
82.03
89.82
76.42
76.73
72.81
90.56
81.40
HiF4
80.79
88.80
69.82
73.80
71.08
89.76
79.01 (-2.39)
HiF4 Scale-bias
81.14
88.60
74.49
75.13
72.04
90.15
80.26 (-1.14)
Table 2: End-to-end accuracy (%) of Qwen3 models under FP16, original HiF4, and the proposed HiF4 Scale-bias method. The Mean column reports the arithmetic mean over six benchmarks. Values in parentheses indicate the difference from the corresponding FP16 mean, in percentage points.
Quantization of Large Language Models (LLMs) has become 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 experiment s 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.
Low-bit quantization reduces the memory footprint and inference cost of large language models (LLMs), yet accurate FP4 quantization remains challenging. Practical formats such as MXFP4, NVFP4, and HiF4 pair a 4-bit floating-point payload with block-wise or hierarchical scale codes, making accuracy highly sensitive to how each local distribution is scaled. Default maximum-absolute-value scaling preserves dynamic range, but can spend scarce FP4 levels on rarely occupied outlier regions and leave dense tensor values poorly resolved. Existing scale-search methods minimize local element-wise reconstruction error, optimizing tensor fidelity rather than layer-output fidelity. We propose SoScale, a second-order weight scale-code search method for hierarchical FP4 quantization. SoScale searches hardware-valid scale codes under a Hessian-aware layer reconstruction objective and couples this search with GPTQ-style error recovery, selecting scales by their impact on layer outputs. Across Qwen3 models, SoScale consistently reduces downstream quantization degradation under MXFP4, NVFP4, and HiF4.
Block Quantization (BQ) enables efficient LLM inference by quantizing both weights and activations, but its design space remains underexplored. Through hardware-accuracy design space exploration, we identify block size as a key trade-off: larger blocks improve hardware efficiency by amortizing dequantization and accumulation costs, but degrade accuracy. Motivated by this insight, we propose Hierarchical Block Quantization (HBQ), which combines large blocks with low-overhead significand (SIG) scaling for second-level quantization. SIG scaling effectively compensates for large-block quantization errors while accounting for distinct weight and activation distributions. HBQ-A achieves W4A16-level accuracy with W4A5 and lower area than NVFP4, while HBQ-E further reduces hardware cost by 17% while outperforming existing BQ methods in accuracy. We implement HBQ for weights, activations, and KV cache in a 28nm ASIC accelerator and introduce partial-sum BQ to reduce EMA energy. At comparable accuracy, HBQ achieves 2.3x/4.6x higher area/energy efficiency than state-of-the-art weight-only quantization and 1.6-3.3x lower system energy with 1.5-3x speedup over prior BQ methods. Our implementation is publicly available at: https://github.com/SeoLabCornell/HBQ.git.
Chun-Ting Chen, Dongmin Han, Hangyeol Mun +6
Cornell University New York, NY, USA · Intel Corporation Santa Clara, CA, USA · Intel Corporation Hillsboro, OR, USA