[Paper Review] Unveiling the Potential of Quantization with MXFP4: Strategies for Quantization Error Reduction
The paper introduces Overflow-Aware Scaling (OAS) and Macro Block Scaling (MBS), software techniques that close MXFP4’s accuracy gap vs NVFP4 for LLM inference, achieving near-NVFP4 fidelity with modest overhead.
Large Language Models (LLMs) have intensified the need for low-precision formats that enable efficient, large-scale inference. The Open Compute Project (OCP) Microscaling (MX) standard is attractive due to its favorable hardware efficiency, but its 4-bit variant (MXFP4) lags behind NVIDIA's NVFP4 in accuracy, limiting adoption. We introduce two software-only techniques, Overflow-Aware Scaling (OAS) and Macro Block Scaling (MBS), that improve MXFP4 quantization fidelity without requiring hardware changes. OAS reduces overall errors by increasing effective dynamic range under power-of-two block scaling, while MBS allocates higher-precision scaling at a coarser granularity to better preserve outliers. Across multiple LLMs and standard downstream benchmarks, OAS and MBS reduce the end-to-end accuracy gap between MXFP4 and NVFP4 from about 10% to below 1% on average, while incurring modest GEMM overhead (6.2% on average). These results re-establish MXFP4 as a practical alternative to NVFP4, enabling near-NVFP4 accuracy while retaining MX's hardware-efficiency advantages (e.g., 12% relative area savings in tensor cores).
Motivation & Objective
- Identify primary sources of MXFP4’s accuracy gap relative to NVFP4.
- Quantify fidelity and hardware-cost trade-offs of MXFP4 block size and scale-factor formats.
- Propose software-only techniques (OAS and MBS) to improve MXFP4 fidelity without hardware changes.
- Demonstrate end-to-end accuracy gains on multiple LLMs and benchmarks.
- Evaluate computational overhead and practicality of the proposed methods.
Proposed method
- Analyze representation fidelity using QSNR at tensor and post-operation levels.
- Compare MXFP4 and NVFP4 in terms of block size (32 vs 16) and scale-factor formats (E8M0 vs E4M3).
- Propose Overflow-Aware Scaling (OAS) to map alpha_max to an expanded representable range.
- Introduce Macro Block Scaling (MBS) to allocate higher-precision scaling at 1x128 macro-block granularity.
- Implement MBS as a software optimization that leverages existing CUDA/CUTLASS-based GEMM pipelines.
- Provide static and dynamic variants of MBS, with a hybrid configuration (MBS-H) as default for end-to-end evaluation.
Experimental results
Research questions
- RQ1What are the main causes of MXFP4’s fidelity gap relative to NVFP4?
- RQ2How do block size and scale-factor format contribute to quantization error and hardware cost?
- RQ3Can software-only techniques (OAS and MBS) bridge the performance gap without hardware changes?
- RQ4What is the end-to-end impact on common LLM benchmarks when applying OAS and MBS?
- RQ5What is the quantified overhead of the proposed methods on GEMM throughput?
Key findings
- OAS and MBS substantially reduce the MXFP4 accuracy gap to NVFP4, achieving near-NVFP4 fidelity (within 1 dB QSNR) on average.
- End-to-end downstream accuracy improves to within 1% on average over Llama 3.1-8B-Instruct and Qwen3-8B benchmarks.
- With MBS-H (hybrid), the average downstream accuracy approaches NVFP4 across evaluated models (e.g., Llama 3.1-8B-Instruct and Qwen3-8B).
- GEMM overhead of MXFP4-MBS-H is about 6.2% on average, significantly lower than prior approaches (e.g., MX+ with up to 54% overhead).
- MBS effectively isolates outliers with 1x128 macro-block scaling while retaining 1x16 compute granularity, enabling fidelity gains without hardware changes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.