arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.08716cs.SE
收藏

基于搜索的Python单元测试生成超参数调优

Search-based Hyperparameter Tuning for Python Unit Test Generation

JetBrains Research(JetBrains 研究院);University of Passau(帕绍大学)

Stephan Lukasczyk, Gordon Fraser

AI总结:

本研究提出用差分进化调优Pynguin中DynaMOSA和MIO算法的超参数,实验证明可显著提升测试覆盖率,且比网格搜索更高效。

摘要:

基于搜索的测试生成算法拥有无数的配置选项。用户很少调整这些选项,通常坚持使用默认值,这可能导致无法获得最佳结果。调优算法的超参数是寻找更好超参数值的一种方法,但通常需要高昂的资源需求。元启发式搜索算法——能有效解决测试生成问题——已被提出作为高效调参的解决方案。在本工作中,我们探索使用差分进化来调优Pynguin框架中实现的DynaMOSA和MIO多目标搜索算法的超参数。我们的结果表明,使用调优后的DynaMOSA算法可以显著提高所得测试套件的覆盖率,并且差分进化比基本网格搜索更高效。

英文摘要:

Search-based test-generation algorithms have countless configuration options. Users rarely adjust these options and usually stick to the default values, which may not lead to the best possible results. Tuning an algorithm's hyperparameters is a method to find better hyperparameter values, but it typically comes with a high demand of resources. Meta-heuristic search algorithms -- that effectively solve the test-generation problem -- have been proposed as a solution to also efficiently tune parameters. In this work we explore the use of differential evolution as a means for tuning the hyperparameters of the DynaMOSA and MIO many-objective search algorithms as implemented in the Pynguin framework. Our results show that significant improvement of the resulting test suite's coverage is possible with the tuned DynaMOSA algorithm and that differential evolution is more efficient than basic grid search.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