CertiSum:让MXFP4训练跨平台与并行布局实现逐位一致
CertiSum: Bitwise-Identical MXFP4 Training Across Platforms and Parallelism Layouts
CertiSum 使 MXFP4 训练在多次运行、不同并行布局及 AMD MI350X 与 NVIDIA GB200 之间实现逐位一致。该方法在量化时收集统计量以认证原生矩阵乘法结果,对未认证输出精确重算,并在认证难以成功的场景直接使用精确 kernel。
arXiv:2611.21584v1 Announce Type: new Abstract: Training with MXFP4, a 4-bit microscaling format, is non-deterministic: identical inputs can produce different results across parallelism layouts and GPU vendors. These differences complicate debugging and training audits and can cause training and inference engines to disagree. We present CertiSum to make MXFP4 training bitwise invariant across runs, parallelism layouts, and GPU vendors. Its key insight is that native FP32 accumulation of MXFP4 products is often already exact for every summation order. CertiSum collects statistics during quantization to certify native matrix multiplication results, recomputes uncertified outputs exactly, and uses exact kernels directly where certification rarely succeeds. CertiSum keeps quantization blocks unchanged across layouts and merges partial sums without rounding, including in attention and weight-gradient computation. In 200-step Qwen3-8B-Base experiments, CertiSum preserves training states bit for bit across AMD MI350X and NVIDIA GB200 and across changes in data, tensor, and context parallelism on MI350X. Across three 8B--14B models on FineWeb-Edu using MI350X, it adds 11.8--60.5% to training-step latency relative to its non-exact MXFP4 counterpart at the larger evaluated input shapes, with speedups of up to $1.24\times$ over BF16 and $1.70\times$ over deterministic BF16.
来源:arXiv (AI + Vision + Imaging) · arxiv.org