贝叶斯优化并行循环调度的概率机器学习方法
A Probabilistic Machine Learning Approach to Scheduling Parallel Loops with Bayesian Optimization
摘要:
提出了一种新的并行循环调度策略-贝叶斯优化增广因子分解自调度(BO FSS)。BO FSS是因子分解自调度(FSS)算法的自动调整变体,基于贝叶斯优化(BO),一种黑盒优化算法。其核心思想是通过BO求解一个优化问题来自动调整FSS的内部参数。调优过程只需要在线测量目标循环的执行时间。为了应用BO,我们使用两个高斯过程(GP)概率机器学习模型来建模执行时间。值得注意的是,我们提出了一个局部感知的GP模型,它假设时间局部性效应类似于一个指数递减函数。通过精确地建模的时间局部性效应,我们的本地感知GP模型加速BO的收敛。我们实现了BO FSS上的GCC实现的OpenMP标准,并评估其性能对其他调度算法。此外,为了量化我们的方法在不同工作负载上的性能变化,或者用我们的术语来说,工作负载鲁棒性,我们测量了极大极小遗憾。根据极大极小遗憾性,BO FSS算法比其他算法表现出更好的一致性。在考虑的工作负载中,BO FSS平均将FSS的执行时间缩短了22%和5%。
英文摘要:
This paper proposes Bayesian optimization augmented factoring self-scheduling (BO FSS), a new parallel loop scheduling strategy. BO FSS is an automatic tuning variant of the factoring self-scheduling (FSS) algorithm and is based on Bayesian optimization (BO), a black-box optimization algorithm. Its core idea is to automatically tune the internal parameter of FSS by solving an optimization problem using BO. The tuning procedure only requires online execution time measurement of the target loop. In order to apply BO, we model the execution time using two Gaussian process (GP) probabilistic machine learning models. Notably, we propose a locality-aware GP model, which assumes that the temporal locality effect resembles an exponentially decreasing function. By accurately modeling the temporal locality effect, our locality-aware GP model accelerates the convergence of BO. We implemented BO FSS on the GCC implementation of the OpenMP standard and evaluated its performance against other scheduling algorithms. Also, to quantify our method's performance variation on different workloads, or workload-robustness in our terms, we measure the minimax regret. According to the minimax regret, BO FSS shows more consistent performance than other algorithms. Within the considered workloads, BO FSS improves the execution time of FSS by as much as 22% and 5% on average.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。