计算机科学 > 硬件体系结构
[提交于 2026年11月28日]
标题:Reducing Memory Traffic in FP4 LLM Training
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Native FP4 training retains higher-precision gradient computation and weight-gradient accumulation. Our characterization of NVIDIA Transformer Engine on Blackwell identifies two sources of intermediate global-memory traffic: a numerical boundary, where unavailable scaling information forces gradient materialization, and a kernel boundary, where separate microbatch GEMMs repeatedly store and reload FP32 accumulators. Together, these create a global-memory boundary not inherently required by FP4 arithmetic. We address the numerical boundary through \emph{producer-local FP4 quantization}, converting gradients within their producing kernels to avoid intermediate BF16 transfers. We address the kernel boundary through register-resident FP32 accumulation across microbatch GEMMs, preserving accumulation order. Under a fixed operand-memory budget, two-microbatch windows across all projections recover 69% of the training-step time savings of four-microbatch accumulation across all projections with roughly one-third of the additional operand storage. On Blackwell, our implementation reduces GPU kernel time by 9.28\% and improves CUDA Graph training throughput by 9.63%, with a sustained 9.7% improvement over 20 million training tokens and comparable validation perplexity to Transformer Engine NVFP4. FP32 accumulation matches the sequential reference bit for bit across more than 1.2 billion elements. On AMD MI210, optimized software-emulated MXFP4 execution using BF16 GEMMs improves training throughput by 30.9% over the corresponding MXFP4 reference.
提交历史
来自:Chandra Sekhar Mummidi[v1] 2026年11月28日 星期六 18:35:12 UTC (784 KB)