mlsanityData to 7 Oct 2026

CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generation

arXiv 2502.10802 ↗First posted 15 Feb 2025cs.SE cs.AIcited by 14

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have shown remarkable performance in automated code generation. However, existing approaches often rely heavily on pre-defined test cases, which become impractical in scenarios where such cases are unavailable. While prior works explore filtering techniques between programs and test cases, they overlook the refinement of test cases. To address this limitation, we introduce CoCoEvo, a novel LLM-based co-evolution framework that simultaneously evolves programs and test cases. CoCoEvo eliminates the dependency on pre-defined test cases by generating both programs and test cases directly from natural language problem descriptions and function headers. The framework employs specialized evolutionary operators, including LLM-based crossover and mutation operators for program evolution, along with an additional test case generation operator for test case evolution. Additionally, we propose optimization strategies such as a crossover rate scheduler to balance exploration and convergence, and a multi-objective optimization method for test case selection. Experimental results on multiple state-of-the-art LLMs demonstrate that CoCoEvo surpasses existing methods, achieving state-of-the-art performance in automated code generation and testing. These results underscore the potential of co-evolutionary techniques in advancing the field of automated programming.

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 33 of its 58 references that are in the map. First posted on arXiv 15 Feb 2025.

Builds on

33 of 58 references.

References · 33

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  4. 2024GPT-4o System Cardcited by 4,467
  5. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  6. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  7. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  8. 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 542
  9. 2022CodeT: Code Generation with Generated Testscited by 369
  10. 2024ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolutioncited by 266
  11. 2024Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Modelcited by 258
  12. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
21 more
  1. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
  2. 2019SPoC: Search-based Pseudocode to Codecited by 176
  3. 2023EvoPrompting: Language Models for Code-Level Neural Architecture Searchcited by 129
  4. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
  5. 2022Natural Language to Code Translation with Executioncited by 122
  6. 2023Language Model Crossover: Variation through Few-Shot Promptingcited by 119
  7. 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
  8. 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
  9. 2024Automated Unit Test Improvement using Large Language Models at Metacited by 73
  10. 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
  11. 2021TOGA: A Neural Method for Test Oracle Generationcited by 57
  12. 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
  13. 2023Algorithm Evolution Using Large Language Modelcited by 52
  14. 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
  15. 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancementcited by 27
  16. 2024TOGLL: Correct and Strong Test Oracle Generation with LLMscited by 23
  17. 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
  18. 2024TestART: Improving LLM-based Unit Testing via Co-evolution of Automated Generation and Repair Iterationcited by 20
  19. 2023Neural-Based Test Oracle Generation: A Large-scale Evaluation and Lessons Learnedcited by 9
  20. 2024REACCEPT: Automated Co-evolution of Production and Test Code Based on Dynamic Validation and Large Language Modelscited by 5
  21. 2024AutoTest: Evolutionary Code Solution Selection with Test Casescited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 9.

14 papers.

Sort:

By area: