Rethinking Shrinkage Bias in LLM FP4 Pretraining: Geometric Origin, Systemic Impact, and UFP4 Recipe

Qian Zhao, Kunlong Chen, Changxin Tian, Zhonghui Jiang, Haitao Zhang, Chaofan Yu, Peijie Jiang, Mingliang Gong, Jia Liu, Ziqi Liu, Zhiqiang Zhang, Jun Zhou

arXiv:2606.20381 · 2026-06-22 공개 · arXiv · PDF

quantization gemm llm-pretraining rht ufp4 stochastic-rounding fp4-training e1m2-int4

Abstract

FP4 training promises substantial reductions in memory and computation cost for LLM pretraining, yet current FP4 hardware paths and recipes, including NVIDIA Blackwell/Rubin-class systems and AMD MI350-series GPUs, remain centered on E2M1 data elements. In this study, we identify a fundamental limitation of that choice: non-uniform formats such as E2M1 inherently suffer from Shrinkage Bias, a systematic negative rounding error caused by the geometric asymmetry of their representable bins. We show that this bias accumulates multiplicatively across layers and is amplified by the Random Hadamard Transform (RHT), providing a unified explanation for the training instability observed in existing E2M1-based FP4 recipes. In contrast, uniform grids (E1M2/INT4) bypass this grid-geometry error and better convert the improved bucket utilization from RHT into higher quantization quality. Based on this finding, we propose UFP4, a uniform 4-bit training recipe that applies RHT to all three training GEMMs while restricting stochastic rounding to dY alone. On Dense 1.5B, MoE 7.9B, and MoE 124B long-run pretraining, UFP4 consistently achieves lower BF16-relative loss degradation than strong E2M1-based baselines, supported by scaling-law analysis and ablation studies. Our results suggest that future accelerators should support E1M2/INT4-style uniform 4-bit grids as first-class training primitives alongside E2M1.

한국어 요약

한 줄 요약

UFP4는 E1M2/INT4 기반 4비트 훈련 레시피로, E2M1의 Shrinkage Bias를 해결하여 FP4 훈련 안정성을 향상시킨다.

핵심 기여도

핵심 아이디어

기존 FP4 훈련은 E2M1 포맷을 사용하지만, 이는 RTNE 반올림 오차로 인한 Shrinkage Bias를 내재적으로 유발한다. 이는 레이어 간 곱셈적으로 누적되어 신호가 감소하고, RHT가 적용될 경우 비대칭 구간에 데이터가 집중되어 훈련 불안정성을 초래한다. 반면, E1M2/INT4와 같은 균일 포맷은 이 오차를 완전히 우회하고 RHT 후의 분포와 더 잘 일치하여 훈련 안정성과 정량화 품질을 높인다. 본 연구는 UFP4를 제안하며, 모든 GEMM(FPROP, DGRAD, WGRAD)에 RHT를 적용하고, dY에만 SR을 사용함으로써 E2M1의 문제를 해결한다.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용

UFP4는 대규모 언어 모델의 저비용 훈련을 가능하게 하며, 1.5B 이상의 모델에서 실용적 적용 가능. 특히, 124B MoE 모델의 장기 훈련에서 E2M1 기반 레시피 대비 더 낮은 손실 감소를 보여주어 산업적 대규모 훈련 시스템에 적합.