potentialpaper

Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery

Samidha Verma, Ankit Anand, Sayan Ranu

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. Ballad replaces expensive solo LLMs in automated heuristic discovery with an adaptive bandit policy. It discovers similar or superior heuristics for NP-hard problems while slashing costs by 65.6% via smart model routing.

Abstract. Modern automated heuristic discovery (AHD) systems increasingly rival hand-crafted heuristics by leveraging Large Language Models (LLMs) to iteratively mutate and refine solutions. A natural assumption is that more powerful and more expensive models consistently yield better heuristics. We challenge this empirically: across multiple NP-hard combinatorial optimization problems, we find no consistent advantage for larger, costlier models. This raises a deeper question: given a pool of LLMs spanning frontier and freely hosted or open-weight models, how should one adaptively select which model to invoke at each step of the search? The challenge is non-trivial. The optimal LLM may shift over the course of a run, and because one LLM's output seeds the context for subsequent calls, each model's reward signal is non-stationary and entangled across the heuristic population, thus violating the independence assumptions of classical online decision-making settings. We address this through Ballad (Bandit-based LLM Routing for Automated Heuristic Discovery), an online bandit algorithm that learns to orchestrate a pool of LLMs into an ensemble that matches or exceeds what any soloist LLM achieves alone. This orchestration is powered by an LLM selection policy that favors rare, high-scoring heuristics over stable averages, a DAG-based credit propagation mechanism through the genealogy of the heuristic population, and discounting of stale observations to remain attuned to each model's current utility. Across five NP-hard combinatorial optimization problems and a pool of four models of varying capability and cost, Ballad not only matches the best individual LLM in hindsight but, in several cases, surpasses every individual model while reducing API cost by up to 65.6% relative to always using the strongest model.

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
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 4 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

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

This paper studies LLM-based automated heuristic discovery. The authors observe that larger models do not provide consistently provide advantages and propose Ballad, a bandit-based LLM routing method achieving significant cost saving without compromsing performance.

Reviewers raised concerns regarding insufficient theoretical justification of the proposed method, limited comparison with relevant baselines, and weaknesses in experimental design and evaluations. All concerns appear reasonable to the AC and should be addressed during rebuttal.

After the rebuttal, all reviewers lean toward accepting this submission. The AC has read the authors' response and supports the reviewers' recommendation. The authors should incorporate the relevant discussion from the rebuttal into the revised manuscript.

Final justification

See above.

Area Chair JjNa · Meta-reviewOpenReview ↗
Final justification
See above.
Read meta-review
Meta-review

This paper studies LLM-based automated heuristic discovery. The authors observe that larger models do not provide consistently provide advantages and propose Ballad, a bandit-based LLM routing method achieving significant cost saving without compromsing performance.

Reviewers raised concerns regarding insufficient theoretical justification of the proposed method, limited comparison with relevant baselines, and weaknesses in experimental design and evaluations. All concerns appear reasonable to the AC and should be addressed during rebuttal.

After the rebuttal, all reviewers lean toward accepting this submission. The AC has read the authors' response and supports the reviewers' recommendation. The authors should incorporate the relevant discussion from the rebuttal into the revised manuscript.

2 comments
Authors · CommentOpenReview ↗

Dear Area Chair,

We thank you and the reviewers for the constructive comments on our work. The meta review highlighted the following key concerns with respect to our submission.

Reviewers raised concerns regarding insufficient theoretical justification of the proposed method, limited comparison with relevant baselines, and weaknesses in experimental design and evaluations. All concerns appear reasonable to the AC and should be addressed during rebuttal.

We summarize below how each of these concerns have been addressed along with pointers to the specific responses for details.

1. Stronger and more comprehensive baselines (Hna7-Q1, QSnb-W2)

We added four new baselines spanning the categories reviewers requested: Random (mixing-only control), Thompson Sampling, SW-UCB (non-stationary), and QoMax (extreme bandit). BALLAD attains the best objective on every problem (TSP, CVRP, Online BP) and the best overall score (6.134 vs. next-best 6.242).

2. Weaknesses in experimental design and evaluations

  • Expanded model pool with frontier LLMs (QSnb-W4, KHDb-W1)Responding to the generalization concern, we scaled the pool from four to nine arms, adding additionally GPT-5, GPT-5 Mini, GPT-5 Nano, Claude Sonnet 5, and Claude Haiku 4.5 to our original set of four arms. Quality improves on both evaluated problems (Offline BP and GED), with non-overlapping intervals on GED. Cost analysis shows savings of 24.4% to 68.3% versus routing all calls to GPT-5, assuming same token consumption as BALLAD, confirming the efficiency claim holds as the pool grows.

  • Deeper ablations covering all three index terms (Hna7-W1, QSnb-W3): Beyond the five ablations already in Table 2, we added three studies (Random, tail level τ, cost-penalized exploration), giving coverage of every component of the scoring index across eight configurations. We also ran the full lineage ablation on the two remaining problems (Offline BP and GED). Lineage improves the objective on four of five problems and ties on the fifth. A sharpened result, namely that BALLAD with four models matches or beats the nine-model pool run without lineage, shows that adding frontier models cannot substitute for lineage credit.

3. Theoretical positioning clarified (Hna7-W3, KHDb-W2)

