Manuscript Offprint
arXiv:2611.00403MXCode: Vector Quantization for MX-Native Inference at Scale
ABSTRACT
Memory capacity and bandwidth are major bottlenecks in large language model (LLM) inference, motivating weight compression beyond conventional 4-bit quantization. Meanwhile, FP4 computation is becoming a standard capability in modern AI accelerators, with microXcaling (MX) formats enabling efficient W4A4 (Weights & Activations in 4 bit) matrix multiplication. Vector quantization (VQ) enables approximately 2-bit weight storage, roughly halving the storage cost of MXFP4 formats. However, existing VQ approaches often rely on codebook representations that are not directly compatible with native FP4 computation. We present MXCode (MX-Native Codebook Quantization), a framework that bridges ultra-low-bit VQ compression and MX-native FP4 computation. MXCode introduces three complementary strategies: PostScale, which quantizes learned codebooks to MXFP4; PreScale, which extracts MX scales before codebook learning; and PreScale+, which additionally compresses these scales using VQ. Together, they explore tradeoffs among quantization quality, scale overhead, and codebook granularity. All three strategies reconstruct MX-native W4A4 operands without materializing intermediate high-precision weight tensors. We evaluate MXCode on three industrial-scale LLMs, including Qwen3 (235B), DeepSeek-R1 (671B), and GLM-5.2 (753B), using the Microsoft MX Emulation Library¹ to assess model quality under MX-compatible numerics. MXCode achieves approximately 2 bits per weight while maintaining competitive model quality, with workload-dependent degradation. In GB300 serving experiments with Qwen3 (235B) model, MXCode approximately halves model-load memory relative to Native FP4 while sustaining near-Native-FP4 serving throughput, and it reduces P90 TTFT by up to 94.5% under memory-constrained prefix reuse compared to Native FP4. These results, demonstrated through software-based reconstruction on existing FP4 hardware, inform the ongoing development and evaluation of MXCode for future MX-native inference systems.
1 INTRODUCTION
Large language model (LLM) inference is increasingly constrained by memory capacity and bandwidth. Model weights drive accelerator memory requirements, replication density, and capacity for runtime state such as the KV cache. During autoregressive decoding, repeated weight transfers can dominate memory traffic, particularly at low-to-moderate batch sizes. While 4-bit quantization reduces these costs, further compression is desirable for efficient large-scale serving.
Sub-4-bit compression must contend with hardware support centered on FP4. Modern AI accelerators, including Microsoft MAIA (Xu et al., 2026), NVIDIA Blackwell (NVIDIA), and AMD Instinct MI350-series (AMD), support native MXFP4 (microXcaling) compute (Open Compute Project, 2023). These formats combine low-precision elements with shared block scales to enable effi-
cient FP4 computation. However, storage precision need not match compute precision. Storing weights below four bits per element (BPE) while retaining native FP4 execution can reduce model footprint and HBM traffic without sacrificing low-precision compute.
Vector quantization (VQ) enables ultra-low-bit weight compression by representing weight vectors with compact codebook indices, achieving approximately 2 BPE or lower. However, conventional VQ approaches typically employ FP16 or INT8 codebooks without explicitly considering MX block-level scaling (Egiazarian et al., 2024; Tseng et al., 2024; van Baalen et al., 2025; Liu et al., 2024). Some approaches also use large codebooks, such as 65,536 entries in AQLM (Egiazarian et al., 2024), increasing lookup footprint and potentially limiting on-chip caching. Mapping these representations onto MXFP4 hardware requires either quantizing codebooks into MX-compatible formats, potentially introducing block-scale distortion, or reconstructing higher-precision weights before conversion, increasing data movement and execution overhead. Ultra-low-bit compression for MX-native inference is therefore a hardware-software co-design problem involving quantization quality, codebook
¹https://github.com/microsoft/microxcaling
*Equal contribution ¹Microsoft ²Carnegie Mellon University. Correspondence to: Partha Maji parthamaji@microsoft.com.
footprint, scale handling, and operand reconstruction. Furthermore, some VQ methods require gradient-based fine-tuning through codebooks, complicating deployment of large-scale pretrained models with frozen weights (Egiazarian et al., 2024; Tseng et al., 2024).
MXCode addresses these challenges through an MX-native VQ framework combining approximately 2-bit weight storage with native W4A4 computation. Its three strategies, PostScale, PreScale, and PreScale+, jointly explore codebook quantization, MX scale extraction, and scale compression to balance numerical fidelity, storage efficiency, and execution compatibility. MXCode uses one-shot, gradient-free post-training quantization on frozen pretrained weights, avoiding retraining or backpropagation through codebooks and easing adoption for large-scale and third-party LLMs.
Industrial Context. MXCode is being developed and evaluated for integration into large-scale LLM inference systems, with the objective of reducing weight-memory requirements while preserving native MXFP4 computation. The intended integration combines compact codebook-indexed weight storage with FP4 operand reconstruction in the inference execution path. While native accelerator integration remains under development, we validate MXCode's numerical behaviour and serving implications through a software-based implementation on NVIDIA GB300 GPUs. This enables evaluation of compression efficiency, reconstruction overhead, model replication, and KV-cache capacity on existing FP4 hardware, providing practical guidance for ongoing hardware–software co-design and deployment planning.
Our main contributions are:
-
MX-native vector quantization. We introduce MX-Code, combining approximately 2-bit weight storage with native W4A4 computation through FP4-compatible codebooks and operand reconstruction without intermediate high-precision weights.
-
Compression strategies and large-scale validation. We develop PostScale, PreScale, and PreScale+, exploring storage–quality trade-offs across three industrial-scale LLMs (235B–753B parameters).
-
GPU serving demonstration. On NVIDIA GB300 GPUs, MXCode approximately halves model-load memory while sustaining near-Native-FP4 throughput, enabling 2× data-parallel replication at comparable memory headroom and reducing P90 TTFT by up to 94.5% under prefix reuse compared to Native FP4.
2.1 MicroXcaling (MX) FP4 Formats
MicroXcaling (MX) enables efficient low-precision computation through fine-grained shared scaling and low-precision element formats (Rouhani et al., 2023; Open Compute
Project, 2023). MX formats continue to evolve, with the release of OCP MX v1.1.0 in October 2026 reflecting ongoing industry-wide standardization of low-precision computation (Open Compute Project, 2026).
For a block of elements, each value is approximated as
where is a low-precision element and is the shared block scale. With element width and block-scale width , the effective storage cost, excluding tensor-level metadata, is . Smaller blocks enable finer adaptation to local value distributions but increase scale overhead.
We consider three block-scaled FP4 configurations, collectively referred to as MXFP4 formats throughout this paper: E8M0-B32-FP4, E4M3-B16-FP4, and E5M3-B16-FP4. Among these, E8M0-B32-FP4 is standardized in the current OCP MX v1.1.0 specification, whereas E4M3-B16-FP4 and E5M3-B16-FP4 represent emerging extensions to the MXFP4 design space. We discuss their details in Table 1.
E8M0-B32-FP4. The OCP MX specification defines MXFP4 using 32 E2M1 elements with a shared 8-bit E8M0 scale (Open Compute Project, 2026). Its power-of-two scaling provides a wide dynamic range and low scale overhead (4.25 BPE), but no fractional scale precision.
E4M3-B16-FP4. NVIDIA's NVFP4 format groups 16 E2M1 elements under an FP8 E4M3 block scale (Alvarez et al., 2025), enabling finer local adaptation through smaller blocks and fractional scale precision at 4.50 BPE. A tensor-level FP32 scale extends the effective range, so that .
E5M3-B16-FP4. Unsigned E5M3 (UE5M3) reallocates the sign bit of the block scale to exponent range while retaining three fractional bits (Fasoli et al., 2026; Hu et al., 2026). Its wider range mitigates scale underflow with 16-element blocks without requiring an additional tensor-level FP32 scale. The effective cost remains 4.50 BPE.
2.2 Vector Quantization (VQ)
While FP4 microscaling enables efficient low-precision computation, its storage cost remains above four BPE. VQ enables sub-4-bit compression by representing groups of weights through compact codebook indices rather than independently quantized scalar values (Egiazarian et al., 2024; Tseng et al., 2024).
Given a vector and a codebook containing vectors of dimension , VQ selects the nearest codeword:
Table 1. Block-scaled FP4 formats compared in this work. All use E2M1 elements and 8-bit block scales. The reported ranges refer to block scales, and BPE excludes tensor-level scaling overhead.
| Format | Block size | Scale | Min. positive scale | Max. finite scale | Optional tensor scale | BPE |
|---|---|---|---|---|---|---|
| E8M0-B32-FP4 | 32 | E8M0 | - | 4.25 | ||
| E4M3-B16-FP4 | 16 | E4M3 | 448 | FP32 | 4.50 | |
| E5M3-B16-FP4 | 16 | UE5M3 | 114688 | FP32 | 4.50 |
Each vector is stored using a codebook index requiring bits, giving an effective index cost of
excluding codebook and scale storage. By learning representative patterns across multiple weights, VQ exploits inter-element structure that scalar quantization cannot capture.
Conventional VQ minimizes weight-space reconstruction error, although errors in different weight directions do not have equal effects on the layer output. Prior work uses Hessian-aware VQ (van Baalen et al., 2025), which estimates weight importance from representative calibration activations. Given a weight matrix , its approximation , and calibration inputs , codebook learning minimizes
The input second moment induces a weighted distance that gives greater importance to directions that are more strongly activated by the calibration data. Hessian-aware VQ therefore biases codebook learning toward preserving weight directions with a larger estimated effect on the model output.
2.3 Bridging VQ and MXFP4
Despite its storage benefits, conventional VQ lacks a direct, efficient execution path on native MXFP4 hardware. The challenge is converting compact codebook-based weights into MXFP4-compatible operands while preserving compression efficiency without introducing substantial reconstruction overhead.
Existing VQ approaches often rely on high-precision learned codebooks or reconstruction procedures that are not directly compatible with MXFP4 arithmetic. Integrating VQ with native FP4 computation therefore requires converting decoded codebook values into MX-compatible operands, potentially introducing additional data movement, scaling, and conversion overhead. Furthermore, conventional VQ optimization does not explicitly account for the numerical constraints imposed by MX block scaling, which can introduce additional quantization error when codebooks are converted to FP4.
These challenges motivate jointly considering codebook representation, scale extraction, and compression efficiency.
The following section describes the MXCode compression pipeline designed around these requirements.
3 MXCODE COMPRESSION PIPELINE
In this section, we introduce MXCode and its three schemes for integrating vector-quantized weights with MX-compatible FP4 computation: PostScale, which quantizes the learned codebooks using one scale per codebook; PreScale, which extracts fine-grained MX scales before codebook learning; and PreScale+, which reduces the scale overhead of PreScale through scale compression. These three methods are illustrated in Figure 1.
For all three schemes, starting from a BF16 weight matrix , we partition it into quantization blocks (QBlocks) of size . Each QBlock learns an independent element codebook with vectors of dimension . However, the three schemes differ in when MX scaling is applied relative to codebook learning, how the scales are associated with the FP4 codebooks, and how the resulting scale-storage overhead is represented, as described in the following subsections.
3.1 MXCode-PostScale
Figure 1(a) illustrates MXCode-PostScale. In this scheme, we apply Hessian-aware VQ directly to the BF16 weights in each QBlock. Resulting codebook is then quantized to an MX representation by extracting one shared scale and quantizing all codebook values to FP4:
Each QBlock therefore stores an element-index stream, one FP4 codebook, and one associated scale. During execution, the codebook scale is replicated at the MX block granularity.
MXCode-PostScale introduces negligible scale overhead, at the cost of a much coarser scaling granularity than that of standard MX formats: one scale is shared by all values in a codebook. Smaller QBlocks improve codebook and scale locality, but increase the amortized codebook cost and the number of codebooks managed by the hardware.

