arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.02811cs.SEcs.AIcs.NE
收藏

MAGPIE:通过软件进化实现机器自动化的通用性能改进

MAGPIE: Machine Automated General Performance Improvement via Evolution of Software

University College London(伦敦大学学院)

Aymeric Blot, Justyna Petke

摘要:

性能是软件最重要的质量之一。因此,已经提出了几种技术来改善它,如程序转换,优化软件参数,或编译器标志。许多自动化的软件改进方法使用类似的搜索策略来探索可能的改进空间,然而可用的工具一次只关注一种方法。这使得比较和探索各种类型的改进的相互作用变得不切实际。我们提出了一个统一的软件改进框架MAGPIE。它提供了一个基于通用编辑序列的表示,将搜索过程与特定的改进技术隔离开来,从而实现了更简化的协同工作流程。我们提供了一个案例研究,使用一个基本的本地搜索比较编译器优化,算法配置和遗传改进。我们选择运行时间作为我们的效率指标,并在四个真实世界的软件上评估了我们的方法,这些软件是用C、C++和Java编写的。我们的研究结果表明,独立使用,所有的技术发现显着的运行时间的改善:高达25%的编译器优化,97%的算法配置,和61%的进化源代码使用遗传改进。我们还表明,高达10%的性能进一步提高,可以得到不同的技术发现的变体的部分组合。此外,通用表示还可以同时探索所有技术,为单独使用每种技术提供了一种有竞争力的替代方案。

英文摘要:

Performance is one of the most important qualities of software. Several techniques have thus been proposed to improve it, such as program transformations, optimisation of software parameters, or compiler flags. Many automated software improvement approaches use similar search strategies to explore the space of possible improvements, yet available tooling only focuses on one approach at a time. This makes comparisons and exploration of interactions of the various types of improvement impractical. We propose MAGPIE, a unified software improvement framework. It provides a common edit sequence based representation that isolates the search process from the specific improvement technique, enabling a much simplified synergistic workflow. We provide a case study using a basic local search to compare compiler optimisation, algorithm configuration, and genetic improvement. We chose running time as our efficiency measure and evaluated our approach on four real-world software, written in C, C++, and Java. Our results show that, used independently, all techniques find significant running time improvements: up to 25% for compiler optimisation, 97% for algorithm configuration, and 61% for evolving source code using genetic improvement. We also show that up to 10% further increase in performance can be obtained with partial combinations of the variants found by the different techniques. Furthermore, the common representation also enables simultaneous exploration of all techniques, providing a competitive alternative to using each technique individually.

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

↑