传统机器学习应用的性能特征分析与优化
Performance Characterization and Optimizations of Traditional ML Applications
AI总结:
针对传统机器学习在大数据集下性能特征分析的缺失,研究识别了关键性能瓶颈,并在scikit-learn中引入软件预取、数据布局与计算重排序优化,实现5.2%-28.0%的性能提升。
摘要:
即使在基于深度学习方法的时代,使用大型数据集的传统机器学习方法依然持续受到广泛关注。然而,我们发现这些方法在大型训练数据集背景下的详细性能特征分析存在明显缺失。在本研究中,我们研究了在流行的免费软件库/模块中实现的多种传统ML方法的系统行为,以识别这些应用所面临的关键性能瓶颈。性能特征研究揭示了关于这些应用性能的若干有趣见解。随后,我们评估了在缓存和主存层面应用一些已知优化所带来的性能收益。更具体地说,我们测试了以下优化的有效性:(i) 软件预取以改善缓存性能,以及 (ii) 数据布局和计算重排序优化以改善DRAM访问的局部性。这些优化作为对知名scikit-learn库的修改来实现,因此应用程序员可以轻松加以利用。我们通过仿真与在真实系统上执行相结合的方式,评估了所提优化的影响。软件预取优化在不同ML应用上带来了5.2%-27.1%的性能收益,而数据布局和计算重排序方法则产生了6.16%-28.0%的性能提升。
英文摘要:
Even in the era of Deep Learning based methods, traditional machine learning methods with large data sets continue to attract significant attention. However, we find an apparent lack of a detailed performance characterization of these methods in the context of large training datasets. In this work, we study the system's behavior of a number of traditional ML methods as implemented in popular free software libraries/modules to identify critical performance bottlenecks experienced by these applications. The performance characterization study reveals several interesting insights on the performance of these applications. Then we evaluate the performance benefits of applying some well-known optimizations at the levels of caches and the main memory. More specifically, we test the usefulness of optimizations such as (i) software prefetching to improve cache performance and (ii) data layout and computation reordering optimizations to improve locality in DRAM accesses. These optimizations are implemented as modifications to the well-known scikit-learn library, and hence can be easily leveraged by application programmers. We evaluate the impact of the proposed optimizations using a combination of simulation and execution on a real system. The software prefetching optimization results in performance benefits varying from 5.2%-27.1% on different ML applications while the data layout and computation reordering approaches yield 6.16%-28.0% performance improvement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。