Grafy News
Try Grafy free

Stronger Models Beat Fancier Search in Program Search Test

Tran and Hamid at Meta compared models, search methods and budgets across 20 tasks, finding model choice mattered most. See what to fund first.

Illustration for the news story: Stronger Models Beat Fancier Search in Program Search TestSource: Grafy Research Lab

Tran and Hamid at Meta report a controlled comparison of the model, the search method and the compute budget in LLM-driven program search, covering 20 tasks, seven methods and nine models scored in one shared environment. For a team with a fixed budget, the finding matters because a stronger model generally gained more than a better search method, while a larger budget brought diminishing returns, according to the authors.

Program search starts with a program and a scoring function, according to Tran and Hamid. A coding agent proposes a change, an evaluator scores it, and a search method chooses which programs to build on next. Repeating that cycle has produced strong results in earlier work cited by the authors, including FunSearch's larger cap sets in dimension 8 and AlphaEvolve's 4×44 \times 4 complex matrix multiplication with 48 scalar multiplications, one fewer than Strassen's 1969 method.

What did Tran and Hamid compare?

Earlier studies usually changed one input at a time and counted cost by attempts, model calls, dollars or compute, using different tasks and scoring, according to Tran and Hamid. They therefore could not show how to divide a fixed budget among model, method and attempts.

The study by Tran and Hamid at Meta holds the coding-agent harness fixed within each model family. Every proposal is made by a coding agent. It compares three open evolutionary systems — OpenEvolve, ShinkaEvolve and CodeEvolve — with four simple controls: Independent Sampling, Random-Parent Search, Greedy Search and Parallel Greedy Search. Nine models from Claude, Codex and Qwen are scored in one shared environment, with cost tracked in attempts, net tokens and token rate units, or TRU.

Why were half the tasks too saturated to rank methods?

Half of the 20 tasks were too saturated to rank methods, including popular ones, according to the authors. On such tasks most runs reach the same top score, so no input can be shown to matter.

The ten tasks with headroom come from six domains: mathematical constructions, performance engineering, machine-learning design, control, black-box and engineering optimisation, and programming. Where published instances and best answers were available online and might have been memorised, the authors generated new instances. They also re-scored the same programs to measure scoring noise. All four Claude models were run with every method on each task with headroom, and six tasks were tested more thoroughly with five seeds across all three families.

Does the cost unit change which search method wins?

The ranking depends on what is held equal, according to Tran and Hamid. Per attempt, an evolutionary system ranks first for Codex and Qwen, but those systems spend up to 4.3 times the median net tokens. At equal computational cost, no evolutionary system is clearly better than Greedy Search and Parallel Greedy Search, which build on the best program found so far.

With Codex models, the authors report a reversal: CodeEvolve ranks first at the same number of attempts, while Parallel Greedy Search ranks first at the same token budget. Pooling results, CodeEvolve and ShinkaEvolve are most efficient per attempt, and Parallel Greedy Search is most efficient per token. A claim that a method leads therefore needs its cost unit stated beside it.

What matters more: a stronger model or a better method?

On tasks with headroom, a stronger model achieved more than a better search method for Claude and Qwen, and about as much for Codex, according to the authors. They summarise the resulting priority for practitioners as model first, a simple greedy loop second and compute budget last.

The controls help explain that advice. Each rung adds one ingredient to the one below it, from independent sampling to random-parent selection to greedy building on the best program. If a published evolutionary system does not clearly beat those controls at equal cost, added machinery described in some adaptive variants — archives, crossover or evolving prompts — has not been shown to be the best use of the next unit of spending.

What happens when the compute budget grows?

A larger budget gave diminishing returns in the reported test. With Sonnet on three tasks, moving from 1,000 to 3,000 attempts tripled computational cost with no clear improvement, according to Tran and Hamid.

Building on the findings, the authors propose Strong-First Parallel Greedy Search, or SFPG, which hands each parallel chain from a strong model to a computationally cheaper one. On held-out tasks it matched the quality of Parallel Greedy Search and the open systems at 0.16–0.70 times their price-weighted computational cost in token rate units. In the authors' figure, every interval for SFPG's lead includes zero, consistent with matching rather than clearly beating the other methods.

How can readers test these trade-offs in Grafy?

The closest Grafy app is Grafy Code, an AI coding studio. Readers can apply the authors' discipline there: fix the task and scoring, change one input at a time, and record attempts and tokens, not only the final score.

For model comparison, Grafy Chat lets readers chat with many AI models side by side, which fits testing whether a stronger model changes the proposals before investing in a more elaborate search loop. Grafy Reader can be used to read, search and question the paper itself. The transferable point is the order of testing — model, then simple method, then budget — not a claim that Grafy reproduces the authors' shared scoring environment.

Frequently asked questions

What should be funded first: model, method or budget?

According to Tran and Hamid, the order of priority is model first, a simple greedy loop second and compute budget last. A stronger model achieved more than a better search method for Claude and Qwen, and about as much for Codex. At equal computational cost, no evolutionary system was clearly better than Greedy Search or Parallel Greedy Search.

Does tripling the number of attempts improve the result?

Not clearly in the test reported by the authors. With Sonnet on three tasks, increasing attempts from 1,000 to 3,000 tripled the computational cost with no clear improvement. The authors describe this as diminishing returns from a larger compute budget, rather than evidence that more attempts never help on any task or budget range.

What is Strong-First Parallel Greedy Search?

Strong-First Parallel Greedy Search, or SFPG, is the method Tran and Hamid propose after their comparison. It hands each parallel chain from a strong model to a computationally cheaper one. On held-out tasks, the authors report that SFPG matched the quality of Parallel Greedy Search and the open evolutionary systems at 0.16 to 0.70 times their price-weighted cost in token rate units.


Source: Grafy Research Lab — The Economics of LLM-Driven Program Search: What Model, Method, and Budget Achieve