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

PIM-Opt:在真实世界的存内计算系统上揭开分布式优化算法的面纱

PIM-Opt: Demystifying Distributed Optimization Algorithms on a Real-World Processing-In-Memory System

ETH Zurich(苏黎世联邦理工学院);NVIDIA(英伟达公司);Wuhan University(武汉大学);University of Chicago(芝加哥大学)

Steve Rhyner, Haocong Luo, Juan Gómez-Luna, Mohammad Sadrosadati, Jiawei Jiang, Ataberk Olgun, Harshita Gupta, Ce Zhang, Onur Mutlu

AI总结:

本文在真实UPMEM存内计算系统上实现并评估了多种分布式SGD算法,发现PIM在受内存限制的ML训练中是CPU/GPU的可行替代方案,但需算法-硬件协同设计且扩展性存在非线性限制。

摘要:

现代机器学习(ML)在大规模数据集上的训练是一个非常耗时的任务。由于随机梯度下降(SGD)的有效性、简单性和泛化性能,它依赖于该优化算法。基于SGD的现代ML训练任务常用的以处理器为中心的架构(如CPU、GPU),由于访问大型数据集时数据局部性差,受限于处理器和内存单元之间的数据移动瓶颈。因此,以处理器为中心的架构在执行ML训练任务时性能低且能耗高。存内计算(PIM)是一种很有前景的解决方案,通过将计算机制放置在内存内部或附近来缓解数据移动瓶颈。我们的目标是了解流行的分布式SGD算法在真实世界PIM系统上的能力,以加速数据密集型ML训练任务。为此,我们1)在真实的UPMEM PIM系统上实现了几种具有代表性的集中式并行SGD算法,2)从性能、准确性和可扩展性方面,严格评估了这些算法在大规模数据集上的ML训练表现,3)与传统的CPU和GPU基准进行比较,4)讨论了对未来PIM硬件的影响,并强调需要转向算法-硬件协同设计。我们的结果展示了三个主要发现:1)对于许多受内存限制的ML训练任务,UPMEM PIM系统可以成为最先进的CPU和GPU的可行替代方案,特别是当操作和数据类型被PIM硬件原生支持时;2)仔细选择最适合PIM的优化算法很重要;3)对于许多数据密集型ML训练任务,UPMEM PIM系统不能随节点数量近似线性扩展。我们开源了所有代码以促进未来研究。

英文摘要:

Modern Machine Learning (ML) training on large-scale datasets is a very time-consuming workload. It relies on the optimization algorithm Stochastic Gradient Descent (SGD) due to its effectiveness, simplicity, and generalization performance. Processor-centric architectures (e.g., CPUs, GPUs) commonly used for modern ML training workloads based on SGD are bottlenecked by data movement between the processor and memory units due to the poor data locality in accessing large datasets. As a result, processor-centric architectures suffer from low performance and high energy consumption while executing ML training workloads. Processing-In-Memory (PIM) is a promising solution to alleviate the data movement bottleneck by placing the computation mechanisms inside or near memory. Our goal is to understand the capabilities of popular distributed SGD algorithms on real-world PIM systems to accelerate data-intensive ML training workloads. To this end, we 1) implement several representative centralized parallel SGD algorithms on the real-world UPMEM PIM system, 2) rigorously evaluate these algorithms for ML training on large-scale datasets in terms of performance, accuracy, and scalability, 3) compare to conventional CPU and GPU baselines, and 4) discuss implications for future PIM hardware and highlight the need for a shift to an algorithm-hardware codesign. Our results demonstrate three major findings: 1) The UPMEM PIM system can be a viable alternative to state-of-the-art CPUs and GPUs for many memory-bound ML training workloads, especially when operations and datatypes are natively supported by PIM hardware, 2) it is important to carefully choose the optimization algorithms that best fit PIM, and 3) the UPMEM PIM system does not scale approximately linearly with the number of nodes for many data-intensive ML training workloads. We open source all our code to facilitate future research.

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

↑