arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.14717cs.PL
收藏

通过抽象解释实现最优程序合成

Optimal Program Synthesis via Abstract Interpretation

University of Pennsylvania(宾夕法尼亚大学)

Stephen Mell, Steve Zdancewic, Osbert Bastani

AI总结:

本文提出了一种基于抽象解释的框架,用于在领域特定语言中高效合成最优程序,通过A*搜索和抽象转换器提升可扩展性。

摘要:

我们考虑在一组输入输出示例上合成带有数值常数的程序,以优化定量目标(如准确性)。我们提出了一种通用框架,用于在给定的领域特定语言(DSL)中合成此类程序,并具有可证明的最优性保证。我们的框架在一般搜索图中枚举程序,其中节点代表混凝土程序的子集。为了提高可扩展性,它结合了A*搜索与基于抽象解释的搜索启发式方法;直观上,这种启发式方法在搜索图中子树的价值上建立上限,使合成器能够识别并剪枝可证明次优的子树。此外,我们提出了一种自然的策略,用于构建单调语义的抽象转换器,这是DSL中组件的常见属性。最后,我们在两个现有的DSL中实现我们的方法,证明我们的算法比现有的最优合成器更具可扩展性。

英文摘要:

We consider the problem of synthesizing programs with numerical constants that optimize a quantitative objective, such as accuracy, over a set of input-output examples. We propose a general framework for optimal synthesis of such programs in a given domain specific language (DSL), with provable optimality guarantees. Our framework enumerates programs in a general search graph, where nodes represent subsets of concrete programs. To improve scalability, it uses A* search in conjunction with a search heuristic based on abstract interpretation; intuitively, this heuristic establishes upper bounds on the value of subtrees in the search graph, enabling the synthesizer to identify and prune subtrees that are provably suboptimal. In addition, we propose a natural strategy for constructing abstract transformers for monotonic semantics, which is a common property for components in DSLs for data classification. Finally, we implement our approach in the context of two such existing DSLs, demonstrating that our algorithm is more scalable than existing optimal synthesizers.

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

↑