MTGP: Combining Metamorphic Testing and Genetic Programming

Dominik Sobania, Martin Briesch, Philipp Rochner, Franz Rothlauf
{"title":"MTGP: Combining Metamorphic Testing and Genetic Programming","authors":"Dominik Sobania, Martin Briesch, Philipp Rochner, Franz Rothlauf","doi":"10.48550/arXiv.2301.08665","DOIUrl":null,"url":null,"abstract":"Genetic programming is an evolutionary approach known for its performance in program synthesis. However, it is not yet mature enough for a practical use in real-world software development, since usually many training cases are required to generate programs that generalize to unseen test cases. As in practice, the training cases have to be expensively hand-labeled by the user, we need an approach to check the program behavior with a lower number of training cases. Metamorphic testing needs no labeled input/output examples. Instead, the program is executed multiple times, first on a given (randomly generated) input, followed by related inputs to check whether certain user-defined relations between the observed outputs hold. In this work, we suggest MTGP, which combines metamorphic testing and genetic programming and study its performance and the generalizability of the generated programs. Further, we analyze how the generalizability depends on the number of given labeled training cases. We find that using metamorphic testing combined with labeled training cases leads to a higher generalization rate than the use of labeled training cases alone in almost all studied configurations. Consequently, we recommend researchers to use metamorphic testing in their systems if the labeling of the training data is expensive.","PeriodicalId":206738,"journal":{"name":"European Conference on Genetic Programming","volume":"261 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-01-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"European Conference on Genetic Programming","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.48550/arXiv.2301.08665","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Genetic programming is an evolutionary approach known for its performance in program synthesis. However, it is not yet mature enough for a practical use in real-world software development, since usually many training cases are required to generate programs that generalize to unseen test cases. As in practice, the training cases have to be expensively hand-labeled by the user, we need an approach to check the program behavior with a lower number of training cases. Metamorphic testing needs no labeled input/output examples. Instead, the program is executed multiple times, first on a given (randomly generated) input, followed by related inputs to check whether certain user-defined relations between the observed outputs hold. In this work, we suggest MTGP, which combines metamorphic testing and genetic programming and study its performance and the generalizability of the generated programs. Further, we analyze how the generalizability depends on the number of given labeled training cases. We find that using metamorphic testing combined with labeled training cases leads to a higher generalization rate than the use of labeled training cases alone in almost all studied configurations. Consequently, we recommend researchers to use metamorphic testing in their systems if the labeling of the training data is expensive.
MTGP:结合变形测试和遗传规划
遗传规划是一种进化方法,以其在程序综合方面的性能而闻名。然而,对于实际软件开发中的实际应用来说,它还不够成熟,因为通常需要许多训练用例来生成推广到看不见的测试用例的程序。在实践中,训练用例必须由用户昂贵地手工标记,我们需要一种方法来用较少数量的训练用例检查程序行为。变形测试不需要标记输入/输出示例。相反,程序被执行多次,首先对给定的(随机生成的)输入执行,然后执行相关的输入,以检查观察到的输出之间是否存在某些用户定义的关系。本文提出了一种将变质检验和遗传规划相结合的MTGP方法,并对其性能和生成的程序的可泛化性进行了研究。进一步,我们分析了泛化性如何依赖于给定标记训练案例的数量。我们发现,在几乎所有研究的配置中,将变质测试与标记训练案例结合使用比单独使用标记训练案例具有更高的泛化率。因此,我们建议研究人员在他们的系统中使用变质测试,如果训练数据的标记是昂贵的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信