potentialpaper

Understanding the Challenges in Iterative Generative Optimization with LLMs

Allen Nie, Xavier Daull, Zhiyi Kuang, Abhinav Akkiraju, Anish Chaudhuri, Max Piasevoli, Ryan Rong, YuCheng Yuan, Prerit Choudhary, Shannon Xiao, Rasool Fakoor, Adith Swaminathan, Ching-An Cheng

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We analyze and study the hidden design choices of an LLM optimization loop and how they impact final solution through starting artifacts (initial system conditions), credit horizon, and experience batching.

Abstract. Generative optimization uses large language models (LLMs) to iteratively improve artifacts (such as code, workflows or prompts) using execution feedback. It is a promising approach to building self-improving agents, yet in practice remains brittle: despite active research, only 9% of surveyed agents used any automated optimization. We argue that this brittleness arises because, to set up a learning loop, an engineer must make "hidden" design choices: What can the optimizer edit and what is the ``right'' learning evidence to provide at each update? We investigate three factors that affect most applications: the starting artifact, the credit horizon for execution traces, and batching trials and errors into learning evidence. Through case studies in MLAgentBench, Atari, and BigBench Extra Hard, we find that these design decisions can determine whether generative optimization succeeds, yet they are rarely made explicit in prior work. Different starting artifacts determine which solutions are reachable in MLAgentBench, truncated traces can still improve Atari agents, and larger minibatches do not monotonically improve generalization on BBEH. We then study these factors jointly in harness optimization on TBLite, evaluated on Terminal-Bench 2.0. We also propose a batch-size and credit-horizon rule that, calibrated on TBLite, transfers to DeepSWE after adjusting to its token costs and comes within 1% of the best configuration tested at each context budget.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Summary

This paper studies iterative generative optimization with LLMs. The authors investigate three system variables that shape this process (the initial artifact, the credit horizon for execution traces, and experience batching) and, through case studies on MLAgentBench, Atari games, and BigBench Extra Hard, document how different settings substantially affect optimization outcomes. They conclude that these choices are task-dependent and that no single recipe reliably yields the best performance across settings.

Strengths

  • The research topic is interesting and timely.

  • The paper offers empirical analysis across a diverse set of domains.

Weaknesses

  • Reviewers raised a number of detailed and important concerns regarding the experimental conditions and setup. The authors are encouraged to review these carefully and address them.

  • The most critical issue, however, concerns the paper's central conclusion. While the analysis itself pursues a valuable and worthwhile direction, the main takeaway—that these choices are task-dependent and that no single recipe reliably yields the best performance across settings—feels overly broad. As a scientific finding, this conclusion risks reading as something most practitioners would already expect, rather than a novel insight. It would strengthen the paper considerably to go beyond we ran experiments and found that outcomes differ across cases and to articulate more clearly what specific, non-obvious insights the analysis surfaces (e.g., why certain factors matter more in particular regimes, or actionable principles that generalize beyond the individual case studies).

Overall Assessment

Overall, the reviewers raise several critical concerns and questions that the authors will need to address. Without adequately addressing these concerns, it is difficult to recommend acceptance of this paper.

Post-rebuttal

Reviewers initially worried that the paper mainly confirmed an intuitive expectation (i.e., the starting artifact, credit horizon, and experience batching matter) without offering non-obvious or generalizable insights. During a rebuttal discussion, the authors addressed this substantively: they gave a clear selection criterion for the three factors, repositioned the contribution as an empirical characterization, and introduced an "optimization geometry" framing where batch size and credit horizon share a single context-token budget. From this, they derived a concrete, non-obvious rule validated across two domains (TBLite and DeepSWE), turning the takeaway into actionable guidance.

I consider this a solid contribution and recommend Accept (poster). The authors must incorporate all of the rebuttal additions into the final version.

Final justification

Reviewers initially worried that the paper mainly confirmed an intuitive expectation (i.e., the starting artifact, credit horizon, and experience batching matter) without offering non-obvious or generalizable insights. During a rebuttal discussion, the authors addressed this substantively: they gave a clear selection criterion for the three factors, repositioned the contribution as an empirical characterization, and introduced an "optimization geometry" framing where batch size and credit horizon share a single context-token budget. From this, they derived a concrete, non-obvious rule validated across two domains (TBLite and DeepSWE), turning the takeaway into actionable guidance.

I consider this a solid contribution and recommend Accept (poster). The authors must incorporate all of the rebuttal additions into the final version.

Area Chair ifQY · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Summary

This paper studies iterative generative optimization with LLMs. The authors investigate three system variables that shape this process (the initial artifact, the credit horizon for execution traces, and experience batching) and, through case studies on MLAgentBench, Atari games, and BigBench Extra Hard, document how different settings substantially affect optimization outcomes. They conclude that these choices are task-dependent and that no single recipe reliably yields the best performance across settings.

Strengths

  • The research topic is interesting and timely.

  • The paper offers empirical analysis across a diverse set of domains.

Weaknesses

  • Reviewers raised a number of detailed and important concerns regarding the experimental conditions and setup. The authors are encouraged to review these carefully and address them.

  • The most critical issue, however, concerns the paper's central conclusion. While the analysis itself pursues a valuable and worthwhile direction, the main takeaway—that these choices are task-dependent and that no single recipe reliably yields the best performance across settings—feels overly broad. As a scientific finding, this conclusion risks reading as something most practitioners would already expect, rather than a novel insight. It would strengthen the paper considerably to go beyond we ran experiments and found that outcomes differ across cases and to articulate more clearly what specific, non-obvious insights the analysis surfaces (e.g., why certain factors matter more in particular regimes, or actionable principles that generalize beyond the individual case studies).

Overall Assessment