Figure 1. MXCode: MX-native codebook quantization pipeline; (a) PostScale, (b) PreScale, and (c) PreScale+ compression schemes.
3.2 MXCode-PreScale
Figure 1(b) illustrates MXCode-PreScale. Instead of quantizing a codebook after it has been learned, we extract MX-style scales from the weights before applying VQ. We extract one scale per scale block containing weights. For the scale-block size, we follow the native MX block size, , e.g., for E8M0-B32-FP4. For a scale block , we compute the scale for that block and block's normalized elements as
where is the largest magnitude of the FP4 element format and quantizes the high-precision scale to the target MX scale datatype, such as E4M3, E5M3, or E8M0. Hessian-aware VQ is then applied to the normalized weights , and the resulting codebooks are stored directly in FP4.
Unlike PostScale, PreScale retains fine-grained MX scaling, which comes with a higher scale overhead that is independent of the QBlock size. To reduce this scale overhead, can also be an integer multiple of the native MX block size, . One stored scale is then shared across MX blocks and replicated per block during execution, with effectiveness evaluated in Appendix A.1.
3.3 MXCode-PreScale+
Figure 1(c) illustrates MXCode-PreScale+, which retains the fine-granularity scaling of PreScale while reducing its scale overhead. We extract MX scales before applying VQ as in PreScale and then compress the resulting scale tensor using a second VQ representation. Neighboring scales are grouped into vectors and encoded with a scale
codebook :
The scale centroids are then quantized to the target MX scale datatype, e.g., E8M0, E4M3, etc. The normalized weights are separately compressed using Hessian-aware VQ and stored in FP4 similar to the PreScale scheme.
For all three MXCode schemes, codebook lookups produce FP4 elements and their associated MX scales, which can be supplied directly to an MX-compatible matrix-multiplication kernel during inference, without any reconstructed BF16 weight tensor being materialized.
4 RESULTS
4.1 Ablation Studies
In this section, we explore MXCode design space to identify effective configurations and guide design choices. Our ablations use Qwen3 (235B), sampling ten transformer blocks across model depth (layers 1, 10, 20, 30, 40, 50, 60, 70, 80, and 93). We evaluate the gate, up, and down projections of 10 randomly selected experts per block, totaling 300 weight matrices, and reuse this set across configurations for consistent comparisons. All experiments construct vectors along the input-channel () dimension for hardware-friendly implementation and use signal-to-quantization-noise ratio (SQNR) as a proxy for model quality.
4.1.1 VQ Parameter Selection
We first evaluate the VQ dimension and codebook size without any MX scaling, using one codebook per weight tensor. The effective storage cost in terms of bits per element (BPE) is

