Skip to main content
QUICK REVIEW

[Paper Review] An Experimental Evaluation of Machine Learning Training on a Real Processing-in-Memory System

Juan Gómez-Luna, Yuxin Guo|arXiv (Cornell University)|Jul 16, 2022
Ferroelectric and Negative Capacitance DevicesEngineering9 citations
TL;DR

This paper evaluates training classic machine learning algorithms—linear regression, logistic regression, decision trees, and K-Means clustering—on a real-world general-purpose Processing-in-Memory (PIM) system using the UPMEM architecture. It demonstrates that PIM accelerates memory-bound workloads by leveraging high memory bandwidth and thousands of parallel processing elements, achieving up to 113× speedup over CPU and 4.5× over GPU implementations when hardware natively supports required operations and data types.

ABSTRACT

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 imes$ faster than a state-of-the-art CPU version on an 8-core Intel Xeon, and $1.34 imes$ faster than a state-of-the-art GPU version on an NVIDIA A100. Our K-Means clustering on PIM is $2.8 imes$ and $3.2 imes$ 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.

Motivation & Objective

  • To evaluate the performance of classic machine learning training workloads on a real general-purpose PIM architecture.
  • To understand the potential of memory-centric computing systems to accelerate memory-bound ML training workloads.
  • To compare PIM-based implementations against state-of-the-art CPU and GPU counterparts in terms of accuracy, performance, and scaling.
  • To identify hardware and software requirements for PIM to achieve significant speedups in ML training.
  • To provide actionable insights for ML practitioners, PIM architects, and future memory-centric system designers.

Proposed method

  • Implemented representative classic ML algorithms (linear regression, logistic regression, decision tree, K-Means clustering) on the UPMEM PIM architecture.
  • Executed all algorithms on a real PIM system with over 2,500 PIM cores, using native PIM instructions for arithmetic and data types.
  • Measured performance, accuracy, and scaling characteristics across varying data sizes and workloads.
  • Compared PIM results directly against optimized CPU (8-core Intel Xeon) and GPU (NVIDIA A100) implementations.
  • Used open-source code and datasets to ensure reproducibility and enable community extension.
  • Characterized performance bottlenecks and identified key factors enabling PIM acceleration, such as memory bandwidth and parallelism.

Experimental results

Research questions

  • RQ1Can general-purpose PIM architectures significantly accelerate memory-bound machine learning training workloads?
  • RQ2How do PIM-based implementations of classic ML algorithms compare in performance and accuracy to state-of-the-art CPU and GPU versions?
  • RQ3What role do native hardware support for operations and data types play in determining PIM performance gains?
  • RQ4How does PIM scaling compare to CPU and GPU scaling with increasing data size and workload complexity?
  • RQ5What are the key architectural and programming factors that enable or limit PIM acceleration for ML training?

Key findings

  • The PIM implementation of decision tree is between 27× and 113× faster than a state-of-the-art CPU version on an 8-core Intel Xeon.
  • The PIM implementation of decision tree is between 1.34× and 4.5× faster than a state-of-the-art GPU version on an NVIDIA A100.
  • The PIM implementation of K-Means clustering is 2.8× faster than the CPU version and 3.2× faster than the GPU version.
  • PIM achieves superior performance for memory-bound ML workloads due to higher memory bandwidth and thousands of parallel processing elements that scale with memory capacity.
  • PIM outperforms GPUs due to higher host-accelerator bandwidth, as PIM cores are connected via memory channels rather than PCIe.
  • The study confirms that native hardware support for required arithmetic operations and data types is essential for realizing significant speedups on PIM systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.