We showed Eq. (5) is a strict generalization of a known extreme-bandit index (QoMax), with UCB recovered as a special case. Hence, the added terms interpolate between established algorithms and BALLAD. We are candid that standard regret bounds do not apply, since arm independence and within-arm stationarity both fail by construction (lineage coupling and population drift), and we explain why an assumed parametric form would characterize the assumption rather than the algorithm. Two guarantees that hold without those assumptions will be added to the appendix: (i) per arm, the estimator q^τ(ℓ)\hat q_\tau(\ell) converges to the true upper-tail quantile of that model's score distribution as its pull count grows [3], so each arm's value estimate is well-founded in isolation even when the population evolves; and (ii) the lineage term is bounded by αLˉmax⁡\alpha\bar L_{\max}, so it can shift the ranking but never override the value estimate, keeping BALLAD a bounded perturbation of a principled extreme-value index.

Other enhancements. In addition to the above key concerns that were highlighted in the meta review, we have also incorporated several other suggestions made by the reviewers. These include:

  • We commit to emphasizing our position that BALLAD identifies a competitive composition online, without hindsight knowledge of the best model, at substantially lower cost (2.86× cheaper on average, and up to 5.30× per problem, versus the standard "default to the strongest model" practice)(QSnb-W1, KHDb-W3).
  • Solution-quality vs. time-steps convergence curves tabulated for all five problems (Hna7-Q2).
  • A concrete, principled scheme for incorporating public benchmark priors into routing via prior-weighted exploration and shrinkage, with η=0 recovering BALLAD (Hna7-Q3).
  • Clarified DAG duplicate-handling and the plug-and-play nature of the router (Hna7-Q5), and the tail-gating that makes the index insensitive to minor heuristic variation (Hna7-Q4).
  • On problem difficulty (Hna7-W4): Our suite is non-trivial (all five problems NP-hard, GED additionally APX-hard, with no PTAS unless P=NP) and chosen for comparability with the AHD literature: Online BP follows FunSearch [18] and EoH [15], the routing-and-packing suite follows ReEvo [25] and MCTS-AHD [26], and GED follows GRAIL [23].

We believe these additions materially strengthen the empirical and conceptual case for the paper and address the reviewers' concerns directly. We are happy to run any further analysis the reviewers or AC would find useful within the discussion window.

Authors · CommentOpenReview ↗

Dear AC and Reviewers,

With the discussion period closing in a few days, we would be grateful for any feedback to the responses and revisions we have proposed. We are glad to provide any additional results or clarification.

With thanks,

The Authors

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

The paper is motivated by the empirical observation that larger and more expensive LLMs do not consistently outperform smaller models in automated heuristic discovery (AHD). To address this, the authors propose BALLAD, a bandit-based framework for dynamically selecting among multiple LLMs during the heuristic search process. Rather than relying on a single model, BALLAD adaptively orchestrates a pool of LLMs and aims to leverage their complementary strengths to discover higher-quality heuristics. Experimental results on five NP-hard combinatorial optimization problems show that BALLAD can match and, in some cases, surpass the performance of the best individual LLM while reducing inference cost.

Strengths and weaknesses

Strengths

  • This paper provides an interesting empirical finding that larger and more expensive LLMs are not consistently superior for heuristic generation, which motivates the need for adaptive routing.
  • The problem formulation is well-motivated. The identification of three characteristics helps clarify why standard LLM routing and classical bandit formulations may be insufficient.

Weaknesses

  • The experiments involve only four LLMs and a specific set of combinatorial optimization tasks. It remains unclear how well BALLAD generalizes to larger model pools.
  • The theoretical contribution is limited. Although the method is inspired by bandit principles, there is no theoretical justification for the combined scoring function. The proposed index appears largely heuristic.
  • The reported improvements over the best individual LLM are relatively modest in several tasks.
Questions

see above.

Limitations

see above.

Final justification

My concerns have been addressed; therefore, my rating remains unchanged.

Formatting concerns

N/A

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the thorough review, and particularly for pressing on generalisation. It prompted the most substantial new experiment in this rebuttal. We have scaled BALLAD from four arms to nine, including GPT-5, Claude Sonnet 5 and Claude Haiku 4.5, and it improves quality on both problems tested while costing 24.4% and 68.3% less than routing every call to GPT-5. Below we also show that the scoring function is a strict generalisation of an established extreme-bandit index rather than a heuristic construction, and that the improvement margin should be read against the choice a practitioner actually faces rather than against a hindsight oracle.

We hope these address the reviewer's concerns, and are glad to provide further results within the discussion period.


W1. Generalization to larger model pools. Experiments involve only four LLMs and a specific set of combinatorial optimization tasks; it is unclear how well BALLAD generalizes.

We expanded the pool from four to nine arms: GPT-5, GPT-5 Mini, GPT-5 Nano, Claude Sonnet 5, Claude Haiku 4.5, Gemini 2.5 Flash, Gemini 2.5 Flash Lite, Gemma 3 27B and Gemma 3 12B, denoted BALLAD (Scaled). Given the prohibitive cost and the short rebuttal window, we restricted this to Offline BP and GED.

Model Offline BP GED
BALLAD (Scaled) 204.539±0.242 4.706±0.026
BALLAD (Table 1) 204.693±0.323 4.789±0.022

