论文标题
具有信息规格的有效务实计划合成
Efficient Pragmatic Program Synthesis with Informative Specifications
论文作者
论文摘要
提供示例是最终用户与程序合成器互动的最常见方法之一。但是,程序合成系统假定与程序一致的示例是随机选择的,并且不会利用用户务实选择示例的事实。先前的工作将程序合成为务实的通信,但需要对整个程序空间进行效率低下的枚举。在本文中,我们表明,可以通过近似于与独立因素的乘积近似程序分布并分别对每个因素进行务实的推断,从而构建既务实又有效的程序合成器。当示例务实地给出示例时,该分布分布近似于确切的关节分布,并且与基本的神经符号程序合成算法兼容。出人意料的是,我们发现合成器假设近似值的性能要比合成器更好,假设在自然人输入上进行评估时,则假设关节分布。这表明人类在交流程序时可能会假设分配。
Providing examples is one of the most common way for end-users to interact with program synthesizers. However, program synthesis systems assume that examples consistent with the program are chosen at random, and do not exploit the fact that users choose examples pragmatically. Prior work modeled program synthesis as pragmatic communication, but required an inefficient enumeration of the entire program space. In this paper, we show that it is possible to build a program synthesizer that is both pragmatic and efficient by approximating the joint distribution of programs with a product of independent factors, and performing pragmatic inference on each factor separately. This factored distribution approximates the exact joint distribution well when the examples are given pragmatically, and is compatible with a basic neuro-symbolic program synthesis algorithm. Surprisingly, we find that the synthesizer assuming a factored approximation performs better than a synthesizer assuming an exact joint distribution when evaluated on natural human inputs. This suggests that humans may be assuming a factored distribution while communicating programs.