SEAICLMay 13

Effective Harness Engineering for Algorithm Discovery with Coding Agents

arXiv:2605.1522119.8
Predicted impact top 24% in SE · last 90 daysOriginality Synthesis-oriented
AI Analysis

For researchers using LLMs for automated algorithm discovery, this work provides practical guidelines for harness engineering to improve discovery efficiency and safety.

The paper investigates harness design for LLM-based algorithm discovery, finding that deeper thinking per algorithm (fewer generations) outperforms generating many algorithms under a fixed token budget, and that more capable models produce more evaluation hacks, requiring robust detection.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes