TL;DR
When we evaluate LLM "discovery agents" that iteratively write and refine code, we usually only look at their final score under one fixed software setup (a harness). This paper opens up the black box, running 1,728 search trajectories across six models, 24 tasks, and four harness configurations. It turns out that the "best" harness depends heavily on both the model and the task—and even when two models tie on final score, they can take wildly different paths to get there.
What Problem Does This Paper Address?
LLM discovery agents—systems that propose code, check it against an external evaluator, and iterate—are tackling everything from GPU kernel optimization to mathematical packing problems. Benchmarks typically report a single number: the best final score achieved under a fixed harness (the scaffolding that feeds the model its history, evaluator feedback, and reflection prompts).
That single number leaves two big blind spots:
- Harness sensitivity: Would Model A still beat Model B if we changed how feedback or history is delivered?
- Process blindness: Did an agent reach its score through steady, surgical refinement, or by repeatedly throwing everything out and starting over? Knowing how an agent searches matters when deciding where to spend extra compute or how to improve the agent's controller.
Methods
The authors introduce a process-level evaluation framework with three pieces:
- A Four-Level Harness Ladder: Every configuration allows up to 150 evaluated edits, but varies what the model sees and controls:
- $L_0$: Sees the task, incumbent score, and incumbent code, following a fixed
REFINE/REWRITEschedule. - $L_{0f}$: Adds evaluator feedback from the immediately preceding step.
- $L_1$: Adds recent trajectory history (last 10 steps) and lets the model choose whether to
REFINEorREWRITE. - $L_2$: Retains $L_1$ and adds a periodic reflection summary updated every five edits.
- Behavioral Profiles: Using an 18-label vocabulary for per-step edit intent (e.g., algorithmic, representational, parameter, or maintenance changes), the authors summarize each trajectory with 60 features across four families: trajectory dynamics (plateaus, regressions), edit composition, strategy diversity, and revert behavior.
- Capability-Demand Annotations: Five PhD-level raters annotated each task's algorithmic demand and representational demand (low, medium, or high) without seeing model results.
Datasets
The core study evaluates six contemporary LLMs—three closed-weight (claude-opus-4-6, gpt-5.4, gemini-3.1-pro-preview) and three open-weight (deepseek-v3.2, gpt-oss-120b, Qwen3-Next-80B-A3B-Instruct)—across 24 discovery tasks drawn from SkyDiscover and Frontier-CS. The tasks span four families:
- Mathematical optimization (3 tasks): e.g., signal processing, 12-hexagon packing.
- GPU kernels (6 tasks): execution-time optimization.
- ADRS-style systems (5 tasks): e.g., SQL workload routing, transaction scheduling.
- Algorithmic coding (10 tasks): Frontier-CS problems scored by hidden-test pass rate.
Crossing 6 models × 24 tasks × 4 harnesses × 3 runs yields 1,728 trajectories. The authors also collect 32,400 independent task-only proposals for a Best-of-$N$ baseline, plus 324 fresh replication trajectories and 108 trajectories for a targeted controller experiment.
Key Insights and Ideas
- No harness rules them all: Adding more scaffolding doesn't universally help. A harness that boosts one model can actively hurt another, and swapping harnesses can completely reverse model rankings.
- Score equivalence $\neq$ behavioral equivalence: Even when closed-API and open-weight models achieve virtually identical final scores on the same task, their search styles differ. In this panel, closed-API models favor steady refinement, while open-weight models explore a broader mix of strategies, make more structural rewrites, and revert changes more often.
- Sequential search shines on hard problems: Compared to independent Best-of-$N$ sampling (which sees no feedback or history), sequential search with immediate feedback ($L_{0f}$) pulls ahead specifically on high-algorithmic-demand tasks. On easier tasks, independent sampling remains competitive.
Key Results
- Model–harness reversals: Averaging across all tasks, moving from $L_{0f}$ to $L_2$ boosts Claude by +0.142 (95% CI
[+0.067, +0.211]) but hurts GPT-5.4 by -0.175 ([-0.269, -0.077]). On math optimization, GPT-OSS beats Claude under $L_0$ (0.479 vs. 0.362), but loses badly under $L_2$ (0.469 vs. 0.850). - Persistent behavioral gaps: After controlling for task, harness, final score, and trajectory length, open-weight models in this panel still show higher diversity entropy (+0.633 SD), higher rewrite ratios (+0.481 SD), and higher revert rates (+0.408 SD) than closed-API models.
- Sequential vs. Best-of-150: On the 9 high-algorithmic-demand tasks, $L_{0f}$ outperforms Best-of-150 by +0.122 (
[+0.063, +0.177]). - Practical diagnostic uses:
- Short pilots: Using just the first 50 edits to pick a harness per model–task pair improves held-out scores from 0.528 to 0.562 (+0.034), using one-third the budget of full-length pilots.
- Targeted controller ($L_{2t}$): Forcing a
REWRITEwith a new strategy after five non-improving edits improves $L_2$'s terminal score from 0.465 to 0.535 (+0.070), recovering about 55% of the gap to $L_{0f}$ (0.592).
Limitations and Future Work
The authors note several boundaries:
- Fixed edit budgets $\neq$ equal compute: Reflection and mode-selection calls in $L_1$ and $L_2$ don't count against the 150-edit limit, meaning $L_2$ uses roughly twice as many tokens as $L_{0f}$ (2.913M vs. 1.456M mean tokens).
- Panel scope: The observed differences between closed-API and open-weight models describe this specific six-model panel, not inherent properties of model openness.
- Generalization: The replication and controller experiments target specific subsets of models and tasks; predicting how an arbitrary intervention will transfer to unseen tasks or newer models remains an open challenge.
Summary updated