WorksComputer Science
HIMX: mixed-format matrix multiplication based on customized HIFLOAT4 representations
Abstract
4-bit weight-activation quantization (W4A4) is an important approach for efficient large language model (LLM) inference. Recent hierarchical formats such as HiFloat4 (HIF4) improve the representational range of 4-bit quantization through multi-level scaling. However, the same local mantissa representation in HIF4 may not be equally suitable for weights and activations, which exhibit distinct distribution characteristics. To address this limitation, we propose HiMX, a mixed-mantissa framework built upon the hierarchical scaling structure of HIF4. Our key observation is that the two HIF4-compatible mantissa representations, S1P2 and E2M1, exhibit complementary quantization behavior: the denser S1P2 format provides higher resolution for concentrated weight distributions, while the wider-spaced E2M1 format provides complementary quantization characteristics for activation tensors. HiMX enables operand-tailored mantissa representations while converting heterogeneous mantissas into fixed-point integer operands with operand-specific widths, allowing different operand formats to share a unified integer multiply-accumulate (MAC) array. Block-level analysis on Qwen3-8B shows that HIF4-S1P2 is better suited for weights while HIF4 E2M1 is better suited for activations, and their mixed-format combination achieves lower output MSE than homogeneous configurations. Across multiple benchmarks, HiMX reduces the average end-to-end accuracy loss from 2.38 to 1.77 points on Qwen3-8B and from 2.23 to 1.85 points on Qwen3-30B-A3B, demonstrating the potential benefit of heterogeneous mantissa representations for W4A4 LLM inference.
Introduction
4-bit quantization has become an important direction for efficient large language model (LLM) inference[1, 2, 3, 4], with recent formats such as MXFP4, NVFP4, and HiFloat4 (HIF4) exploring different trade-offs between numerical accuracy[5, 6, 7, 8, 9], representation efficiency, and hardware cost. Among them, HIF4 introduces a three-level scaling hierarchy to improve the utilization of the limited 4-bit representation space while capturing both inter-group and intra-group dynamic ranges[7, 10]. Its large 64-element group size further enables matrix multiplication to be implemented in a highly fixed-point manner, reducing hardware area and power consumption[7]. These properties make HIF4 an attractive foundation for efficient W4A4 inference[7, 11].
To investigate whether further gains can be obtained from operand-aware representations, we first characterize the local numerical distributions of LLM weights and activations. Specifically, we analyze the local 4-element dynamic range and find that activation tensors exhibit a modest but consistent shift toward higher local dynamic-range distribution than weights. This observation suggests that the two operands may have different requirements for their local 4-bit representations: weights may benefit more from a denser format, while activations may benefit from a representation with wider numerical coverage.
Motivated by this observation, we further investigate the local mantissa representations available within the HIF4 framework. HIF4-compatible S1P2 and E2M1 provide different trade-offs between local resolution and dynamic range[7, 8]. S1P2 offers denser representation levels, whereas E2M1 provides a wider dynamic range[8] and is also widely adopted in recent 4-bit floating-point formats such as MXFP4 and NVFP4[5, 6]. Our analysis shows that these two mantissa representations exhibit complementary quantization behavior across weights and activations, motivating an operand-dependent selection of local mantissa formats while retaining the hierarchical scaling structure of HIF4.
Recent work has also explored heterogeneous numerical representations[12, 13] for different operands. In particular, AdaMX investigates representation heterogeneity across blocks and operands, demonstrating the potential of adapting low-precision formats to tensor characteristics [13]. HiMX is complementary to this line of work but focuses specifically on heterogeneous mantissa representations within the HIF4 hierarchical scaling framework. Instead of introducing independent numerical formats for different operands, HiMX retains the HIF4 scaling hierarchy and 4-bit structure while selecting between HIF4-compatible mantissa formats according to tensor-dependent characteristics[12, 13, 14]. Moreover, HiMX adopts a unified integer computation path. Heterogeneous mantissas are converted into fixed-point integer operands with operand-specific widths and aligned at the multiplier input, allowing different operand formats to share the same integer MAC array. This design is inspired by prior microscaling and shared-microexponent architectures that exploit integer-oriented or shared-scale computation [5, 15, 16, 14].
Based on these observations, we propose HiMX, a mixed-mantissa framework for HIF4 quantization. In our main configuration, HiMX employs HIF4-S1P2 for weights and HIF4-E2M1 for activations. By combining operand-dependent mantissa selection with a unified integer computation datapath, HiMX improves quantization fidelity while preserving the hardware-friendly characteristics of HIF4.
Our experiments on Qwen3 models demonstrate that heterogeneous mantissa representations can improve both quantization fidelity and end-to-end accuracy[17]. On Qwen3-8B, HIF4-S1P2 achieves lower weight quantization error, while activation tensors show a preference for HIF4-E2M1; their mixed-format combination further achieves lower GEMM output MSE than the evaluated homogeneous configurations. Across multiple benchmarks, HiMX reduces the average end-to-end accuracy loss from 2.38 to 1.77 percentage points on Qwen3-8B and from 2.23 to 1.85 percentage points on Qwen3-30B-A3B.
Contributions. The main contributions of this work are summarized as follows:
Local Distribution Characterization: We analyze the local 4-element dynamic-range distributions of LLM weights and activations and observe different dynamic-range characteristics between the two operands.
Mixed-Mantissa HIF4 Quantization: We propose HiMX, which extends the HIF4 hierarchical scaling framework with operand-dependent local mantissa representations, using HIF4-S1P2 for weights and HIF4-E2M1 for activations.
Unified Mixed-Format Computation: We introduce a format-to-fixed-point mapping and width-alignment mechanism that converts heterogeneous mantissa formats into fixed-point integer operands with operand-specific widths, enabling different HIF4 representations to share a unified integer MAC array.
End-to-End Evaluation: We evaluate HiMX on Qwen3 models across multiple benchmarks and demonstrate improved accuracy retention over unified HIF4 quantization with a small additional hardware cost.
Characterization of Weight-Activation Distribution Heterogeneity
To establish the rationale for heterogeneous mantissa design within a unified 3-level microscaling quantization framework[7], this section analyzes the quantization behavior of HIF4-S1P2 and HIF4-E2M1 on LLM weights and activations. First, the respective quantization procedures are formalized under the shared HIF4 hierarchy. Next, we profile the post-scaling local dynamic ranges[18] of four-element groups to characterize distribution differences between operands. Finally, we evaluate quantization errors at both tensor and GEMM levels to examine whether these distribution differences translate into different mantissa preferences.
HIF4-S1P2 and HIF4-E2M1 Quantization Architecture
To systematically evaluate the impact of local mantissa representations under our three-level scale hierarchy, we introduce two representative 4-bit variants: HIF4-S1P2 and HIF4-E2M1. The E2M1 format corresponds to the FP4 element format specified by OCP MX, while S1P2 is the fixed-point local format used by HIF4. We therefore use the two formats under the same HIF4 hierarchical scaling structure to isolate the effect of local format selection from the effect of hierarchical scaling. Specifically, the S1P2 format adopts the sign-magnitude fixed-point representation used as the local format in HIF4, where S denotes the sign bit, the 1 before P indicates a 1-bit integer part, and the 2 after P indicates a 2-bit fractional part (P is the binary point).The E2M1 format corresponds to the 4-bit floating-point element format defined in the OCP MXFP4 specification, with one sign bit, two exponent bits, and one mantissa bit[8].
Algorithm 1 HIF4 Block Quantization and Dequantization
Require: 64-element block , format selection
Ensure: Quantized-dequantized block
Set hyper-parameters according to format
for to do ▷ Extract 16 4-element local peaks
end for
for to do ▷ Extract 8 8-element mid-level peaks
end for
▷ Global block peak
▷ Level-1 global scale
for to do ▷ Level-2 1-bit scales
end for
for to do ▷ Level-3 1-bit scales
end for
for to do ▷ Element-wise scaling & element quantization
end for
return
In fine-grained micro-scaling formats, in-group quantization faces an inherent trade-off between local precision and dynamic range[5, 6, 19, 9]. S1P2 offers uniform, high-density resolution with up to a 3-bit significand, but possesses a limited dynamic range of binades. Conversely, E2M1 sacrifices 1 bit of significand precision to introduce a 2-bit micro-exponent, expanding the local dynamic range to binades. This broader dynamic-range coverage can be beneficial for activation groups exhibiting larger local magnitude variation.
As illustrated in Figure 1, for an input block , HIF4 constructs scale factors hierarchically from local peak magnitudes. The 64 elements are first partitioned into 16 four-element groups (). The local peak magnitude of each group is:

