GPRat:基于异步任务的高斯过程回归
GPRat: Gaussian Process Regression with Asynchronous Tasks
AI总结:
本研究提出GPRat,一种使用pybind11将基于HPX的异步任务C++代码绑定至Python API的并行高斯过程库,在多核CPU训练与预测中相比GPyTorch和GPflow实现显著加速且几乎无绑定开销。
摘要:
Python是人工智能(AI)软件开发的事实标准语言。常用库(如PyTorch和TensorFlow)依赖其BLAS后端内置的并行化在CPU上实现加速。然而,仅在低级后端应用并行化可能导致性能和扩展性下降。在本研究中,我们提出了一种新方法,使用pybind11将基于异步运行时模型HPX构建的基于任务的C++代码绑定到高级Python API。我们开发了一个并行高斯过程(GP)库作为应用。由此产生的Python库GPRat结合了常用GP库的易用性与异步运行时系统的性能和可扩展性。我们在质量-弹簧-阻尼系统(控制理论中的标准基准)上评估了不同回归器(特征)数量下的性能。结果表明,使用pybind11绑定异步HPX代码时几乎没有绑定开销。与GPyTorch和GPflow相比,GPRat在AMD EPYC 7742 CPU上最多64个核心的训练中展现出更优的扩展性。此外,我们的库在预测速度上比GPyTorch快7.63倍,比GPflow快25.25倍。如果我们将特征数量从8增加到128,我们分别观察到29.62倍和21.19倍的加速。这些结果展示了在基于Python的AI应用中使用异步任务的潜力。
英文摘要:
Python is the de-facto language for software development in artificial intelligence (AI). Commonly used libraries, such as PyTorch and TensorFlow, rely on parallelization built into their BLAS backends to achieve speedup on CPUs. However, only applying parallelization in a low-level backend can lead to performance and scaling degradation. In this work, we present a novel way of binding task-based C++ code built on the asynchronous runtime model HPX to a high-level Python API using pybind11. We develop a parallel Gaussian process (GP) li- brary as an application. The resulting Python library GPRat combines the ease of use of commonly available GP libraries with the performance and scalability of asynchronous runtime systems. We evaluate the per- formance on a mass-spring-damper system, a standard benchmark from control theory, for varying numbers of regressors (features). The results show almost no binding overhead when binding the asynchronous HPX code using pybind11. Compared to GPyTorch and GPflow, GPRat shows superior scaling on up to 64 cores on an AMD EPYC 7742 CPU for train- ing. Furthermore, our library achieves a prediction speedup of 7.63 over GPyTorch and 25.25 over GPflow. If we increase the number of features from eight to 128, we observe speedups of 29.62 and 21.19, respectively. These results showcase the potential of using asynchronous tasks within Python-based AI applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。