mlsanityData to 14 Oct 2026

Towards Functional Correctness of Large Code Models with Selective Generation

arXiv 2505.13553 ↗First posted 19 May 2025cs.SE cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

The hallucination of code generation models hinders their applicability to systems requiring higher safety standards. One critical bottleneck in addressing code hallucination is the difficulty of identifying the functional correctness of generated code, due to its unnatural form. We address this core bottleneck by automatically generating unit tests using dynamic code analysis tools, leveraging the executable nature of code. Accordingly, we propose a selective code generator that abstains from uncertain generations -- based on the functional correctness evaluated by generated unit tests -- to theoretically control the correctness among non-abstained answers, ie the false discovery rate. Finally, we propose to use generated unit tests in evaluation as well as in learning for precise code evaluation, calling this paradigm FuzzEval. We demonstrate the efficacy of our method along with the controllability of code hallucination and reasonable selection efficiency.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 31 of its 49 references that are in the map. First posted on arXiv 19 May 2025.

Builds on

31 of 49 references.

References · 31

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  4. 2021Program Synthesis with Large Language Modelscited by 3,637
  5. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  6. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  7. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  9. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  10. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  11. 2021Measuring Coding Challenge Competence With APPScited by 902
  12. 2017Selective Classification for Deep Neural Networkscited by 852
19 more
  1. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
  2. 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 812
  3. 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
  4. 2022CodeT: Code Generation with Generated Testscited by 384
  5. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  6. 2024Large Language Models for Mathematical Reasoning: Progresses and Challengescited by 284
  7. 2023Conformal Language Modelingcited by 170
  8. 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 136
  9. 2024Language Models with Conformal Factuality Guaranteescited by 131
  10. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
  11. 2025S*: Test Time Scaling for Code Generationcited by 98
  12. 2024Automated Unit Test Improvement using Large Language Models at Metacited by 75
  13. 2024Calibration and Correctness of Language Models for Codecited by 49
  14. 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
  15. 2024A Deep Dive into Large Language Models for Automated Bug Localization and Repaircited by 39
  16. 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 35
  17. 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 34
  18. 2023Selective Generation for Controllable Language Modelscited by 15
  19. 20243DGen: AI-Assisted Generation of Provably Correct Binary Format Parserscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.