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