HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
This paper introduces HarnessOpt-Bench, a novel benchmark designed to evaluate the ability of frontier LLMs to iteratively optimize agentic harnesses (including prompts, tools, and orchestration code) under resource constraints, demonstrating that this optimization capability is a distinct and measurable skill with significant room for improvement.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a brilliant, super-smart robot brain. It can write code, solve math problems, and answer questions. But this brain doesn't work in a vacuum; it needs a "harness." Think of the harness as the robot's suit of armor, its instruction manual, and its control panel all rolled into one. It's the code that tells the brain how to use its tools, what to remember, and how to talk to the outside world. Just like a race car needs a great driver and a well-tuned engine to win, a smart AI needs a smart brain and a great harness to perform well. Sometimes, the same brain can be a genius in one suit and a clumsy beginner in another.
Now, here's the big question: Can we teach an AI to fix its own suit? Can an AI look at its own harness, realize it's clunky, and rewrite the code to make itself smarter? This is called "harness optimization." It's a bit like asking a chef to not only cook a meal but also to redesign the kitchen, sharpen the knives, and rewrite the recipe book while they are cooking, all without knowing exactly how the judges will taste the final dish until the very end. This is a massive challenge because fixing the suit is expensive and tricky; you have to guess what works without seeing the final score, and you have to do it before you run out of "energy" (or in this case, computer time and money).
This is exactly what the researchers at Scale AI set out to test with a new experiment called HarnessOpt-Bench. They built a special, secure playground where different top-tier AI models act as "optimizers." Their job? To take a basic, slightly clumsy AI agent (the "seed"), read its code, and try to improve it. The catch is that the optimizer has a strict budget: it can only run a limited number of tests to see if its changes work. It gets hints from some test runs (development and validation), but the final, real score is hidden until it submits its very best version.
The researchers wanted to see if these AI models could actually get better at this task. They ran 111 different experiments using five of the smartest AI models available today, testing them in two ways: once using a standard, shared "toolkit" (a common coding harness) and once using their own native, built-in toolkits. They measured success by how much the AI improved the agent's performance compared to the original, clumsy version.
Here is what they found, and it's a bit surprising. First, the AI models themselves matter a lot more than the toolkit they are using. The difference in performance between the smartest AI and the least smart AI was huge—almost twice as big as the difference caused by changing the toolkit. This suggests that the "brain" is the real star, not just the "suit" it's wearing.
Second, having a fancy, native toolkit didn't guarantee a win. You might think an AI would do best with its own custom-built tools, but the results were mixed. Sometimes the native toolkit helped, sometimes it didn't, and sometimes the standard toolkit was actually better. There was no consistent "home-field advantage."
Third, the way the AIs searched for solutions mattered. The ones that tried to tinker with more parts of the code (like the prompts, the memory, the retry rules, and the tools) tended to get better results. However, the AIs didn't spend much time reading the detailed "failure reports" (traces) of what went wrong. They mostly looked at the final scores. This suggests that for these tasks, looking at the big picture was more useful than obsessing over every tiny mistake.
Finally, the AIs were often too optimistic. The scores they saw while they were searching (on the "practice" tests) were usually higher than the scores they got on the final, hidden test. This means the AIs sometimes thought they had found a perfect solution, but when the real judges saw it, it wasn't quite as good.
In short, this paper shows that harness optimization is a real, measurable skill that frontier AI models possess, but they are still learning how to do it consistently. The best models can significantly improve an agent's performance, but they aren't perfect yet. They need to learn to be less overconfident and maybe read the failure reports a bit more closely. The takeaway? We are moving toward a future where AI doesn't just do tasks, but also learns to build better versions of itself, but we still have a long way to go before they can do it reliably without human help.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.