EvoGPT: Leveraging LLM-Driven Seed Diversity to Improve Search-Based Test Suite Generation
Not on the map. Why?
Abstract (arXiv)
Search-Based Software Testing (SBST) is a well-established approach for automated unit test generation, yet it often suffers from premature convergence and limited diversity in the generated test suites. Recently, Large Language Models (LLMs) have emerged as an alternative technique for unit test generation. We present EvoGPT, a hybrid test generation system that integrates LLM-based test generation with SBST-based test suite optimization. EvoGPT uses LLMs to generate an initial population of test suites, and uses an Evolutionary Algorithm (EA) to further optimize this test suite population. A distinguishing feature of EvoGPT is its explicit enforcement of diversity, achieved through the use of multiple temperatures and prompt instructions during test generation. In addition, each LLM-generated test is refined using a generation-repair loop and coverage-guided assertion generation. To address evolutionary plateaus, EvoGPT also detects stagnation during search and injects additional LLM-generated tests aimed at previously uncovered branches. Here too diversity is enforced using multiple temperatures and prompt instructions. We evaluate EvoGPT on Defects4J, a standard benchmark for test generation. The results show that EvoGPT achieves, on average, a 10% improvement in both code coverage and mutation score metrics compared to TestART, an LLM-only baseline; and EvoSuite, a standard SBST baseline. An ablation study indicates that explicitly enforcing diversity both at initialization and during the search is key to effectively leveraging LLMs for automated unit test generation.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 15 of its 36 references that are in the map. First posted on arXiv 18 May 2025.
Builds on
15 of 36 references.
References · 15
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
- 2023Large Language Models as Evolutionary Optimizerscited by 122
- 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 94
- 2024Evolutionary Computation in the Era of Large Language Model: Survey and Roadmapcited by 89
- 2022Pynguin: Automated Unit Test Generation for Pythoncited by 49
- 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tellcited by 36
- 2023A3Test: Assertion-Augmented Automated Test Case Generationcited by 33
- 2025Mutation-Guided LLM-based Test Generation at Metacited by 23
- 2024TestART: Improving LLM-based Unit Testing via Co-evolution of Automated Generation and Repair Iterationcited by 20
- 2025Test Wars: A Comparative Study of SBST, Symbolic Execution, and LLM-Based Approaches to Unit Test Generationcited by 7
3 more
- 2024Understanding the Role of Temperature in Diverse Question Generation by GPT-4cited by 5
- 2021Learning How to Search: Generating Effective Test Cases Through Adaptive Fitness Function Selectioncited by 4
- 2024Improving the Readability of Automatically Generated Tests using Large Language Modelscited by 3
Built on by
Citing papers per year: 2025: 2.
2 papers.