paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Oriented Metrics for Bottom-Up Enumerative Synthesis

面向自底向上枚举式合成的定向度量(Oriented Metrics)
POPL 10(POPL)2026匹配度 3/10 · 论文属于程序合成与抽象解释方向,关注搜索空间缩减与oriented metric,理论与工程结合较好;但用户核心方向是LLM/Agent与静态分析、形式化验证的交叉,以及浮点程序分析和贝叶斯程序分析,该论文不涉及LLM/Agent、浮点或贝叶斯方法,仅与PL/形式化方法大类相邻。引用 0 inbox
Roland Meyer, Jakob Tepe
crossref: 2026-09-10

AI 速览

一句话:提出 oriented metric 结构统一搜索空间缩减技术,实现度量通用的自底向上合成器,性能提升逾一个数量级。

语法引导合成(syntax-guided synthesis)的核心困难在于搜索空间极其庞大。作者观察到许多搜索空间并非扁平的程序集合,而是可赋予一种称为 oriented metric(定向度量)的结构:它像普通度量一样衡量程序间距离,但面向操作具有方向性的场景——如字符串拼接、位向量按位与等把输入非对称地变换为输出。论文在字符串与位向量两个域上设计了若干新的定向度量,并据此提出四种搜索空间缩减技术:(i) 将搜索剪枝到真值附近的球内;(ii) 按定向度量诱导的等价关系对搜索空间做因子化;(iii) 对定向度量(及相应等价)做抽象与精化;(iv) 从抽象信息中学习以改进枚举顺序。这些技术被整合为一个新的合成算法并实现为求解器,且求解器对所计算的定向度量保持通用。在字符串与位向量域的实验中,性能稳定优于当前最优方法一个数量级以上。

问题
语法引导合成的搜索空间过大,如何在字符串、位向量等域上有效压缩与组织搜索空间,是提升合成效率的关键难题。
方法
提出 oriented metric 这一非对称距离结构,为字符串与位向量域设计多种定向度量,并基于它给出剪枝到真值球、等价因子化、抽象与精化、以及从抽象信息改进枚举顺序四种技术,集成为一个度量通用的合成算法与求解器。
评估
在字符串与位向量两个域上进行实验,与当前最优方法对比,性能稳定提升超过一个数量级(order of magnitude)。
原文摘要(Abstract)

In syntax-guided synthesis, one of the challenges is to reduce the enormous size of the search space. We observe that most search spaces are not just flat sets of programs, but can be endowed with a structure that we call an oriented metric. Oriented metrics measure the distance between programs, like ordinary metrics do, but are designed for settings in which operations have an orientation. Our focus is on the string and the bitvector domains, where operations like concatenation and bitwise conjunction transform an input into an output in a way that is not symmetric. We develop several new oriented metrics for these domains. Oriented metrics are designed for search space reduction, and we present four techniques: (i) pruning the search space to a ball around the ground truth, (ii) factorizing the search space by an equivalence that is induced by the oriented metric, (iii) abstracting the oriented metric (and hence the equivalence) and refining it, and (iv) improving the enumeration order by learning from abstract information. We acknowledge that these techniques are inspired by developments in the literature. By understanding their roots in oriented metrics, we can substantially increase their applicability and efficiency. We have integrated these techniques into a new synthesis algorithm and implemented the algorithm in a new solver. Notably, our solver is generic in the oriented metric over which it computes. We conducted experiments in the string and the bitvector domains, and consistently improve the performance over the state-of-the-art by more than an order of magnitude.

链接与引用

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

BibTeX
@article{abs-2511-02491,
  title = {Oriented Metrics for Bottom-Up Enumerative Synthesis},
  author = {Roland Meyer and Jakob Tepe},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {POPL},
  year = {2026},
  doi = {10.1145/3776717}
}