Research Article

A hybrid parallelization approach based on workers grouping algorithm

Ruoyu Lu*
SouthWest Jiaotong University, Chengdu, Sichuan, 611756, China

* Corresponding author: [email protected]

Abstract

As the volume of model data increases, traditional machine learning is not able to train models efficiently, so distributed machine learning is gradually used in large-scale data training. Currently, commonly used distributed machine learning algorithms are based on data parallelism, and often use an overall synchronous parallel strategy when passing data, but using this strategy makes the overall training speed limited by the computation speed of the slower workers in the cluster. While the asynchronous parallel strategy maximizes the computational speed of the cluster, there is a delay in updating the parameters of the global model, which may lead to excessive computational errors or non-convergence of the model. In this paper, the author combines these two data delivery methods by grouping workers together and using synchronous parallelism for the workers in the group and asynchronous parallelism for the components for training. The experiment shows that the hybrid parallelism strategy can reduce the training time with guaranteed correctness.

Keywords: Deep learning; Data parallel; Distributed machine learning; Synchronous parallel; Asynchronous parallel.
Published: June 14, 2023
DOI: 10.54254/2755-2721/6/20230835
Volume: ACE Vol.6
pp. 340-347
Download PDF

References

  1. P. Moritz, R. Nishihara, I. Stoica, and M. I. Jordan, “SparkNet: Training Deep Networks in Spark.” arXiv, Feb. 28, 2016. Accessed: Jul. 13, 2022. [Online]. Available: http://arxiv.org/abs/1511.06051.
  2. M. Jeon, S. Venkataraman, A. Phanishayee, J. Qian, W. Xiao, and F. Y. M. Research, “Multitenant GPU Clusters for Deep Learning Workloads: Analysis and Implications,” p. 14.
  3. M. Jeon, S. Venkataraman, A. Phanishayee, J. Qian, W. Xiao, and F. Yang, “Analysis of LargeScale Multi-Tenant GPU Clusters for DNN Training Workloads,” p. 15.
  4. M. Li et al., “Improving the Performance of Distributed MXNet with RDMA,” Int J Parallel Prog, vol. 47, no. 3, pp. 467–480, Jun. 2019, doi: 10.1007/s10766-018-00623-w.
  5. M. Abadi et al., “TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systems. ” arXiv, Mar. 16, 2016. Accessed: Jul. 24, 2022. [Online]. Available: http://arxiv.org/abs/1603.04467.
  6. L. G. Valiant, “A bridging model for parallel computation,” Commun. ACM, vol. 33, no. 8, pp. 103–111, Aug. 1990, doi: 10.1145/79173.79181.
  7. R. Tandon, Q. Lei, A. G. Dimakis, and N. Karampatziakis, “ Gradient Coding: Avoiding Stragglers in Distributed Learning,” p. 9.
  8. A. Ahmed, M. Aly, J. Gonzalez, S. Narayanamurthy, and A. J. Smola, “Scalable inference in latent variable models,” in Proceedings of the fifth ACM international conference on Web search and data mining - WSDM ’ 12, Seattle, Washington, USA, 2012, p. 123. doi: 10.1145/2124295.2124312.
  9. A. Ahmed, Q. Ho, J. Eisenstein, E. Xing, A. J. Smola, and C. H. Teo, “Unified analysis of streaming news,” in Proceedings of the 20th international conference on World wide web - WWW ’11, Hyderabad, India, 2011, p. 267. doi: 10.1145/1963405.1963445.
  10. L. Cannelli, F. Facchinei, V. Kungurtsev, and G. Scutari, “Asynchronous parallel nonconvex large-scale optimization,” in 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), New Orleans, LA, Mar. 2017, pp. 4706 – 4710. doi: 10.1109/ICASSP.2017.7953049.
  11. J. Langford, A. Smola, and M. Zinkevich, “Slow Learners are Fast.” arXiv, Nov. 03, 2009. Accessed: Jul. 19, 2022. [Online]. Available: http://arxiv.org/abs/0911.0491.
  12. J. Jiang, B. Cui, C. Zhang, and L. Yu, “Heterogeneity-aware Distributed Parameter Servers,” in Proceedings of the 2017 ACM International Conference on Management of Data, Chicago Illinois USA, May 2017, pp. 463–478. doi: 10.1145/3035918.3035933.
  13. W. Fan et al., “Adaptive Asynchronous Parallelization of Graph Algorithms,” ACM Trans. Database Syst., vol. 45, no. 2, pp. 1–45, Jun. 2020, doi: 10.1145/3397491.
  14. T. Chilimbi, Y. Suzue, J. Apacible, and K. Kalyanaraman, “Project Adam: Building an Efficient and Scalable Deep Learning Training System,” p. 13.