Functional correctness of large code models for selective generationTowards Functional Correctness of Large Code Models with Selective Generation
AI summary
To address the hallucination problem in code generated by large code models, the research proposes a selective code generator: it uses dynamic code analysis tools to automatically generate unit tests, then, based on functional correctness, has the model abstain on uncertain outputs, so as to theoretically control the false discovery rate of non-abstained answers. The authors also propose FuzzEval, which uses the generated unit tests for both code evaluation and learning.