arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.00848cs.SEcs.AIcs.LGcs.PL
收藏

迈向可信赖的神经程序合成

Toward Trustworthy Neural Program Synthesis

University of YYY(YYY大学);Institute of WWW(WWW研究所)

Darren Key, Wen-Ding Li, Kevin Ellis

AI总结:

本文提出一种方法,通过同时采样候选程序和指定行为的谓词,来估计大型语言模型生成程序的正确性概率,并推断有用谓词以解释代码行为,人类研究显示该方法更受青睐,且保持最先进的生成准确率。

摘要:

我们开发了一种方法来估计从大型语言模型中采样的程序正确的概率。给定一个编程问题的自然语言描述,我们的方法同时采样候选程序以及指定程序应如何行为的候选谓词。这使得能够学习一个形成良好校准的程序正确性概率预测的模型。我们的系统还推断哪些谓词对于解释生成代码的行为是有用的,并且在一项人类研究中,人类更喜欢这些谓词而非原始语言模型输出。我们的方法简单、易于实现,并保持了最先进的生成准确率结果。

英文摘要:

We develop an approach to estimate the probability that a program sampled from a large language model is correct. Given a natural language description of a programming problem, our method samples both candidate programs as well as candidate predicates specifying how the program should behave. This allows learning a model that forms a well-calibrated probabilistic prediction of program correctness. Our system also infers which predicates are useful to explain the behavior of the generated code, and humans preferred these in a human study over raw language model outputs. Our method is simple, easy to implement, and maintains state of the art generation accuracy results.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