An Experimental Exploration of In-Memory Computing for Multi-Layer Perceptrons
摘要
In modern computer architectures, the performance of many memory-bound workloads (e.g., machine learning, graph processing, databases) is limited by the data movement bottleneck that emerges when transferring large amounts of data between the main memory and the central processing unit (CPU). Processingin-memory (PIM) is an emerging computing paradigm that aims to alleviate this data movement bottleneck by performing computation close to or within the memory units, where data resides. One example of a prevalent workload whose performance is bound by the data movement bottleneck is the training and inference process of artificial neural networks (ANNs). In this work, we analyze the potential of modern general-purpose PIM architectures to accelerate neural networks (NNs). To this end, we selected the UPMEM PIM system, the first commercially available real-world general-purpose PIM architecture. We compared the implementation of multilayer perceptrons (MLPs) in PIM with a sequential baseline running on an Intel Xeon CPU. The UPMEM implementation achieves up to