Searching for Quality: Genetic Algorithms and Metamorphic Testing for Software Engineering ML

Research output: Chapter in Book/Conference proceedings/Edited volumeConference contributionScientificpeer-review

25 Downloads (Pure)

Abstract

More machine learning (ML) models are introduced to the field of Software Engineering (SE) and reached a stage of maturity to be considered for real-world use; But the real world is complex, and testing these models lacks often in explainability, feasibility and computational capacities. Existing research introduced meta-morphic testing to gain additional insights and certainty about the model, by applying semantic-preserving changes to input-data while observing model-output. As this is currently done at random places, it can lead to potentially unrealistic datapoints and high computational costs. With this work, we introduce genetic search as an aid for metamorphic testing in SE ML. Exploiting the delta in output as a fitness function, the evolutionary intelligence optimizes the transformations to produce higher deltas with less changes. We perform a case study minimizing F1 and MRR for Code2Vec on a representative sample from java-small with both genetic and random search. Our results show that within the same amount of time, genetic search was able to achieve a decrease of 10% in F1 while random search produced 3% drop.

Original languageEnglish
Title of host publicationGECCO 2023 - Proceedings of the 2023 Genetic and Evolutionary Computation Conference
PublisherACM/IEEE
Pages1490–1498
Number of pages9
ISBN (Electronic)979-8-4007-0119-1
DOIs
Publication statusPublished - 2023
EventGenetic and Evolutionary Computation Conference - Lisbon, Lisbon, Portugal
Duration: 15 Jul 202319 Jul 2023
https://gecco-2023.sigevo.org/HomePage

Publication series

NameGECCO 2023 - Proceedings of the 2023 Genetic and Evolutionary Computation Conference

Conference

ConferenceGenetic and Evolutionary Computation Conference
Abbreviated titleGECCO 2023
Country/TerritoryPortugal
CityLisbon
Period15/07/2319/07/23
Internet address

Keywords

  • Search-based software engineering
  • Evolutionary algorithms
  • Metamorphic testing
  • Machine Learning

Fingerprint

Dive into the research topics of 'Searching for Quality: Genetic Algorithms and Metamorphic Testing for Software Engineering ML'. Together they form a unique fingerprint.

Cite this