通过交互式草图绘制合成草图
Synthesizing Queries via Interactive Sketching
摘要:
我们提出了一种新的方法来程序合成,重点是合成数据库查询。在一个高层次上,我们提出的算法作为输入的草图与软约束编码用户的意图,然后迭代地与用户进行交互,以完善草图。在每一步,我们的算法提出了一个候选细化的草图,用户可以接受或拒绝。通过利用这种丰富的用户反馈形式,我们的算法能够解决用户意图中的模糊性并提高可扩展性。特别是,假设用户提供了准确的输入和响应,那么我们的算法保证收敛到真正的程序(即,用户认可的一个)在多项式时间内。我们执行我们的算法的定性评估,显示它可以用来合成各种查询的学术出版物的数据库。
英文摘要:
We propose a novel approach to program synthesis, focusing on synthesizing database queries. At a high level, our proposed algorithm takes as input a sketch with soft constraints encoding user intent, and then iteratively interacts with the user to refine the sketch. At each step, our algorithm proposes a candidate refinement of the sketch, which the user can either accept or reject. By leveraging this rich form of user feedback, our algorithm is able to both resolve ambiguity in user intent and improve scalability. In particular, assuming the user provides accurate inputs and responses, then our algorithm is guaranteed to converge to the true program (i.e., one that the user approves) in polynomial time. We perform a qualitative evaluation of our algorithm, showing how it can be used to synthesize a variety of queries on a database of academic publications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。