Quality improves on both problems; on GED the intervals do not overlap, indicating a clear separation.

Cost. We total input and output tokens over BALLAD's runs, price every call at its own model's rate, average across runs, and compare against pricing the identical token volume entirely at GPT-5's rate, which assumes GPT-5 would consume comparable tokens, an assumption we could not verify within the window. Cost per run in USD:

Dataset BALLAD (Scaled) GPT-5 only Savings (USD)
Offline BP 22.629 29.948 7.319 (24.4%)
GED 9.745 30.739 20.994 (68.3%)

The saving is larger on GED because the router concentrates on cheaper arms there, whereas Offline BP sustains higher allocation to strong models. The same pattern is also observed in §4.4 of our manuscript.

W2. Limited theoretical contribution. No justification for the combined scoring function; the index appears largely heuristic.

Justification for the scoring function. Eq. (5) is a strict generalisation of a known extreme-bandit index, and the added terms are exactly what the AHD setting requires. Turning the knobs off recovers the established cases:

  • α=0,λ=0\alpha=0,\lambda=0: Scoreℓ(t)=q^τ(ℓ)+βlog⁡T/nℓ\mathrm{Score}_\ell(t)=\hat q_\tau(\ell)+\beta\sqrt{\log T/n_\ell}, an optimistic index over a quantile-of-maxima value estimate in the sense of QoMax [3] (computed by bootstrap rather than disjoint subsampling);
  • replacing the tail estimator by the sample mean additionally recovers UCB [2], our baseline in Table 2.

λ\lambda and α\alpha therefore interpolate between established algorithms and BALLAD, and both are ablated. The λ\lambda blend is a bias–variance interpolation, and Table 2 reproduces its signature: the record-only variant (λ=1\lambda=1) carries more than twice the run-to-run standard deviation of the quantile-only variant (±0.244 vs ±0.108), with the interior value outperforming both endpoints.

On the absence of guarantees. Regret bounds in the bandit literature rest on two assumptions: that rewards are stationary within an arm, and that arms are independent. Both fail here by construction. The genealogy couples the arms, since one model's output seeds the context another is prompted with (P2), and every arm's score distribution drifts as the population conditioning it improves (P3). A bound can of course be recovered by positing a parametric form for an LLM's score distribution and for how it shifts across iterations. We deliberately avoid this: no such characterisation exists to the best of our knowledge, so a guarantee derived from an assumed form would describe the assumption rather than the algorithm.

W3. Modest improvements over the best individual LLM in several tasks.

BALLAD's claim is that it identifies a competitive model composition online, without knowing in advance which model is best, at substantially lower cost. The margin should therefore be read against the choice a practitioner actually has. "The best individual LLM" is a hindsight reference: identifying it requires running every model to completion, and its identity changes by problem (Table 1). The available alternatives are:

  • Commit to one model blind. Averaged over the pool this gives overall rank 3.15, against BALLAD's 1.733.
  • Evaluate all candidates exhaustively, at 4× the LLM calls — or 9× in the scaled setting of W1 — and repeat for every new problem.
  • Default to the strongest model, which is standard practice. gemini-2.5-flash attains a worse objective than BALLAD on all five problems while costing 65.6% more; BALLAD is 2.86× cheaper on average and up to 5.30× on individual problems.

Against that last comparison, arguably the default practitioner's choice, the improvement is not modest: better quality on every problem at roughly a third of the cost. Relative to flash-lite, BALLAD attains a better mean objective on all five problems while being cheaper on three of five and only 1.19× more expensive on average. Overall, it matches the best hindsight model at comparable cost, without needing to know in advance that flash-lite was the right choice.

Reviewer KHDb · CommentOpenReview ↗

Response to Authors

Thank you for your responses. My rating remains unchanged.

Authors · CommentOpenReview ↗

Thank you for taking the time to read through our responses. The new experiments, including the 9-model evaluation with GPT-5 and Claude Sonnet 5, together with the clarified positioning of our claim, will be incorporated into the revised paper. We appreciate your constructive comments, which have improved the work, and are glad to answer anything further during the remaining discussion period.

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

The paper proposes BALLAD to solve model selection in AHD (like FunSearch code evolution) using an online bandit framework. It identifies three unique properties (P1 extreme objective, P2 lineage coupling, P3 non-stationarity) and handles them via a three-term index. Across 5 problems, BALLAD matches or slightly beats the best single LLM while reducing costs by up to 65.6%.

Strengths and weaknesses

Pros:

  • Framing AHD model selection as a bandit problem without offline labels is practical and new.
  • It is a drop-in method that doesn't change prompts or evaluation setup.
  • The lineage credit propagation (P2) nicely captures how weak models lay groundwork for strong models.
  • The finding that "more expensive models aren't always better" is helpful for practitioners.

Cons:

  • In Table 1, BALLAD (45.577±0.195) and flash-lite (45.630±0.108) overlap heavily and tie in rank. With only 3 runs, standard deviations are huge. The authors even admit some results are "not statistically significant." The claim of beating every individual model should be toned down, or more seeds/paired tests must be added.

  • The paper claims no existing bandit handles P1–P3, but only compares against a basic UCB. It needs comparisons with random or round-robin, fixed ensembles, or cited baselines like QoMax (extreme bandit) and SW-UCB (non-stationary).

  • In ablation, removing lineage (α=0\alpha=0) changes the overall score from 6.134 to just 6.159, and it is identical on Online BP. Since lineage is the main conceptual selling point, this tiny improvement looks like noise.

  • The "strongest" model used is Gemini-2.5-Flash, which is a lightweight model, not a true frontier model. The "expensive is not better" takeaway might not hold in a wider capability range.

