# Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery

BALLAD：自動ヒューリスティック発見のためのバンディットベースのLLMルーティング

Samidha Verma, Ankit Anand, Sayan Ranu · arXiv · 2026年11月12日

- **課題** より大きく高価なLLMが自動ヒューリスティック発見で常に良い結果を出すとは限らないため、各段階でどのモデルを呼び出すかをオンラインで選ぶ問題が生じます。
- **手法** LLMのプールをバンディットの腕とみなし、極値スコア、DAG系譜クレジット、ウィンドウ最近性項、固定予算の探索ボーナスを合算して、毎ラウンド呼び出すモデルを選びます。

## LLMの規模だけではヒューリスティックの品質を保証しにくい点

自動ヒューリスティック発見（AHD）は、LLMがコードとして表現されたヒューリスティックを繰り返し変異させて改良する方法です。この過程では1回の実行に数千回のLLM呼び出しが必要なため、どのモデルを呼び出すかがコストと結果の両方に大きく影響します。この論文では、より大きく高価なモデルが常により良いヒューリスティックを作るという仮定を、複数のNP-hard組合せ最適化問題で検証しました。その結果、大きなモデルが一貫して優位にあったわけではなく、一部のタスクでは小さな無料モデルが高価なモデルより良い結果を出しました。

そのため、固定した1つのモデルや、毎回すべてのモデルを呼び出すアンサンブルの代わりに、探索中に得られるオンラインのフィードバックを使って各段階で呼び出すモデルを選ぶ必要があります。ただし、この選択は既存のルーティングやバンディット問題とは複数の点で異なります。既存のルーティングはオフラインのラベルを前提とし、バンディットは腕が独立していて累積報酬の最大化を仮定します。AHDでは最高スコアのヒューリスティック1つが目標であり、あるLLMの出力が別のLLMの文脈になります。さらに、集団が進化するにつれてモデルごとの効用も変わります。

## BALLADのアーム別スコア構成

BALLADは各LLMをバンディットの腕とみなし、毎ラウンド腕ごとにスコア Score\_l(t) を計算し直します。スコアは3つの項の和です。第1項は基本の極値スコア base(ℓ) = (1−λ)·q̂\_τ(ℓ) + λ·max O\_ℓ です。ここでO\_ℓはモデルℓが生成したヒューリスティックスコアのバッファで、q̂\_τ(ℓ)はO\_ℓからB回のブートストラップ再標本を抽出し、各再標本の最大値を集めた分布のτ分位点です。λは、安定した分位点推定と実際に観測された最大値との混合比率です。第2項は系譜項で、直近Wラウンド内で祖先ヒューリスティックをたどって割り引いたクレジットを、対数使用回数で割ったウィンドウfertilityスコアです。

第3項は全予算Tを使う探索ボーナス β√(log T / n\_ℓ) です。