Overall, the reviewers raise several critical concerns and questions that the authors will need to address. Without adequately addressing these concerns, it is difficult to recommend acceptance of this paper.

Post-rebuttal

Reviewers initially worried that the paper mainly confirmed an intuitive expectation (i.e., the starting artifact, credit horizon, and experience batching matter) without offering non-obvious or generalizable insights. During a rebuttal discussion, the authors addressed this substantively: they gave a clear selection criterion for the three factors, repositioned the contribution as an empirical characterization, and introduced an "optimization geometry" framing where batch size and credit horizon share a single context-token budget. From this, they derived a concrete, non-obvious rule validated across two domains (TBLite and DeepSWE), turning the takeaway into actionable guidance.

I consider this a solid contribution and recommend Accept (poster). The authors must incorporate all of the rebuttal additions into the final version.

Final justification

Reviewers initially worried that the paper mainly confirmed an intuitive expectation (i.e., the starting artifact, credit horizon, and experience batching matter) without offering non-obvious or generalizable insights. During a rebuttal discussion, the authors addressed this substantively: they gave a clear selection criterion for the three factors, repositioned the contribution as an empirical characterization, and introduced an "optimization geometry" framing where batch size and credit horizon share a single context-token budget. From this, they derived a concrete, non-obvious rule validated across two domains (TBLite and DeepSWE), turning the takeaway into actionable guidance.

I consider this a solid contribution and recommend Accept (poster). The authors must incorporate all of the rebuttal additions into the final version.

Reviewer drVFOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies iterative generative optimization with LLMs, where an LLM optimizer improves artifacts such as code, prompts, or agent workflows using feedback. The authors focus on three key factors: starting artifact, credit horizon, and experience batching. Through case studies on MLAgentBench, Atari, and BigBench Extra Hard, the paper shows that these factors can substantially affect optimization outcomes, and the best setup is often task-dependent.

Strengths and weaknesses

Strengths

  1. The paper studies an important problem: how to set up the learning loop for LLM-based optimization. Instead of only proposing another optimizer or agent framework, it highlights hidden design choices that are often treated as implementation details but can strongly affect performance.

  2. The empirical evaluation covers multiple tasks, including MLAgentBench, Atari, and BigBench Extra Hard tasks. This makes the observations of this paper more convincing and helps show that sensitivity to learning-loop design is an important issue across LLM-based optimization problems.

Weaknesses

1. Why are these three factors the key factors? The paper studies starting artifact, credit horizon, and experience batching, but it does not clearly justify why these three are the most important design choices in LLM-based optimization. Feedback oracle design, optimizer LLM choice, search/update algorithm, editable parameterization, and context formatting may also strongly affect the learning loop. The authors should either provide a clear selection criterion for these three factors or weaken the claim from “key factors” to “three important factors studied in this paper.”

2. How should the initial system and oracle be designed for a new task? The paper defines a learning loop with an initial system and an oracle, but in the experiments, these components are manually designed and task-specific. For MLAgentBench, the initial system is a code skeleton; for Atari, it is a modular policy program; for BBEH, it is a prompt plus answer extraction code. This raises a practical question: given a new task, what exactly should be included in the initial system and oracle?

3. What is the default choice for starting artifact, credit horizon, and batch size? The paper shows that the best setup is task-dependent, but it does not tell the reader how to choose a reasonable default for a new task. Should one start with a modular artifact or a single editable block? Should the credit horizon be short or long? Should batch size start from 1, 3, 5, or something else?

4. The experiments show sensitivity, but not a general design principle. The empirical results support the claim that these factors matter, but they do not provide a general method for designing them. For example, one-function vs. multi-function initialization across two ML tasks; one-step vs. multi-step credit horizon across Atari games; and the best batch size varies across BBEH tasks. These are useful observations, but the takeaway is mostly “try different settings.” The paper should either provide stricter generalizable rules or clearly position the contribution as an empirical characterization rather than practical guidance. Without a set of universal design guidelines, the takeaways in this paper, while descriptive, cannot be applied in practice.

5. The analogy to classical ML needs a clear contribution. The paper argues that starting artifact, credit horizon, and experience batching parallel initialization, temporal credit assignment, and minibatch size in classical ML. This analogy is reasonable, but it is also expected. The paper should explain what is specifically new in the LLM-based setting. For example, what design insight do we gain because the optimizer operates over prompts, code, and natural-language traces rather than differentiable parameters?

Questions

Please see the questions listed in the Weakness.

Limitations

The paper acknowledges that the setup of LLM-based optimization is task-dependent. Still, it does not sufficiently explain how readers should choose starting artifacts, credit horizons, or batch sizes for new tasks. It should also clarify why these three factors are prioritized over other factors, such as feedback-oracle design or optimizer choice.

Final justification

The authors provided additional results and conclusions to support their research findings. I have raised the rating to 4 to acknowledge their efforts.

Formatting concerns

No

6 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the most detailed review we received. We are very willing to engage in a discussion with you about the contribution in our paper.

A lot of your questions are hitting the conceptual motivation of our papers and we want to revise the paper according to your suggestions to be useful for the LLM optimization community.

"Why are these three factors the key factors?... Feedback oracle design, optimizer LLM choice, search/update algorithm, editable parameterization, and context formatting may also strongly affect the learning loop..."

We fully agree that those factors matter, and we should have stated our selection criterion explicitly. It has two parts:

  1. The factor is a property of the learning loop itself. We want to study the learning loop as an abstract construction in the paper. Starting artifact, credit horizon, and experience batching must be set in any generative-optimization setup, whichever optimizer, framework, or backbone is used.
  2. The factor is not already the subject of a literature. Search/update algorithm design is in the optimizer literature (OPRO, TextGrad, MIPRO, GEPA, and others). Optimizer-LLM choice is addressed by model comparisons. Feedback-oracle design is studied by many people. Context formatting is studied under prompt engineering. Our three factors, by contrast, are typically set implicitly, rarely reported, and almost never ablated. This is why they are worth a dedicated study.

