The Program Testing Ability of Large Language Models for Code
Not on the map. Why?
Abstract (arXiv)
Recent development of large language models (LLMs) for code like CodeX and CodeT5+ demonstrates tremendous promise in achieving code intelligence. Their ability of synthesizing code that completes a program for performing a pre-defined task has been intensively tested and verified on benchmark datasets including HumanEval and MBPP. Yet, evaluation of these LLMs from more perspectives (than just program synthesis) is also anticipated, considering their broad scope of applications in software engineering. In this paper, we explore the ability of LLMs for testing programs/code. By performing thorough analyses of recent LLMs for code in program testing, we show a series of intriguing properties of these models and demonstrate how program testing ability of LLMs can be improved. Following recent work which utilizes generated test cases to enhance program synthesis, we further leverage our findings in improving the quality of the synthesized programs and show +11.77% and +4.22% higher code pass rates on HumanEval+ comparing with the GPT-3.5-turbo baseline and the recent state-of-the-art, respectively.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 27 of its 42 references that are in the map. First posted on arXiv 9 Oct 2023.
Builds on
27 of 42 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023StarCoder: may the source be with you!cited by 790
15 more
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
- 2022Natural Language to Code Translation with Executioncited by 122
- 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
- 2021TOGA: A Neural Method for Test Oracle Generationcited by 57
- 2023Understanding Programs by Exploiting (Fuzzing) Test Casescited by 13
- 2021An Empirical Study of Automated Unit Test Generation for Pythoncited by 10
- 2022Methods2Test: A dataset of focal methods mapped to test casescited by 10
- 2023Code Representation Pre-training with Complements from Program Executionscited by 8
Built on by
Citing papers per year: 2024: 5; 2025: 3; 2026: 3.
11 papers.
- 2025HoarePrompt: Structural Reasoning About Program Correctness in Natural Languagecited by 7
- 2024UniTSyn: A Large-Scale Dataset Capable of Enhancing the Prowess of Large Language Models for Program Testingcited by 5
- 2024Model Cascading for Code: A Cascaded Black-Box Multi-Model Framework for Cost-Efficient Code Completion with Self-Testingcited by 5
- 2024Test Code Generation for Telecom Software Systems using Two-Stage Generative Modelcited by 2
- 2025WorkTeam: Constructing Workflows from Natural Language with Multi-Agentscited by 2
- 2025HarnessLLM: Automatic Testing Harness Generation via Reinforcement Learningcited by 2
- 2026Understanding LLM-Driven Test Oracle Generationcited by 2
- 2024Inferring Pluggable Types with Machine Learningcited by 0
- 2024Better Python Programming for all: With the focus on Maintainabilitycited by 0
- 2026Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code Qualitycited by 0
- 2026Finding the Right Evidence: Factor-Guided Coarse-to-Fine Reasoning for Long Videoscited by 0
- 2026Finding the Right Evidence: Factor-Guided Coarse-to-Fine Reasoning for Long Videos26 Aug 2026
- 2026Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code Quality16 Jul 2026
- 2026Understanding LLM-Driven Test Oracle Generation9 Jan 2026
- 2025HarnessLLM: Automatic Testing Harness Generation via Reinforcement Learning2 Nov 2025
- 2025WorkTeam: Constructing Workflows from Natural Language with Multi-Agents28 Mar 2025
- 2025HoarePrompt: Structural Reasoning About Program Correctness in Natural Language25 Mar 2025
- 2024Better Python Programming for all: With the focus on Maintainability17 Aug 2024
- 2024Inferring Pluggable Types with Machine Learning21 Jun 2024
- 2024Model Cascading for Code: A Cascaded Black-Box Multi-Model Framework for Cost-Efficient Code Completion with Self-Testing24 May 2024
- 2024Test Code Generation for Telecom Software Systems using Two-Stage Generative Model14 Apr 2024
- 2024UniTSyn: A Large-Scale Dataset Capable of Enhancing the Prowess of Large Language Models for Program Testing4 Feb 2024