学习超级优化现实世界的程序
Learning to Superoptimize Real-world Programs
摘要:
程序优化是修改软件以更有效地执行的过程。超级优化器试图通过使用更昂贵的搜索和约束求解技术来找到最优程序。通常,这些方法不能很好地扩展到真实开发场景中的程序,因此,超级优化在很大程度上局限于小规模,特定领域和/或合成程序基准。在本文中,我们提出了一个框架,学习超优化现实世界的程序,通过使用神经序列到序列模型。我们创建了一个数据集,其中包含从开源项目中挖掘的超过25 K的真实x86-64汇编函数,并提出了一种方法,自模仿学习优化(SILO),该方法易于实现,并且优于我们数据集上的标准策略梯度学习方法。我们的方法,SILO,superoptimized 5.9%的测试集相比,gcc版本10.3编译器的积极优化水平-O3。我们还报告说,我们的测试集上的SILO的超级优化率是标准策略梯度方法和编译器优化演示预训练模型的五倍以上。
英文摘要:
Program optimization is the process of modifying software to execute more efficiently. Superoptimizers attempt to find the optimal program by employing significantly more expensive search and constraint solving techniques. Generally, these methods do not scale well to programs in real development scenarios, and as a result, superoptimization has largely been confined to small-scale, domain-specific, and/or synthetic program benchmarks. In this paper, we propose a framework to learn to superoptimize real-world programs by using neural sequence-to-sequence models. We created a dataset consisting of over 25K real-world x86-64 assembly functions mined from open-source projects and propose an approach, Self Imitation Learning for Optimization (SILO) that is easy to implement and outperforms a standard policy gradient learning approach on our dataset. Our method, SILO, superoptimizes 5.9% of our test set when compared with the gcc version 10.3 compiler's aggressive optimization level -O3. We also report that SILO's rate of superoptimization on our test set is over five times that of a standard policy gradient approach and a model pre-trained on compiler optimization demonstration.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。