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

并行机器学习算法的性能与能耗

Performance and Energy Consumption of Parallel Machine Learning Algorithms

Xidong Wu, Preston Brazzle, Stephen Cahoon

AI总结:

针对高性能计算领域机器学习算法功耗优化研究不足的问题,本文实现了多种并行机器学习算法,从功耗与性能维度分析模型复杂度、数据规模对并行效率的影响,并测试了三类并行加速方案的效果。

摘要:

机器学习模型已在数据科学、计算机视觉、自然语言处理等各类实际应用中取得显著成效。然而,机器学习的模型训练需依托大规模数据集并经过多轮迭代才能正常运行,训练算法并行化是加快训练进程的常用策略。但现有多数模型训练与推理研究仅关注性能维度,功耗也是各类计算尤其是高性能应用的重要指标。目前已有针对传感器、移动设备等低功耗平台的机器学习算法研究,但面向高性能计算设计的算法在功耗优化方面的研究仍较少。\n本文提出了面向分类任务的logistic回归(逻辑回归)与遗传算法的C++实现,以及采用随机梯度下降(SGD)算法的神经网络的Python实现。我们将从功耗与性能两方面,展示模型复杂度与训练数据规模对算法并行效率的影响。我们还通过共享内存并行、分布式内存并行与GPU加速三种方式测试了这些实现,以加快机器学习模型的训练速度。

英文摘要:

Machine learning models have achieved remarkable success in various real-world applications such as data science, computer vision, and natural language processing. However, model training in machine learning requires large-scale data sets and multiple iterations before it can work properly. Parallelization of training algorithms is a common strategy to speed up the process of training. However, many studies on model training and inference focus only on aspects of performance. Power consumption is also an important metric for any type of computation, especially high-performance applications. Machine learning algorithms that can be used on low-power platforms such as sensors and mobile devices have been researched, but less power optimization is done for algorithms designed for high-performance computing. In this paper, we present a C++ implementation of logistic regression and the genetic algorithm, and a Python implementation of neural networks with stochastic gradient descent (SGD) algorithm on classification tasks. We will show the impact that the complexity of the model and the size of the training data have on the parallel efficiency of the algorithm in terms of both power and performance. We also tested these implementations using shard-memory parallelism, distributed memory parallelism, and GPU acceleration to speed up machine learning model training.

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

↑