English

Toward Trustworthy Neural Program Synthesis

Software Engineering 2023-10-11 v2 Artificial Intelligence Machine Learning Programming Languages

Abstract

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.

Keywords

Cite

@article{arxiv.2210.00848,
  title  = {Toward Trustworthy Neural Program Synthesis},
  author = {Darren Key and Wen-Ding Li and Kevin Ellis},
  journal= {arXiv preprint arXiv:2210.00848},
  year   = {2023}
}

Comments

9 pages, 8 figures

R2 v1 2026-06-28T02:35:50.176Z