Ask Your Advisor: Learning When to Consult Stronger Models in Agentic Systems
Organizations: ETH Zurich, Switzerland
Abstract
To balance task performance and computational cost, agentic workflows can use a lower-cost model for execution and selectively consult a stronger model. In such executor-advisor systems, the executor decides when to seek advice, making escalation depend on self-assessment, although current language models struggle to detect where their own reasoning fails. The need for stronger reasoning emerges during execution and varies across workflow phases. We introduce ARIA, a meta-controller that learns when to consult by balancing task success against consultation cost. Our approach formulates consultation as a sequential resource-allocation problem. At workflow contact points, ARIA maps execution evidence to a compact state abstraction and selects SILENT or CONSULT, with action values learned by Monte Carlo control from cost-penalized outcomes. Across evaluated tasks of SWE-bench Verified, Terminal-Bench 2.1, and -bench, ARIA recovers 44-81% of the executor-advisor success gap at less than half the advisor model's cost. ARIA achieves the best observed success-cost trade-off among ten other evaluated conditions, including routing and cascading methods, fixed and prompted consultation, and random placement at matched advice volume. The policies are compact and inspectable, with a single consultation-price parameter governing the success-cost trade-off without retraining either underlying model.
Figures & tables
| Condition | Allocation rule | Tests for |
|---|---|---|
| Executor-only | no advisor | lower-cost reference |
| Advisor-only | advisor executes | stronger-model reference |
| FrugalGPT ( Chen et al., 2024a ) | score-based cascade | cost-aware task-level cascading |
| RouteLLM ( Ong et al., 2025 ) | pre-task routing | learned task-level routing |
| AutoMix ( Aggarwal et al., 2024 ) | verify then escalate | adaptive task-level escalation |
| Plan ( Mozannar et al., 2025 ) | first contact | early intervention |
| SWE | Terminal | ||
|---|---|---|---|
| PGR | 68.2% | 44.4% | 80.6% |
| Cost / Pro | 48.1% | 40.9% | 34.5% |
| Cost Share | 30.8% | 29.6% | 15.5% |
| Sav. vs. equal-succ. mix | $12.86 | $7.59 | $11.36 |
| ER | ||||
|---|---|---|---|---|
| SWE | +20.7 | +$6.42 | +1.95 | +0.28 |
| TB | +4.0 | +$6.74 | +0.82 | 0.00 |
| -2.5 | +$5.04 | +5.78 | -0.38 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Benchmark | |||
|---|---|---|---|
| SWE-bench | 0.0490 | 0.1663 | 0.029465 |
| Terminal-Bench | 0.0683 | 0.2816 | 0.024254 |
| -bench | 0.0244 | 0.1281 | 0.019048 |
| SWE-bench | Terminal-Bench | -bench | |
| Controller seeds | 3 | 3 | 3 |
| Training episodes | 150 | 162 | 160 |
| Training tasks | 50 | 27 | 20 |
| Approx. passes | 3 | 6 | 8 |
| Discount | 1 | 1 | 1 |
| MC update | |||
| Benchmark | Development source | Train tasks | Train episodes | Held-out test |
|---|---|---|---|---|
| SWE-bench | screened benchmark training pool | 50-52 | 150-156 | 50 (Verified-Mini) |
| Terminal-Bench | 39-task development partition | 27 | 162 | 50 (test) |
| -bench | official telecom train split | 20 | 160 | 40 (telecom test) |
| Method | Allocation rule | Budget |
|---|---|---|
| Executor-only | no advisor | – |
| Advisor-only | advisor executes | – |
| FrugalGPT | score-based cascade | – |
| RouteLLM | pre-task routing | – |
| AutoMix | verify then escalate | – |
| Plan | first contact |
| SWE-bench | Terminal-Bench | -bench | |
|---|---|---|---|
| ARIA consults/episode | 2.780 | 2.460 | 3.042 |
| Consultation probability | 0.49 | 0.62 | 0.172 |
| Random consults/episode | 2.527 | 2.417 | 2.670 |
| Random / ARIA volume | 90.9% | 98.2% | 87.8% |
| Model | Input | Cached input | Output | Reasoning | Tier threshold | Above threshold |
|---|---|---|---|---|---|---|
| gemini-3-flash-preview | 0.50 | 0.05 | 3.00 | 3.00 | none | none |
| gemini-3.1-pro-preview | 2.00 | 0.20 | 12.00 | 12.00 | 200,000 prompt tokens | in 2.00 / cached 0.20 / out 6.00 |
| Benchmark | Condition | Ep. | Calls | Input | Cached | Output | Reason. | Total | Cached % | Cost/run |
|---|---|---|---|---|---|---|---|---|---|---|
| SWE-bench Verified | Executor-only | 150 | 2,440 | 36.825 | 12.397 | 4.251 | 0.880 | 54.354 | 25.2 | 11.48 |
| SWE-bench Verified | Advisor-only | 150 | 3,367 | 28.609 | 43.244 | 2.164 | 2.886 | 76.903 | 60.2 | 45.90 |
| SWE-bench Verified | FrugalGPT | 196 | 3,470 | 43.958 | 21.112 | 4.850 | 1.675 | 71.596 | 32.5 | 22.61 |
| SWE-bench Verified | RouteLLM | 150 | 2,734 | 29.913 | 21.392 | 3.524 | 1.924 | 56.753 | 41.7 | 25.03 |
| SWE-bench Verified | AutoMix | 257 | 4,945 | 66.469 | 66.846 | 5.954 | 3.133 | 144.438 | 50.1 | 59.68 |
| SWE-bench Verified | Plan | 150 | 2,736 | 31.402 | 9.571 | 3.782 | 0.435 | 45.190 | 23.4 | 10.90 |
| SWE-bench Verified | Terminal-Bench 2.1 | -bench Telecom | ||||
|---|---|---|---|---|---|---|
| Condition | Succ. (%) | Cost ($) | Succ. (%) | Cost ($) | Succ. (%) | Cost ($) |
| Executor-only | ||||||
| Advisor-only | ||||||
| FrugalGPT | ||||||
| RouteLLM | ||||||
| AutoMix | ||||||
| Position | Evidence | Prior consult | SWE | TB | All | |
|---|---|---|---|---|---|---|
| Frame | None | No | 0/3 | 2/3 | 2/3 | 4/9 |
| Explore | None | No | 1/3 | 0/3 | 1/3 | 2/9 |
| None | Yes | 0/3 | 1/3 | 0/3 | 1/9 | |
| Clean/OK | No | 2/3 | 1/3 | 2/3 | 5/9 | |
| Clean/OK | Yes | 2/3 | 0/3 | 1/3 | 3/9 | |
| Error/Fail | No | 1/3 | 1/3 | – | 2/9 |