Questions
  • Can you provide paired significance tests and increase seeds to ≥10\ge 10 to prove you actually surpass single models?

  • Why not include simple baselines like random routing, fixed ensembles, or SW-UCB?

  • Can you show full ablation for lineage on all 5 problems to prove it is not just noise?

  • If you include a real frontier model (e.g., GPT-4/Pro), does the cost/performance conclusion still hold?

Limitations

yes

Formatting concerns

N/A

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful review, and in particular for two suggestions that have measurably strengthened the work: completing the lineage ablation across all five problems, and evaluating BALLAD on a pool of frontier models. We have run both in full, and report them below.

We hope these address the reviewer's remaining concerns, and are glad to run further checks within the discussion period.


W1/Q1. Table 1 overlap / weak significance. BALLAD (45.577 ± 0.195) and flash-lite (45.630 ± 0.108) overlap heavily and tie in rank. With only 3 runs the standard deviations are large, and some results are admitted to be "not statistically significant." The "beats every individual model" claim should be toned down, or more seeds / paired tests added.

We agree and we will correct any overstatements.

BALLAD's claim is that it identifies a competitive model composition online, without knowing in advance which model is best, at substantially lower cost. This is the position stated in the abstract ("an ensemble that matches or exceeds what any soloist LLM achieves alone"), in §4.4 ("there is no a priori way to determine which model is best suited for a given task… BALLAD sidesteps this dilemma by automatically identifying an effective composition without exhaustive evaluation"), and in our checklist response ("performs similarly or outperforms the best LLM in hindsight"). Surpassing the best individual model is a by-product we sometimes observe, not the contribution.

Nonetheless, we accept the reviewer's point that we overstate this elsewhere, and will correct it:

  • §4.3 states BALLAD "outperforms all individual LLMs in both average objective and rank". On rank this is a tie (1.7331.733 vs 1.7331.733); we will fix this sentence.
  • We will demote the surpassing claims in the abstract, contribution list and conclusion to an observation in §4.3.

W2/Q2. Baselines: Include random / round-robin, fixed ensembles, or cited baselines like QoMax (extreme bandit) and SW-UCB (non-stationary).

We have added 4 new baselines. Ballad outperforms across the board.

Model TSP CVRP Online BP Overall
Random 6.243±0.037 10.851±0.087 2.071±0.621 6.378±0.363
Thompson Sampling 6.294±0.004 10.861±0.023 2.398±0.112 6.517±0.066
SW-UCB 6.306±0.072 10.885±0.118 1.752±0.087 6.314±0.094
QoMax 6.255±0.043 10.869±0.086 1.603±0.162 6.242±0.108
BALLAD 6.233±0.056 10.685±0.075 1.483±0.276 6.134±0.168

W3/Q3. Full lineage ablation on all 5 problems — is it just noise?

Below, we present lineage-ablation results for Offline BP and GED; TSP, CVRP and Online BP are already include in Table 2 of our manuscript. α=0\alpha=0 means lineage is not used. Following the reviewers suggestions in W4/Q4, these experiments are performed on a nine-model pool including frontier LLMs (denoted Scaled). The exact LLMs are listed in W4/Q4.

Lineage improves the objective on four of five problems and ties on the fifth (Online BP, 1.483 either way).

Model Offline BP GED
BALLAD (Scaled, α=0\alpha=0) 204.734±0.109 5.178±0.238
BALLAD (Scaled) 204.539±0.242 4.706±0.026
BALLAD (Table 1, 4 models) 204.693±0.323 4.789±0.022

The third row is the sharper result: BALLAD with only four models matches the nine-model pool run without lineage on Offline BP (204.693 vs 204.734) and surpasses it on GED (4.789 vs 5.178, non-overlapping intervals). Adding five frontier models does not compensate for removing lineage credit.

W4/Q4. Include frontier models.

We expanded the pool from four to nine arms: GPT-5, GPT-5 Mini, GPT-5 Nano, Claude Sonnet 5, Claude Haiku 4.5, Gemini 2.5 Flash, Gemini 2.5 Flash Lite, Gemma 3 27B and Gemma 3 12B. This version is denoted BALLAD (Scaled). Due to the prohibitive costs involved and the short rebuttal time-window, we restricted this to Offline BP and GED.

Model Offline BP GED
BALLAD (Scaled) 204.539±0.242 4.706±0.026
BALLAD (Table 1) 204.693±0.323 4.789±0.022

Quality improves on both problems; on GED the std-dev intervals do not overlap indicating stronger improvements.

Cost. We total input and output tokens over BALLAD's runs, price every call at its own model's rate, average across runs, and compare against pricing the identical token volume entirely at GPT-5's rate — which assumes GPT-5 would consume comparable tokens, an assumption we could not verify within the window. Cost per run in USD:

