arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.10211cs.LG
收藏

GEVO-ML:利用进化计算优化机器学习代码

GEVO-ML: Optimizing Machine Learning Code with Evolutionary Computation

Arizona State University(亚利桑那州立大学);Santa Fe Institute(圣塔菲研究所)

Jhe-Yu Liou, Stephanie Forrest, Carole-Jean Wu

AI总结:

GEVO-ML利用多目标进化搜索自动优化MLIR代码,在GPU上提升ML内核性能,兼顾准确率与速度,实现显著帕累托改进。

摘要:

并行加速器(如GPU)是大型机器学习(ML)应用的关键推动者。然而,ML模型开发者往往缺乏对底层系统架构的详细了解,而系统程序员通常对运行在特定系统上的ML模型缺乏高层理解。为了弥合这两个相关领域知识之间的差距,本文提出了GEVO-ML,一种自动发现优化机会并调优ML内核性能的工具,其中模型和训练/预测过程统一表示为单一中间语言——多层中间表示(MLIR)。GEVO-ML使用多目标进化搜索来寻找对最终在GPU上运行的MLIR代码的编辑(突变),在保留所需功能的同时,改善期望标准上的性能。\n我们在两种不同的ML工作负载上演示了GEVO-ML,涵盖模型训练和预测。GEVO-ML为这些模型找到了显著的帕累托改进,在模型准确率从91.2%放宽至89.3%(放宽2%)的情况下,实现了90.43%的性能提升。对于训练工作负载,GEVO-ML在不牺牲训练或测试速度的情况下,将模型准确率从91%提升至96%,提高了4.88%。我们对关键GEVO-ML突变的分析揭示了多样的代码修改,这些修改虽然可能对人类开发者来说陌生,但达到了与人类开发者改进模型设计类似的效果,例如通过改变学习率或剪除非必要的层参数。

英文摘要:

Parallel accelerators, such as GPUs, are key enablers for large-scale Machine Learning (ML) applications. However, ML model developers often lack detailed knowledge of the underlying system architectures, while system programmers usually do not have a high-level understanding of the ML model that runs on the specific system. To mitigate this gap between two relevant aspects of domain knowledge, this paper proposes GEVO-ML, a tool for automatically discovering optimization opportunities and tuning the performance of ML kernels, where the model and training/prediction processes are uniformly represented in a single intermediate language, the Multiple-Layer Intermediate Representation (MLIR). GEVO-ML uses multi-objective evolutionary search to find edits (mutations) to MLIR code that ultimately runs on GPUs, improving performance on desired criteria while retaining required functionality. We demonstrate GEVO-ML on two different ML workloads for both model training and prediction. GEVO-ML finds significant Pareto improvements for these models, achieving 90.43% performance improvement when model accuracy is relaxed by 2%, from 91.2% to 89.3%. For the training workloads, GEVO-ML finds a 4.88% improvement in model accuracy, from 91% to 96%, without sacrificing training or testing speed. Our analysis of key GEVO-ML mutations reveals diverse code modifications, while might be foreign to human developers, achieving similar effects with how human developers improve model design, for example, by changing learning rates or pruning non-essential layer parameters.

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

↑