AdaptEvolve: Improving Efficiency of Evolutionary AI Agents through Adaptive Model Selection
Pretam Ray, Pratik Prabhanjan Brahma, Zicheng Liu, Emad Barsoum
TL;DR
AdaptEvolve addresses the high cost of iterative LLM use in evolutionary agentic coding by dynamically routing generation steps between a cost-efficient small model $M_S$ and a powerful large model $M_L$ based on intrinsic uncertainty signals $C(x_i)$ and a binary router $\\Phi: \mathbb{R}^d \to \{0,1\}$. It bootstraps a lightweight decision tree from a $N=50$ warm-up set and continuously updates it online with a Hoeffding Adaptive Tree to handle non-stationarity, using entropy-based metrics $c_t$, MC, LGC, TC, and BWC as router inputs. Empirically, AdaptEvolve achieves an average compute reduction of $37.9\%$ while retaining $97.5\%$ of the upper-bound accuracy of static $M_L$ baselines across LiveCodeBench and MBPP, indicating a favorable Pareto frontier. This approach demonstrates that uncertainty-aware resource allocation can scale agentic reasoning with multi-LLM systems without external controllers, enabling efficient and robust code-generation workflows.
Abstract
Evolutionary agentic systems intensify the trade-off between computational efficiency and reasoning capability by repeatedly invoking large language models (LLMs) during inference. This setting raises a central question: how can an agent dynamically select an LLM that is sufficiently capable for the current generation step while remaining computationally efficient? While model cascades offer a practical mechanism for balancing this trade-off, existing routing strategies typically rely on static heuristics or external controllers and do not explicitly account for model uncertainty. We introduce AdaptEvolve: Adaptive LLM Selection for Multi-LLM Evolutionary Refinement within an evolutionary sequential refinement framework that leverages intrinsic generation confidence to estimate real-time solvability. Empirical results show that confidence-driven selection yields a favourable Pareto frontier, reducing total inference cost by an average of 37.9% across benchmarks while retaining 97.5% of the upper-bound accuracy of static large-model baselines. Our code is available at https://github.com/raypretam/adaptive_llm_selection.
