Affiliation:
1. Institute of Informatics Federal University of Rio Grande do Sul (UFRGS) Porto Alegre Brazil
2. Department of Industrial Engineering University of Trento Trento Italy
Abstract
ABSTRACTAchieving high‐performance aggregation is essential to scaling data‐parallel distributed machine learning (ML) training. Recent research in in‐network computing has shown that offloading the aggregation to the network data plane can accelerate the aggregation process compared to traditional server‐only approaches, reducing the propagation delay and consequently speeding up distributed training. However, the existing literature on in‐network aggregation does not provide ways to deal with slower workers (called stragglers). The presence of stragglers can negatively impact distributed training, increasing the time it takes to complete. In this paper, we present Serene, an in‐network aggregation system capable of circumventing the effects of stragglers. Serene coordinates the ML workers to cooperate with a programmable switch using a hybrid synchronization approach where approaches can be changed dynamically. The synchronization can change dynamically through a control plane API that translates high‐level code into switch rules. Serene switch employs an efficient data structure for managing synchronization and a hot‐swapping mechanism to consistently change from one synchronization strategy to another. We implemented and evaluated a prototype using BMv2 and a Proof‐of‐Concept in a Tofino ASIC. We ran experiments with realistic ML workloads, including a neural network trained for image classification. Our results show that Serene can speed up training by up to 40% in emulation scenarios by reducing drastically the cumulative waiting time compared to a synchronous baseline.
Funder
Conselho Nacional de Desenvolvimento Científico e Tecnológico
Coordenação de Aperfeiçoamento de Pessoal de Nível Superior
Fundação de Amparo à Pesquisa do Estado de São Paulo
Reference53 articles.
1. A Survey on Distributed Machine Learning
2. M.Li D. G.Andersen J. W.Park et al. “Scaling Distributed Machine Learning With the Parameter Server ” 11th Usenix Symposium on Operating Systems Design and Implementation (OSDI 14) (2014) 583–598.
3. A.SergeevandM.Del Balso “Horovod: Fast and Easy Distributed Deep Learning in Tensorflow ” (2018). arXiv preprint arXiv:1802.05799.
4. A.Sapio I.Abdelaziz A.Aldilaijan M.Canini andP.Kalnis “In‐Network Computation is a Dumb Idea Whose Time Has Come ” Proceedings of the 16th ACM Workshop on Hot Topics in Networks (2017) 150–156.