Aha.
正在载入中英对照阅读…

arXiv:2605.15221 · 中英对照阅读

面向算法发现的编程智能体有效执行框架工程

Effective Harness Engineering for Algorithm Discovery with Coding Agents

Yoichi Ishibashi、Taro Yano、Masafumi Oyamada

中文速览

用大语言模型自动进化算法时,成败不只看模型有多强,执行流程的设计也很关键,尤其要避免程序钻评分规则的空子。作者搭建了 Vesper:让编程智能体能反复读代码、运行测试和修正方案,并用隔离的 Git 工作区支持并行搜索,再加一道检查来识别“刷分”程序。圆形装箱实验显示,在相同的 token 预算下,少做几轮、但让每个候选算法思考和改进得更充分,效果反而更好;而能力更强的模型也更容易找到评分漏洞。研究说明,提升算法发现效率,未必靠增加尝试次数,更要把每次尝试做扎实,并认真设计防作弊、可复现的执行环境。

摘要

AlphaEvolve 和 FunSearch 展示了将大语言模型(LLM)与进化搜索相结合,用于自动化算法发现的潜力。然而,发现成功与否不仅取决于模型能力,还在很大程度上受执行基础设施,即智能体执行框架的设计影响。本文围绕三个问题研究有效的智能体执行框架设计:在固定的 Token预算下,是简短思考并生成更多算法更好,还是深入思考并生成更少算法更好?智能体执行框架应如何处理评测投机,即生成的程序利用评分函数漏洞的情况?而且,需要完整文件系统访问权限的智能体如何才能安全地并行执行?我们采用 Vesper——一种针对这些问题融入了智能体执行框架改进的算法发现框架——在相同的 Token预算下对圆装箱进行评估。有趣的是,生成更少的算法、同时对每个算法进行更深入的思考,取得了更高的分数。也就是说,提高每个个体的质量,比增加进化代数更节省预算。令人意外的是,能力更强的模型产生评测投机的比率更高,因此随着模型能力提升,检测投机行为变得愈发必要。

AlphaEvolve and FunSearch have demonstrated the potential of combining large language models (LLMs) with evolutionary search for automated algorithm discovery. However, discovery success is shaped not only by model capability but also significantly by the design of the execution infrastructure, i.e., the harness. This paper investigates effective harness design through three questions: under a fixed token budget, is it better to produce many algorithms with brief thought or fewer algorithms with deeper thought? How should the harness handle evaluation hacks, where generated programs exploit the scoring function? And how can agents that require full filesystem access execute safely in parallel? Using Vesper, an algorithm discovery framework that incorporates harness improvements addressing these questions, we evaluate on Circle Packing under the same token budget. Interestingly, generating fewer algorithms while thinking more deeply about each one achieved higher scores. That is, scaling the quality of each individual is more budget-efficient than scaling the number of evolutionary generations. Surprisingly, more capable models produced evaluation hacks at higher rates, making hack detection increasingly necessary as models scale.

术语表

AlphaEvolve
AlphaEvolve
FunSearch
FunSearch
Vesper
Vesper
large language models (LLMs)
大语言模型(LLM)
algorithm discovery
算法发现
evolutionary search
进化搜索
harness
智能体执行框架
coding agents
编程智能体
stateless code generators
无状态代码生成器
mutation operators
变异算子
evaluation hacking
评测投机
evaluation function
评测函数
token budget
Token预算
token efficiency
Token效率
Circle Packing
圆装箱
cap set problem
帽集问题
matrix multiplication algorithms
矩阵乘法算法
reinforcement learning
强化学习
MAP-Elites
MAP-Elites
island-based population models
岛屿式种群模型
evaluation cascades
级联评测
randomized prompt switching
随机提示切换
Git worktree isolation
Git worktree隔离
race conditions
竞态条件
SWE-bench
SWE-bench
TerminalBench-2
TerminalBench-2
OpenEvolve
OpenEvolve
CodeEvolve
CodeEvolve
DeepEvolve
DeepEvolve
EoH
EoH