Swift : Expedited Failure Recovery for Large-Scale DNN Training

被引:0
作者
Zhong, Yuchen [1 ]
Sheng, Guangming [1 ]
Liu, Juncheng [2 ]
Yuan, Jinhui [2 ]
Wu, Chuan [1 ]
机构
[1] Univ Hong Kong, Hong Kong, Peoples R China
[2] OneFlow Inc, Beijing 100089, Peoples R China
关键词
Training; Parallel processing; Pipelines; Computational modeling; Data models; Artificial neural networks; Checkpointing; Distributed DNN training; failure resilience;
D O I
10.1109/TPDS.2024.3429625
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
As the size of deep learning models gets larger and larger, training takes longer time and more resources, making fault tolerance more and more critical. Existing state-of-the-art methods like CheckFreq and Elastic Horovod need to back up a copy of the model state (i.e., parameters and optimizer states) in memory, which is costly for large models and leads to non-trivial overhead. This article presents Swift, a novel recovery design for distributed deep neural network training that significantly reduces the failure recovery overhead without affecting training throughput and model accuracy. Instead of making an additional copy of the model state, Swift resolves the inconsistencies of the model state caused by the failure and exploits the replicas of the model state in data parallelism for failure recovery. We propose a logging-based approach when replicas are unavailable, which records intermediate data and replays the computation to recover the lost state upon a failure. The re-computation is distributed across multiple machines to accelerate failure recovery further. We also log intermediate data selectively, exploring the trade-off between recovery time and intermediate data storage overhead. Evaluations show that Swift significantly reduces the failure recovery time and achieves similar or better training throughput during failure-free execution compared to state-of-the-art methods without degrading final model accuracy. Swift can also achieve up to 1.16x speedup in total training time compared to state-of-the-art methods.
引用
收藏
页码:1644 / 1656
页数:13
相关论文
共 51 条
[1]  
Abadi M, 2016, PROCEEDINGS OF OSDI'16: 12TH USENIX SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION, P265
[2]  
[Anonymous], 2022, Checkfreq code at github
[3]  
Authors T. H., 2022, Elastic horovod
[4]  
Ba J, 2014, ACS SYM SER
[5]  
Brown T. B., 2020, Adv. Neural Inf. Process. Syst, P1877
[6]  
Chen JM, 2017, Arxiv, DOI arXiv:1604.00981
[7]  
Chen TQ, 2015, Arxiv, DOI arXiv:1512.01274
[8]  
Devlin J, 2019, 2019 CONFERENCE OF THE NORTH AMERICAN CHAPTER OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS: HUMAN LANGUAGE TECHNOLOGIES (NAACL HLT 2019), VOL. 1, P4171
[9]  
Dosovitskiy A, 2021, INT C LEARN REPR ICL
[10]  
Eisenman A, 2022, PROCEEDINGS OF THE 19TH USENIX SYMPOSIUM ON NETWORKED SYSTEMS DESIGN AND IMPLEMENTATION (NSDI '22), P929