Dataset BALLAD (Scaled) GPT-5 only Savings (USD)
Offline BP 22.629 29.948 7.319 (24.4%)
GED 9.745 30.739 20.994 (68.3%)

The saving is larger on GED because the router concentrates on cheaper arms there, whereas Offline BP sustains higher allocation to strong models. The same pattern is reported in §4.4.

Authors · CommentOpenReview ↗

Feedback on rebuttal for BALLAD: LLM routing for automated heuristic discovery

Dear Reviewer QSnb,

Since the discussion phase closes in a day's time, we are keenly awaiting your feedback on whether our rebuttal addresses all outstanding concerns. We have added new experiments covering:

  • Addition of 5 new frontier LLM models including GPT and Claude families,
  • New ablation studies to showcase the importance of lineage,
  • Incorporation of all suggested baselines spanning random, QoMax, Thompson and SW-UCB.

Your inputs in this matter would be highly appreciated.

regards,

Authors

Reviewer QSnb · CommentOpenReview ↗

Most concerns addressed: new baselines (BALLAD wins), frontier GPT-5 pool with cost savings intact, and a clean non-overlapping GED lineage result.

Authors · CommentOpenReview ↗

Dear Reviewer,

We are glad to know that your concerns have been addressed. We appreciate your support for our work.

regards,

Authors.

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

This paper proposes BALLAD, a bandit-based LLM routing method for automated heuristic discovery. The main motivation is that larger and more expensive LLMs do not consistently produce better heuristics, so the system should adaptively select which LLM to call during the search process. BALLAD treats each LLM as a bandit arm and combines an extreme-value score, lineage-based credit propagation over the heuristic genealogy DAG, and an exploration bonus to guide model selection. Experiments on five NP-hard combinatorial optimization tasks show that BALLAD can match or outperform individual LLMs while reducing API cost.

Strengths and weaknesses

Advantage

  1. The paper studies a practical and timely problem: how to reduce the cost of LLM-based automated heuristic discovery without sacrificing performance.
  2. The motivation is clear. The empirical observation that stronger and more expensive models are not always better provides a good reason to study adaptive LLM routing.
  3. The proposed method is simple and modular. BALLAD can be plugged into FunSearch- or AlphaEvolve-style pipelines without changing the underlying prompt construction or evaluator.
Questions

As a reviewer who is not deeply familiar with bandit theory, I find it somewhat difficult to fully assess the theoretical novelty and correctness of the bandit-based design. However, the problem is interesting, the method is practically motivated, and the empirical results are promising. For this reason, I assign a slightly positive score with low confidence.

Limitations

NA

Final justification

I will keep my positive score.

Formatting concerns

NA

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment and for the candour about confidence, which is helpful, and we would like to make the bandit design easier to evaluate.

What is actually new in the bandit design, in three sentences without bandit machinery. Classical bandits rank arms by their average reward; because AHD is scored on the single best heuristic found, we rank instead by each model's ability to produce rare high-scoring outputs. Classical bandits assume arms are independent; here one model's output becomes the prompt for another, so we propagate credit backwards along the genealogy of heuristics. Classical bandits assume a model's quality is fixed; here it drifts as the heuristic population improves, so we discount older observations.

Correctness can be checked empirically rather than theoretically. Setting our two mixing parameters to zero recovers published algorithms exactly: UCB, and a quantile-of-maxima index in the sense of QoMax, so BALLAD is a strict generalisation rather than a new construction. More directly, in response to another reviewer we have now compared against Thompson Sampling, SW-UCB and QoMax head-to-head; BALLAD attains the best objective on all three problems tested against all three baselines. We have also added a random-routing control, confirming the gains come from the index rather than from merely mixing models, and scaled the pool from four to nine models including GPT-5 and Claude Sonnet 5, where quality improves while cost falls by up to 68.3% relative to routing everything to GPT-5. None of these require bandit expertise to assess.

On significance. AHD pipelines such as FunSearch, AlphaEvolve and ReEvo issue thousands of LLM calls per run, so the choice of model is a first-order cost decision, and our finding that scale does not predict AHD performance removes the default heuristic practitioners currently rely on. The problem also grows with the pool, since exhaustive evaluation costs a factor of ∣L∣|\mathcal{L}| and pools are expanding quickly, from the four models in our submission to the nine we report in this rebuttal. Across the four reviews we have added three bandit baselines, a random-routing control, a tail-level sweep, a cost-penalised variant, the lineage ablation completed on all five problems, and the nine-model scaled setting. One outcome bears directly on significance: BALLAD with only four models matches or exceeds the nine-model pool run without lineage credit, indicating that the mechanism rather than the strength of the pool is what produces the gains. Finally, BALLAD requires no offline supervision and no change to prompt construction or evaluation, so it drops into an existing pipeline unmodified.

We are happy to answer any questions during the discussion period.

Reviewer Hna7OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/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

Researches on automated heuristic discovery with LLM have been actively conducted. There are three important properties for routing algorithm; extreme-value objective, cross-arm coupling, and non-stationary reward distribution. This paper proposes the bandit based LLM routing method for finding better heuristics with satisfying these properties. Numerical experiments with gemma families, it could find the better heuristic algorithm with lower API costs.

Strengths and weaknesses