![Table 3: Notations and Hyperparameter Settings for BALLAD](https://refivu.com/papers/8235a1af-2f08-4cce-82f5-6886ad0fb161/figures/figure-b0b177c8887aa75f8464ad18a84ba016.png?thumb=512)

**Table 3** : Notations and Hyperparameter Settings for BALLAD

[出典](https://arxiv.org/abs/2611.17241v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Samidha Verma, Ankit Anand, Sayan Ranu · Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

系譜クレジットは、新しいヒューリスティックの報酬 r\_t = max(0, f\_P(h\_t) − b\_t) が0より大きいときにだけ伝播します。ここでb\_tは上位K個のエリートスコアの中央値です。クレジットは距離dに対してγ^dを掛けて、Dmax深さまで祖先アームに加えられます。こうすると、あるモデルが直接作ったヒューリスティックだけでなく、その出力が別のモデルの高得点ヒューリスティックに寄与した場合も反映されます。

## モデルプールの構成と個別LLMの比較結果

論文では、gemini-2.5-flash-lite、gemini-2.5-flash、gemma-3-12b-it、gemma-3-27b-itの4つのモデルプールで、TSP、CVRP、Online BP、Offline BP、GEDを評価しました。評価は、検証セットで選んだプログラムをテストセットに適用する方法で行い、3回繰り返した平均と標準偏差で報告されています。表1では、gemini-2.5-flashは最も大きく高価なモデルですが、どのタスクでも最高の目的値や最高順位は得られませんでした。一方、gemma-3-12b-itは最も小さいモデルであるにもかかわらず、CVRPで最高性能を示しました。

![Table 1: Test-set performance. We report the best program (selected on validation) evaluated on the test set. For each model, we show mean ± std (over 3 runs)…](https://refivu.com/papers/8235a1af-2f08-4cce-82f5-6886ad0fb161/figures/figure-7f4d6c4c916dfac33bcb30ea08a5e1f1.png?thumb=512)

**Table 1** : Test-set performance. We report the best program (selected on validation) evaluated on the test set. For each model, we show mean ± std (over 3 runs) forTask-Specific Objective (Obj.)( ↓) and Rank( ↓), where lower is better for both Obj, since we benchmark on minimization problems, and rank. Ranks are integer-valued; draws at full precision share the lowest rank, and the next rank is skipped.Overallis the mean of per-problem means; its std is the root-mean-square of per-problem stds.

[出典](https://arxiv.org/abs/2611.17241v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Samidha Verma, Ankit Anand, Sayan Ranu · Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

![Table 4: Benchmark dataset configurations.Problems are grouped by type.Problem Sizedenotes the average instance size: number of cities/nodes for routing proble…](https://refivu.com/papers/8235a1af-2f08-4cce-82f5-6886ad0fb161/figures/figure-f85650d56f80a2eb3a3ec3f9052cc8cb.png?thumb=512)

**Table 4** :Benchmark dataset configurations.Problems are grouped by type.Problem Sizedenotes the average instance size: number of cities/nodes for routing problems, number of items for packing problems, and (\|V\|, \|E\|) for graph problems. Problem-specific constraints, such as vehicle capacity W (CVRP) and bin capacity C (BP), are listed in theConstraintscolumn. Instance counts are given per split.

[出典](https://arxiv.org/abs/2611.17241v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Samidha Verma, Ankit Anand, Sayan Ranu · Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery · 論文の図を引用 · 元のPDFの18ページ目から図の部分を抽出しています。

BALLADは全体平均の目的値45.577を記録し、全体平均順位も最も良好でした。ただし著者らは、CVRPではgemma-3-12b-itが単独で最高であるにもかかわらず、BALLADは主にgemini-2.5-flash-liteとgemma-3-27b-itを選んだと観察しています。著者らはこれを、最高ではないモデル同士の相互作用と系譜クレジットによるものと解釈しています。

![Figure 1: LLM selection share across search steps (rolling window of 100 calls).Each panel shows, for a combinatorial optimization problem, the fraction of LLM…](https://refivu.com/papers/8235a1af-2f08-4cce-82f5-6886ad0fb161/figures/figure-1b8159f1fe24baf904a2a7114b450166.png?thumb=512)

**Figure 1** :LLM selection share across search steps (rolling window of 100 calls).Each panel shows, for a combinatorial optimization problem, the fraction of LLM calls routed to each model by BALLAD over the course of the evolutionary search. The dotted horizontal line marks the uniform-allocation baseline (1/K=25% here), corresponding to a policy with no preference over arms. Deviations from this baseline reflect the learned routing policy by BALLADfavors models with selection share above 1/K due to higher estimated utility.

[出典](https://arxiv.org/abs/2611.17241v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Samidha Verma, Ankit Anand, Sayan Ranu · Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

![Figure 3: Best test objective vs. number of LLM calls for BALLAD(lower is better).After each call, all programs generated so far are evaluated on the test set,…](https://refivu.com/papers/8235a1af-2f08-4cce-82f5-6886ad0fb161/figures/figure-d053a77046825a4c92060953a6dd51f7.png?thumb=512)

**Figure 3** :Best test objective vs. number of LLM calls for BALLAD(lower is better).After each call, all programs generated so far are evaluated on the test set, and the best-performing program is retained. The blue line shows the mean across three runs, with the shaded region indicating ±1 standard deviation. The green dashed line marks the best objective achieved across all runs. Insets zoom in on the second half of the search to highlight smaller improvements. Since the best program is selected using test performance at each step, these curves provide an optimistic estimate of the results in Table 1, where selection is based on validation performance. The final mean is comparable to or better than the corresponding table value.

[出典](https://arxiv.org/abs/2611.17241v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Samidha Verma, Ankit Anand, Sayan Ranu · Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery · 論文の図を引用 · 元のPDFの20ページ目から図の部分を抽出しています。

## API費用の比較

費用は、学習セットで計算した実行あたりのAPI費用を、Gemini 2.5の公開単価で換算した値です。gemma-3モデルは無料のため、費用の図からは除外されています。論文では、BALLADはgemini-2.5-flashと比べて最大5.30倍、平均2.86倍安いと報告しています。gemini-2.5-flash-liteと比べると、5つのタスクのうち3か所では安く、平均では1.19倍高くなりました。この平均費用の差について、著者らはBALLADがより安いモデルをより多く使う探索の結果だと見ています。

図2で示された65.6%の削減は、gemini-2.5-flashと比べた平均費用の減少として報告された値です。結果にはOffline BPとGEDで例外があり、この2つのタスクでは最も強いモデルが全区間で競争力を保ったため、割り当てがより多く偏りました。

![Figure 2: LLM API cost per run.Total monetary cost (USD) of one evolutionary search run on each task, averaged over three independent runs (mean ± std as error…](https://refivu.com/papers/8235a1af-2f08-4cce-82f5-6886ad0fb161/figures/figure-5dc9b195d12ecf3a934d06e7cf5e09bb.png?thumb=512)

**Figure 2** :LLM API cost per run.Total monetary cost (USD) of one evolutionary search run on each task, averaged over three independent runs (mean ± std as error bars). Costs are computed from per-call input/output token counts using public Gemini 2.5 list prices: Flash-Lite at $0.10/M input and $0.40/M output tokens, Flash at $0.30/M input and $2.50/M output tokens. gemma-3 models incur no monetary cost, hence not shown. Average cost reduction relative to gemini-2.5-flash using BALLADis 65.6%.

[出典](https://arxiv.org/abs/2611.17241v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Samidha Verma, Ankit Anand, Sayan Ranu · Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

## 系譜項と探索ボーナスの寄与

Table 2のアブレーション実験は、TSP、CVRP、Online BPの3つの問題で実施されました。全体の目的値は3問題の平均です。BALLADの全体目的値は6.134で、標準UCBの6.243、SW-UCBの6.314、Thompson Samplingの6.517より低い値でした。同じ表で、系譜クレジットを無効にしたBALLAD(α=0)は全体目的値6.159で、系譜項を含むBALLADより悪い結果でした。これは、この設定では系譜項が寄与したという観察であり、すべてのタスクで同じ方向だという意味ではありません。

探索ボーナスでも、現在のラウンドではなく全予算Tを使う設定は、増加型の√log tボーナスよりも全体の結果が良好でした。コストペナルティ探索は安価ですが、弱いモデルに偏って全体目的値が悪くなったと報告されています。

## 拡張9モデルプールの結果とコスト

著者らは、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、Gemma 3 12Bからなる9モデルプールを、Offline BPとGEDでのみ実験しました。フロンティアモデルのコストのため、範囲をこの2つのタスクに限定しました。拡張プールは両タスクとも目的値を改善し、特にGEDでは標準偏差の区間が重なりませんでした。

![Table 5: Scaling to Frontier Models:Objective values on Offline BP and GED for four- and nine-model pools, with and without lineage-aware exploitation.Scaledde…](https://refivu.com/papers/8235a1af-2f08-4cce-82f5-6886ad0fb161/figures/figure-0f4ec347530de2dd86e6794808b4c2f8.png?thumb=512)

**Table 5** :Scaling to Frontier Models:Objective values on Offline BP and GED for four- and nine-model pools, with and without lineage-aware exploitation.Scaleddenotes the nine-model pool. Boldand underline denote the best and runner-up values, respectively.

[出典](https://arxiv.org/abs/2611.17241v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Samidha Verma, Ankit Anand, Sayan Ranu · Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery · 論文の図を引用 · 元のPDFの23ページ目から図の部分を抽出しています。

コストの比較では、同じトークン量をすべてGPT-5の単価で計算した値と比べました。この比較は、GPT-5だけを使った場合に同じトークン量が出るという仮定を検証していません。したがって、平均46.35%、最大68.3%の削減は、この仮定のもとでの値です。

![Table 6: Cost Comparison:Average cost per run (USD) of BALLAD(Scaled) versus pricing the same token volume entirely at GPT-5’s rate. Relative savings are shown…](https://refivu.com/papers/8235a1af-2f08-4cce-82f5-6886ad0fb161/figures/figure-5f0515eb1f786d6f8f6192e8ed3cb6b9.png?thumb=512)

**Table 6** :Cost Comparison:Average cost per run (USD) of BALLAD(Scaled) versus pricing the same token volume entirely at GPT-5’s rate. Relative savings are shown in parentheses.

[出典](https://arxiv.org/abs/2611.17241v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Samidha Verma, Ankit Anand, Sayan Ranu · Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery · 論文の図を引用 · 元のPDFの23ページ目から図の部分を抽出しています。

## ブラックボックスモデルという仮定の限界

著者らは、現在の定式化では各LLMを固定されたプロンプト戦略を持つブラックボックス生成器として扱うと述べています。この設定では、モデルごとに異なるプロンプト、変異演算子、系譜情報や文脈表現を活用する違いを反映できません。また、BALLADのバンディットとしての理論的保証は主張しておらず、独立性と定常性の仮定がAHDでは成り立たないという点を前提としています。

## 論文情報

- **著者**: Samidha Verma, Ankit Anand, Sayan Ranu
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月12日
- **登録日**: 2026年11月14日
- **更新日**: 2026年11月12日
- **バージョン**: v1
- **arXiv**: 2611.17241
- **カテゴリ**: cs.AI
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.17241v1) · [PDF ↗](https://arxiv.org/pdf/2611.17241v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

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.

## この論文を引用

Samidha Verma, Ankit Anand, Sayan Ranu (2026). Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery. arXiv:2611.17241v1. https://arxiv.org/abs/2611.17241v1

**BibTeX**

```
@misc{verma2026ballad,
  title = {{Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery}},
  author = {Samidha Verma and Ankit Anand and Sayan Ranu},
  year = {2026},
  eprint = {2611.17241},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.17241v1}
}
```

## この論文の用語

- [Thompson sampling](https://refivu.com/ja/terms/f26b1beb63bf-thompson-sampling)
- [FunSearch](https://refivu.com/ja/terms/b73739901fc7-funsearch)

## ほかの論文解説

- [LazyWeights: Decode-on-Demand Edge LLMs](https://refivu.com/ja/papers/e6b6c3c4-1bd3-46cf-8fce-73c9b9bbe83d-lazyweights-decode-on-demand-edge-llms.md)
- [A Closer Look at Language Model Introspection: Probing Information and Reporting](https://refivu.com/ja/papers/313de13a-0a23-4786-86f2-055cc279d643-a-closer-look-at-language-model-introspection-probing.md)
- [DiFiT: Distribution-Fidelity-guided Visual Token Pruning for Multimodal Large Language Models](https://refivu.com/ja/papers/ded3d71e-2778-4155-b22f-1de96026dbd7-difit-distribution-fidelity-guided-visual-token-pruning-for.md)
- [Look It Up: Multi-bit LLM Watermarking via Codebook Search](https://refivu.com/ja/papers/1c207fc0-dbd1-422d-aa7e-04c5ad2d615b-look-it-up-multi-bit-llm-watermarking-via.md)
- [Mind the Accuracy-Approval Gap: How Users Evaluate Sycophantic AI in Everyday Tasks](https://refivu.com/ja/papers/d62f0b2a-4b25-4637-8d3b-cd531c6a07d1-mind-the-accuracy-approval-gap-how-users-evaluate.md)
- [Calibration and Conformal Prediction for Medical Question Answering in Arabic and English: Evidence from Two Non-Parallel Benchmarks](https://refivu.com/ja/papers/45cccf3d-bbd8-47a2-9b61-eba7a12cf21d-calibration-and-conformal-prediction-for-medical-question.md)
- [eDMD: Endpoint Distribution Matching for Few-Step Diffusion Distillation](https://refivu.com/ja/papers/039e2f7f-dc99-4e6c-b431-a68221cbbfc2-edmd-endpoint-distribution-matching-for-few-step-diffusion.md)
- [Speed-to-Power Dominates Energy Costs for AI Data Centers: Technoeconomic Analysis of Powering AI in the Continental United States](https://refivu.com/ja/papers/59c862ce-9112-44ef-844c-60828dd3cb56-speed-to-power-dominates-energy-costs-for-ai.md)
- [Reasoning Supervision and Capability Retention in LoRA Domain Adaptation](https://refivu.com/ja/papers/8850d94e-cf21-4e76-851b-9e14ea5ed39a-reasoning-supervision-and-capability-retention-in-lora.md)
- [Near-Optimal Regret for Oracle-Efficient Adversarial Contextual Bandits](https://refivu.com/ja/papers/59c9377d-a911-4ec5-acfc-c9189a7a8655-near-optimal-regret-for-oracle-efficient-adversarial.md)
- [Maximizing Capacity Utilization of LoRA Adapters for Mitigating the Learning-Forgetting Trade-off](https://refivu.com/ja/papers/911a8326-f128-4cba-a0a4-26e3e558c34d-maximizing-capacity-utilization-of-lora-adapters-for.md)
- [Random Exploration is Random](https://refivu.com/ja/papers/1d87476a-b29d-4d44-951c-12ecc840b170-random-exploration-is-random.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/8235a1af-2f08-4cce-82f5-6886ad0fb161-ballad-bandit-based-llm-routing-for-automated-heuristic)