Figure 2. Aggregate weight SQNR as a function of effective codebook size for different VQ dimensions . Each point corresponds to a different effective BPE and number of centroids , indicated by its numeric label. BPE calculation only includes VQ indices. The shaded upper-left region denotes configurations that satisfy both design constraints: dB and LUT size KB.
where is the number of elements in the tensor and is the number of bits used to store each codebook element.
Figure 2 shows SQNR for various and . As it can be seen in the Figure, larger VQ dimensions provide better representation quality at the same BPE by capturing correlations between neighboring weights. However, larger dimensions also require more centroids, and therefore a larger look-up table (LUT) to achieve the same BPE to represent the higher-dimensional vector space. Larger look-up tables cause higher storage and bandwidth needs and longer look-up read latencies.
Figure 2 shows that offers the best overall tradeoff, achieving the highest SQNR near the 2-bit regime among configurations with practical LUT sizes. Although may achieve higher SQNR at the same BPE, doing so requires impractically large LUTs. Empirically, we find that an SQNR of at least 10 dB provides adequate model quality. For practicality, we also impose a 1 KB LUT size limit with 4-bit codebook entries. Although the appropriate SQNR threshold and the tradeoffs among SQNR, BPE, and LUT size depend on the evaluated model and the underlying hardware, we adopt these constraints as practical guidelines for our experiments. In particular, with achieves an dB at approximately 2 BPE while keeping the LUT below 1 KB. As demonstrated in later sections, this configuration preserves adequate end-to-end model accuracy. We therefore use and in the following experiments.
4.1.2 MXCode-PostScale
MXCode-PostScale directly quantizes codebooks to MXFP4 formats, creating a substantially coarser scaling granularity than conventional MX quantization as described in Section 3.1. Standard MX formats share a scale across a small block of elements, typically 16 or 32 values. In MXCode-PostScale, however, all scalar entries must share a single scale, for centroids with dimension. For example, for our configuration, and , this requires sharing one scale across all 1024 scalar codebook entries. Since every weight in the tensor is reconstructed from this codebook, the entire tensor is indirectly constrained by the same codebook scale. While this approach has negligible scale overhead, a small number of large centroid values can consequently determine the scale and reduce the effective precision available to the remaining entries, causing a significant degradation in model quality.
To reduce this mismatch, we partition each weight tensor into smaller QBlocks of size and learn an independent codebook for each QBlock as mentioned in Section 3. With smaller QBlocks, each codebook represents a more localized weight distribution and receives its own MX scale. This reduces the dynamic range within each codebook and improves the accuracy of FP4 quantization.
Smaller QBlocks, however, increase the number of codebooks and therefore their amortized storage cost. For PostScale FP4 codebooks, the effective storage cost is
where is the bit precision of each codebook element and is the number of bits used to store one codebook scale. Smaller QBlocks increase codebook and scale costs, as each stores its own codebook and scale, imposing a minimum QBlock size for a given BPE budget.
In addition to their storage cost, smaller QBlocks increase the number of codebooks that must be indexed, addressed, and managed by the hardware. QBlock size therefore affects not only compression quality and BPE, but also LUT organization and implementation complexity.
4.1.3 MXCode-PreScale
Different from the PostScale approach, MXCode-PreScale extracts the MX-style scales first and perform VQ on the normalized weights. This enables codebook to be learned directly in the normalized FP4 domain without requiring post-VQ scale estimation and avoids forcing all values in a codebook to share a scale. Consequently, MXCode-PreScale generally provides higher SQNR than post-VQ quantization at the same QBlock size. This im-

