计算机科学 > 软件工程
[提交于 2022年9月29日]
标题:Toward Trustworthy Neural Program Synthesis
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Darren Key[v1] 2022年9月29日 星期四 20:32:07 UTC