Abstract
The recent hardware-accelerated microscaling 4-bit floating-point formats such as MXFP4 and NVFP4, supported on NVIDIA and AMD GPUs, promise to revolutionize large language model (LLM) inference. Yet, their practical benefits remain unproven. We present the first comprehensive study of MXFP4 and NVFP4 for post-training quantization, revealing gaps between their promise and real-world performance. Our analysis shows that state-of-the-art methods struggle with FP4, due to two key issues: (1) NVFP4's small group size provably neutralizes traditional outlier mitigation techniques; (2) MXFP4's power-of-two scale quantization severely degrades accuracy due to high induced error. To bridge this gap, we introduce Micro-Rotated-GPTQ (MR-GPTQ), a variant of the classic GPTQ quantization algorithm that tailors the quantization process to FP4's unique properties, by using block-wise Hadamard transforms and format-specific optimizations. We support our proposal with a set of high-performance GPU kernels that enable the MR-GPTQ format with negligible overhead, by rotation fusion into the weights, and fast online computation of the activations. This leads to speedups vs. FP16 of up to 3.6x layer-wise, and 2.2x end-to-end on NVIDIA B200, and of 6x layer-wise and 4x end-to-end on RTX5090. Our extensive empirical evaluation demonstrates that MR-GPTQ matches or outperforms state-of-the-art accuracy, significantly boosting MXFP4, to the point where it can near the accuracy that of NVFP4. We conclude that, while FP4 is not an automatic upgrade over INT4, format-specialized methods like MR-GPTQ can unlock a new frontier of accuracy-performance trade-offs.
The Microscaling FP4 Landscape
As Large Language Models (LLMs) continue to scale, the industry is shifting toward "microscaling" formats—quantization schemes where small groups of numbers (e.g., 16 or 32) share a single scaling factor. Hardware giants like NVIDIA (with NVFP4) and AMD (with MXFP4) have introduced native support for 4-bit floating-point math, promising superior efficiency compared to traditional 4-bit integers (INT4).
However, a significant "performance gap" exists. Standard Post-Training Quantization (PTQ) methods fail to deliver on the accuracy potential of these formats for two primary reasons:
- NVFP4 Outlier Sensitivity: NVFP4 uses very small groups (16 elements), which paradoxically makes traditional outlier mitigation less effective.
- MXFP4 Rounding Errors: MXFP4 utilizes a coarse "power-of-two" (E8M0) scaling system that introduces significant rounding errors, often resulting in lower accuracy than the older INT4 methods they were intended to replace.
MR-GPTQ: Tailoring Quantization for FP4
To address these challenges, we propose Micro-Rotated-GPTQ (MR-GPTQ). This specialized version of the GPTQ algorithm is built on three core innovations:
- Block-wise Hadamard Rotations: Instead of quantizing native weights and activations, which often contain extreme outliers, the algorithm applies a Hadamard transform to "smear" these outliers across the group. This shifts the data distribution toward a Gaussian shape, which is significantly easier to quantize accurately.
- MSE-Optimized Grids: Rather than using a simple "absmax" approach, MR-GPTQ searches for a scaling factor that minimizes the Mean Squared Error (MSE) across the entire tensor, better fitting the quantization grid to the data.
- Static Activation Reordering: MR-GPTQ performs column reordering statically during quantization, providing the accuracy benefits of importance-based processing without the runtime overhead of dynamic shuffling.
Empirical Evaluation and Performance
We evaluated MR-GPTQ across several state-of-the-art model families, including Llama-3, Llama-3.1, and Qwen-3 (ranging from 8B to 70B parameters). Testing on zero-shot benchmarks like MMLU, GSM8K, and HellaSwag, we found that MR-GPTQ allows both NVFP4 and MXFP4 to recover 98-99% of the original FP16 model's accuracy. Notably, it elevates MXFP4 from a sub-optimal format to one that nearly matches the precision of NVFP4.
To realize these gains in production, we developed QuTLASS, a library of GPU kernels for NVIDIA’s Blackwell architecture. By fusing the rotation step directly into the matrix multiplication, we achieved significant speedups:
- NVIDIA B200: 3.6x layer-wise and 2.2x end-to-end speedup over FP16.
- RTX 5090: 6x layer-wise and 4x end-to-end speedup over the BF16 baseline.
Conclusion
Our findings demonstrate that FP4 is not an "automatic" upgrade over INT4. To unlock the full potential of new hardware formats, quantization algorithms must be format-aware. While current gains are most pronounced in large-batch scenarios, MR-GPTQ proves that specialized methods can bridge the gap between hardware promise and real-world LLM performance, setting a new standard for 4-bit inference.
Summary updated