Figure 3. Ablation of FP4 codebook quantization. Each color shows the QBlock-size sweep from full tensor to for a VQ/MXCode scheme and datatype. The BF16-centroid baseline is independent of the MX scale format and is shown in gray across all three plots. From left to right, charts shows (a) QBlock-size sweep for E4M3-B16-FP4 and E8M0-B32-FP4. (b) QBlock-size sweep at various scale compression ratios for E4M3-B16-FP4 MXCode-PreScale+. (c) QBlock-size sweep at various scale compression ratios for E8M0-B32-FP4 MXCode-PreScale+. Effective storage includes the VQ indices, FP4 codebooks, MX scales, and scale-VQ metadata.
provement, however, comes with the cost of storing the extracted scales. If one -bit scale is shared by every weight elements, the effective storage cost becomes
For an 8-bit scale, the scale overhead is 0.5 BPE when and 0.25 BPE when . This overhead is independent of the QBlock size and is substantial in the approximately 2–3 BPE regime considered here.
Figure 3(a) compares PostScale and PreScale approaches against VQ with BF16 codebook entries across various QBlock sizes from full-tensor size to .
This plot shows that PreScale provides a head start in SQNR over PostScale at a fixed QBlock size due to finer-granularity scaling, but shifts the corresponding operating points to a higher BPE. Under a fixed storage budget, however, PostScale can instead spend these bits on smaller QBlocks and more local codebooks. As a result, PreScale does not necessarily provide a better SQNR–BPE tradeoff when smaller QBlock sizes are available.
4.1.4 MXCode-PreScale+
MXCode-PreScale+ retains the fine-grained scale extraction and compresses the resulting scale tensor using VQ. We group the extracted scales into vectors of dimension and encode them using a scale codebook with entries.
The resulting scale-storage overhead is
where is the number of extracted scales. The complete PreScale+ representation combines this overhead with
the element-index and element-codebook terms in Eq. (10). Since one scale codebook is amortized over a large weight tensor, scale storage cost can be reduced significantly compared to PreScale.
Panels (b) and (c) of Figure 3 evaluate the effectiveness of MXCode-PreScale+. We observe that MX scales have a simpler distribution than the original weights and are therefore highly compressible. The plot illustrates that the scales can be compressed up to , i.e., , while largely preserving the SQNR of uncompressed PreScale for both E4M3-B16-FP4 and E8M0-B32-FP4 datatypes.
4.1.5 Design Trade-offs and Insights
The relative storage–distortion trade-offs of PostScale, PreScale, and PreScale+ depend on the scale configuration, QBlock size, and target storage budget. Although uncompressed PreScale can achieve higher SQNR at a fixed QBlock size, its scale-storage overhead limits its competitiveness under constrained BPE budgets. By reducing this overhead, PreScale+ and PostScale provide additional operating points that can offer a more favorable balance between storage and reconstruction quality.
For E4M3-B16-FP4, PreScale+ generally achieves higher SQNR than PostScale. For E8M0-B32-FP4, the advantage of PreScale+ over PostScale is smaller. In PreScale+, scales and normalized values are compressed separately, and their errors interact when recombined. Power-of-two scales shared across 32 values provide coarser normalization than E4M3 scales shared across 16 values, potentially increasing this reconstruction error, combined with extra scale compression. PostScale applies scaling after VQ, avoiding the effect of coarse pre-normalization on VQ.
QBlock size introduces a further trade-off between codebook overhead and local adaptation: smaller QBlocks allow codebooks to capture more localized weight distributions, but increase storage per element. MXCode schemes gener-ally approach the BF16-centroid curve at QBlocks for E4M3-B16-FP4 and QBlocks for E8M0-B32-FP4, with the SQNR gap depending on the scheme. We therefore adopt these QBlock sizes across the MXCode schemes evaluated subsequently. These choices provide representative low-storage operating points, rather than universally optimal configurations, and can be further tailored to the model's weight distribution, downstream task, and hardware constraints.
For brevity, the main text does not report E5M3-B16-FP4 results. In our experiments, E4M3 block scales combined with a high-precision tensor scale yield similar precision to E5M3-B16-FP4 data format. E5M3-B16-FP4 and E4M3-B16-FP4 comparison is provided in Appendix A.2.
4.2 Accuracy and Benchmarks
Table 2 compares Native FP4 and MXCode quantization methods for Qwen3 (235B) (Yang et al., 2025), DeepSeek-R1 (671B) (Guo et al., 2025), and GLM-5.2 (753B) (Z.ai, 2026) across ten benchmarks spanning knowledge, reasoning, instruction following, code generation, mathematics, and long-context understanding. We evaluate model quality using the Language Model Evaluation Harness (Im-eval-harness) (Gao et al., 2023), with inference served through SGLang and MX-compatible numerics emulated using the Microsoft MX Emulation Library. We use vendored benchmark task definitions and each model's native chat template, retaining task-specific instructions, answer-extraction rules, and few-shot examples. All E4M3-B16-FP4 configurations use QBlocks, whereas the E8M0-B32-FP4 configurations use QBlocks, following the ablation results in Section 4.1. PreScale+ uses compression.
Overall, all three MXCode schemes achieve competitive accuracy relative to native FP4 while substantially reducing weight storage. Individual benchmarks, however, highlight complementary strengths and variations across the three schemes. This variability is particularly evident for Qwen3 (235B), the smallest model evaluated. Under E4M3-B16-FP4, for example, HumanEval accuracy ranges from 90.24% to 98.17% across MXCode schemes, compared with 96.95% for native FP4. MXCode also improves MGSM accuracy for Qwen3 (235B), despite more aggressive compression, while tasks such as IFEval exhibit some degradation in certain cases.
PreScale often provides stronger accuracy by retaining uncompressed scales, whereas PostScale and PreScale+ offer lower-storage operating points. This advantage is not universal, however: the preferred method depends on both the model and the compute format.
For Qwen3 (235B), PreScale achieves the highest MXCode average accuracy for both E4M3-B16-FP4 and E8M0-B32-FP4. Under E4M3-B16-FP4, PreScale+ performs better
than PostScale, providing a lower-storage alternative to PreScale at 2.13 BPE. Under E8M0-B32-FP4, PreScale reaches 87.88% at 2.50 BPE, but PostScale is nearly as accurate at 87.82% while requiring only 2.25 BPE.
For DeepSeek-R1 (671B), PostScale provides the strongest E4M3-B16-FP4 trade-off: 89.35% average accuracy at 2.06 BPE, only 0.25 percentage points below native FP4. Under E8M0-B32-FP4, PreScale and PreScale+ both achieve 88.69%; PreScale+ is preferable on storage, requiring 2.28 rather than 2.50 BPE. Both outperform PostScale's 87.27%.
For GLM-5.2 (753B), PreScale provides the highest E4M3-B16-FP4 MXCode average, with an estimated 93.36% at 2.56 BPE, versus 93.76% for native FP4. PostScale offers 92.96% at the lower storage of 2.06 BPE. Under E8M0-B32-FP4, PostScale achieves the highest MXCode average, 93.15% at 2.25 BPE, exceeding both PreScale variants.
Overall, these results reveal a workload-dependent storage-quality trade-off: MXCode substantially reduces weight storage, but its quality impact varies across models and benchmarks, with instruction-following and code-generation tasks showing particular sensitivity and underscoring the importance of workload-specific evaluation.
4.3 Performance Evaluation
In this section, we examine whether MXCode's ability to enable MXFP4 compute along with compact representation translates into practical GPU serving benefits.
4.3.1 Experimental Setup
We evaluate Qwen3 (235B) on a single node consisting of 4 - NVIDIA GB300 GPUs using SGLang and an InferenceX-style streaming benchmark client. We use the same checkpoint as in the accuracy evaluation in Table 2 to run experiments in this section. All performance experiments consistently make use of requests with 32K input tokens and 1K generated tokens unless otherwise stated. We choose 32K input/1K-output requests to combine substantial KV-cache demand with long-context prefill and sustained decoding, exposing both the memory-capacity and compute-efficiency tradeoffs of MXCode. Our kernels target the MoE feed-forward layers, including the gate/up and down projections. Non-expert parameters, activations at the layer interfaces, and the KV cache remain in BF16 for this section. We discuss three serving implementations for comparison.
Vanilla VQ (BF16): Compressed storage with BF16 compute. We include a high-precision-codebook VQ reference to represent conventional VQ inference. Expert weights are stored as compact integer indices along with BF16 codebooks. This implementation reconstructs BF16 weights on the GPU for matrix multiplications, without re-
Table 2. W4A4 evaluation across three models. Accuracy and standard errors are reported as percentages. Native FP4 uses W4A4 computation with either the E4M3-B16-FP4 or E8M0-B32-FP4 format; without any VQ or MXCode. Weight storage, measured in BPE, includes VQ indices, FP4 codebooks, and scales, as applicable. Average accuracy weights the ten benchmarks equally.
| Compute format | E4M3-B16-FP4 | E8M0-B32-FP4 | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Native FP4 | MXCode PostScale | MXCode PreScale | MXCode PreScale+ | Native FP4 | MXCode PostScale | MXCode PreScale | MXCode PreScale+ | ||
| Weight (BPE) | 4.50 | 2.06 | 2.56 | 2.13 | 4.25 | 2.25 | 2.50 | 2.28 | |
| Qwen3 (235B) | MMLU-Pro | 82.41 ±0.34 | 79.18 ±0.36 | 80.34 ±0.35 | 80.54 ±0.35 | 82.02 ±0.34 | 79.67 ±0.35 | 79.09 ±0.36 | 79.00 ±0.36 |
| RULER | 95.05 ±0.14 | 94.16 ±0.15 | 95.01 ±0.14 | 95.00 ±0.14 | 95.13 ±0.13 | 94.69 ±0.14 | 94.73 ±0.14 | 94.83 ±0.14 | |
| DROP | 88.56 ±0.33 | 86.98 ±0.34 | 86.54 ±0.35 | 87.69 ±0.34 | 87.96 ±0.33 | 85.55 ±0.36 | 87.52 ±0.34 | 86.35 ±0.35 | |
| GSM8K | 96.89 ±0.48 | 96.66 ±0.49 | 97.12 ±0.46 | 96.36 ±0.52 | 96.89 ±0.48 | 96.82 ±0.48 | 96.44 ±0.51 | 96.21 ±0.53 | |
| IFEval | 84.47 ±1.56 | 79.48 ±1.74 | 81.70 ±1.66 | 81.33 ±1.68 | 84.29 ±1.57 | 81.15 ±1.68 | 81.89 ±1.66 | 82.62 ±1.63 | |
| HumanEval | 96.95 ±1.35 | 90.24 ±2.32 | 98.17 ±1.05 | 95.73 ±1.58 | 96.95 ±1.35 | 96.95 ±1.35 | 93.90 ±1.87 | 95.73 ±1.58 | |
| MATH-500 | 97.00 ±0.76 | 95.20 ±0.96 | 95.60 ±0.92 | 96.00 ±0.88 | 96.80 ±0.79 | 95.60 ±0.92 | 95.60 ±0.92 | 96.00 ±0.88 | |
| GPQA-Diamond | 67.17 ±3.35 | 64.65 ±3.41 | 64.14 ±3.42 | 64.14 ±3.42 | 68.69 ±3.30 | 67.68 ±3.33 | 67.17 ±3.35 | 67.68 ±3.33 | |
| MGSM | 86.51 ±0.63 | 90.69 ±0.55 | 91.16 ±0.54 | 90.15 ±0.56 | 86.62 ±0.63 | 88.25 ±0.60 | 90.22 ±0.56 | 86.25 ±0.64 | |
| MBPP | 94.40 ±1.03 | 89.40 ±1.38 | 91.80 ±1.23 | 91.40 ±1.26 | 93.00 ±1.14 | 91.80 ±1.23 | 92.20 ±1.20 | 91.60 ±1.24 | |
| Average accuracy | 88.94 | 86.66 | 88.16 | 87.83 | 88.84 | 87.82 | 87.88 | 87.63 | |
| DeepSeek-R1 (671B) | MMLU-Pro | 84.23 ±0.33 | 82.86 ±0.34 | 83.35 ±0.33 | 82.94 ±0.34 | 83.61 ±0.33 | 81.70 ±0.34 | 82.33 ±0.34 | 82.52 ±0.34 |
| RULER | 94.42 ±0.14 | 94.00 ±0.15 | 94.16 ±0.15 | 94.53 ±0.14 | 94.05 ±0.15 | 93.06 ±0.16 | 93.84 ±0.15 | 93.84 ±0.15 | |
| DROP | 88.34 ±0.33 | 87.78 ±0.34 | 88.54 ±0.33 | 88.51 ±0.33 | 88.13 ±0.33 | 87.79 ±0.34 | 88.64 ±0.32 | 88.23 ±0.33 | |
| GSM8K | 96.59 ±0.50 | 96.29 ±0.52 | 96.74 ±0.49 | 96.66 ±0.49 | 96.97 ±0.47 | 96.21 ±0.53 | 96.66 ±0.49 | 96.51 ±0.51 | |
| IFEval | 85.03 ±1.54 | 83.92 ±1.58 | 83.73 ±1.59 | 81.70 ±1.66 | 83.73 ±1.59 | 81.33 ±1.68 | 82.44 ±1.64 | 84.47 ±1.56 | |
| HumanEval | 97.56 ±1.21 | 96.95 ±1.35 | 96.95 ±1.35 | 97.56 ±1.21 | 98.17 ±1.05 | 93.90 ±1.87 | 94.51 ±1.78 | 95.73 ±1.58 | |
| MATH-500 | 96.80 ±0.79 | 96.20 ±0.86 | 96.20 ±0.86 | 95.80 ±0.90 | 96.20 ±0.86 | 93.60 ±1.10 | 95.20 ±0.96 | 96.20 ±0.86 | |
| GPQA-Diamond | 68.18 ±3.32 | 69.70 ±3.27 | 67.68 ±3.33 | 69.70 ±3.27 | 69.19 ±3.29 | 63.13 ±3.44 | 67.68 ±3.33 | 65.66 ±3.38 | |
| MGSM | 91.45 ±0.53 | 92.36 ±0.50 | 92.33 ±0.51 | 91.05 ±0.54 | 91.45 ±0.53 | 91.02 ±0.54 | 92.22 ±0.51 | 91.38 ±0.53 | |
| MBPP | 93.40 ±1.11 | 93.40 ±1.11 | 93.20 ±1.13 | 93.40 ±1.11 | 92.60 ±1.17 | 91.00 ±1.28 | 93.40 ±1.11 | 92.40 ±1.19 | |
| Average accuracy | 89.60 | 89.35 | 89.29 | 89.19 | 89.41 | 87.27 | 88.69 | 88.69 | |
| GLM-5.2 (753B) | MMLU-Pro | 87.21 ±0.30 | 85.46 ±0.31 | 86.29 ±0.31 | 84.50 ±0.32 | 87.08 ±0.30 | 85.24 ±0.32 | 85.27 ±0.32 | 82.58 ±0.34 |
| RULER | 95.71 ±0.13 | 96.22 ±0.12 | 96.73 ±0.12 | 95.67 ±0.13 | 95.85 ±0.13 | 95.38 ±0.13 | 95.79 ±0.13 | 91.16 ±0.17 | |
| DROP | 91.98 ±0.28 | 91.23 ±0.29 | 90.80 ±0.30 | 90.06 ±0.31 | 91.78 ±0.28 | 90.91 ±0.29 | 89.67 ±0.31 | 89.18 ±0.32 | |
| GSM8K | 97.50 ±0.43 | 96.74 ±0.49 | 96.89 ±0.48 | 96.82 ±0.48 | 97.57 ±0.42 | 96.89 ±0.48 | 96.97 ±0.47 | 96.36 ±0.52 | |
| IFEval | 94.09 ±1.02 | 93.16 ±1.09 | 92.05 ±1.16 | 89.46 ±1.32 | 93.53 ±1.06 | 91.68 ±1.19 | 92.61 ±1.19 | 90.94 ±1.24 | |
| HumanEval | 99.39 ±0.61 | 97.56 ±1.21 | 99.39 ±0.61 | 98.78 ±0.86 | 100.00 ±0.00 | 98.17 ±1.05 | 97.56 ±1.21 | 97.56 ±1.21 | |
| MATH-500 | 98.00 ±0.63 | 97.80 ±0.66 | 97.60 ±0.69 | 97.40 ±0.71 | 97.80 ±0.66 | 97.60 ±0.69 | 96.20 ±0.86 | 96.40 ±0.83 | |
| GPQA-Diamond | 82.83 ±2.69 | 83.33 ±2.66 | 84.85 ±2.55 | 85.35 ±2.52 | 87.88 ±2.33 | 87.37 ±2.37 | 85.35 ±2.51 | 79.80 ±2.86 | |
| MGSM | 94.25 ±0.44 | 93.27 ±0.48 | 93.56 ±0.47 | 92.69 ±0.49 | 94.47 ±0.44 | 93.27 ±0.48 | 94.86 ±0.48 | 92.51 ±0.50 | |
| MBPP | 96.60 ±0.81 | 94.80 ±0.99 | 95.40 ±0.94 | 94.40 ±1.03 | 95.80 ±0.90 | 95.00 ±0.98 | 92.80 ±1.16 | 94.80 ±0.99 | |
| Average accuracy | 93.76 | 92.96 | 93.36 | 92.51 | 94.18 | 93.15 | 92.71 | 91.13 | |
taining expanded weights across invocations. This version uses fused VQ execution and codebook caching for best performance. We use the same ~2BPE configuration i.e., VQ dim, Qblock size, and codebook size used in MXCode for fairness.
Native FP4: Explicit FP4 weights with FP4 compute. Native FP4 provides the complementary reference for FP4 computation without VQ compression, using resident E4M3-B16-FP4 weights and FlashInfer/CUTLASS fused MoE. We do not report a vendor E8M0-B32-FP4 baseline because we did not identify a compatible off-the-shelf MoE kernel in the evaluated software stack.
Together, Vanilla VQ (BF16) and Native FP4 provide complementary baselines: the former combines VQ-compressed storage with BF16 computation, while the latter uses explicit FP4 weights with native FP4 computation. These references help contextualize MXCode’s combination of VQ compression and FP4 execution.
MXCode: compressed storage with FP4 computation. MXCode brings native FP4 Tensor Core computation into the VQ regime by combining compact integer indices with FP4 codebooks. We evaluate MXCode (E4M3-B16-FP4) and MXCode (E8M0-B32-FP4), using checkpoint evaluated in Table 2 under the quantization configurations described in Section 4.2. Although MXCode-PreScale and MXCode-PostScale differ in how codebooks and scales are obtained, both ultimately provide FP4 operands and block scales for FP4 matmul. They can therefore reuse the same FP4 projection kernel after representation-specific operand preparation.

