大規模機械学習プログラムの生成実行計画のコスト評価
Costing Generated Runtime Execution Plans for Large-Scale Machine Learning Programs
Costing Generated Runtime Execution Plans for Large-Scale Machine Learning Programs
@misc{boehm2015costing,
title = {Costing Generated Runtime Execution Plans for Large-Scale Machine Learning Programs},
author = {Matthias Boehm},
year = {2015},
eprint = {1503.06384},
archivePrefix = {arXiv},
primaryClass = {cs.DC},
url = {https://arxiv.org/abs/1503.06384}
}
Boehm, M. (2015). Costing Generated Runtime Execution Plans for Large-Scale Machine Learning Programs [Preprint]. arXiv. https://doi.org/10.48550/arXiv.1503.06384
BOEHM M. Costing Generated Runtime Execution Plans for Large-Scale Machine Learning Programs[EB/OL]. (2015-03-22)[2026-11-29]. https://arxiv.org/abs/1503.06384.
要旨
宣言型大規模機械学習(ML)は、高レベル言語を用いて ML アルゴリズムを記述し、単一ノードのインメモリ計算から MapReduce(MR)や Spark などの類似フレームワーク上での分散計算に至るまで、ハイブリッドな実行計画の自動生成を目的とする。大規模 ML プログラムのコンパイルには、自動最適化の多くの機会が存在する。高度なコストベース最適化技術は、最適化決定の影響を評価するための正確なコストモデルを、基本的な前提条件として必要とする。本論文では、ML プログラムの代替実行計画のコスト評価のための、単純かつ頑健ながら正確な手法に関する知見を共有する。当社のコストモデルは、実行計画の生成とコスト評価に依存し、すべての連続的な最適化フェーズを自動的に反映する。実行計画のコスト評価は、ループや分岐などの制御フロー構造、および I/O、レイテンシ、計算コストなど多様なコスト要因を捉える。最後に、これらのコスト要因をすべて単一の期待実行時間指標に線形化する。SystemML 内では、このコストモデルはリソース最適化やグローバルデータフロー最適化などの高度な最適化器によって活用されている。本論文では、ML プログラムの最適化のための基礎を確立するために、我々が学んだ教訓を共有する。
Declarative large-scale machine learning (ML) aims at the specification of ML algorithms in a high-level language and automatic generation of hybrid runtime execution plans ranging from single node, in-memory computations to distributed computations on MapReduce (MR) or similar frameworks like Spark. The compilation of large-scale ML programs exhibits many opportunities for automatic optimization. Advanced cost-based optimization techniques require-as a fundamental precondition-an accurate cost model for evaluating the impact of optimization decisions. In this paper, we share insights into a simple and robust yet accurate technique for costing alternative runtime execution plans of ML programs. Our cost model relies on generating and costing runtime plans in order to automatically reflect all successive optimization phases. Costing runtime plans also captures control flow structures such as loops and branches, and a variety of cost factors like IO, latency, and computation costs. Finally, we linearize all these cost factors into a single measure of expected execution time. Within SystemML, this cost model is leveraged by several advanced optimizers like resource optimization and global data flow optimization. We share our lessons learned in order to provide foundations for the optimization of ML programs.