NVIDIA has introduced a novel 4-bit pretraining methodology called NVFP4, achieving stable convergence on a 12-billion-parameter hybrid Mamba-Transformer model trained on 10 trillion tokens—the longest publicly documented 4-bit training run to date. The model reaches 62.58% on MMLU-Pro, nearly matching the 62.62% of the FP8 baseline, while offering up to 3× throughput improvement on Blackwell GPUs.
NVFP4 is a microscaling format that uses smaller 16-element blocks (vs. 32 in MXFP4) and E4M3 block scales for finer-grained quantization. A per-tensor FP32 scale further improves precision. On GB200, FP4 GEMMs run at 4× BF16 throughput; on GB300, at 6×.
Only linear-layer GEMMs are quantized to NVFP4; embeddings, attention, and normalization remain in BF16 or FP32. The training methodology includes four key components: selective high-precision layers (first two and last eight blocks in BF16), random Hadamard transforms on weight-gradient inputs to smooth outliers, two-dimensional 16×16 block scaling for weights to ensure consistency in forward and backward passes, and stochastic rounding on gradients to reduce bias.
Compared with MXFP4, NVFP4 achieves a relative loss error of ~1.5% vs. BF16 on an 8B model, while MXFP4 requires 36% more tokens to match. The methodology is supported in NVIDIA's Transformer Engine and the code is available via the arXiv paper.