图书馆学习的自顶向下综合
Top-Down Synthesis for Library Learning
摘要:
本文介绍了语料库引导的自顶向下的合成作为一种机制,用于合成库函数,捕捉常见的功能,从一个领域特定语言(DSL)的程序语料库。该算法直接从初始DSL原语构建抽象,使用中间抽象的语法模式匹配来智能地修剪搜索空间,并将算法引导到最大限度地捕获语料库中的共享结构的抽象。我们提出了一个实施的方法,在一个工具,称为缝合和评估它对国家的最先进的演绎库学习算法从DreamCoder。我们的评估表明,Stitch快了3-4个数量级,使用的内存少了2个数量级,同时保持了相当或更好的库质量(以压缩率衡量)。我们还展示了Stitch在包含数百个复杂程序的语料库上的可扩展性,这些程序在以前的演绎方法中是难以处理的,并且根据经验表明,它对于提前终止搜索过程是鲁棒的-进一步允许它通过提前停止扩展到具有挑战性的数据集。
英文摘要:
This paper introduces corpus-guided top-down synthesis as a mechanism for synthesizing library functions that capture common functionality from a corpus of programs in a domain specific language (DSL). The algorithm builds abstractions directly from initial DSL primitives, using syntactic pattern matching of intermediate abstractions to intelligently prune the search space and guide the algorithm towards abstractions that maximally capture shared structures in the corpus. We present an implementation of the approach in a tool called Stitch and evaluate it against the state-of-the-art deductive library learning algorithm from DreamCoder. Our evaluation shows that Stitch is 3-4 orders of magnitude faster and uses 2 orders of magnitude less memory while maintaining comparable or better library quality (as measured by compressivity). We also demonstrate Stitch's scalability on corpora containing hundreds of complex programs that are intractable with prior deductive approaches and show empirically that it is robust to terminating the search procedure early -- further allowing it to scale to challenging datasets by means of early stopping.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。