On November 12, 2026, researchers Samidha Verma, Ankit Anand, and Sayan Ranu from the Indian Institute of Technology Delhi and Google DeepMind released an arXiv preprint introducing Ballad: Bandit-Based LLM Routing for Automated Heuristic Discovery. The work demonstrates that costlier frontier large language models do not consistently outperform smaller or open-weight models in algorithm generation, providing computational research labs with an adaptive framework to slash automated discovery inference budgets by up to 65.6%.
What happened
Automated heuristic discovery frameworks such as FunSearch, EoH, and AlphaEvolve prompt large language models to iteratively mutate, evaluate, and refine algorithmic code for computationally hard combinatorial problems. In academic and industrial research settings, a prevailing operational assumption has been that deploying the largest, most expensive frontier models inevitably yields the most effective heuristics. The authors tested this assumption empirically across multiple NP-hard benchmark problems and found no consistent performance advantage for larger, costlier models.
In baseline evaluations across five combinatorial optimization tasks, Google’s largest evaluated model, Gemini 2.5 Flash, failed to secure the top objective score or rank on any problem. Instead, the smallest evaluated open-weight model, Gemma 3 12B IT, achieved the best standalone performance on the Capacitated Vehicle Routing Problem, while Gemini 2.5 Flash-Lite delivered the most consistent performance across tasks. Because automated search runs require thousands of sequential prompt calls, static commitments to premium frontier models incur substantial inference expenses without guaranteed algorithmic gains.
Methodology and key findings
To address this challenge, the team formulated automated heuristic discovery as an online multi-armed bandit routing problem called Ballad. Unlike conventional model routers that rely on supervised offline training and treat queries independently, Ballad operates dynamically during the evolutionary search. The algorithm resolves three unique structural properties of heuristic discovery: discovering extreme-value breakthroughs rather than optimizing average output quality, accounting for causal dependencies where code generated by one model seeds prompts for another, and handling non-stationary rewards as population fitness improves.
Ballad introduces three coordinated algorithmic mechanisms: a hybrid base score combining empirical maxima with bootstrap upper-tail quantiles to reward rare breakthroughs, a directed acyclic graph credit allocation mechanism that uses breadth-first search to distribute rewards to ancestral parent models with genealogical distance decay, and recency discounting to phase out stale observations. In rigorous evaluations across three problem classes—routing (Traveling Salesman Problem and Capacitated Vehicle Routing Problem), bin packing (online and offline variants), and graph edit distance on Linux program dependence graphs—Ballad achieved the best overall objective score (45.577) and tied for top average rank (1.733) across three independent runs.
Across the five benchmark tasks, Ballad matched or surpassed every individual standalone model, outperforming soloists on four problems. At the same time, Ballad reduced API expenditures by an average of 2.86 times (up to 5.30 times cheaper) relative to Gemini 2.5 Flash, yielding an average cost reduction of 65.6%. In ablation experiments, Ballad outperformed standard Upper Confidence Bound, sliding-window UCB, and Thompson Sampling baselines. Furthermore, expanding the routing pool to nine models—incorporating frontier systems such as GPT-5 and Claude Sonnet 5 alongside Gemini 2.5 Flash—improved objective scores while saving an average of 46.35% in API costs compared to querying GPT-5 exclusively.
Why it matters for research practice
For academic research institutions and laboratory directors managing finite compute allocations, Ballad demonstrates that multi-model orchestration provides superior returns compared to monolithic model deployment. By coupling automated discovery pipelines with rigorous AI output verification, laboratories can incorporate open-weight local models alongside selective commercial API calls without compromising solution quality.
The research also reinforces the importance of transparent artifact sharing. The authors published their complete implementation and benchmark programs in an open repository, establishing a clear baseline for computational reproducibility across complex evolutionary AI pipelines. As research groups integrate automated code generation into production workflows, embedding detailed prompt lineages and routing logs into data availability statements for reproducibility ensures that downstream researchers can independently audit heuristic provenance, validation trajectories, and compute expenditures.







