Top-Down Synthesis for Library Learning

Author:

Bowers Matthew1ORCID,Olausson Theo X.1ORCID,Wong Lionel1ORCID,Grand Gabriel1ORCID,Tenenbaum Joshua B.1ORCID,Ellis Kevin2ORCID,Solar-Lezama Armando1ORCID

Affiliation:

1. Massachusetts Institute of Technology, USA

2. Cornell University, USA

Abstract

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.

Funder

NSF

DARPA

AFOSR

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference57 articles.

1. Explicit substitutions

2. A Survey of Machine Learning for Big Code and Naturalness

3. Mining idioms from source code

4. Matej Balog , Alexander L Gaunt , Marc Brockschmidt , Sebastian Nowozin , and Daniel Tarlow . 2016 . Deepcoder: Learning to write programs. arXiv preprint arXiv:1611.01989. Matej Balog, Alexander L Gaunt, Marc Brockschmidt, Sebastian Nowozin, and Daniel Tarlow. 2016. Deepcoder: Learning to write programs. arXiv preprint arXiv:1611.01989.

Cited by 6 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Programming-by-Demonstration for Long-Horizon Robot Tasks;Proceedings of the ACM on Programming Languages;2024-01-05

2. Programming by Example Made Easy;ACM Transactions on Software Engineering and Methodology;2023-11-24

3. A model of conceptual bootstrapping in human cognition;Nature Human Behaviour;2023-10-16

4. ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured Primitives;ACM Transactions on Graphics;2023-07-26

5. DreamCoder: growing generalizable, interpretable knowledge with wake–sleep Bayesian program learning;Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences;2023-06-05

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3