Figure 4. Per-GPU model-load memory for Qwen3 (235B). MX-Code denotes the shared Pre/PostScale FP4 projection backend; the plotted footprint uses PostScale-style codebook. Percentages in black indicate free HBM that can be used by KV-cache. MXCode (E8M0-B32-FP4) & Vanilla VQ (BF16) has similar footprint to MXCode.
All MXCode results in this section use this shared FP4 projection backend. MXCode-PreScale+ kernel is excluded from the scope for brevity. We also exclude E5M3-B16-FP4 as there is no current hardware support for this datatype.
4.3.2 Memory Footprint and Deployment Flexibility
We first examine how expert-weight compression changes the memory available for serving. Figure 4 compares the per-GPU model-load footprint of Qwen3 (235B) across native BF16, Native FP4 (E4M3-B16-FP4), and MXCode (E4M3-B16-FP4), keeping the hardware budget fixed at four NVIDIA GB300 GPUs. Relative to Native FP4, MXCode reduces the model-load footprint by up to 2× and up to 6.6× when compared to Native BF16 across the three sharding schemes, leaving more memory available for serving state. MXCode (E8M0-B32-FP4) and Vanilla VQ (BF16), both at approximately 2 BPE, exhibit a similar memory-footprint trend to MXCode (E4M3-B16-FP4).
When comparing VQ solutions to Native FP4, a deployment can retain its existing DP/TP configuration and use this additional headroom for KV capacity. Alternatively, the storage savings can accommodate a lower TP width, reducing the number of GPUs required per replica while preserving comparable memory headroom. In the figure, MXCode by doubling DP and reducing TP at 2/2 has nearly the same remaining HBM per GPU compared to Native FP4 DP/TP=1/4; similarly, MXCode at 4/1 is comparable to Native FP4 at 2/2. Here, the total GPU budget remains four, so using fewer GPUs per replica is illustrated by doubling DP rather than reducing the total system size.
These comparisons demonstrate additional deployment choices, not a preference for one sharding scheme over another. Having established the memory-saving benefits of VQ

