arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.24343cs.CLcs.AIcs.LG
收藏

NVFP4训练的关键因素:低精度预训练方案的对比研究

What Matters for NVFP4 Training? A Comparative Study of Low-Precision Pretraining Recipes

NVIDIA(英伟达);Institute of Science and Technology Austria(奥地利科学技术研究所);Red Hat AI(红帽人工智能部门)

Anjulie Agrusa, Andrei Panferov, Elizabeth Wei, Keith Wyss, Paul Gibbons, Erik Schultheis, Jinhang Choi, Frank Sun, Tijmen Blankevoort, Dan Alistarh

AI总结:

该研究对比了中等规模模型的 NVFP4 训练方案,提出含无偏梯度估计的优化方案,经消融研究明确各技术、选择性高精度层等对精度恢复的关键作用,获当前该规模下 FP4 训练与 BF16 损失差距的最优结果。

摘要:

直接以4位浮点(FP)格式训练大语言模型有望大幅提升吞吐量和能效。尽管部分方案设计选择已在大规模场景下得到验证,但许多有前景的方法尚未在大模型和长 token 范围之外进行测试,仍存在哪些趋势可行的问题。我们对中等规模模型下的近期 NVFP4 方案开展系统对比,评估了训练至 1T token 的稠密 8B 模型和 30B-A3B MoE 模型,重点关注恢复精度所需的必要组件。我们提出了基于成熟稳定大规模 NVFP4 训练原理的最终方案,融入了无偏梯度估计等最先进技术,其量化误差低于随机舍入。据我们所知,这是目前该规模下 FP4 训练在与 BF1 的损失差距方面展示的最强结果。通过消融研究,我们发现:(i)优化方案中的每项技术均能显著改善损失轨迹;(ii)选择性高精度层是大规模场景下恢复精度的必要条件;(iii)反向传播中的所有张量并非都能从无偏处理中同等受益,这为对剩余张量应用互补误差减少技术留下了空间。

英文摘要:

Training large language models directly in 4-bit floating-point (FP) formats promises substantial improvements in throughput and energy efficiency. While some recipe design choices have been validated at scale, many promising approaches remain untested beyond small models and short token horizons, leaving open the question of which trends will hold. We present a systematic comparison of recent NVFP4 recipes at medium model scale, evaluating dense 8B and 30B-A3B MoE models trained for up to 1T tokens, with a focus on which ingredients are necessary for accuracy recovery. We propose a final recipe grounded in the principles behind established stable NVFP4 training at scale, incorporating state-of-the-art techniques such as unbiased gradient estimation with lower quantization error than stochastic rounding. To the best of our knowledge, this is the strongest FP4 training result demonstrated at this scale to date in loss gap to BF16. Through ablation studies, we find that: (i) each technique in the optimized recipe measurably improves loss trajectory, (ii) selective high-precision layers are necessary for recovering accuracy at scale, (iii) not all tensors in the backward pass benefit equally from de-biasing, leaving room to apply complementary error-reduction techniques to the remaining tensors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