Skip to content

Functional correctness of large code models for selective generationTowards Functional Correctness of Large Code Models with Selective Generation

arXiv· arXiv:2505.13553· Jaewoo Jeong, Taesoo Kim, Sangdon Park·Indexed by this site · 25 days ago· Originally publishedAlignment
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.

Read originalarxiv.org