Strength

  • Research target is good because recently many LLM have been emerging day by day, then how to orchestrate these API to solve the real world’s problem are demanding.
  • The concept of lineage credit is interesting which can propagate the adjacent node’s information and suppresses the number of trials.
  • Numerical experiments showed that BALLAD works better than simply utilizing the same model for both of score and API costs.
  • Figure1 (LLM selection across search steps) is interesting because the the tendency of selecting LLMs drastically varies depending on the problem types.

Weakness

  • The more strong baselines are essential to validate the proposed BALLAD, since authors just compared BALLAD with UCB.
  • Ablation studies for each components, hybrid extreme-value, mutation genealogy + recency, and exploration are not enough.
  • Theoretical discussion is not enough.
  • The target problem seems to be simple, if they utilize much harder problem such as time-constrained, the difference between proposed method and baseline becomes large.
Questions
  • Would it possible to add other much stronger baselines than UCB for evaluation?
  • Would it possible to show the figure with time-steps and solution quality? It can help reader’s understanding how to evolve the heuristic algorithm.
  • Is it possible to incorporate the prior knowledge for routing algorithm? This is because LLM providers often disclose the benchmark results, and by utilizing these information can improve the routing strategy.
  • Even the concept of linage credit is interesting, the solution quality of heuristic algorithm can vary with slight modification. Then, it is unclear that the validation of linage credit.
  • When one algorithm is generated twice on separately, are these two algorithm (actually same on) treated as the different node on heuristic DAG?
Limitations

Current proposed algorithm does not consider the remaining budget during searching. Note that I understand that we simply stop if the usage costs reaches the budget.

Final justification

Authors sincerely dealing with my concerns and I understand that Ballad's usefulness. Therefore, I raise my rating to 4.

Formatting concerns

No

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the constructive sugegstions; all new results below will be included in the revised paper.


Q1. Stronger baselines than UCB?

We have added three: Thompson Sampling[21], SW-UCB[11], and QoMax[3]. BALLAD's routing-specific index outperforms all three.

Model TSP CVRP Online BP Overall
Thompson Sampling 6.294±0.004 10.861±0.023 2.398±0.112 6.517±0.066
SW-UCB 6.306±0.072 10.885±0.118 1.752±0.087 6.314±0.094
QoMax 6.255±0.043 10.869±0.086 1.603±0.162 6.242±0.108
BALLAD 6.233±0.056 10.685±0.075 1.483±0.276 6.134±0.168

Q2. Show solution quality vs. time-steps?

OpenReview disallows figures, so we tabulate here; the revision will present this as a figure (like Fig. 1), including the individual LLMs. Lower is better.

Dataset 100 200 300 400 500 600 700 800 900 1000
TSP 6.403 6.403 6.403 6.290 6.241 6.241 6.198 6.198 6.179 6.157
CVRP 11.512 11.021 10.921 10.687 10.687 10.600 10.600 10.520 10.487 10.487
Online BP 2.435 2.410 2.410 2.386 2.386 2.361 2.361 2.336 2.112 1.218
Offline BP 215.547 206.531 206.109 205.578 205.578 204.516 204.516 204.516 204.516 204.266
GED 4.854 4.806 4.794 4.794 4.760 4.760 4.758 4.758 4.758 4.758

Q3. Can disclosed benchmark results inform routing through priors?

Yes. For each llm arm ℓ∈L\ell\in\mathcal{L}, let sℓs_\ell be a scalar prior from publicly reported benchmark results (e.g. code-generation accuracy), standardised across the pool as zℓ=(sℓ−sˉ)/σsz_\ell=(s_\ell-\bar s)/\sigma_s with sˉ,σs\bar s,\sigma_s the pool mean and std-dev. A single hyperparameter η≥0\eta\ge0 sets how strongly the prior is trusted; η=0\eta=0 recovers BALLAD.

(i) Prior-weighted exploration. Replace the global β\beta in Eq. (5) with βℓ=βexp⁡(ηzℓ)\beta_\ell=\beta\exp(\eta z_\ell), giving the bonus βexp⁡(ηzℓ)log⁡T/nℓ\beta\exp(\eta z_\ell)\sqrt{\log T/n_\ell}; the exponential keeps βℓ>0\beta_\ell>0 for any zℓz_\ell. Benchmark-strong models are probed harder early, but the O(nℓ−1/2)O(n_\ell^{-1/2}) decay makes this transient by construction. The same weights pℓ∝exp⁡(ηzℓ)p_\ell\propto\exp(\eta z_\ell) can also order the warm-up of Alg.5.

(ii) Prior as a shrinkage target on the base score. The prior is a claim about an arm's tail quality, which is what base(ℓ)\mathrm{base}(\ell) estimates, so we shrink Eq. (7) toward a prior-implied location:

baseprior(ℓ)=(1−ωℓ(t))mℓ(t)⏟prior (new)+  ωℓ(t)[(1−λ)q^τ(ℓ)+λmax⁡Oℓ]⏟= base(ℓ) of Eq. (7),ωℓ(t)=nℓnℓ+n0,mℓ(t)=μ^(t)+η σ^(t)zℓ\mathrm{base}_{\text{prior}}(\ell)=\big(1-\omega_\ell(t)\big)\underbrace{m_\ell(t)}_{\text{prior (new)}}+\;\omega_\ell(t)\underbrace{\Big[(1-\lambda)\hat q_\tau(\ell)+\lambda\max O_\ell\Big]}_{=\,\mathrm{base}(\ell)\text{ of Eq. (7)}},\quad \omega_\ell(t)=\frac{n_\ell}{n_\ell+n_0},\quad m_\ell(t)=\hat\mu(t)+\eta\,\hat\sigma(t)z_\ell

