paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Efficient Bottom-Up Synthesis for Programs with Local Variables

面向含局部变量程序的高效自底向上合成
POPL 8(POPL)2024匹配度 2/10 · 论文属于经典程序合成(bottom-up synthesis)与PL+AI方向,但用户画像核心是静态分析、LLM/Agentic程序、浮点程序分析与贝叶斯程序分析;该工作未涉及LLM、静态分析或这些交叉主题,仅Web自动化场景与Agentic有非常弱的潜在关联。引用 6 inbox
Xiang Li, Xiangyu Zhou, Rui Dong, Yihong Zhang, Xinyu Wang
crossref: 2026-09-10

AI 速览

一句话:提出 lifted interpretation,使自底向上合成能高效搜索含局部变量(如 lambda)的程序,并实现 Web 自动化工具 Arborist。

本文研究含局部变量(例如 lambda 引入的变量)的程序合成问题。已有自底向上合成算法无法评估带有自由局部变量的程序,因此难以利用观察等价等标准约简技术来缩小搜索空间,导致合成效率低下。作者提出一种新的合成算法,其核心思想是 lifted interpretation:将程序解释过程从一次评估一个程序,提升为同时评估文法生成的所有程序。该机制能够系统性地枚举局部变量的绑定上下文,从而支持对这类程序进行评估并约简搜索空间。作者将方法实例化到 Web 自动化领域,实现了工具 Arborist。实验表明,Arborist 能比 WebRobot、Helena 等前沿技术更高效地自动完成更广泛且更具挑战性的任务。

问题
现有自底向上合成算法无法评估含自由局部变量的程序,因而难以使用观察等价等约简技术,导致此类程序的合成搜索空间过大、效率低下。
方法
提出 lifted interpretation:将解释过程从单程序求值提升为对文法中所有程序同时求值,并系统枚举局部变量的绑定上下文,以支持评估与搜索空间约简。
评估
在 Web 自动化领域实现工具 Arborist,并与 WebRobot、Helena 等最先进技术比较,显示其能更高效地自动完成更广泛且更具挑战性的任务。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2595,
  title = {Efficient Bottom-Up Synthesis for Programs with Local Variables},
  author = {Xiang Li and Xiangyu Zhou and Rui Dong and Yihong Zhang and Xinyu Wang},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {POPL},
  year = {2024},
  doi = {10.1145/3632894}
}