Figure 1. (a) HIF4-S1P2 Scale Hierarchy[7]. (b) HIF4-E2M1 Scale Hierarchy. Figure 1: Overview of the proposed HIF4 3-level microscaling[7] quantization architecture for (a) S1P2 and (b) E2M1 variants. A 64-element block shares an E6M2 global scale factor (SF), augmented by eight 1-bit mid-level scale extensions (E1₈) and sixteen 1-bit fine-level scale extensions (E1₄) to capture local magnitude variations prior to element quantization.
Adjacent group peaks are aggregated into eight mid-level peaks:
which finally yield the global block peak .
The hierarchical scale engine maps , , and into low-bit scale factors. First, the high-precision global scale factor is mapped to an E6M2 floating-point representation, where the normalization constant is set to 7.0 for S1P2 and 24.0 for E2M1. The mid-level and fine-level 1-bit scale extensions (E18 and E14) are evaluated conditionally:
where denotes the indicator function, and the dynamic thresholds are calibrated as (4.0, 2.0) for S1P2 and (16.0, 8.0) for E2M1. Combining these tiers yields the composite element-wise scale for element . The normalized element magnitude is given by:
Finally, is mapped to non-negative discrete formats :
with the original sign restored via .
The complete quantization workflow is formalized in Algorithm 1.
Tensor Format Characteristics and Quantization Error Analysis
To establish a principled foundation for micro-scaling format assignment, a comprehensive empirical analysis is conducted on the Qwen3-8B architecture. The primary objective is to dissect the intrinsic distributional divergence between weights and activations, and evaluate how local format characteristics impact quantization fidelity both in isolation and within full matrix multiplications.
Local Dynamic Range Characterization
A diverse dataset comprising 256 sequence tokens is fed into Qwen3-8B. Across all 36 Transformer layers, tensor streams are systematically intercepted at every major GEMM projection boundary:
Self-Attention Projections: Inputs to the Query (), Key (), Value (), and Attention Output () matrices.
FFN / MLP Projections: Inputs to the Gate (), Up (), and Down-projection () matrices.
From these captured streams, 100,000 64-element blocks () are extracted. Each block is partitioned into 16 fine-grained 4-element sub-groups .
To quantify local value dispersion within fine-grained groups, we compute the quantization-aware local 4-element Dynamic Range () as
where denotes the normalized element magnitude, is the element-wise hierarchical scale defined in Section 2.1, and prevents division by zero. The denominator is set to 1 when no element in satisfies . Specifically, measures the normalized peak-to-trough magnitude ratio within four consecutive elements, while filtering out very small normalized magnitudes below 0.1. A high indicates larger intra-group magnitude contrasts, favoring a 4-bit element format with broader local dynamic-range coverage.
Figure 2 illustrates the empirical distribution of for both weight and activation tensors:

Figure 2. Local 4-element Dynamic Range Distribution profiled from Qwen3-8B. The horizontal axis represents the local dynamic range (, clipped at 25.0), while the vertical axis denotes the percentage of 4-element groups (%). Activations display a modest but consistent shift toward higher dynamic range (Avg DR = 16.70) compared to weights (Avg DR = 16.28).
Activation Characteristics: Activation groups shift toward higher dynamic range regimes (Avg DR = 16.70), with a larger fraction of groups clustering in higher dynamic range intervals. This reflects the broader local magnitude variation during inference.
Weight Characteristics: Weight groups present a lower average dynamic range (Avg DR = 16.28). Although weights span across wide dynamic range boundaries, they exhibit a higher density of low-to-moderate dynamic range groups compared to activations.
Single-Tensor Quantization Error Analysis
The divergence in local dynamic range directly governs how weights and activations interact with the S1P2 and E2M1 formats. S1P2 provides high significand precision (up to 3 bits) across a narrow dynamic range (2.81 binades), whereas E2M1 dedicates a 2-bit exponent to cover a broader range (3.58 binades) at the expense of mantissa resolution.
To evaluate quantization fidelity, block-level quantization MSE empirical distributions are plotted in Figure 3. Figure 3a and Figure 3b depict the MSE distributions for weight and activation blocks, respectively. The two distributions use different horizontal-axis scales to reflect their substantially different error ranges. The weight MSE distribution is presented on a linear scale because weight statistics are relatively stable across blocks, resulting in a comparatively concentrated MSE range. In contrast, activation values exhibit larger variation in local dynamic range, which leads to a much wider distribution of block-level MSE values. Therefore, the activation MSE distribution is plotted on a logarithmic horizontal axis to expose the full distribution over multiple orders of magnitude and make both low- and high-error regions observable. The logarithmic scale is used solely for visualization and does not alter the underlying MSE statistics.


