NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery

Samidha Verma, Ankit Anand, Sayan Ranu

NeurIPS page · OpenReview · Open on the map

Category: LLM Agents, Evals & Benchmarks › Agentic Workflow and Environment Generation · Type: new method · Keywords: LLM selection, online bandit, heuristic discovery, combinatorial optimization, adaptive model orchestration

Areas: AI Agents › Agentic Decision Making › Language Model Agents

Summary

Ballad is an online bandit algorithm that adaptively selects and orchestrates a pool of LLMs to improve heuristic discovery while reducing API cost.

Explained to a 5-year-old

Some smart computer programs called LLMs help solve hard puzzles by making small changes. We have many different LLMs, some big and expensive, some small and free. We teach a special rule to pick which LLM to use at each step, so we use the best one. This way the puzzles get solved just as well or better, and we spend less money on the expensive LLMs. It helps people solve problems without needing a lot of money or huge computers.

Explained to a 5-year-old, longer

Automated heuristic discovery means computers try to find good ways to solve hard problems. Large language models (LLMs) are computer programs that can suggest new ideas. Usually people think bigger LLMs always give better ideas, but that isn’t always true. There are many LLMs, some very powerful and costly, others free and smaller. The challenge is to decide which LLM to use at each step of solving a problem. The best LLM can change during the solving process, and the ideas from one affect the next. To solve this, researchers created a new method that treats choosing LLMs like a game of picking the best one each time. This method learns from past choices, gives credit to useful ideas, and forgets old information that is no longer helpful. As a result, the system can pick the right LLM for each step, solving puzzles as well or better than using just one big model. It also saves money because it uses cheaper LLMs more often. This makes solving difficult problems easier and more affordable for everyone.

For a technical reader

The paper frames LLM selection as an online bandit problem, learning a policy that balances exploration and exploitation across a heterogeneous model pool. It introduces a DAG-based credit propagation to allocate reward based on heuristic lineage and applies exponential discounting to adapt to non-stationary performance. Experiments on five combinatorial optimization benchmarks show the approach matches or beats the best single LLM while cutting API costs by up to 65%.

Problem

Adaptively selecting which LLM to use at each step of automated heuristic discovery is challenging because model performance can change over time and their outputs are interdependent, violating standard online decision-making assumptions.

Method

The approach formulates LLM selection as an online bandit problem, using a policy that rewards rare high-scoring heuristics, propagates credit through a DAG of heuristic genealogies, and discounts stale observations to adapt to changing model utility.

Results

The approach matches or exceeds the best individual LLM on five combinatorial problems and reduces API cost by up to 65.6% compared to always using the strongest model.

Contributions

It introduces an online bandit framework for adaptive LLM selection, a credit propagation mechanism that accounts for heuristic genealogies, and demonstrates consistent performance gains and cost savings across multiple optimization tasks.

Practical relevance

By enabling cost-effective and adaptive use of diverse LLMs, the work allows practitioners to achieve high-quality heuristics without relying solely on expensive frontier models.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction