arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.05546cs.DCcs.AI
收藏

通过失败训练:并行机器学习训练中数据一致性的影响

Training Through Failure: Effects of Data Consistency in Parallel Machine Learning Training

Stanford(斯坦福大学);Google(谷歌公司)

Ray Cao, Sherry Luo, Steve Gan, Sujeeth Jinesh

AI总结:

本文研究并行机器学习训练中故障时的数据一致性策略,提出无状态参数服务器方法,使工作节点在服务器宕机时继续生成梯度更新,实验表明该方法在故障情况下准确率可提高10%,且成本与标准检查点方法相当。

摘要:

在本研究中,我们探索了在发生故障时,使用各种参数服务器配置放宽并行机器学习训练中数据一致性的影响。我们的故障恢复策略包括传统检查点、链式复制(确保备份服务器在故障时接管)以及一种新颖的无状态参数服务器方法。在无状态方法中,即使参数服务器宕机,工作节点仍继续生成梯度更新,并在服务器恢复在线后应用这些更新。我们将这些技术与标准检查点方法进行比较,在标准检查点方法中,训练作业从最新检查点恢复。为了评估每种配置的韧性和性能,我们在每次实验的训练过程中故意终止参数服务器。我们的实验结果表明,无状态参数服务器方法尽管使用了过期的权重和梯度,仍能继续向收敛方向训练,并在面对故障时将准确率提高多达10%。链式复制和检查点技术表现出收敛性,但由于从旧检查点重新启动,准确率受到挫折。这些结果表明,允许工作节点在服务器停机期间继续生成更新并在之后应用这些更新,可以有效提高硬件利用率。此外,尽管资源使用更高,但由于常见云服务提供商的定价结构,无状态参数服务器方法在硬件使用方面产生的货币成本与标准检查点方法相似。

英文摘要:

In this study, we explore the impact of relaxing data consistency in parallel machine learning training during a failure using various parameter server configurations. Our failure recovery strategies include traditional checkpointing, chain replication (which ensures a backup server takes over in case of failure), and a novel stateless parameter server approach. In the stateless approach, workers continue generating gradient updates even if the parameter server is down, applying these updates once the server is back online. We compare these techniques to a standard checkpointing approach, where the training job is resumed from the latest checkpoint. To assess the resilience and performance of each configuration, we intentionally killed the parameter server during training for each experiment. Our experiment results indicate that the stateless parameter server approach continues to train towards convergence and improves accuracy as much as 10\% in the face of a failure despite using stale weights and gradients. The chain replication and checkpointing techniques demonstrate convergence but suffer from setbacks in accuracy due to restarting from old checkpoints. These results suggest that allowing workers to continue generating updates during server downtime and applying these updates later can effectively improve hardware utilization. Furthermore, despite higher resource usage, the stateless parameter server method incurs similar monetary costs in terms of hardware usage compared to standard checkpointing methods due to the pricing structure of common cloud providers.

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

↑