Figure 3. Quantization MSE empirical distributions for 64-element blocks in Qwen3-8B. (a) Weight-block MSE under HIF4-S1P2 and HIF4-E2M1. (b) Activation-block MSE under the two formats, shown on a logarithmic horizontal axis to expose the broad error range.
For both weights and activations, quantization error is measured against the corresponding unquantized FP16 reference tensor. Given an original tensor and its quantized-dequantized reconstruction , the mean squared error (MSE) is defined as
where denotes the number of elements in the evaluated tensor or block. As quantified in Table 1, the empirical statistical averages align closely with the local dynamic range characteristics:
| Tensor Type | HIF4-S1P2 MSE () | HIF4-E2M1 MSE () | MSE Ratio (S1P2:E2M1) |
| Weight () | 1.00 : 2.03 | ||
| Activation () | 1.12 : 1.00 |
Table 1. Average block-level quantization MSE across Qwen3-8B projections, measured against the unquantized BF16 reference tensors.
Weight Quantization: HIF4-S1P2 achieves an average MSE of , whereas HIF4-E2M1 reaches . Thus, the MSE of HIF4-E2M1 is approximately that of HIF4-S1P2, indicating that S1P2 provides substantially lower reconstruction error for the weight distribution. In Figure 3a, the error distribution for S1P2 is visibly shifted toward smaller MSE values. With a higher proportion of low-to-moderate local dynamic-range groups, weights benefit from S1P2’s denser representation near zero.
Activation Quantization: Conversely, HIF4-E2M1 achieves an average MSE of , compared with for HIF4-S1P2. Thus, the MSE of HIF4-S1P2 is approximately that of HIF4-E2M1, indicating a smaller but consistent advantage of E2M1 for the activation distribution. As shown in the log-scale distribution in Figure 3b, E2M1 concentrates more blocks in the mid-MSE range and reduces the extreme high-MSE tail. Although the logarithmic histogram emphasizes the low-to-mid MSE region visually, the average MSE remains sensitive to the high-MSE tail, making the reduced tail particularly relevant to the overall reconstruction error.
Mixed-Format GEMM Quantization Error
Having verified single-tensor quantization preferences, error accumulation during matrix multiplication is evaluated. End-to-end Output MSE is measured across all four permutations of weight and activation mantissa formats inside the HIF4 scale hierarchy.
As illustrated in Figure 4, the empirical GEMM reconstruction errors reveal critical design trade-offs:

Figure 4. GEMM Output MSE under different HIF4 mantissa pairings (). The heterogeneous pair (HiMX) achieves the lowest matrix multiplication error.
Homogeneous Baselines: Pure S1P2 (S1P2 S1P2) yields an Output MSE of , limited by activation dynamic range truncation. Pure E2M1 (E2M1 E2M1) incurs the highest error () due to coarse weight significand resolution.
Suboptimal Heterogeneous Pairing: The inverted pair (E2M1 S1P2) achieves , failing to resolve the dominant weight quantization error and activation quantization error.
Heterogeneous HiMX Design: The proposed combination (S1P2 E2M1) achieves the optimal Output MSE of , delivering a 6.2% error reduction over pure S1P2 and 29.0% over pure E2M1.
These results demonstrate that pairing high-precision weight mantissas (S1P2) with wide-dynamic-range activation mantissas (E2M1) reduces dot-product error propagation, providing optimal numerical fidelity under a shared hierarchical scaling framework.
HiMX Framework Architecture
HiMX extends the original HIF4 computation architecture to support heterogeneous mantissa formats for weights and activations while preserving the hierarchical scaling and integer-based dot-product computation of HIF4. Figure 5 compares the original HIF4-S1P2 datapath with the proposed heterogeneous S1P2×E2M1 datapath. The key architectural modification is localized to the operand representation and the corresponding multiplication stage: the hierarchical scale processing, partial-sum compression, and final global-scale reconstruction remain structurally consistent with the original HIF4 design.

