arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.12340cs.LGcs.DC
收藏

理解 LLM 训练中的静默数据损坏

Understanding Silent Data Corruption in LLM Training

Harvard University(哈佛大学);Amazon Web Services(亚马逊网络服务)

Jeffrey Ma, Hengzhi Pei, Leonard Lausen, George Karypis

AI总结:

本文首次对比健康节点与真实 SDC 节点上的 LLM 训练,借助 XLA 确定性执行和同步机制从子模块、优化步到训练阶段量化 SDC 影响,揭示其可改变收敛最优点并导致损失尖峰。

摘要:

随着大语言模型(LLM)训练规模的扩大,一种新出现的故障是静默数据损坏(SDC),即硬件产生错误计算却没有明确的故障信号。在本工作中,我们首次通过比较健康生产节点与表现出 SDC 的不健康节点上的模型训练,研究真实世界 SDC 对 LLM 训练的影响。在云计算平台的帮助下,我们访问了被自动化集群管理从生产环境中清除的不健康节点。利用通过 XLA 编译器实现的确定性执行以及我们提出的同步机制,我们在三个层面上隔离并分析了这些节点上 SDC 错误的影响:每个子模块计算、单个优化器步骤以及一个训练阶段。我们的结果表明,SDC 对计算的影响在不同不健康节点上存在差异。尽管在大多数情况下,SDC 对子模块计算和梯度的扰动相对较小,但 SDC 可能导致模型收敛到具有不同权重的不同最优点,甚至引发训练损失尖峰。我们的分析为进一步理解和缓解 SDC 的影响提供了启示。

英文摘要:

As the scale of training large language models (LLMs) increases, one emergent failure is silent data corruption (SDC), where hardware produces incorrect computations without explicit failure signals. In this work, we are the first to investigate the impact of real-world SDCs on LLM training by comparing model training between healthy production nodes and unhealthy nodes exhibiting SDCs. With the help from a cloud computing platform, we access the unhealthy nodes that were swept out from production by automated fleet management. Using deterministic execution via XLA compiler and our proposed synchronization mechanisms, we isolate and analyze the impact of SDC errors on these nodes at three levels: at each submodule computation, at a single optimizer step, and at a training period. Our results reveal that the impact of SDCs on computation varies on different unhealthy nodes. Although in most cases the perturbations from SDCs on submodule computation and gradients are relatively small, SDCs can lead models to converge to different optima with different weights and even cause spikes in the training loss. Our analysis sheds light on further understanding and mitigating the impact of SDCs.

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

↑