arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1908.08783cs.NEcs.LGstat.ML

学习用于机器编程的适应度函数

Learning Fitness Functions for Machine Programming

Texas A&M University(德克萨斯农工大学);Intel Labs(英特尔实验室)

Shantanu Mandal, Todd A. Anderson, Javier S. Turek, Justin Gottschlich, Shengtian Zhou, Abdullah Muzahid

AI总结:

针对机器编程问题,提出基于遗传算法的框架,利用神经网络学习适应度函数并引入最小侵入式搜索启发式策略,以更少候选程序生成次数发现更多正确程序。

摘要:

自动软件生成的问题被称为机器编程(Machine Programming)。在本研究中,我们提出了一个基于遗传算法的框架来解决这一问题。尽管遗传算法已成功应用于许多问题,但一种批评意见认为,手工设计其适应度函数(即旨在有效引导其进化的测试)可能极具挑战性。我们的框架提出了一种新颖的方法,利用神经网络来预测理想适应度函数的值,从而学习适应度函数。我们还通过一种最小侵入式的搜索启发式策略增强了进化过程。该启发式策略提升了框架从近似正确的程序中发现正确程序的能力,并且计算开销可忽略不计。我们将我们的方法与几种最先进的程序合成方法进行了比较,并证明它能以更少的候选程序生成次数找到更多正确的程序。

英文摘要:

The problem of automatic software generation is known as Machine Programming. In this work, we propose a framework based on genetic algorithms to solve this problem. Although genetic algorithms have been used successfully for many problems, one criticism is that hand-crafting its fitness function, the test that aims to effectively guide its evolution, can be notably challenging. Our framework presents a novel approach to learn the fitness function using neural networks to predict values of ideal fitness functions. We also augment the evolutionary process with a minimally intrusive search heuristic. This heuristic improves the framework's ability to discover correct programs from ones that are approximately correct and does so with negligible computational overhead. We compare our approach with several state-of-the-art program synthesis methods and demonstrate that it finds more correct programs with fewer candidate program generations.

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

↑