UCL Discovery
UCL home » Library Services » Electronic resources » UCL Discovery

Llm-Assisted Crossover in Genetic Improvement of Software

Bouras, Dimitrios Stamatios; Mechtaev, Sergey; Petke, Justyna; (2025) Llm-Assisted Crossover in Genetic Improvement of Software. In: Proceedings of the 2025 IEEE/ACM International Workshop on Genetic Improvement (GI). (pp. pp. 19-26). IEEE: Ottawa, ON, Canada. Green open access

[thumbnail of main.pdf]
Preview
Text
main.pdf - Accepted Version

Download (146kB) | Preview

Abstract

This study explores the use of Large Language Models to improve the crossover process in genetic programming, as applied in the genetic improvement domain. Traditional crossover techniques typically combine parent variants by selecting modifications uniformly or even randomly, without consideration of contextual relevance, often resulting in inefficient searches and suboptimal solutions due to incompatible or redundant modifications. In contrast, our LLM-assisted crossover leverages context to select and combine edits from parent solutions that are more likely to work well together, with the goal of producing higher quality variants, accelerating optimization. We implemented this approach within MAGPIE, a unified genetic improvement framework. We evaluated against five traditional crossover methods across seven benchmarks, measuring performance on four key metrics: average ranking, best variant execution time, efficiency in reaching performance milestones, and viable variant count. Results show that LLM-assisted crossover achieved an average ranking of 2.27 (on a scale where 1 is best and 6 is worst), making it the top-performing method across benchmarks based on the quality of the optimal variants produced. The LLM-based approach also improved the fitness (execution time) by an average of 8.5 % over the best variant produced by the traditional methods. In terms of efficiency, the LLM-assisted crossover required on average 25.6 % fewer variants to reach 25 % , 50 % , 75 % , and 100 % of the final performance improvement compared to the traditional methods. Additionally, the LLM-assisted crossover produced 4.8 % more viable variants across scenarios, including both source code modification and parameter tuning cases. These findings suggest that LLMs can significantly enhance genetic improvement by guiding the crossover process toward more effective and viable solutions, providing motivation for further research in LLM-assisted search algorithms. Like what you’re reading?

Type: Proceedings paper
Title: Llm-Assisted Crossover in Genetic Improvement of Software
Event: GI 2025: The 14th International Workshop on Genetic Improvement (Co-located with the 47th IEEE/ACM International Conference on Software Engineering, ICSE 2025)
ISBN-13: 979-8-3315-0192-1
Open access status: An open access version is available from UCL Discovery
DOI: 10.1109/GI66624.2025.00012
Publisher version: https://doi.ieeecomputersociety.org/10.1109/GI6662...
Language: English
Additional information: This version is the author accepted manuscript. For information on re-use, please refer to the publisher’s terms and conditions.
Keywords: Crossover, Genetic Improvement, Genetic Programming, Large Language Models, SBSE, Search-Based Software Engineering, Parameter Tuning
UCL classification: UCL
UCL > Provost and Vice Provost Offices > UCL BEAMS
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science > Dept of Computer Science
URI: https://discovery.ucl.ac.uk/id/eprint/10204647
Downloads since deposit
9Downloads
Download activity - last month
Download activity - last 12 months
Downloads by country - last 12 months

Archive Staff Only

View Item View Item