Therefore, our criterion is: loop-level, universal across setups, and under-examined. That said, we accept your point, we could have been more precise. We are happy to soften our language or include longer discussions on these points.

"How should the initial system and oracle be designed for a new task?..."

On the initial system, our new experiments give a more specific answer than the paper currently does. Taking a single already-strong initial system is not enough: no harness we tested was uniformly best, and the one with the second-best validation score had the worst held-out performance. The recommendation is to start from a diverse set of candidate initial systems and select among them.

On the oracle, there have been ample discussions in prior work. We suggest [3, 4] for a fuller treatment of feedback-oracle design.

[3] Cheng, C. A., Kolobov, A., Misra, D., Nie, A., & Swaminathan, A. (2023). Llf-bench: Benchmark for interactive learning from language feedback. arXiv preprint arXiv:2312.06853.

[4] Xu, W., Nie, A., Zheng, R., Modi, A., Swaminathan, A., & Cheng, C. A. Formalizing Learning from Language Feedback with Provable Guarantees. In Forty-third International Conference on Machine Learning. https://openreview.net/pdf?id=LkTtWmZaxq

"What is the default choice for starting artifact, credit horizon, and batch size?"

Our goal is for the community to become aware of these factors and to report systematic ablations over them in their own task domains, so that shared defaults can emerge. For the domains we study we can report defaults directly, but this takes effort from the whole community to establish the default hyperparameters for different task domains.

"The experiments show sensitivity, but not a general design principle... The paper should either provide stricter generalizable rules or clearly position the contribution as an empirical characterization rather than practical guidance."

We agree, and we will do both. We will reposition the contribution explicitly as an empirical characterization of the learning loop.

The analogy to classical ML needs a clear contribution.

We chose these three factors partly because their classical counterparts already have consensus, which gives readers a shared vocabulary. But the reviewer is right that the parallel alone is not a contribution, and our new experiments surfaced how these three factors form an explicit grid search design that allows us to find a terminal harness that is competitive on Terminal-Bench-2 leaderboard. Even though grid search itself is not novel, knowing how to form the grid is not that obvious.


New study

Influenced by [1], we ran a new experiment for agent-harness optimization on terminal agents. We use a bare-bones LLM optimizer to rewrite agent source code. The agent uses claude-haiku-4.5, and the optimizer uses claude-sonnet-5. We optimize the harness on openthoughts-tblite (100 tasks) and transfer to [email protected] (89 tasks).

We split TBLite into 35 training tasks, 15 validation tasks (for selecting the best harness), and 50 test tasks. TB2 is treated as a transfer benchmark that we never touch.

harness batch horizon TBLite (test) TB2 (transfer)
single-file 1 10% 0.533 0.200
single-file 1 50% 0.467 0.333
single-file 1 100% 0.467 0.133
single-file 5 10% 0.467 0.133
single-file 5 50% 0.800 0.267
single-file 5 100% 0.400 0.133
single-file full 10% 0.600 0.333
single-file full 50% 0.533 0.267
single-file full 100% 0.467 0.333
modular 1 10% 0.400 0.133
modular 1 50% 0.600 0.267
modular 1 100% 0.333 0.133
modular 5 10% 0.533 0.333
modular 5 50% 0.600 0.200
modular 5 100% 0.600 0.400
modular full 10% 0.667 0.200
modular full 50% 0.600 0.200
modular full 100% 0.533 0.200

Starting artifact.

  • Single-file harness — the whole agent is one Python file with one function that owns the entire loop. The optimizer receives that one file and returns a rewritten version.
  • Modular harness — the same agent split across four files with named jobs: prompts, output parsing, action policy, and the driver. The optimizer receives all four and may rewrite any of them.

Batch. This determines how many examples the optimizer sees, with full meaning we provide results on all 35 training tasks.

Horizon. A terminal agent takes multiple steps to complete a task. We keep only 10%, 50%, or all of the steps. These factors determine how much context we include. Claude Sonnet-5 has a 1M context window — if we choose full batch + full trajectory, we go slightly over, at roughly 1.1M tokens. In that case, we truncate the last trajectory's final few steps.

We can summarize our experiment in the table below:

factor varied TBLite range Δ × TB2 range Δ ×
credit horizon 0.400 – 0.800 0.400 1.2× 0.133 – 0.267 0.134 2.0×
batch size 0.467 – 0.800 0.333 1.0× 0.267 – 0.333 0.066 1.0×
starting artifact 0.333 – 0.800 0.467 1.4× 0.200 – 0.400 0.200 3.0×

We conclude that the starting artifact (initial harness) matters the most, at 1.4×–3× the other factors. Our learned harness is also competitive on the Terminal-Bench leaderboard under the same backbone:

harness batch horizon TBLite (test) TB2 (transfer)
Ours (modular, optimized) 5 100% 0.600 40.0%
Goose (Haiku-4.5) — — — 35.5%
Mini-SWE-Agent (Haiku-4.5) — — — 29.8%
Terminus-2 (Haiku-4.5) — — — 28.3%

