arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.03705cs.PLcs.AIcs.SE
收藏

针对含局部变量程序的高效自底向上综合方法

Efficient Bottom-Up Synthesis for Programs with Local Variables

University of Michigan, Ann Arbor, USA(密歇根大学安娜堡分校);University of Washington, USA(华盛顿大学)

Xiang Li, Xiangyu Zhou, Rui Dong, Yihong Zhang, Xinyu Wang

AI总结:

针对含局部变量的程序自底向上综合时搜索空间难缩减、速度慢的问题,提出基于提升解释的新型综合算法,可系统枚举变量绑定上下文以缩减搜索空间,应用于网页自动化的工具Arborist性能优于现有前沿技术。

摘要:

我们提出了一种新型综合算法,可高效搜索含局部变量(例如由lambda表达式引入的变量)的程序。传统自底向上综合算法无法对含自由局部变量的程序进行求值,因此无法有效缩减这类程序的搜索空间(例如无法使用标准的观测等价性约简技术),导致综合速度缓慢。我们的算法能够缩减含局部变量的程序的搜索空间,其核心思路被称为提升解释(lifted interpretation),即将程序解释过程从一次对单个程序求值,提升为同时对来自某一文法的所有程序求值。提升解释提供了一种系统枚举局部变量所有绑定上下文的机制,从而使我们能够对含局部变量的程序进行求值并缩减其搜索空间。我们将这些思路应用于网页自动化领域,由此得到的工具Arborist相比WebRobot、Helena等现有前沿技术,能够更高效地完成范围广得多的高难度任务。

英文摘要:

We propose a new synthesis algorithm that can efficiently search programs with local variables (e.g., those introduced by lambdas). Prior bottom-up synthesis algorithms are not able to evaluate programs with free local variables, and therefore cannot effectively reduce the search space of such programs (e.g., using standard observational equivalence reduction techniques), making synthesis slow. Our algorithm can reduce the space of programs with local variables. The key idea, dubbed lifted interpretation, is to lift up the program interpretation process, from evaluating one program at a time to simultaneously evaluating all programs from a grammar. Lifted interpretation provides a mechanism to systematically enumerate all binding contexts for local variables, thereby enabling us to evaluate and reduce the space of programs with local variables. Our ideas are instantiated in the domain of web automation. The resulting tool, Arborist, can automate a significantly broader range of challenging tasks more efficiently than state-of-the-art techniques including WebRobot and Helena.

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

↑