arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2607.02854cs.SEcs.LG
收藏

EvoOtter:进化式重现测试生成器

EvoOtter: Evolutionary Reproduction Test Generator

IBM

Toufique Ahmed, Jatin Ganhotra, Avraham Shinnar, Martin Hirzel

AI总结:

研究如何生成错误重现测试,此前方法成本高且反馈不可靠。新方法EvoOtter通过连续减半控制测试执行成本,用批交叉等控制大语言模型成本,以新适应度分数生成高质量测试,成本低。

摘要:

在修复问题之前,通过生成错误重现测试(BRT)来重现问题很有用。然而,生成BRT本身具有挑战性,因为问题描述往往不正式。先前工作通过推理扩展来解决此问题,但成本高且反馈不可靠。本文探索用于BRT生成的进化编程,以强化反馈并控制成本,新方法EvoOtter能以低得多的成本生成高质量BRT。

英文摘要:

Before fixing an issue, it is useful to first reproduce it by generating a bug reproduction test (BRT). However, generating a BRT is itself a challenging task, because issue descriptions tend to be informal, making it difficult to determine whether a candidate BRT indeed fails for the reason in the issue. Prior work has attempted to tackle this problem via inference scaling, using large language models to generate many BRTs and patches, then using execution feedback to select and improve them. Unfortunately, this is expensive and the feedback is unreliable. This paper explores evolutionary programming for BRT generation to sharpen the feedback, while enhancing evolutionary programming to keep costs in check. Our new approach, EvoOtter, controls test execution costs via successive halving. Furthermore, it controls LLM costs via batched crossover for an entire generation in a single LLM call, as well as via rule-based code mutations, with a new fitness score tailored for BRTs. As a result, EvoOtter generates state-of-the-art quality BRTs at the fraction of the cost of prior inference-scaling approaches to this problem. More broadly, this paper points at how to efficiently and effectively combine evolutionary programming with large language models for software engineering.

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

↑