ωℓ(t)\omega_\ell(t) is the weight on evidence: at nℓ=0n_\ell=0 the score is entirely prior, at nℓ=n0n_\ell=n_0 prior and evidence are equal, and n0=0n_0=0 recovers Eq. (7). mℓ(t)m_\ell(t) performs the unit conversion. Benchmark scores are not on the scale of fPf_P, so with μ^(t),σ^(t)\hat\mu(t),\hat\sigma(t) the running mean and standard deviation over ⋃ℓOℓ\bigcup_\ell O_\ell, the prior enters as a displacement in units of the population's current score spread: an arm benchmarking at the pool average is initialised at the typical observed score, one standard deviation above the pool at η\eta standard deviations above it. η\eta is thus an exchange rate between benchmark and realised-score dispersion, and recalibrates automatically as the population evolves under (P3).

Q4. Heuristic quality can vary with slight modifications; is lineage credit valid?

We agree with the premise, but it is precisely what BALLAD is built to be insensitive to: the index rewards breakthroughs, not variation in heuristic quality generally. Every term of Eq. (5) is gated on the upper tail, so outputs that do not advance the frontier do not move Scoreℓ(t)\mathrm{Score}_\ell(t). Concretely, λmax⁡Oℓ\lambda\max O_\ell is exactly unchanged unless the output is a record for that arm; αLˉℓ(t)\alpha\bar L_\ell(t) propagates zero credit unless rt=max⁡(0,fP(ht)−bt)>0r_t=\max(0,f_P(h_t)-b_t)>0, so a slightly modified heuristic of ordinary quality credits no ancestor at all; and (1−λ)q^τ(ℓ)(1-\lambda)\hat q_\tau(\ell) is a tail functional.

Empirically, disabling lineage (α=0\alpha=0, Table 2) degrades the mean on TSP and CVRP and sharply increases variance: run-to-run standard deviation rises from ±0.056 to ±0.130 on TSP and from ±0.075 to ±0.334 on CVRP, indicating that lineage credit stabilises arm selection rather than merely shifting it.

We also emphasise what the lineage term does not claim. Lˉℓ(t)\bar L_\ell(t) is not a per-heuristic causal attribution but an aggregate arm-ranking statistic, answering whether an arm recurring in the ancestry of frontier-advancing heuristics has higher current utility.

Q5. If the same algorithm is generated twice, does it mean one node in DAG or two?

In our runs, yes: a node of Gt\mathcal{G}_t is a generation event, identified by the round, the authoring model LLM(h)\mathrm{LLM}(h) and the parent set Pa(h)\mathrm{Pa}(h). So two identical heuristics generated at different rounds are two nodes. This matches OℓO_\ell being a multi-set (footnote 3).

Note, however, this is not a design decision of BALLAD. Whether the pool admits duplicates is a property of the host framework, and BALLAD is plug-and-play (§3.5): it consumes the ancestry set PaDmax⁡(ht)\mathrm{Pa}^{D_{\max}}(h_t) the host supplies and maintains no program database of its own. We instantiate it on a FunSearch-style [18] pipeline, which retains duplicates; if the host enforces uniqueness the DAG contains no repeated programs, and the router is unchanged either way.

W1. Component ablations insufficient.

Table 2 already reports 5 ablated configurations covering all 3 terms of Eq. 5:

  1. UCB — replaces the extreme-value estimator with the sample mean, removing (P1) entirely.
  2. λ=0\lambda=0 — quantile-only base score.
  3. λ=1\lambda=1 — record-only base score; with (2) this isolates both halves of the hybrid estimator.
  4. α=0\alpha=0 — disables lineage credit, removing (P2).
  5. Exp. bonus ∝log⁡t\propto\sqrt{\log t} — replaces the fixed-horizon schedule with the standard growing one.

We add 3 further studies.

Random arm selection is the complete ablation: every term of Eq. (5) removed, leaving uniform selection. It tests whether the gains come from the index or merely from mixing models.

Model TSP CVRP Online BP Overall
Random 6.243±0.037 10.851±0.087 2.071±0.621 6.378±0.363
BALLAD 6.233±0.056 10.685±0.075 1.483±0.276 6.134±0.168

Mixing alone is insufficient, whereas BALLAD improves on the best individual model on all three.

Tail level τ\tau sets how far into the upper tail the base score reads.

τ\tau TSP CVRP Online BP Overall
0.70 6.444±0.231 10.625±0.147\mathbf{10.625 \pm 0.147} 1.541±0.447 6.203±0.3036.203 \pm 0.303
0.90 6.233±0.056 10.685±0.075 1.483±0.276 6.134±0.168
0.9 6.337±0.013 10.695±0.017 1.777±0.733 6.270±0.423

τ=0.9\tau=0.9 provides the best balance in general and hence is our default.

