CrossBeam:在自底向上程序合成中学习搜索
CrossBeam: Learning to Search in Bottom-Up Program Synthesis
AI总结:
CrossBeam 提出用神经模型学习自底向上程序合成的搜索策略,根据搜索历史与部分执行选择程序组合方式,并在字符串操作和逻辑编程任务上验证其能以更小的搜索空间实现高效合成。
摘要:
许多程序合成方法在巨大的程序空间中执行搜索,以找到满足给定规范的程序。先前的工作已使用神经模型来指导组合搜索算法,但此类方法仍会探索搜索空间的很大一部分,并且随着所需程序规模的增大,很快变得难以处理。为了抑制搜索空间的爆炸式增长,我们提出训练一个神经模型来学习自底向上合成的实际操作搜索策略,而不是依赖组合搜索算法。我们的方法称为 CrossBeam,使用神经模型来选择如何将先前探索过的程序组合成新程序,同时考虑搜索历史和部分程序执行情况。受结构化预测中学习搜索工作的启发,CrossBeam 使用从其自身在训练任务上的自底向上搜索中提取的数据进行在策略(on-policy)训练。我们在两个截然不同的领域(字符串操作和逻辑编程)中评估了 CrossBeam。我们观察到 CrossBeam 学会了高效搜索,与最先进的方法相比,它探索的程序空间部分要小得多。
英文摘要:
Many approaches to program synthesis perform a search within an enormous space of programs to find one that satisfies a given specification. Prior works have used neural models to guide combinatorial search algorithms, but such approaches still explore a huge portion of the search space and quickly become intractable as the size of the desired program increases. To tame the search space blowup, we propose training a neural model to learn a hands-on search policy for bottom-up synthesis, instead of relying on a combinatorial search algorithm. Our approach, called CrossBeam, uses the neural model to choose how to combine previously-explored programs into new programs, taking into account the search history and partial program executions. Motivated by work in structured prediction on learning to search, CrossBeam is trained on-policy using data extracted from its own bottom-up searches on training tasks. We evaluate CrossBeam in two very different domains, string manipulation and logic programming. We observe that CrossBeam learns to search efficiently, exploring much smaller portions of the program space compared to the state-of-the-art.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。