Figure 5. Comparison of the 64-element dot-product architecture between (a) the original HIF4-S1P2 configuration and (b) the proposed HiMX S1P2×E2M1 configuration. Both datapaths preserve the three-level HIF4 hierarchical scaling and hierarchical accumulation structure, while HiMX introduces a wider integer representation for the E2M1 activation operand and the corresponding multiplication datapath.
Figure 5a illustrates the original HIF4-S1P2 computation flow. Within each 64-element HIF4 block, the third-level scale extensions are first incorporated into the local S1P2 mantissas. The resulting integer-compatible operands are then processed by 64 parallel multiplications. The products are compressed through a hierarchical adder tree, where the first reduction stage aggregates 64 products into 8 partial sums. The second-level scale information is subsequently introduced through shift operations, avoiding the need for general-purpose multipliers for the hierarchical scaling factors. A second adder-tree stage then reduces the 8 shifted partial sums into a single accumulated result. Finally, the accumulated integer value is combined with the remaining global scale information to reconstruct the output. This hierarchical organization allows most of the 64-element dot product to remain in the integer domain and is one of the main reasons for the computational efficiency of HIF4[7, 15, 16].
HiMX retains this overall computation flow but changes the representation of the activation operand, as shown in Figure 5b. The weight path remains unchanged and uses the original HIF4-S1P2 representation. In contrast, the activation path adopts the HIF4-E2M1 format. After incorporating the fine-level E1 scale information (the sixteen 1-bit fine-level scales introduced in § 2.1), the weight and activation operands are represented as S2P2 and S3P2, respectively. Here, SxPy denotes a sign bit followed by an x-bit integer part and a y-bit fractional part in the internal fixed-point representation. Compared with the original S1P2S1P2 datapath, the activation operand therefore requires one additional bit in its integer representation. The multiplication stage is consequently expanded from S2P2 S2P2 to S2P2 S3P2, resulting in a wider intermediate product.
This modification is important because the E2M1 format provides a substantially wider local numerical range than S1P2. Instead of forcing both operands to use the same mantissa representation, HiMX preserves the denser S1P2 representation for weights while providing the activation operand with the additional representation capacity required by E2M1. The resulting datapath therefore matches the numerical characteristics of the two operands more closely. In particular, the wider E2M1 representation allows activation values with larger local dynamic ranges to be represented without sacrificing the hierarchical scaling structure of HIF4. At the same time, the weight path does not incur the additional representation cost of E2M1, since the empirical analysis in § 2 shows that S1P2 provides substantially lower quantization error for the weight distribution.
After the heterogeneous multiplication stage, HiMX preserves the original HIF4 hierarchical accumulation strategy. The 64 multiplication results are first compressed into 8 partial sums. The combined E1 scale information of the weight and activation operands is then implemented through integer shifts, after which a second adder tree produces the final integer accumulation result. The global E6M2 scale factors are reconstructed at the output stage in the same manner as HIF4. Consequently, the introduction of heterogeneous mantissa formats does not require a new hierarchical accumulation architecture. Instead, the additional complexity is concentrated primarily in the operand conversion and multiplication stage.
The main hardware overhead of HiMX therefore comes from the increased integer bit-width of the activation operand in the heterogeneous multiplication. Compared with the original S1P2S1P2 datapath, the E2M1 activation operand requires a wider integer representation (S3P2 instead of S2P2), which increases the area of the corresponding multiplication units. A straightforward implementation that introduces dedicated arithmetic resources for the wider heterogeneous operation would incur a noticeable resource overhead. However, directly duplicating a complete multiplication datapath is unnecessary because the original HIF4 computation already contains wide arithmetic units that can be reused.
To reduce this overhead, one possible implementation is to reuse the existing wider arithmetic resources of the HIF4 datapath through sub-word parallelism[20, 14], rather than assigning independent multiplication hardware to the additional E2M1 path. Using FP16 as an example, the 11-bit mantissa path of an existing FP16 multiplier can be partitioned into two disjoint sub-word fields, each performing an independent 4-bit multiplication. Since each wide mantissa multiplier can host two independent 4-bit sub-word multiplications, the existing arithmetic arrays can be reused to reconstruct a larger number of FP4 multiplication operations without adding new multiplier units. More generally, modern accelerators already provide native support for multiple narrow numerical formats such as FP8 and MXFP4[6, 8, 20], and the corresponding arithmetic resources can similarly be reused for the heterogeneous E2M1 path. The two 4-bit sub-words occupy disjoint bit fields of the wider operand, and the partial products generated from different sub-words are isolated by the corresponding bit-field alignment, avoiding cross-term contamination. The outputs are then extracted from the corresponding bit ranges after accumulation. Under such a resource-sharing scheme, the estimated additional area of the multiplication array is approximately 2%–5% of the combined FP16 and incremental FP4 resources, with the overhead dominated by the additional alignment and masking logic rather than by new multiplier units.
Overall, the architecture provides a favorable trade-off between numerical flexibility and hardware efficiency. HiMX allows S1P2 and E2M1 to be assigned independently according to the statistical characteristics of weights and activations, while retaining the original HIF4 hierarchical scaling and accumulation mechanism. The heterogeneous representation improves the ability to match operand-specific dynamic-range requirements, whereas SIMD-based resource sharing limits the resulting hardware overhead to approximately 2%–5%. This design demonstrates that operand-level mantissa heterogeneity can be introduced into HIF4 without fundamentally changing its integer-oriented dot-product architecture.
Experiments
We evaluate HiMX on the Qwen3 family of large language models[17], including Qwen3-8B and Qwen3-30B-A3B, covering six standard benchmarks: MMLU, GSM8K, HumanEval, MBPP, ARC-Challenge (ARC-C), and ARC-Easy (ARC-E)[21, 22, 23, 24, 25]. We compare four HIF4 mantissa configurations: homogeneous baselines (S1P2W S1P2A, E2M1W E2M1A) and heterogeneous pairs (E2M1W S1P2A, S1P2W E2M1A), with FP16 FP16 serving as the full-precision reference.
As summarized in Table 2, the heterogeneous HiMX configuration (S1P2W E2M1A) achieves the highest mean accuracy on both Qwen3-8B and Qwen3-30B-A3B. It reaches 72.901 on Qwen3-8B and 79.459 on Qwen3-30B-A3B, corresponding to accuracy losses of 1.767 and 1.851 percentage points from the respective FP16 baselines. Compared with the homogeneous (S1P2W S1P2A) configuration, the heterogeneous configuration improves the mean accuracy by 0.615 and 0.383 percentage points on Qwen3-8B and Qwen3-30B-A3B, respectively. It also outperforms the homogeneous (E2M1W E2M1A) configuration and the inverted heterogeneous pairing (E2M1W S1P2A) on both models. We note that the mean advantage of HiMX is not uniform across every individual benchmark: on some benchmarks the homogeneous or inverted heterogeneous configurations remain slightly better, and the improvement of HiMX mainly comes from its consistently better average behavior.
| Model | Weight–Activation | MMLU | GSM8K | HumanEval | MBPP | ARC-C | ARC-E | Mean |
| Qwen3-8B | FP16 × FP16 | 74.968 | 88.476 | 64.024 | 65.000 | 67.577 | 87.963 | 74.668 |
| Qwen3-8B | S1P2 × S1P2 | 73.159 | 85.140 | 59.146 | 63.200 | 65.529 | 87.542 | 72.286 (-2.382) |
| Qwen3-8B | E2M1 × E2M1 | 72.483 | 86.429 | 59.756 | 61.800 | 63.481 | 87.416 | 71.894 (-2.774) |
| Qwen3-8B | E2M1 × S1P2 | 72.710 | 85.747 | 60.366 | 62.600 | 64.334 | 86.911 | 72.111 (-2.557) |
| Qwen3-8B | S1P2 × E2M1 | 72.547 | 86.277 | 63.415 | 61.800 | 65.785 | 87.584 | 72.901 (-1.767) |
| Qwen3-30B-A3B | FP16 × FP16 | 82.033 | 89.765 | 76.220 | 76.400 | 72.867 | 90.572 | 81.310 |
| Qwen3-30B-A3B | S1P2 × S1P2 | 80.822 | 88.855 | 70.732 | 73.200 | 71.075 | 89.773 | 79.076 (-2.234) |
| Qwen3-30B-A3B | E2M1 × E2M1 | 79.868 | 90.523 | 71.951 | 73.200 | 69.454 | 89.773 | 79.128 (-2.182) |
| Qwen3-30B-A3B | E2M1 × S1P2 | 80.352 | 88.462 | 72.171 | 74.800 | 70.478 | 89.899 | 79.360 (-1.950) |
| Qwen3-30B-A3B | S1P2 × E2M1 | 80.730 | 88.704 | 71.950 | 74.400 | 70.734 | 90.236 | 79.459 (-1.851) |
Table 2. End-to-end accuracy of Qwen3 models under different HIF4 mantissa configurations. The Mean column reports the average accuracy over six benchmarks: MMLU, GSM8K, HumanEval, MBPP, ARC-C, and ARC-E. Values in parentheses denote the accuracy drop relative to the FP16 baseline.
These results are consistent with our tensor-level analysis, suggesting that heterogeneous mantissa assignment can provide a more favorable balance between local representation precision and dynamic-range coverage than a single mantissa format. In particular, assigning S1P2 to weights and E2M1 to activations provides the best end-to-end accuracy among the evaluated configurations. The consistent improvement over the homogeneous S1P2 baseline demonstrates the practical benefit of introducing operand-level mantissa heterogeneity within the HIF4 framework.
From a hardware perspective, the dominant additional overhead of HiMX stems from the increased integer bit-width of the activation operand in the heterogeneous multiplication. By converting heterogeneous mantissas into fixed-point integer operands with operand-specific widths and by reusing the existing SIMD arithmetic resources through sub-word packing, the estimated additional area of the multiplication array is limited to approximately 2%–5% of the combined FP16 and incremental FP4 resources, rather than scaling proportionally with independent format-specific datapaths.
Conclusion
We presented HiMX, a mixed-format multiplication framework for HIF4 quantization and efficient low-bit LLM inference. The key observation behind our approach is that a single 4-bit mantissa format is not uniformly optimal across different LLM tensors. HIF4-S1P2 provides dense and relatively uniform local representation, making it well suited to concentrated weight distributions, whereas HIF4-E2M1 provides a wider non-uniform format that can better accommodate tensors with larger local dynamic-range requirements.
Based on this observation, HiMX assigns different mantissa formats to different operands while retaining the hierarchical HIF4 scaling framework. To efficiently support heterogeneous operands, HiMX maps each mantissa format to a fixed-point integer operand and aligns the operand widths at the multiplier input, enabling different mantissa representations to share a unified integer multiplication array. This design confines the additional overhead primarily to the increased integer bit-width of the E2M1 activation operand and to the conversion and alignment stages, and the SIMD-based resource reuse limits the additional multiplication-array area to approximately 2%–5% of the combined FP16 and incremental FP4 resources.
Our numerical and end-to-end evaluations demonstrate the effectiveness of this mixed-mantissa design. Block-level analysis shows that the choice of mantissa format affects both weight and activation quantization fidelity, while GEMM-level evaluation identifies as the most effective configuration among the evaluated combinations. On Qwen3-8B, this configuration achieves a mean accuracy of 72.901 across six benchmarks, improving over the homogeneous baseline by 0.615 percentage points and remaining within 1.767 percentage points of the FP16 baseline. On Qwen3-30B-A3B, it achieves a mean accuracy of 79.459, improving over the homogeneous S1P2 configuration by 0.383 percentage points with an FP16 accuracy loss of 1.851 percentage points.
Overall, these results show that introducing operand-level mantissa heterogeneity within the HIF4 framework can improve low-bit LLM accuracy without requiring independent multiplication datapaths for different formats. Future work will investigate distribution-aware format selection based on the characteristics of different models and tensor types, explore a broader range of low-bit numerical formats and bit widths, and further reduce the hardware and implementation overhead associated with supporting heterogeneous formats. We will also investigate the integration of distribution-aware format selection with other LLM compression techniques, including sparsity, KV-cache compression, and MoE-aware quantization.
References
References
- [1]Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers. In International Conference on Learning Representations (ICLR), 2023.arxiv.org/abs/2210.17323
- [2]Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Xingyu Dang, and Song Han. AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration. In Proceedings of Machine Learning and Systems (MLSys), 2024.arxiv.org/abs/2306.00978
- [3]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, pages 38087–38099, 2023.arxiv.org/abs/2211.10438
- [4]Zhewei Yao, Reza Yazdani Aminabadi, Minjia Zhang, Xiaoxia Wu, Conglong Li, and Yuxiong He. ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers, 2022.arxiv.org/abs/2206.01861
- [5]Bita Darvish Rouhani, Ritchie Zhao, Ankit More, Mathew Hall, Alireza Khodamoradi, Summer Deng, Dhruv Choudhary, Marius Cornea, Eric Dellinger, Kristof Denolf, Stosic Dusan, Venmugil Elango, Maximilian Golub, Alexander Heinecke, Phil James-Roxby, Dharmesh Jani, Gaurav Kolhe, Martin Langhammer, Ada Li, Levi Melnick, Maral Meshkhosrоshahi, Andres Rodriguez, Michael Schulte, Rasoul Shafipour, Lei Shao, Michael Siu, Pradeep Dubey, Paulus Micikevicius, Maxim Naumov, Colin Verrilli, Ralph Wittig, Doug Burger, and Eric Chung. Microscaling Data Formats for Deep Learning, 2023.arxiv.org/abs/2310.10537
- [6]NVIDIA. NVIDIA Blackwell Architecture Whitepaper. Technical report, NVIDIA Corporation, 2024.
- [7]Yuanyong Luo, Jing Huang, Yu Cheng, Ziwei Yu, Kaihua Tang, Xinda Ma, Xin Wang, Anping Tong, Guipeng Hu, Yun Xu, Mehran Taghian, Peng Wu, Guanglin Li, Yunke Peng, Tianchi Hu, Minqi Chen, Michael Bi Mi, Hu Liu, Xiping Zhou, Junsong Wang, Qiang Lin, and Heng Liao. HiFloat4 Format for Language Model Inference, 2026.arxiv.org/abs/2602.11287
- [8]Open Compute Project. OCP Microscaling Formats (MX) Specification. Technical report, Open Compute Project, 2023.
- [9]Mengzhao Chen, Meng Wu, Hui Jin, Zhihang Yuan, Jing Liu, Chaoyi Zhang, Yunshui Li, Jie Huang, Jin Ma, Zeyue Xue, Zhiheng Liu, Xingyan Bin, and Ping Luo. INT v.s. FP: A Comprehensive Study of Fine-Grained Low-bit Quantization Formats, 2025.arxiv.org/abs/2510.25602
- [10]Hui Dong, Yanzhao Li, Jie Gao, Chunlu Li, Zhiyuan Zhang, Yupeng Sun, Zhenyuan Chen, and Zhiqiang Zou. HiFA4: Training-Free 4-bit FlashAttention on Ascend HIF4 NPUs for LLM Inference, 2026.arxiv.org/abs/2607.04302
- [11]Zhiyuan Zhang, Yanzhao Li, Zhiqiang Zou, Bai Du, Yupeng Sun, Hui Dong, and Hui Wang. OSC: Hardware Efficient W4A4 Quantization via Outlier Separation in Channel Dimension, 2026.arxiv.org/abs/2604.12782
- [12]Weiming Hu, Haoyan Zhang, Cong Guo, Yu Feng, Renyang Guan, Zhendong Hua, Zihan Liu, Yue Guan, Minyi Guo, and Jingwen Leng. M-ANT: Efficient Low-Bit Group Quantization for LLMs via Mathematically Adaptive Numerical Type. In 2025 IEEE International Symposium on High Performance Computer Architecture (HPCA), pages 1112–1126, 2025.arxiv.org/abs/2502.18755
- [13]Junyi Luo, Xinting Jiang, Tai-Hao Wen, Ruichen Qi, Minxing Chu, Hongyi Wu, Gregory Kielian, Ben Laurie, Qirui Zhang, Quan Cheng, Dennis Sylvester, and Mehdi Saligane. Heterogeneity-Aware Microscaling for Efficient Low-Bit ML Inference, 2026.arxiv.org/abs/2608.03867
- [14]Weiming Hu, Zihan Zhang, Haoyan Zhang, Chen Zhang, Cong Guo, Yu Feng, Tianchi Hu, Guanglin Li, Guipeng Hu, Junsong Wang, and Jingwen Leng. M2XFP: A Metadata-Augmented Microscaling Data Format for Efficient Low-bit Quantization. In Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), pages 1151–1167, 2026.arxiv.org/abs/2601.19213
- [15]Bita Darvish Rouhani, Daniel Lo, Ritchie Zhao, Ming Liu, Jeremy Fowers, Kalin Ovtcharov, et al. Pushing the Limits of Narrow Precision Inferencing at Cloud Scale with Microsoft Floating Point. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
- [16]Bita Darvish Rouhani, Ritchie Zhao, Vennugil Elango, Raoul Shafipour, Mathew Hall, Maral Mesmakhosroshahi, Ankit More, Levi Melnick, Maximilian Golub, Girish Varaktar, et al. With Shared Microexponents, a Little Shifting Goes a Long Way. In Proceedings of the 50th Annual International Symposium on Computer Architecture (ISCA), pages 1–13, 2023.arxiv.org/abs/2302.08007
- [17]An Yang et al. Qwen3 Technical Report, 2025.arxiv.org/abs/2505.09388
- [18]Akshat Ramachandran, Souvik Kundu, and Tushar Krishna. MicroscopIQ: Accelerating Foundational Models through Outlier-Aware Microscaling Quantization. In Proceedings of the International Symposium on Computer Architecture (ISCA), 2025.arxiv.org/abs/2411.05282
- [19]Yun-Chen Lo, Gu-Yeon Wei, and David Brooks. Nanoscaling Floating-Point (NxFP): NanoMantissa, Adaptive Microexponents, and Code Recycling for Direct-Cast Compression of Large Language Models, 2024.arxiv.org/abs/2412.19821
- [20]Jungi Lee, Junyong Park, Soohyun Cha, Jaehoon Cho, and Jaewoong Sim. MX+: Pushing the Limits of Microscaling Formats for Efficient Large Language Model Serving. In Proceedings of the 58th IEEE/ACM International Symposium on Microarchitecture (MICRO), pages 869–883, 2025.
- [21]Dan Hendrycks et al. Measuring Massive Multitask Language Understanding, 2021.
- [22]Karl Cobbe et al. Training Verifiers to Solve Math Word Problems, 2021.arxiv.org/abs/2110.14168
- [23]Mark Chen et al. Evaluating Large Language Models Trained on Code, 2021.arxiv.org/abs/2107.03374
- [24]Jacob Austin, Augustus Odena, Maxwell Nye, et al. Program Synthesis with Large Language Models, 2021.arxiv.org/abs/2108.07732
- [25]Peter Clark et al. Think You Have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge, 2018.arxiv.org/abs/1803.05457