Figure 5. Serving throughput vs. P90 interactivity for 32K-input/1K-output requests on Qwen3 (235B) using single GB300 GPU. Point labels indicate client concurrency, including queued requests. MXCode denotes the shared Pre/PostScale FP4 projection backend.
over native FP4, we next evaluate its inference performance. Unless otherwise specified, all subsequent experiments use DP/TP = 1/1 (Single GPU) to isolate the effects of sharding.
4.3.3 Serving Throughput
We evaluate serving throughput and P90 interactivity for 32K-input/1K-output requests at client concurrences using single GPU. For each FP4 configuration, we report five benchmark repetitions, each measuring requests after excluded workload-warmup requests sufficient to reach steady-state execution. Prefix caching is disabled, and the static-HBM allocation fraction is 95%. We report request-level P90 metrics with 95% confidence intervals.
Figure 5 shows that MXCode retains near-Native-FP4 serving throughput with compact indexed weights, including software lookup and reconstruction costs. Client concurrency counts both running and queued requests, so the curves reflect GPU execution and available KV capacity. At C1, MXCode-E4M3 and MXCode-E8M0 achieve 2.00k and 2.03k input-plus-output tokens/s/chip versus 1.77k for Native FP4, corresponding to 13.0% and 14.5% higher throughput, respectively, with P90 interactivity of 82.1 and 83.7 versus 69.7 tokens/s/user. With one active request and no admission queue, this reflects faster decoding. Both throughput and P90 interactivity improve at C4 and C8.
Native FP4 approaches throughput saturation at C=16, while MXCode accommodates additional concurrent requests through its reduced weight-memory footprint. At C=32, the allocated BF16 KV pools accommodate 31 complete 32K/1K contexts for MXCode versus 20 for Native FP4. MXCode-E4M3 and MXCode-E8M0 achieve 4.84k and 4.96k input-plus-output tokens/s/chip, respectively, com-pared with 4.70k for Native FP4. The additional HBM capacity enables greater resident concurrency or more reusable context storage, allowing deployments to balance throughput, latency, and context capacity.
Our serving measurements show that, at C1, MXCode-E4M3 and MXCode-E8M0 reduce mean TPOT by 15.1% and 16.7%, respectively, compared with Native FP4, while maintaining TTFT within 1% of Native FP4. Further investigation shows that MXCode-E4M3 and Native FP4 achieve comparable prefill execution times at both C1 and C32, with differences below 1% under both workloads.
At C32, MXCode-E4M3 achieves lower TTFT, primarily due to reduced scheduler waiting time. However, its per-user TPOT is higher because of slower token-generation steps with a larger active batch, as well as pauses caused by the GPU processing prompt chunks from other requests. Thus, increasing the number of concurrent generations can improve aggregate throughput, even when individual users experience longer token intervals.
Our prefill path reconstructs active FP4 weights for reuse with grouped GEMM, whereas decode reconstructs tiles inside projection. Separate profiling attributes 20.4% of the MXCode prefill expert-layer GPU timeline to explicit reconstruction. Indexed-FP4 hardware could target this preparation cost while preserving compressed storage. Ideally eliminating the explicit reconstruction time, with all other costs fixed, leaves 79.6% of MXCode's current prefill expert-layer time, giving an idealized speedup of 1/0.796 ≈ 1.26×; These measurements characterize the current software kernels, not the performance limit of indexed-FP4 execution. Hardware/software co-design of codebook access, tile reconstruction, and tensor-core operand delivery could reduce preparation overhead and temporary expanded-weight traffic while preserving compact storage. This motivates native indexed-FP4 support as a direction for further acceleration; end-to-end hardware gains remain to be evaluated.
4.3.4 Memory-Driven Gains with Prefix Reuse
When native FP4 computation is already available, MXCode adds compression at the weight-storage level. Representing expert weights with compact indices and FP4 codebooks leaves more HBM for KV cache, supporting more simultaneous requests or greater reusable-context retention. We examine how these memory savings translate into serving benefits while accounting for software lookup and reconstruction costs. We therefore examine a prefix-reuse workload in which the expert-weight footprint affects whether reusable context can remain resident. Here, additional compression can improve performance by avoiding recomputation.
Each request contains a 32,512-token document prefix and a unique 256-token query making it 32,768-token prompt,
followed by 1K generated tokens. Requests reuse a shared set of 28 documents, with 4 active requests throughout. All methods use single GPU, BF16 KV, same prefix-cache policy, and 97.5% static-HBM setting. Each repetition measures 512 queries after two cache-warmup sweeps.
Table 3. 32K/1K prefix-reuse latency using one GB300 per method on Qwen3 (235B) model. Values are means of per-run 90th percentiles after post-warmup repetitions; parentheses show latency reductions relative to Native FP4. MXCode denotes the shared PreScale/PostScale FP4 projection backend.
| Method | P90 TTFT (s) | P90 TPOT (ms) | P90 E2E (s) |
|---|---|---|---|
| Native FP4 | |||
| E4M3-B16-FP4 | 8.688 | 27.24 | 32.52 |
| MXCode | 0.486 | 20.99 | 21.87 |
| E4M3-B16-FP4 | (-94.4%) | (-23.0%) | (-32.8%) |
| MXCode | 0.477 | 20.56 | 21.43 |
| E8M0-B32-FP4 | (-94.5%) | (-24.5%) | (-34.1%) |
MXCode’s smaller expert footprint allows the runtime to allocate approximately 1.11 million KV token slots, compared with 0.72 million for Native FP4. Consequently, MXCode achieves a 100% complete-prefix hit rate, whereas the Native FP4 achieves 73.4%. The Native FP4 kernel must evict cached prefixes and repeat prefill work; MXCode retains the working set and processes only the unique query suffix on each cache hit. In this experiment, average recomputed prefill tokens fall from 7,580 to 256 per request for MXCode.
Table 3 shows the responsiveness gains from improved residency. Across both MXCode formats, P90 TTFT, TPOT, and end-to-end latency decrease by 94.4–94.5%, 23.0–24.5%, and 32.8–34.1%, respectively.
5 LESSONS LEARNED AND IMPLICATIONS
MXCode brings together vector-quantized weight storage and native MXFP4 compute, providing a practical path from compact representations to GPU serving. Our evaluation highlights several opportunities for MX-native inference system design.
First, the storage–accuracy trade-off is model, task, and format-dependent which motivates workload-specific selection of codebook representation, MX scale granularity, and compression ratio. Second, efficient reconstruction is workload-aware. Prefill benefits from reconstructing FP4 operands for reuse across routed tokens, whereas decode favors on-demand tile reconstruction. In our software implementation, explicit reconstruction accounts for 20.4% of the prefill expert-layer GPU timeline, identifying indexed-FP4 operand delivery as a target for hardware–software co-design; the potential end-to-end benefit of native support remains to be evaluated.
Third, compressed weights create deployment flexibility beyond reducing model footprint: reclaimed HBM can support more replicas or greater KV-cache residency. These choices must be evaluated against service-level throughput and per-user latency objectives, which need not improve together at high concurrency. Finally, in our prefix-reuse workload, higher KV residency avoids redundant recomputation of prefill and reduces P90 TTFT by up to 94.5%. Thus, the serving value of compression depends not only on weight bandwidth, but also on how the saved memory is used.
Together, these findings show that VQ's serving value extends beyond weight compression: combining compact storage, FP4 execution, and memory-aware deployment creates opportunities for both practical system gains and further hardware-software co-design.
REFERENCES
Alvarez, E., Almog, O., Chung, E., Layton, S., Stosic, D., Krashinsky, R., and Aubrey, K. Introducing NVFP4 for efficient and accurate low-precision inference. NVIDIA Technical Blog, June 2025. URL https://developer.nvidia.com/blog/introducing-nvfp4-for-efficient-and-accurate-low-precision-inference/.
AMD. AMD Instinct MI350 Series Microarchitecture. AMD ROCm Documentation. URL https://room.docs.amd.com/en/docs-10.1.0/reference/gpu-arch/mi350.html. Accessed: 2026-10-24.
Egiazarian, V., Panferov, A., Kuznedelev, D., Frantar, E., Babenko, A., and Alistarh, D. Extreme compression of large language models via additive quantization. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 12284–12303. PMLR, 2024. URL https://proceedings.mlr.press/v235/egiazarian24a.html.
Fasoli, A., Kar, M., Liu, C.-C., Venkataramani, S., Srinivasan, V., Chang, L., and Wang, N. Is finer better? The limits of microscaling formats in large language models. In International Conference on Learning Representations (ICLR), 2026. doi: 10.48550/arXiv.2601.19026. URL https://arxiv.org/abs/2601.19026.
Gao, L., Tow, J., Abbasi, B., Biderman, S., Black, S., DiPofi, A., Foster, C., Golding, L., Hsu, J., Le Noac'h, A., Li, H., McDonell, K., Muennighoff, N., Ociepa, C., Phang, J., Reynolds, L., Schoelkopf, H., Skowron, A., Sutawika, L., Tang, E., Thite, A., Wang, B., Wang, K., and Zou, A. A framework for few-shot language model evaluation, 12 2023. URL https://zenodo.org/records/10256836.
Guo, D., Yang, D., Zhang, H., Song, J., Wang, P., Zhu, Q., Xu, R., Zhang, R., Ma, S., Bi, X., Zhang, X., Yu, X., Wu, Y., Wu, Z. F., Gou, Z., Shao, Z., Li, Z., Gao, Z., Liu, A., Xue, B., Wang, B., Wu, B., Feng, B., Lu, C., Zhao, C., Deng, C., Ruan, C., Dai, D., Chen, D., Ji, D., Li, E., Lin, F., Dai, F., Luo, F., Hao, G., Chen, G., Li, G., Zhang, H., Xu, H., Ding, H., Gao, H., Qu, H., Li, H., Guo, J., Li, J., Chen, J., Yuan, J., Tu, J., Qiu, J., Li, J., Cai, J. L., Ni, J., Liang, J., Chen, J., Dong, K., Hu, K., You, K., Gao, K., Guan, K., Huang, K., Yu, K., Wang, L., Zhang, L., Zhao, L., Wang, L., Zhang, L., Xu, L., Xia, L., Zhang, M., Zhang, M., Tang, M., Zhou, M., Li, M., Wang, M., Li, M., Tian, N., Huang, P., Zhang, P., Wang, Q., Chen, Q., Du, Q., Ge, R., Zhang, R., Pan, R., Wang, R., Chen, R. J., Jin, R. L., Chen, R., Lu, S., Zhou, S., Chen, S., Ye, S., Wang, S., Yu, S., Zhou, S., Pan, S., Li, S. S., Zhou, S., Wu, S., Yun, T., Pei, T., Sun, T., Wang, T., Zeng, W., Liu, W., Liang, W., Gao, W., Yu, W., Zhang, W., Xiao, W. L., An, W., Liu, X., Wang, X., Chen, X., Nie, X., Cheng, X., Liu, X., Xie, X., Liu, X., Yang, X., Li, X., Su, X., Lin, X., Li, X. Q., Jin, X., Shen, X., Chen, X., Sun, X., Wang, X., Song, X., Zhou, X., Wang, X., Shan, X., Li, Y. K., Wang, Y. Q., Wei, Y. X., Zhang, Y., Xu, Y., Li, Y., Zhao, Y., Sun, Y., Wang, Y., Yu, Y., Zhang, Y., Shi, Y., Xiong, Y., He, Y., Piao, Y., Wang, Y., Tan, Y., Ma, Y., Liu, Y., Guo, Y., Ou, Y., Wang, Y., Gong, Y., Zou, Y., He, Y., Xiong, Y., Luo, Y., You, Y., Liu, Y., Zhou, Y., Zhu, Y. X., Huang, Y., Li, Y., Zheng, Y., Zhu, Y., Ma, Y., Tang, Y., Zha, Y., Yan, Y., Ren, Z. Z., Ren, Z., Sha, Z., Fu, Z., Xu, Z., Xie, Z., Zhang, Z., Hao, Z., Ma, Z., Yan, Z., Wu, Z., Gu, Z., Zhu, Z., Liu, Z., Li, Z., Xie, Z., Song, Z., Pan, Z., Huang, Z., Xu, Z., Zhang, Z., and Zhang, Z. Deepseek-rl incentivizes reasoning in llms through reinforcement learning. Nature, 645(8081):633–638, 9 2025. ISSN 1476-4687. doi: 10.1038/s41586-025-09422-z. URL http://dx.doi.org/10.1038/s41586-025-09422-z.
Hu, R., Luschi, C., and Balanca, P. UE5M3 FP4 block scaling for stable language model pretraining, 2026. URL https://arxiv.org/abs/2609.02846.
Liu, Y., Wen, J., Wang, Y., Ye, S., Zhang, L. L., Cao, T., Li, C., and Yang, M. VPTQ: Extreme low-bit vector post-training quantization for large language models. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 8181–8196. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.emnlp-main.467. URL https://aclanthology.org/2024.emnlp-main.467/.
NVIDIA. Blackwell SM100 GEMMs. NVIDIA CUTLASS Documentation. URL https://docs.nvidia.com/cutlass/latest/media/docs/cpp/blac kwell_functionality.html. Accessed: 2026-10-24.
Open Compute Project. OCP Microscaling Formats (MX) Specification. Technical Report Version 1.0, Open Compute Project, September 2023. URL https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf.
Open Compute Project. OCP MicroXcaling (MX) Specification. Technical Report Version 1.1, Open Compute Project, October 2026. URL https://www.opencompute.org/wp-content/uploads/2026/10/OCP_MicroXcaling_Spec_v1.1.0.pdf.
Rouhani, B. D., Zhao, R., More, A., Hall, M., Khodamoradi, A., Deng, S., Choudhary, D., Cornea, M., Dellinger, E., Denolf, K., Stosic, D., Elango, V., Golub, M., Heinecke, A., James-Roxby, P., Jani, D., Kolhe, G., Langhammer, M., Li, A., Melnick, L., Mesmakhosroshahi, M., Rodriguez, A., Schulte, M., Shafipour, R., Shao, L., Siu, M., Dubey, P., Micikevicius, P., Naumov, M., Verrilli, C., Wittig, R., Burger, D., and Chung, E. Microscaling data formats for deep learning. arXiv preprint arXiv:2310.10537, 2023. doi: 10.48550/arXiv.2310.10537. URL https://arxiv.org/abs/2310.10537.
Tseng, A., Chee, J., Sun, Q., Kuleshov, V., and De Sa, C. QuIP#: Even better LLM quantization with Hadamard incoherence and lattice codebooks. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 48630–48656. PMLR, 2024. URL https://proceedings.mlr.press/v235/tseng24a.html.
van Baalen, M., Kuzmin, A., Koryakovskiy, I., Nagel, M., Couperus, P., Bastoul, C., Mahurin, E., Blankervoort, T., and Whatmough, P. GPTVQ: The blessing of dimensionality for LLM quantization, 2025. URL https://arxiv.org/abs/2402.15319.
Xu, S., Heddes, M., Peng, J., Savell, T., Tang, M., Ranjan, P., Benson, J., Dekel, O., Dighe, S., Kurpad, A., Levin, A., Mattina, M., Petre, G., Tang, C., Yu, Y., Zhang, L., and Hoefler, T. Maia 200: A software defined dataflow system for large-scale AI acceleration. arXiv preprint arXiv:2608.24664, 2026. doi: 10.48550/arXiv.2608.24664. URL https://arxiv.org/abs/2608.24664.
Yang, A., Li, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Gao, C., Huang, C., Lv, C., Zheng, C., Liu, D., Zhou, F., Huang, F., Hu, F., Ge, H., Wei, H., Lin, H., Tang, J., Yang, J., Tu, J., Zhang, J., Yang, J., Yang, J., Zhou, J., Zhou, J., Lin, J., Dang, K., Bao, K., Yang, K., Yu, L., Deng, L., Li, M., Xue, M., Li, M., Zhang, P., Wang, P., Zhu, Q., Men, R., Gao, R., Liu, S., Luo,
S., Li, T., Tang, T., Yin, W., Ren, X., Wang, X., Zhang, X., Ren, X., Fan, Y., Su, Y., Zhang, Y., Zhang, Y., Wan, Y., Liu, Y., Wang, Z., Cui, Z., Zhang, Z., Zhou, Z., and Qiu, Z. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388.
Z.ai. Glm-5.2: 753b open-weight mixture-of-experts coding model. https://huggingface.co/zai-org/GLM-5.2, 2026.
A APPENDIX
A.1 Scale Compression versus Coarser Scales
The main ablation identifies scale storage as a substantial part of the low-bit budget. Here we examine whether spending that budget on compressed fine-grained scales is preferable to sharing fewer, coarser scales.
Another way to reduce the scale overhead of MXCode-PreScale is to use coarser scales. The stored scale granularity can be made coarser than the granularity required by the target MX compute format. In particular, can be an integer multiple of the native MX block size, for an integer . Each stored scale is then shared by several native MX blocks and replicated when the weights are prepared for MX computation. This reduces the scale cost from to . The saving, however, comes from sharing each scale across a larger group of weights. This reduces scaling locality and can degrade reconstruction quality.

