arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.11062cs.DCcs.PF
收藏

CatBoost库中决策树梯度提升预测在RISC-V处理器上的向量化

Vectorization of Gradient Boosting of Decision Trees Prediction in the CatBoost Library for RISC-V Processors

Evgeny Kozinov, Evgeny Vasiliev, Andrey Gorshkov, Valentina Kustikova, Artem Maklaev, Valentin Volokitin, Iosif Meyerov

AI总结:

本文针对RISC-V平台优化CatBoost库,通过在Lichee Pi 4a开发板上使用内联函数对计算密集型循环进行手动向量化,有效利用RVV 0.7.1扩展,使决策树预测速度提升数倍。

摘要:

开放的RISC-V指令集架构的出现与快速发展,为从现有的低功耗物联网板到未来的高性能服务器等高效设备开辟了新视野。有效利用RISC-V CPU需要针对目标平台进行软件优化。本文重点关注CatBoost库的RISC-V特定优化,CatBoost是决策树梯度提升的广泛使用实现之一。CatBoost库已针对商用CPU和GPU进行了深度优化。然而,为了有效利用带有RVV 0.7.1向量扩展的RISC-V CPU资源,需要进行向量化,而目前C++编译器尚无法自动完成此项工作。本文报告了我们在基于RISC-V的Lichee Pi 4a开发板上对CatBoost进行基准测试的经验,并展示了如何使用内联函数对计算密集型循环进行手动向量化,从而根据具体工作负载将决策树的使用速度提高数倍。开发的代码已在GitHub上公开。

英文摘要:

The emergence and rapid development of the open RISC-V instruction set architecture opens up new horizons on the way to efficient devices, ranging from existing low-power IoT boards to future high-performance servers. The effective use of RISC-V CPUs requires software optimization for the target platform. In this paper, we focus on the RISC-V-specific optimization of the CatBoost library, one of the widely used implementations of gradient boosting for decision trees. The CatBoost library is deeply optimized for commodity CPUs and GPUs. However, vectorization is required to effectively utilize the resources of RISC-V CPUs with the RVV 0.7.1 vector extension, which cannot be done automatically with a C++ compiler yet. The paper reports on our experience in benchmarking CatBoost on the Lichee Pi 4a, RISC-V-based board, and shows how manual vectorization of computationally intensive loops with intrinsics can speed up the use of decision trees several times, depending on the specific workload. The developed codes are publicly available on GitHub.

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

↑