TL;DR
CostAda is a novel adaptive controller for LLM-driven scientific and algorithmic discovery that treats token budgets as a primary search signal rather than just a stopping rule. By calibrating the "credit" assigned to search progress against the actual token cost incurred, CostAda achieves the same discovery quality as state-of-the-art baselines using as little as half the budget.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly used as "engines of discovery," iteratively generating, evaluating, and refining solutions for complex problems like mathematical optimization or code synthesis. However, these discovery processes are rarely free; they operate under strict token budgets, especially when using commercial APIs.
The authors identify a critical flaw in existing discovery systems: they are "cost-blind." Current controllers reward search directions based solely on score improvements. But in the real world, search actions have vastly different costs. A simple refinement might be cheap, while a "long-context guidance call" (asking the LLM to look at many previous attempts) might cost six times as much.
If a controller ignores these costs, it risks blowing its entire budget on expensive, low-yield search branches. The authors even provide a mathematical proof (Proposition 1) showing that cost-blind controllers can forfeit nearly all attainable quality as the number of search frontiers and cost differences grow.
Methods
The authors introduce CostAda, a controller built around the concept of cost-calibrated frontier utility. Instead of just looking at score gains, CostAda calculates utility by dividing the gain by the realized cost, further weighted by the remaining budget.
CostAda manages three main control levers:
- Frontier Allocation: It decides which "frontier" (a promising search direction) to fund next. It prioritizes branches that show high global improvement per unit of cost.
- Local Exploration Intensity: It adjusts how broadly it samples around a candidate. If a frontier is efficient, it refines locally; if utility is low, it broadens the search or abandons the branch.
- Budgeted Tactic Intervention: It only "purchases" expensive high-level guidance (like a breakthrough tactic) when local search stagnates and the remaining budget can actually afford the follow-up steps needed to test that new tactic.
Crucially, the remaining budget ratio ($\rho_t$) acts as a dynamic weight. Early in a run, the system might tolerate expensive exploration. As the budget drains, it shifts focus toward exploitation and penalizes high costs more severely.
Datasets
The researchers evaluated CostAda across a suite of eight diverse benchmarks spanning geometric packing, additive combinatorics, and executable program synthesis:
- Geometric: Circle Packing (in squares and rectangles), Heilbronn Triangle/Convex problems.
- Combinatorics: MinMaxDist (n=16, d=2 and n=14, d=3), Third Autocorrelation.
- Program Synthesis: Signal Processing (synthesizing causal online filtering programs).
These were tested using two different "backbone" models with distinct pricing regimes: GLM-5 (cheaper) and GPT-5.4 (more expensive).
Key Insights and Ideas
- Budget as a Control Input: Most systems treat the budget as a post-hoc statistic. CostAda proves that making the budget an explicit input to the search policy significantly improves efficiency.
- The Vanishing Fraction: The paper's theoretical contribution shows that cost-blindness isn't just a minor inefficiency; in heterogeneous environments, it can lead to a total failure to reach the optimal objective.
- Dynamic Opportunity Cost: The value of a token changes over time. A token spent at the start of a search has a different opportunity cost than a token spent when only 5% of the budget remains. CostAda’s utility function captures this shift naturally.
- Tactic Gating: By treating "breakthrough" prompts as expensive investments, CostAda avoids the common pitfall of spamming high-level guides that don't translate into measurable progress.
Key Results
CostAda consistently outperformed the strongest baselines (AdaEvolve and EvoX) across almost all metrics:
- Efficiency: On 12 out of 16 benchmark-backbone pairs, CostAda reached the full-budget quality of the best baseline using 50% or less of the budget.
- Final Quality: CostAda achieved the highest mean final quality on all eight benchmarks under both GLM-5 and GPT-5.4.
- Path Superiority: As shown in Figure 3, CostAda maintains a lead throughout the entire budget path, often exceeding the baseline's final performance within the first 25% of its spending.
Limitations and Future Work
While highly effective, the paper notes some areas for further exploration:
- Deterministic Evaluators: The current framework relies on deterministic scoring (e.g., code that can be compiled and tested). Applying this to subjective discovery (like creative writing or open-ended reasoning) would require new ways to define "progress."
- Fixed Constants: While the controller constants are fixed per benchmark family, they are not yet fully automated or learned on-the-fly for entirely new domains.
- API Latency: The current model focuses on token cost, but in some production environments, wall-clock time (latency) might be as important as dollar cost. Integrating time-based costs into the utility function is a logical next step.
Summary updated