Training machine learning (ML) algorithms is a computationally intensive process, which is frequently memory-bound due to repeatedly accessing large training datasets. As a result, processor-centric systems (e.g., CPU, GPU) suffer from costly data movement between memory units and processing units, which consumes large amounts of energy and execution cycles. Memory-centric computing systems, i.e., with processing-in-memory (PIM) capabilities, can alleviate this data movement bottleneck. Our goal is to understand the potential of modern general-purpose PIM architectures to accelerate ML training. To do so, we (1) implement several representative classic ML algorithms (namely, linear regression, logistic regression, decision tree, K-Means clustering) on a real-world general-purpose PIM architecture, (2) rigorously evaluate and characterize them in terms of accuracy, performance and scaling, and (3) compare to their counterpart implementations on CPU and GPU. Our evaluation on a real memory-centric computing system with more than 2500 PIM cores shows that general-purpose PIM architectures can greatly accelerate memory-bound ML workloads, when the necessary operations and datatypes are natively supported by PIM hardware. For example, our PIM implementation of decision tree is $27\times$ faster than a state-of-the-art CPU version on an 8-core Intel Xeon, and $1.34\times$ faster than a state-of-the-art GPU version on an NVIDIA A100. Our K-Means clustering on PIM is $2.8\times$ and $3.2\times$ than state-of-the-art CPU and GPU versions, respectively. To our knowledge, our work is the first one to evaluate ML training on a real-world PIM architecture. We conclude with key observations, takeaways, and recommendations that can inspire users of ML workloads, programmers of PIM architectures, and hardware designers & architects of future memory-centric computing systems.
翻译:训练机器学习(ML)算法是一个计算密集型过程,由于需要反复访问大规模训练数据集,该过程通常受限于内存带宽。因此,以处理器为中心的计算系统(如CPU、GPU)面临存储单元与处理单元之间频繁数据移动带来的高昂代价,消耗大量能量和执行周期。具备存内处理(PIM)能力的以内存为中心的计算系统能够缓解这一数据移动瓶颈。本研究旨在探究现代通用PIM架构加速ML训练的潜力。为此,我们(1)在真实通用PIM架构上实现了若干代表性经典ML算法(即线性回归、逻辑回归、决策树、K-Means聚类),(2)从精度、性能和扩展性角度对其进行严格评估与表征,(3)与CPU和GPU上的对应实现进行对比。在拥有超过2500个PIM核的真实以内存为中心计算系统上的实验表明:当PIM硬件原生支持必要操作和数据类型时,通用PIM架构能够显著加速内存受限的ML工作负载。例如,我们的PIM决策树实现比8核Intel Xeon上的最新CPU版本快27倍,比NVIDIA A100上的最新GPU版本快1.34倍;PIM K-Means聚类分别比最新CPU和GPU版本快2.8倍和3.2倍。据我们所知,本研究首次在真实PIM架构上评估了ML训练。我们总结出关键发现、经验与建议,可为ML工作负载用户、PIM架构程序员以及未来以内存为中心计算系统的硬件设计者与架构师提供参考。