arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.12674cs.LGcs.DCcs.PF
收藏

PLSSVM:一种(多)GPGPU加速的最小二乘支持向量机

PLSSVM: A (multi-)GPGPU-accelerated Least Squares Support Vector Machine

University of Stuttgart(斯图加特大学)

Alexander Van Craen, Marcel Breyer, Dirk Pflüger

摘要:

机器学习算法必须能够有效地处理海量数据集。因此,它们必须在任何现代系统上都能很好地扩展,并且能够独立于供应商利用加速器的计算能力。在监督学习领域,支持向量机(SVM)得到了广泛的应用。然而,即使是现代和优化的实现,如LIBSVM或ThunderSVM,也不能很好地扩展到尖端硬件上的大型非平凡密集数据集:大多数SVM实现都基于顺序最小优化,这是一种优化的固有顺序算法。因此,它们不适合高度并行的GPU。此外,我们不知道一个性能可移植的实现,支持来自不同供应商的CPU和GPU。我们开发了PLSSVM库来解决这两个问题。首先,我们诉诸的SVM作为一个最小二乘问题的制定。然后,训练SVM归结为求解线性方程组,其中高度并行算法是已知的。其次,我们提供了一个独立于硬件但高效的实现:PLSSVM使用不同的可互换后端--OpenMP、CUDA、OpenCL、SYCL--在多个GPU上支持来自NVIDIA、AMD或Intel等各种供应商的现代硬件。PLSSVM可以用作LIBSVM的直接替代品。我们观察到,与LIBSVM相比,CPU上的加速高达10,与ThunderSVM相比,GPU上的加速高达14。我们的实现可在多核CPU上扩展,在多达256个CPU线程上的并行加速比为74.7,在多个GPU上的并行加速比为3.71。代码、实用程序脚本和文档都可以在GitHub上找到:https://github.com/SC-SGS/PLSSVM。

英文摘要:

Machine learning algorithms must be able to efficiently cope with massive data sets. Therefore, they have to scale well on any modern system and be able to exploit the computing power of accelerators independent of their vendor. In the field of supervised learning, Support Vector Machines (SVMs) are widely used. However, even modern and optimized implementations such as LIBSVM or ThunderSVM do not scale well for large non-trivial dense data sets on cutting-edge hardware: Most SVM implementations are based on Sequential Minimal Optimization, an optimized though inherent sequential algorithm. Hence, they are not well-suited for highly parallel GPUs. Furthermore, we are not aware of a performance portable implementation that supports CPUs and GPUs from different vendors. We have developed the PLSSVM library to solve both issues. First, we resort to the formulation of the SVM as a least squares problem. Training an SVM then boils down to solving a system of linear equations for which highly parallel algorithms are known. Second, we provide a hardware independent yet efficient implementation: PLSSVM uses different interchangeable backends--OpenMP, CUDA, OpenCL, SYCL--supporting modern hardware from various vendors like NVIDIA, AMD, or Intel on multiple GPUs. PLSSVM can be used as a drop-in replacement for LIBSVM. We observe a speedup on CPUs of up to 10 compared to LIBSVM and on GPUs of up to 14 compared to ThunderSVM. Our implementation scales on many-core CPUs with a parallel speedup of 74.7 on up to 256 CPU threads and on multiple GPUs with a parallel speedup of 3.71 on four GPUs. The code, utility scripts, and documentation are all available on GitHub: https://github.com/SC-SGS/PLSSVM.

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

↑