Figure 6. Scale compression versus coarser scales for E4M3-B16 (top) and E8M0-B32 (bottom). Diamonds use coarser shared scales; triangles use scale VQ at matched compression ratios. Points vary QBlock size, with all representation metadata included in BPE.
Figure 6 compares the two approaches at matched compression ratios for E4M3-B16 (top) and E8M0-B32 (bottom). For E4M3-B16, MXCode-PreScale+ gives higher SQNR than coarser scales at every compression ratio. For E8M0-B32, while the advantage is smaller, at high compression ratios (e.g., ) MXCode-PreScale+ is still preferable over using MXCode-PreScale with coarser scale blocks.
Overall, compressing the scales preserves more of the pre-scaling quality benefit than coarsening the scale granularity. It gives the better SQNR–BPE tradeoff for E4M3-B16 and at high compression for E8M0-B32.
A.2 Evaluation of E5M3-B16-FP4
We additionally evaluate E5M3-B16-FP4 as an alternative scale format for MXCode. Its wider block-scale dynamic range eliminates the need for an additional tensor-level scale while retaining 16-element scaling granularity. The proxy-based SQNR comparison in Table 4 suggests similar weight reconstruction quality across formats, with estimated differences of at most 0.025 dB across the evaluated methods and Qblock sizes. The end-to-end W4A4 results in Table 5 likewise show comparable accuracy on Qwen3 (235B). E5M3 PreScale and PreScale+ achieve average accuracies of 88.46% and 88.20% at 2.56 and 2.13 BPE, respectively, compared with 88.93% for native FP4 at 4.50 BPE. Across the three MXCode schemes, E5M3 average accuracy exceeds the corresponding E4M3 result by 0.14–0.37 percentage points, although individual benchmark results vary. Together, these results support E5M3 as an alternative that preserves MXCode's storage–quality trade-offs without requiring a tensor-level scale.
Table 4. Weight SQNR (dB; higher is better) across Qblock sizes for 300 sampled Qwen3-235B expert tensors. VQ uses the input-channel axis with , . PreScale+ compresses scales using , . E5M3 values are estimates and E4M3 values are proxies. , computed from displayed values; positive values favor E5M3.
| Method | MXCode PostScale | MXCode PreScale | MXCode PreScale+ | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Qblock size | E5M3 | E4M3 | E5M3 | E4M3 | E5M3 | E4M3 | ||||
| Qwen3 (235B) | Full tensor | 7.035 | 7.046 | -0.011 | 10.349 | 10.359 | -0.010 | 10.049 | 10.047 | +0.002 |
| 7.795 | 7.798 | -0.003 | 10.363 | 10.361 | +0.002 | 10.051 | 10.052 | -0.001 | ||
| 8.795 | 8.784 | +0.011 | 10.384 | 10.380 | +0.004 | 10.079 | 10.078 | +0.001 | ||
| 9.342 | 9.317 | +0.025 | 10.429 | 10.424 | +0.005 | 10.145 | 10.142 | +0.003 | ||
| 9.802 | 9.796 | +0.006 | 10.572 | 10.571 | +0.001 | 10.327 | 10.326 | +0.001 | ||
| 10.447 | 10.445 | +0.002 | 11.085 | 11.081 | +0.004 | 10.856 | 10.855 | +0.001 | ||
| 11.092 | 11.091 | +0.001 | 11.632 | 11.632 | 0.000 | 11.415 | 11.411 | +0.004 | ||
| 12.125 | 12.125 | 0.000 | 12.668 | 12.665 | +0.003 | 12.450 | 12.447 | +0.003 | ||
Table 5. W4A4 evaluation on Qwen3 (235B), comparing E5M3-B16-FP4 and E4M3-B16-FP4. Accuracy and standard errors are percentages. denotes E5M3 minus E4M3 accuracy in percentage points; positive values favor E5M3. Weight storage includes indices, codebooks, and scales, as applicable. Average accuracy weights the ten benchmarks equally.
| MethodBenchmark | Native FP4 | MXCode PostScale | MXCode PreScale | MXCode PreScale+ | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| E5M3 | E4M3 | E5M3 | E4M3 | E5M3 | E4M3 | E5M3 | E4M3 | |||||
| Weight (BPE) | 4.50 | 4.50 | - | 2.06 | 2.06 | - | 2.56 | 2.56 | - | 2.13 | 2.13 | - |
| MMLU-Pro | +0.04 | -0.14 | -0.59 | 0.00 | ||||||||
| RULER | +0.06 | +0.15 | -0.12 | -0.03 | ||||||||
| DROP | -0.07 | -0.29 | +1.17 | -0.13 | ||||||||
| GSM8K | +0.46 | -0.07 | 0.00 | +0.61 | ||||||||
| IFEval | -0.92 | -2.03 | +0.19 | 0.00 | ||||||||
| HumanEval | 0.00 | +4.27 | -0.61 | +2.44 | ||||||||
| MATH-500 | -0.80 | -0.40 | +0.20 | -0.20 | ||||||||
| GPQA-Diamond | +2.02 | +1.51 | +3.03 | +0.51 | ||||||||
| MGSM | +1.74 | -3.64 | -1.49 | -0.55 | ||||||||
| MBPP | -2.60 | +2.00 | +1.20 | +1.00 | ||||||||
| Average accuracy | 88.93 | 88.94 | -0.01 | 86.80 | 86.66 | +0.14 | 88.46 | 88.16 | +0.30 | 88.20 | 87.83 | +0.37 |