Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
156 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
45 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Toward Trustworthy Neural Program Synthesis (2210.00848v2)

Published 29 Sep 2022 in cs.SE, cs.AI, cs.LG, and cs.PL

Abstract: We develop an approach to estimate the probability that a program sampled from a LLM 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 LLM outputs. Our method is simple, easy to implement, and maintains state of the art generation accuracy results.

Citations (4)

Summary

We haven't generated a summary for this paper yet.