Skip to main navigation Skip to search Skip to main content

Multi-objective Grammar-guided Genetic Programming with Code Similarity Measurement for Program Synthesis

  • University College Dublin
  • Lerothe Irish Software Research Centre

Research output: Chapter in Book or Conference Publication/ProceedingConference Publicationpeer-review

5 Citations (Scopus)

Abstract

Grammar-Guided Genetic Programming (G3P) is widely recognised as one of the most successful approaches for program synthesis, i.e., the task of automatically discovering an executable piece of code given user intent. G3P has been shown capable of successfully evolving programs in arbitrary languages that solve several program synthesis problems based only on a set of input/output examples. Despite its success, the restriction on the evolutionary system to only leverage input/output error rate during its assessment of the programs it derives limits its scalabil-ity to larger and more complex program synthesis problems. With the growing number and size of open software repositories and generative artificial intelligence approaches, there is a sizeable and growing number of approaches for retrieving/generating source code (potentially several partial snippets) based on textual problem descriptions. Therefore, it is now, more than ever, time to introduce G3P to other means of user intent (particularly textual problem descriptions). In this paper, we would like to assess the potential for G3P to evolve programs based on their similarity to particular target codes of interest (obtained using some code retrieval/generative approach). Through our experimental evaluation on a well-known program synthesis benchmark, we have shown that G3P successfully manages to evolve some of the desired programs with all four considered similarity measures. However, in its default configuration, G3P is not as successful with similarity measures as it is with the classical input/output error rate when solving program synthesis problems. Therefore, we propose a novel multi-objective G3P approach that combines the similarity to the target program and the traditional input/output error rate. Our experiments show that compared to the error-based G3P, the multi-objective G3P approach could improve the success rate of specific problems and has great potential to improve on the traditional G3P system.

Original languageEnglish
Title of host publication2022 IEEE Congress on Evolutionary Computation, CEC 2022 - Conference Proceedings
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9781665467087
DOIs
Publication statusPublished - 2022
Event2022 IEEE Congress on Evolutionary Computation, CEC 2022 - Padua, Italy
Duration: 18 Jul 202223 Jul 2022

Publication series

Name2022 IEEE Congress on Evolutionary Computation, CEC 2022 - Conference Proceedings

Conference

Conference2022 IEEE Congress on Evolutionary Computation, CEC 2022
Country/TerritoryItaly
CityPadua
Period18/07/2223/07/22

Keywords

  • Code Similarity
  • Grammar-Guided Genetic Programming
  • Multi-Objective Optimization
  • Program Synthesis

Fingerprint

Dive into the research topics of 'Multi-objective Grammar-guided Genetic Programming with Code Similarity Measurement for Program Synthesis'. Together they form a unique fingerprint.

Cite this