(https://www.tbench.ai/leaderboard/terminal-bench/2.0)

Most papers that work on agents focus on tree search, memory banks, and multi-agent systems, but we show that even if we start from the fundamentals of ML research, these factors still influence harness optimization — and by systematically searching through them, we can optimize a harness that is competitive with the current best results.

This type of empirical research already existed in the deep learning era. For example, Melis et al. [2] did a comprehensive LSTM hyperparameter search and were able to learn an LSTM better than any of the LSTM variants proposed in the previous two years. We consider our work to be in the same vein as [2].

[1] Lee, Y., Nair, R., Zhang, Q., Lee, K., Khattab, O., & Finn, C. (2026). Meta-harness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052. https://arxiv.org/pdf/2603.28052

[2] Melis, Gábor, Chris Dyer, and Phil Blunsom. "On the state of the art of evaluation in neural language models." arXiv preprint arXiv:1707.05589 (2017). https://openreview.net/pdf?id=ByJHuTgA-


We thank the reviewer again. We really hope to make our paper's points as clear as possible to people in the LLM agent/optimization community. Your concerns are also shared by other reviewers and possibly by any reader of the paper. We appreciate your comments and want to reshape the paper to be more exciting to the community.

Happy to conduct more experiments and iterate with you on how to best surface the value of our contribution.

Reviewer drVF · CommentOpenReview ↗

Reply to authors

Thank you for the detailed response. I appreciate the authors’ efforts and am happy to continue the discussion.

Overall, I find the paper interesting. It identifies three factors that can substantially affect LLM-based optimization, and the extensive experiments, including the new rebuttal results, address several of my earlier concerns.

My main remaining concern is whether the paper provides insights beyond confirming an intuitive expectation: that the starting artifact, credit horizon, and experience batching influence performance. Even readers without prior experience in LLM-based optimization may anticipate that these choices matter. Demonstrating their importance is useful, but may not by itself constitute a sufficiently strong contribution.

I therefore encourage the authors to articulate the non-obvious and generalizable conclusions supported by the experiments. For example, when does each factor matter most? What interactions or trade-offs consistently arise? Are there counterintuitive findings, clear failure modes, or practical principles that can guide the configuration of learning loops for new tasks?

If the authors can distill the results into concrete and convincing insights beyond the general conclusion that “these factors matter,” I would be willing to raise my score.

Authors · CommentOpenReview ↗

We are very grateful for the continued discussion! This iteration is helping us to propose a finding that is exciting and of interest to the agent/LLM optimization community.

To emphasize, our goal is to identify an “optimization geometry”, where we can quantify and understand the difficulty of using LLMs to optimize harnesses (code). Through the additional TBLite experiment, we realized that for LLM optimizers, batch size and credit horizon jointly share a single budget – the max limit of context tokens. We can decompose the context tokens as

C = c_code + B · (c_task + c_step · L)

where B is batch size, L is agent steps shown per task. The three constants (artifact size, per-task overhead, per-step cost) are measurable from ~10 pilot rollouts, before any optimization. On TBLite, one extra task in the batch costs the same context as ~12 agent steps; on DeepSWE, ~76 steps. We call this the task/step marginal rate of substitution, aka, what would it cost to add one more task instead of including more agent steps.

Therefore, we constructed 15 new configurations where 3 configs share the same context budget but at different positions along the context budget line.

TBLite Experiment

budget cell test
15k B1/L44 0.459
15k B3/L6 0.467
15k B6/L2 0.470
26k B2/L44 0.319
26k B5/L8 0.528
26k B12/L2 0.474
65k B6/L31 0.626
65k B13/L8 0.441
65k B31/L2 0.357
123k B11/L44 0.469
123k B21/L10 0.479
123k B40/L4 0.390
247k B22/L44 0.505
247k B30/L19 0.522
247k B40/L11 0.545

For harness optimization, a general practice [1] is to first retain full credit horizon (agent steps) and then fit as many tasks (batch size) as possible to the context window.

We show that this “common wisdom” does not always hold. In fact, keeping a full credit horizon often produces worse results.

In TBLite, we found that under 5 context budgets (15k, 26k, 65k, 123k, 247k), choosing a credit horizon of length of 8 (67% of task/step marginal rate of substitution of 12 steps) allows us to win 4 out of 5 times under the same budget token constraint. We visualize this result in Figure 1 (arrow region).

However, performing this static analysis on one domain is not enough. We spent extra time to replicate this experiment on a new domain DeepSWE, also doing harness optimization but now for coding tasks.

DeepSWE Experiment

We split the dataset into 40 train / 20 val / 53 test, similar to TBLite. We optimize for a harness using train and validation data. Then we choose the harness with the best validation score to evaluate on the test set.

budget cell val test
60k B1/L160 0.324 0.199
100k B8/L20 0.313 0.231
60k B2/L56 0.270 0.229
60k B4/L24 0.263 0.237
100k B2/L110 0.257 0.186
285k B11/L52 0.251 0.216
100k B4/L48 0.237 0.251
285k B23/L20 0.232 0.170
480k B40/L20 0.230 0.186
480k B19/L48 0.218 0.267
170k B14/L20 0.214 0.230
170k B6/L56 0.212 0.230
480k B9/L130 0.211 0.237
170k B3/L150 0.183 0.217
285k B5/L160 0.173 0.224

In DeepSWE, we also found that for 5 context budgets (60k, 100k, 170k, 285k, 480k), a credit horizon of length 52 (68% of task/step marginal rate of substitution of 76 steps) also yields a result of winning 4 out of 5 times under the same budget token constraint. We visualize this result in Figure 2 (arrow region).

In both TBLite and DeepSWE, choosing an effective horizon, that is around 65-70% of your task-step marginal rate of substitution seems to be empirically optimal, especially if we do not wish to conduct extensive hyper-parameter search. This is not a golden rule, as in TBLite, the best achieved harness score of 0.65 uses 31 agent steps. However, following this rule will give 9 out of 10 wins across 2 domains.

Here are our conclusions:

  1. Constructing a search grid over batch size, credit horizon, starting artifact is important if you want the best optimization result.
  2. Automatically setting batch size, credit horizon according to the task/step marginal rate of substitution can work in most cases as well. This rule does not require specific insight into the task.

The goal of our paper is to bring classical ML concepts into the LLM optimization setting and investigate their role. These added analyses make the paper's claims concrete.

[1] Lee, Y., Nair, R., Zhang, Q., Lee, K., Khattab, O., & Finn, C. (2026). Meta-harness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052. https://arxiv.org/pdf/2603.28052

Reviewer i2bEOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper examines three system variables involved in the generative optimization process of large language models. Through controlled experiments in MLAgentBench, Atari games, and BigBench Extra Hard, the authors observe and document how different settings for the initial system configuration, credit assignment horizon, and experience batch size affect the resulting system metrics.

Strengths and weaknesses

Strengths:

  • The manuscript effectively isolates three operational variables that are central to LLM-based generative optimization pipelines: the initial system configuration, the credit assignment horizon, and the experience batch size.
  • The empirical testing of these parameter configurations across a diverse set of environments, specifically MLAgentBench, Atari games, and BigBench Extra Hard. This cross-domain evaluation yields concrete observations on how modifying structural settings directly shifts the trajectory and upper bounds of the system's performance.

Weaknesses:

  • The experiments on initial system configurations rely on two environments and two code structures. While this samples a specific range of initial conditions, incorporating a broader set of environments would help expand the statistical distribution.
  • The section on credit horizons documents the scores of various Atari games under long and short cycle settings. This currently reads as an empirical observation of runtime phenomena; adding a mechanism-based, quantitative baseline for determining these horizons would serve as a structural addition.
  • The absolute accuracy numbers observed in the BigBench Extra Hard experiments reflect the difficulty of the benchmark. This specific value range also suggests that confounding factors, such as testing framework mechanics or initial template differences, might be present. This leaves room for further exploration to isolate noise and verify the independent impact of experience batch sizes.
Questions
  • Regarding the experiments on initial system settings, would you consider introducing different types of structural combinations or additional datasets in future work to further verify their statistical universality across broader software engineering scenarios?
  • In the Atari experiments, the impact of the credit horizon on the final score was observed. Could you discuss the possibility of formulating a prior quantitative rule to help predict the most suitable horizon setting for entirely new tasks?
  • Given the distribution of absolute values observed in the BigBench Extra Hard test set, could future experimental designs incorporate supplementary mechanisms to better isolate potential confounding variables within the testing framework or initial templates?
Limitations

The authors mention the limitation of not testing other large models and feedback mechanisms in the conclusion and appendix. It would be beneficial to provide a more comprehensive discussion regarding the boundaries of the sample coverage and the potential for a more quantitative mechanism in the core experiments.

Final justification

The rebuttal and discussion added a quantitative task/step trade-off and demonstrated its transfer from TBLite to DeepSWE without task-specific tuning. This resolves my main concern about actionable guidance and generalizability. Overall, the additional evidence and clearer contribution outweigh the remaining limitations. I therefore raise my score.

Formatting concerns

No major formatting concerns. The anonymous code link was accessible when checked.

6 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the review. We ran a new study during the rebuttal period to address your questions:

New Experiment

Influenced by [1], we ran a new experiment for agent-harness optimization on terminal agents. We use a bare-bones LLM optimizer to rewrite agent source code. The agent uses claude-haiku-4.5, and the optimizer uses claude-sonnet-5. We optimize the harness on openthoughts-tblite (100 tasks) and transfer to [email protected] (89 tasks).

We split TBLite into 35 training tasks, 15 validation tasks (for selecting the best harness), and 50 test tasks. TB2 is treated as a transfer benchmark that we never touch.

harness batch horizon TBLite (test) TB2 (transfer)
single-file 1 10% 0.533 0.200
single-file 1 50% 0.467 0.333
single-file 1 100% 0.467 0.133
single-file 5 10% 0.467 0.133
single-file 5 50% 0.800 0.267
single-file 5 100% 0.400 0.133
single-file full 10% 0.600 0.333
single-file full 50% 0.533 0.267
single-file full 100% 0.467 0.333
modular 1 10% 0.400 0.133
modular 1 50% 0.600 0.267
modular 1 100% 0.333 0.133
modular 5 10% 0.533 0.333
modular 5 50% 0.600 0.200
modular 5 100% 0.600 0.400
modular full 10% 0.667 0.200
modular full 50% 0.600 0.200
modular full 100% 0.533 0.200

Starting artifact:

  • Single-file harness — the whole agent is one Python file with one function that owns the entire loop. The optimizer receives that one file and returns a rewritten version.
  • Modular harness — the same agent split across four files with named jobs: prompts, output parsing, action policy, and the driver. The optimizer receives all four and may rewrite any of them.

Batch: This determines how many examples the optimizer sees, with full meaning we provide results on all 35 training tasks.

Horizon: A terminal agent takes multiple steps to complete a task. We keep only 10%, 50%, or all of the steps. These factors determine how much context we include. Claude Sonnet-5 has a 1M context window — if we choose full batch + full trajectory, we go slightly over, at roughly 1.1M tokens. In that case, we truncate the last trajectory's final few steps.

We can summarize our experiment in the table below:

factor varied TBLite range Δ × TB2 range Δ ×
credit horizon 0.400 – 0.800 0.400 1.2× 0.133 – 0.267 0.134 2.0×
batch size 0.467 – 0.800 0.333 1.0× 0.267 – 0.333 0.066 1.0×
starting artifact 0.333 – 0.800 0.467 1.4× 0.200 – 0.400 0.200 3.0×

We conclude that the starting artifact (initial harness) matters the most, at 1.4×–3× the other factors. Our learned harness is also competitive on the Terminal-Bench leaderboard under the same backbone:

harness batch horizon TBLite (test) TB2 (transfer)
Ours (modular, optimized) 5 100% 0.600 40.0%
Goose (Haiku-4.5) — — — 35.5%
Mini-SWE-Agent (Haiku-4.5) — — — 29.8%
Terminus-2 (Haiku-4.5) — — — 28.3%

(https://www.tbench.ai/leaderboard/terminal-bench/2.0)

Most papers that work on agents focus on tree search, memory banks, and multi-agent systems, but we show that even if we start from the ML fundamentals, we can still do harness optimization well — and by systematically searching through them, we can optimize a harness that is competitive with the current best results. This is the surprising part of our result.

This type of empirical research already existed in the deep learning era. For example, Melis et al. [2] did a comprehensive LSTM hyperparameter search and were able to learn an LSTM better than any of the LSTM variants proposed in the previous two years. We consider our work to be in the same vein as [2].

[1] Lee, Y., Nair, R., Zhang, Q., Lee, K., Khattab, O., & Finn, C. (2026). Meta-harness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052. https://arxiv.org/pdf/2603.28052

[2] Melis, Gábor, Chris Dyer, and Phil Blunsom. "On the state of the art of evaluation in neural language models." arXiv preprint arXiv:1707.05589 (2017). https://openreview.net/pdf?id=ByJHuTgA-


Now we address some of your questions and comments directly.

"...would you consider introducing different types of structural combinations or additional datasets... to further verify their statistical universality across broader software engineering scenarios?"

Yes, and we have. The new study is a software-engineering domain distinct from the paper's three. We swept through 20 configurations and conducted additional analyses to understand the impact of each factor on harness optimization. We conclude that three factors are not co-equal. We note the importance is roughly that starting artifact > credit horizon > batch size.

"It would be beneficial to provide a more comprehensive discussion regarding the boundaries of the sample coverage..."

Agreed. We will add an explicit scope statement: the original experiments use a single backbone (Claude Sonnet-3.5-v2) and a single optimizer family for most results; the new study extends to a 2026-generation model pair, a third barebone optimizer, and a fourth domain. We would rather state these boundaries plainly.

We thank the reviewer again — we are happy to engage in further discussion or conduct more experiments in the discussion period.

Reviewer i2bE · CommentOpenReview ↗

Reply to authors

Thank you for the detailed rebuttal and the additional experiment, which broadens the empirical evaluation. However, my main concerns about generalizability remain. I would maintain my original score.

Authors · CommentOpenReview ↗

Hi, thank you for the response. We hope to engage in a more substantive discussion with you. We thank you in advance for your time and the additional effort you are spending to make our paper better (and to make NeurIPS a great conference).

When you say "concerns about generalizability" -- it is a bit vague for us to get the paper into a better shape.

Are you suggesting:

The three factors we identified: batch size, credit horizon, and starting artifact, and that LLM optimizers are sensitive to their configurations do not generalize to more domains?

To better address your questions, we added one more domain: DeepSWE, in addition to TBLite (terminal bench) to show that our findings do generalize across the board.

As a recap, here is how we addressed some of your questions:

Would you consider introducing different types of structural combinations or additional datasets in future work...

We introduced 2 new datasets and provided structural combinations of our factors in them.

Could you discuss the possibility of formulating a prior quantitative rule to help predict the most suitable horizon setting for entirely new tasks?

We formulated a new quantitative rule in our new experiment (see below).

Thank you very much for reading our rebuttal. I hope our new results (below) can address some of your questions.

Reviewer ho8NOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies different aspects of generative optimization, i.e., using large language models (LLMs) to improve the performance of a system. Through a series of case studies, the authors examine the effect of the initial artifact, the credit horizon for execution traces, and the batch size, namely the number of few-shot examples and the amount of feedback to include for the agent. They conclude that such decisions are task-dependent and that no single recipe can be followed to achieve better performance.

Strengths and weaknesses

Strengths:

  • The paper is well written and easy to follow.
  • The motivation is interesting and timely.

Weaknesses:

  • My main concern is the contribution. The paper points to common, well-known issues in agentic optimization and uses case studies to confirm that they exist. These issues have already been identified and are actively discussed in the community, so it is hard to see what the paper adds beyond them.
  • The evidence supporting the paper's claims is weak. For example, the starting-artifact study uses only two tasks, finding that the single-function description works better on one and the multi-function description on the other. A pool of two problems is far too small to draw such a conclusion or to learn anything from. Likewise, the accuracy and RMSE differences reported in Figure 4 (right) are too small to support any conclusion.
  • For most of the paper the authors rely on a single optimizer and a single model (Section 6 being the exception, where they also test DSPy and LangGraph, under 1 single LLM model). It is unclear whether the conclusions are general or merely an artifact of this specific LLM and framework. Even in Section 6, the results differ under DSPy and LangGraph (lines 349–356), which further increases my concerns about the validity of the conclusions. The paper needs more experiments with different optimizers and models to establish a consistent pattern.
Questions
  1. How do you ensure these results are not an artifact of the specific optimizer used (OptoPrime)? Replicating the key findings with at least 1-2 other optimizer would help establish that the patterns are general.

  2. Can you provide experiments with a model other than Claude Sonnet-3.5? Showing the same conclusions hold across an additional LLM would address concerns that they are model-specific.

  3. Newer LLMs often resolve issues present in earlier ones. How do you know the same patterns hold for more advanced reasoning models? Demonstrating this on at least one recent reasoning model would strengthen the generality of the claims.

Limitations

Yes

Final justification

The rebuttal strengthens the empirical evaluation and partially addresses my concerns about task and model coverage, so I am raising my score from 2 to 3. However, the newly proposed transferable rule is difficult to reconcile with the paper’s original conclusion that no general recipe exists. Overall, I remain uncertain that the conclusions are sufficiently established for publication at NeurIPS.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the constructive review. We ran a new study during the rebuttal period addressing Q1–Q3 directly, summarized below:

New Experiment

Influenced by [1], we ran a new experiment for agent-harness optimization on terminal agents. We use a bare-bones LLM optimizer to rewrite agent source code. The agent uses claude-haiku-4.5, and the optimizer uses claude-sonnet-5. We optimize the harness on openthoughts-tblite (100 tasks) and transfer to [email protected] (89 tasks).

We split TBLite into 35 training tasks, 15 validation tasks (for selecting the best harness), and 50 test tasks. TB2 is treated as a transfer benchmark that we never touch.

harness batch horizon TBLite (test) TB2 (transfer)
single-file 1 10% 0.533 0.200
single-file 1 50% 0.467 0.333
single-file 1 100% 0.467 0.133
single-file 5 10% 0.467 0.133
single-file 5 50% 0.800 0.267
single-file 5 100% 0.400 0.133
single-file full 10% 0.600 0.333
single-file full 50% 0.533 0.267
single-file full 100% 0.467 0.333
modular 1 10% 0.400 0.133
modular 1 50% 0.600 0.267
modular 1 100% 0.333 0.133
modular 5 10% 0.533 0.333
modular 5 50% 0.600 0.200
modular 5 100% 0.600 0.400
modular full 10% 0.667 0.200
modular full 50% 0.600 0.200
modular full 100% 0.533 0.200

Starting artifact:

  • Single-file harness — the whole agent is one Python file with one function that owns the entire loop. The optimizer receives that one file and returns a rewritten version.
  • Modular harness — the same agent split across four files with named jobs: prompts, output parsing, action policy, and the driver. The optimizer receives all four and may rewrite any of them.

Batch: This determines how many examples the optimizer sees, with full meaning we provide results on all 35 training tasks.

Horizon: A terminal agent takes multiple steps to complete a task. We keep only 10%, 50%, or all of the steps. These factors determine how much context we include. Claude Sonnet-5 has a 1M context window — if we choose full batch + full trajectory, we go slightly over, at roughly 1.1M tokens. In that case, we truncate the last trajectory's final few steps.

We can summarize our experiment in the table below:

factor varied TBLite range Δ × TB2 range Δ ×
credit horizon 0.400 – 0.800 0.400 1.2× 0.133 – 0.267 0.134 2.0×
batch size 0.467 – 0.800 0.333 1.0× 0.267 – 0.333 0.066 1.0×
starting artifact 0.333 – 0.800 0.467 1.4× 0.200 – 0.400 0.200 3.0×

We conclude that the starting artifact (initial harness) matters the most, at 1.4×–3× the other factors. Our learned harness is also competitive on the Terminal-Bench leaderboard under the same backbone:

harness batch horizon TBLite (test) TB2 (transfer)
Ours (modular, optimized) 5 100% 0.600 40.0%
Goose (Haiku-4.5) — — — 35.5%
Mini-SWE-Agent (Haiku-4.5) — — — 29.8%
Terminus-2 (Haiku-4.5) — — — 28.3%

(https://www.tbench.ai/leaderboard/terminal-bench/2.0)

Most papers that work on agents focus on tree search, memory banks, and multi-agent systems, but we show that even if we start from the ML fundamentals, we can still do harness optimization well — and by systematically searching through them, we can optimize a harness that is competitive with the current best results. This is the surprising part of our result.

This type of empirical research already existed in the deep learning era. For example, Melis et al. [2] did a comprehensive LSTM hyperparameter search and were able to learn an LSTM better than any of the LSTM variants proposed in the previous two years. We consider our work to be in the same vein as [2].

[1] Lee, Y., Nair, R., Zhang, Q., Lee, K., Khattab, O., & Finn, C. (2026). Meta-harness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052. https://arxiv.org/pdf/2603.28052

[2] Melis, Gábor, Chris Dyer, and Phil Blunsom. "On the state of the art of evaluation in neural language models." arXiv preprint arXiv:1707.05589 (2017). https://openreview.net/pdf?id=ByJHuTgA-


Now we address some of your questions and comments directly.

"How do you ensure these results are not an artifact of the specific optimizer used (OptoPrime)?..."

A clarification we should have made: the DSPy study in Sec. 6 is not OptoPrime — it uses a batch-aware COPRO variant, so a second optimizer family is already in the paper. Second, the new study adds a third optimizer that is just an LLM api call (extremely barebone). We also change the optimization target: the optimizer rewrites agent source code rather than prompts or structured artifacts. All three factors remain influential across that change, which is harder to attribute to one implementation than agreement between two prompt optimizers would be.

"Can you provide experiments with a model other than Claude Sonnet-3.5?..."

The new study uses haiku-4.5 (execution) and sonnet-5 (optimization). We accept that the original experiments are single-model and will state that scope limit explicitly.

"Newer LLMs often resolve issues present in earlier ones. How do you know the same patterns hold for more advanced reasoning models?..."

We show in the experiment, these factors still play a key role with the latest Claude-Sonnet-5 model.

"My main concern is the contribution... it is hard to see what the paper adds beyond them."

We agree that "task-dependent" undersells the work. Our revised, actionable claim: before investing in a stronger optimizer — multi-agent scaffolds, memory, tree search — the cheaper wins are in the learning loop itself. The starting artifact and the choice of what context to show the optimizer (set by batch size and credit horizon) account for large performance differences with no additional machinery.

And the three factors are not co-equal. We note the importance is roughly that starting artifact > credit horizon > batch size.

We should note that past papers that made foundational contribution to deep learning have made similar contributions specifically on the importance of hyperparameter tuning, in particular in [2]. Our paper serves as a reminder to the LLM optimizer/agent community that classical ML knowledge should not be overlooked.

We thank the reviewer again — Q3 in particular led directly to the two findings above, which we believe are the strongest new content in the revision. We are happy to run further analysis or experiments during the discussion period.

Authors · CommentOpenReview ↗

Hi,

Thank you very much for providing the review.

These issues have already been identified and are actively discussed in the community, so it is hard to see what the paper adds beyond them.

Thank you for pointing this out -- the community has awareness of these issues, but we don't see a lot of discussions around understanding them through an optimization / learning perspective. We want to show people that these are fundamental issues of optimization / learning, even if an optimizer is no longer numerical. Analyzing the LLM optimizing using these factors can still provide new insights.

In this rebuttal period, we have expanded the task and dataset coverage to TBLite, Terminal-Bench 2, and DeepSWE. We conducted extensive experiments using the latest model (Claude Sonnet 5, which was released on June 30, 2026). Also thanks to our iteration with reviewer drVF and i2bE, we have reached new conclusions:

  1. For an LLM optimization system, a search grid can be constructed over these three factors -- where significant performance improvement can be observed across domains.
  2. We propose a concrete, transferable rule (credit horizon ≈ (2/3)·ρ, with ρ computable from ~10 pilot rollouts and no tuning). This rule when frozen on one domain and applied unchanged to a second, selects the best or near-best configuration at every context budget — reducing mean selection regret ~9× versus the common practice of retaining the full horizon (0.003 vs 0.029).

If our responses address your concerns, we would be grateful if you would consider updating your assessment; if any concern remains, we would welcome the chance to address it before the deadline.

Comments on the paper

3 comments
Area Chair ifQY · CommentOpenReview ↗

Dear Reviewers,

Thank you for sharing your valuable insights and expertise, which have played an important role in the review process.

In response to the initial feedback, the authors have submitted a detailed rebuttal addressing the comments raised by the reviewers.

I would appreciate it if you could carefully review their response and consider how it may affect your initial evaluation.

Please feel free to share your updated thoughts or any additional comments after reviewing the rebuttal.

Thank you again for your time and contributions.

Authors · CommentOpenReview ↗

To Area Chair ifQY,

We are very thankful for your notes to all reviewers. We want to summarize what we have done during the rebuttal period and how they addressed each reviewer's concern:

While the analysis itself pursues a valuable and worthwhile direction, the main takeaway—that these choices are task-dependent and that no single recipe reliably yields the best performance across settings—feels overly broad.

We argue that correctly identifying three factors to the extent that anyone can construct a search grid over is novel for the LLM optimization community. These three factors are different from what reviewer drVF has already suggested on "feedback oracle design, optimizer LLM choice, search/update algorithm, editable parameterization, and context formatting", therefore should be treated as overlooked spots for the community. In our original paper, we showed sensitivity already. In our rebuttal's experiments, we showed such sensitivity as well. Just because these factors are well known, does mean our result is expected or these three factors are widely investigated in practice.

It would strengthen the paper considerably to go beyond we ran experiments and found that outcomes differ across cases and to articulate more clearly what specific, non-obvious insights the analysis surfaces.

We completely agree with this point. You and reviewer drVF made us rethink about our finding. We have a realization that batch size and credit horizon both share context space in an LLM, unlike in classical ML. If you add one more task into the context, you add in many more agent steps as well. Building on this realization, we propose task/step marginal rate of substitution, which can be computed by collecting pilot trajectories on each task. This allows us to build an empirical rule of thumb:

  1. Construct a search grid using the three factors to find the best optimization result (our central argument).
  2. If you do not have the massive search budget: choosing an effective credit horizon, that is around 65-70% of your task/step marginal rate of substitution, seems to be empirically optimal.

We show that if we follow this empirical rule of thumb, we are able to get 8 wins out of 10 in the same budget constraint (gray lines) for two domains: DeepSWE (arrow region) and TBLite (arrow region).

We believe this empirical finding supplements the proposed framework from our main paper.

Thank you so much for driving this discussion and we believe the additional experiments, analyses, and task datasets have fully addressed both yours and reviewers' concerns. If not, we are also happy to understand more about how to further improve our paper for a future submission.

Authors · CommentOpenReview ↗

We have presented new analysis to reviewer i2bE on:

further demonstrate that it generalizes to unseen tasks without task-specific tuning, e.g., by showing that the rule derived from TBLite transfers to DeepSWE without further tuning

We show that by computing a new statistic: task/step marginal rate of substitution (ρ), we can identify a generalizable rule: an effective credit horizon is roughly ≈ (2/3)·ρ, which indicates a balance between a diversity of tasks in a dataset (governed by batch size) and logged agent behavior on the task (governed by credit horizon). In our rebuttal to reviewer i2bE, we showed how this rule beats the previous best common practice by a large margin (10x smaller regret / gap to the best configuration after a grid search).

This insight marks a departure from the classical ML treatment of batch size and credit horizon -- they are usually separate factors that impact different algorithms (such as how to set SGD learning rate, or tuning discount factors in PPO). However, in the era of LLM-based optimization, these two factors affect each other (by sharing the same context window). When we increase one factor, the other factor might get less space. This presents a tension that the ML community has not studied before and yields a fundamental problem beyond LLM backbone choice, feedback oracle, thinking effort, etc. The discussion with you and other reviewers made us realize this.

We hope that our added analysis provides more context to the three factors already discussed in our paper and highlights how emphasizing on these age-old concepts can still bring new insights to LLM-based optimizations.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…