Cost-penalised exploration probes the exploration term further, discounting each arm's bonus by its mean observed call cost cˉℓ\bar c_\ell via ρ(ℓ)=e−cˉℓ/max⁡ℓ′e−cˉℓ′\rho(\ell)=e^{-\bar c_\ell}/\max_{\ell'}e^{-\bar c_{\ell'}}, so the cheapest arm is undiscounted and free models satisfy ρ≡1\rho\equiv1:

Scoreℓ(t)=(1−λ)q^τ(ℓ)+λmax⁡Oℓ+αLˉℓ(t)+βlog⁡Tnℓ⋅ρ(ℓ)\mathrm{Score}_\ell(t)=(1-\lambda)\hat q_\tau(\ell)+\lambda\max O_\ell+\alpha\bar L_\ell(t)+\beta\sqrt{\tfrac{\log T}{n_\ell}}\cdot\rho(\ell)
Model TSP CVRP Online BP Overall
BALLAD (CP) 6.266±0.028 10.863±0.135 2.079±0.557 6.403±0.331
BALLAD 6.233±0.056 10.685±0.075 1.483±0.276 6.134±0.168

Down-weighting exploration by price is worse on all three problems: it biases the search toward cheaper but weaker models, whereas in a discovery pipeline an arm's value lies in its capacity for rare breakthroughs. This substantiates §4.4; the 65.6% saving is emergent, since an expensive model that underperforms simply accumulates few pulls.

Coverage. Across 8 configurations, the index is probed at every level: the whole function (Random), the value term at four points (UCB, λ=0\lambda=0, λ=1\lambda=1, τ\tau), lineage at one (α=0\alpha=0), and exploration at two (schedule, cost-penalised).

W2. Theoretical discussion is insufficient.

Regret guarantees rest on two assumptions: rewards stationary within an arm, and arms independent. Both fail here by construction. The genealogy couples the arms, since one model's output seeds the context another is prompted with (P2), and every arm's score distribution drifts as the population conditioning it improves (P3).

A bound can of course be recovered by positing a parametric form for an LLM's score distribution and its drift across iterations. We deliberately avoid this: no such characterisation exists to our knowledge, so a guarantee derived from an assumed form would describe the assumption rather than the algorithm.

Two statements survive without those assumptions and we will add them to the appendix: q^τ(ℓ)\hat q_\tau(\ell) is consistent for the upper-tail functional per-arm [3], and the lineage term is bounded, so Scoreℓ(t)\mathrm{Score}_\ell(t) is an extreme-value index perturbed by at most αLˉmax⁡\alpha\bar L_{\max}. If the reviewer has a particular analysis in mind, we would welcome the direction.

W3. Problems seem simple; harder ones would widen the gap.

Our choice was driven by comparability with the AHD literature. Online bin packing is the benchmark introduced by FunSearch [18] and retained by EoH [15], which also evaluates on TSP; the routing-and-packing suite follows ReEvo [25] and MCTS-AHD [26], whose instance generators and splits we adopt directly, with GED following GRAIL [23]. Departing from these would make our results incomparable with prior AHD work. All five problems are NP-hard, and GED is additionally APX-hard.

Authors · CommentOpenReview ↗

Clarifications about posted response:

Q2. Solution quality vs. time-steps table: Unlike our other metrics, which are averaged over 3 runs, solution-quality trajectories are run-specific and cannot be meaningfully averaged. For each problem, this table therefore shows the trajectory of the single run with the best (minimum) test objective.

W1. Component ablations - Cost-penalized exploration: We note a correction to the formula given above. The cost penalty stated was ρ(ℓ)=e−cˉℓ/max⁡ℓ′e−cˉℓ′\rho(\ell)=e^{-\bar c_\ell}/\max_{\ell'}e^{-\bar c_{\ell'}} (max-norm), but the actual formula used in our analysis is a softmax of the negative mean cost, i.e. ρ(ℓ)=e−cˉℓ/∑ℓ′∈paide−cˉℓ′\rho(\ell)=e^{-\bar c_\ell}/\sum_{\ell'\in\text{paid}}e^{-\bar c_{\ell'}}. Thus, the paid arms are discounted relative to one another in proportion to cost while free models (no cost observations) satisfy ρ≡1\rho\equiv1.

Reviewer Hna7 · CommentOpenReview ↗

Comments to authors

Thanks for faithfully replying to my review comments.

Additional experiments convinced me that BALLAD still showed better results compared to more stronger baselines. Also, discussions about Q3 is quite interesting for me. In addition to above points, authors sufficiently response my comments and resolve my doubt such as practical usefulness and theoretical discussion. Considering these points, I raise my rating to 4.

Authors · CommentOpenReview ↗

Thank you for engaging with our responses and for raising your rating in favor of acceptance. We are glad the additional baselines addressed the comparison concern, and that the Q3 discussion was of interest; we will include the new experiments in the revision, and add the prior-informed routing formulation as a discussion of future extensions. We appreciate the care you put into the review, which has improved the paper.

Comments on the paper

1 comment
Area Chair JjNa · CommentOpenReview ↗

Dear Reviewers,

Thank you for your reviews. The author-reviewer discussion period will close soon. If you haven't already, please take a look at the authors' responses and let them know whether your concerns have been addressed or whether you have further questions.

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

Missing a submission?

Loading the discussion…