arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.06222cs.SE
收藏

大模型时代分布式深度学习训练的兴起:从软件工程视角出发

Rise of Distributed Deep Learning Training in the Big Model Era: From a Software Engineering Perspective

Xuanzhe Liu, Diandian Gu, Zhenpeng Chen, Jinfeng Wen, Zili Zhang, Yun Ma, Haoyu Wang, Xin Jin

AI总结:

本文从软件工程视角出发,针对大模型时代分布式训练的开发者问题开展首次全面研究,分析1131个真实问题构建30类细粒度故障分类并总结修复模式,提出多项助力深度学习软件开发的研究方向启示。

摘要:

深度学习(DL)已成为现代软件的核心组成部分。在“大模型”时代,基于深度学习的软件的丰富功能在很大程度上依赖于强大的深度学习模型,例如BERT、GPT-3以及近期出现的GPT-4,这些模型都依托强大的云端算力、基于大规模数据集训练而成。因此,训练出有效的深度学习模型已成为整个软件生命周期中的关键阶段。\n在训练深度学习模型,尤其是大模型时,开发者需要在训练过程中将计算与内存资源并行化并分配到多台设备上,这一过程被称为分布式深度学习训练,简称分布式训练。然而,软件工程领域尚未对开发者在分布式训练过程中面临的独特挑战展开研究。鉴于当前基于深度学习的软件对分布式训练的依赖度日益提升,本文旨在填补这一知识空白,首次针对开发者在分布式训练中遇到的问题开展全面研究。\n为此,我们分析了开发者在Stack Overflow和GitHub上提交的1131个与使用这类框架相关的真实问题。我们构建了一个包含30个故障症状类别的细粒度分类体系,并总结了不同症状对应的常见修复模式。基于研究结果,我们提出了若干可推动分布式训练助力深度学习软件开发的可行研究方向启示,例如:设计测试或调试工具时聚焦高频、通用的修复模式;结合网络配置分析综合技术,开发针对通信配置的高效测试与调试方法;设计新型多设备检查点-重放技术以辅助问题复现;以及为云平台设计无服务器API。

英文摘要:

Deep learning (DL) has become a key component of modern software. In the "big model" era, the rich features of DL-based software substantially rely on powerful DL models, e.g., BERT, GPT-3, and the recently emerging GPT-4, which are trained on the powerful cloud with large datasets. Hence, training effective DL models has become a vital stage in the whole software lifecycle. When training deep learning models, especially those big models, developers need to parallelize and distribute the computation and memory resources amongst multiple devices in the training process, which is known as distributed deep learning training, or distributed training for short. However, the unique challenges that developers encounter in distributed training process have not been studied in the software engineering community. Given the increasingly heavy dependence of current DL-based software on distributed training, this paper aims to fill in the knowledge gap and presents the first comprehensive study on developers' issues in distributed training. To this end, we analyze 1,131 real-world developers' issues about using these frameworks reported on Stack Overflow and GitHub. We construct a fine-grained taxonomy consisting of 30 categories regarding the fault symptoms and summarize common fix patterns for different symptoms. Based on the results, we suggest actionable implications on research avenues that can potentially facilitate the distributed training to develop DL-based software, such as focusing on the frequent and common fix patterns when designing testing or debugging tools, developing efficient testing and debugging techniques for communication configuration along with the synthesis of network configuration analysis, designing new multi-device checkpoint-and-replay techniques to help reproduction, and designing serverless APIs for cloud platforms.

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

↑