arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.12438cs.LGcs.DC
收藏

ML调度器的可转移图优化算法

Transferable Graph Optimizers for ML Compilers

Google(谷歌公司);UC Riverside(加州大学河滨分校);Carnegie Mellon University(卡内基梅隆大学)

Yanqi Zhou, Sudip Roy, Amirali Abdolrashidi, Daniel Wong, Peter Ma, Qiumin Xu, Hanxiao Liu, Phitchaya Mangpo Phothilimthana, Shen Wang, Anna Goldie, Azalia Mirhoseini, James Laudon

摘要:

大多数用于机器学习(ML)框架的编译器需要解决许多相关的优化问题以生成高效的机器码。目前的ML编译器依赖于基于算法的算法来一次解决这些优化问题。然而,这种方法不仅难以维护,而且通常会导致次优解决方案,特别是对于较新的模型架构。文献中现有的基于学习的方法是样本效率低下的,解决单个优化问题,并且不推广到看不见的图,使得它们在实践中不可行。为了解决这些局限性,我们提出了一种端到端的,可转移的深度强化学习方法,用于计算图优化(GO),该方法基于归纳图神经网络上的可扩展顺序注意力机制。GO在整个图上生成决策,而不是在每个节点上自回归,与以前的方法相比,大大加快了搜索速度。此外,我们还提出了循环注意力层来联合优化依赖图优化任务,与TensorFlow默认优化相比,在三个图优化任务上实现了33%-60%的加速。在由多达80,000个节点组成的一组不同的代表性图形上,包括Inception-v3,Transformer-XL和WaveNet,GO在实际系统中评估的设备放置任务上,平均比人类专家提高了21%,比现有技术提高了18%,收敛速度提高了15倍。

英文摘要:

Most compilers for machine learning (ML) frameworks need to solve many correlated optimization problems to generate efficient machine code. Current ML compilers rely on heuristics based algorithms to solve these optimization problems one at a time. However, this approach is not only hard to maintain but often leads to sub-optimal solutions especially for newer model architectures. Existing learning based approaches in the literature are sample inefficient, tackle a single optimization problem, and do not generalize to unseen graphs making them infeasible to be deployed in practice. To address these limitations, we propose an end-to-end, transferable deep reinforcement learning method for computational graph optimization (GO), based on a scalable sequential attention mechanism over an inductive graph neural network. GO generates decisions on the entire graph rather than on each individual node autoregressively, drastically speeding up the search compared to prior methods. Moreover, we propose recurrent attention layers to jointly optimize dependent graph optimization tasks and demonstrate 33%-60% speedup on three graph optimization tasks compared to TensorFlow default optimization. On a diverse set of representative graphs consisting of up to 80,000 nodes, including Inception-v3, Transformer-XL, and WaveNet, GO achieves on average 21% improvement over human experts and 18% improvement over the prior state of the art with 15x faster convergence, on a device placement task evaluated in real systems.

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

↑