arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.16805cs.AIcs.LG
收藏

简单基线在代码进化中具有竞争力

Simple Baselines are Competitive with Code Evolution

University of Oxford(牛津大学)

Yonatan Gideoni, Sebastian Risi, Yarin Gal

AI总结:

该研究发现简单基线在代码进化任务中表现优异,指出搜索空间设计和评估方法改进是未来研究重点。

摘要:

代码进化是一类依赖大语言模型搜索可能计算机程序的技术,通过进化或变异现有代码来实现。许多提出的代码进化流水线表现出色,但往往没有与更简单的基线进行比较。我们测试了两个简单基线在三个领域中的表现:寻找更好的数学界限、设计代理框架以及机器学习竞赛。我们发现,在这三个领域中,简单基线与更复杂的办法相匹配或超过。通过分析这些结果,我们发现代码进化在开发和使用中存在诸多不足。对于数学界限,一个问题的搜索空间和提示中的领域知识主要决定了搜索的性能上限和效率,而代码进化流水线则是次要的。因此,寻找改进界限的主要挑战是设计良好的搜索空间,这由领域专家完成,而不是搜索本身。在设计代理框架时,我们发现框架的高变异性与小数据集相结合,导致次优框架被选择,最终手设计的多数投票框架表现最佳。我们提出了更好的评估方法,以减少评估的随机性,同时保持代码进化的经济可行性。最后,我们讨论了未来工作的途径和最佳实践,以促进更严谨的代码进化。

英文摘要:

Code evolution is a family of techniques that rely on large language models to search through possible computer programs by evolving existing code. While code evolution pipelines have shown impressive performance across domains, many are highly complex and are typically not compared to simpler alternatives. To prevent bad comparisons from stagnating the field, we propose two simple baselines and compare them to popular pipelines across several domains: finding better mathematical bounds, designing agentic scaffolds, developing heuristic combinatorial optimization algorithms, and machine learning competitions. Surprisingly, the baselines match or outperform existing methods across all domains, prompting a closer look at which factors drive performance in different settings. For mathematical bounds, we find that the search space matters far more than the exact search algorithm, with both simple and complex methods performing similarly given the same search space. Thus, expanding the search space is what matters for improving performance, and does so across all pipelines. Moreover, different domain knowledge embedded in prompts can significantly affect the search's efficiency, potentially leading to overestimating a pipeline's sample efficiency. For automated agentic scaffold design, we show that typical high-variance evaluations lead to all automated search methods picking subpar scaffolds relative to a simple majority vote. To mitigate this, we propose improved evaluation procedures that reduce stochasticity while keeping the search economically feasible. Overall, these results indicate that further improving code evolution's performance depends more on the setup surrounding the search pipeline than on the pipeline itself. We hope these insights will enable developing new code evolution methods and help spur meaningful progress in the field.

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

↑