arXiv(opens in a new tab)cs.MAOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.13870

Ask Your Advisor: Learning When to Consult Stronger Models in Agentic Systems

Pascal Sowietzki, Steffen Holter, Yannick Metz, Emil Kasper, Raphael Baur, Mennatallah El-Assady

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 τ2\tau^{2}-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.

1 INTRODUCTION

Agentic systems increasingly tackle complex tasks such as software engineering (Chowdhury et al., 2024), data science (Merrill et al., 2026), and customer support (Barres et al., 2025) through long-running workflows that extend beyond isolated queries (OpenAI, 2025; Anthropic, 2024; Mohan & Kilpatrick, 2026). Sustaining these workflows over long task horizons is costly, as each stage may require reasoning, tool use, and revision. However, prior work shows substantial scope for reducing inference cost while maintaining similar task performance (Kapoor et al., 2025), and the need for stronger reasoning varies throughout execution. The challenge is therefore to allocate capability selectively, using stronger reasoning where its expected benefit justifies its additional cost.

Existing capability-allocation methods are selective, but mostly operate at the model or task level, making allocation decisions from the input before execution. Specialization changes the executor (Wang et al., 2024; Belcak et al., 2025), routing determines which model acts (Aggarwal et al., 2024; Ong et al., 2025), and adaptive computation controls how much reasoning it receives before execution (Snell et al., 2025; Damani et al., 2025). These approaches reduce reliance on costly frontier-model capability, but do not allocate stronger reasoning to specific moments within an evolving workflow. In long-running execution, the value of stronger reasoning can change as new observations, errors, or recovery opportunities emerge. A routine task may contain only a few decision points where additional capability is particularly valuable.

Executor-advisor systems provide a natural mechanism for introducing stronger reasoning into a workflow. A lower-cost model remains responsible for execution, while a stronger advisor provides guidance without taking control (Anthropic, 2026). This allows routine steps to remain with the i.e., swe, data analysis, customer support ...

SHARED CONTEXT

conversation - tools - artifacts

TASK

write code, run tests, parse files ...

EXECUTOR

smaller model

ADVICE

ADVISOR

frontier model

contact point

HISTORY

NONE | CONSULTED

EVIDENCE

NONE | CLEAN | ERROR

SILENT

CONSULT

TEMPORAL

FRAME →\rightarrow EXPLORE →\rightarrow REASON →\rightarrow DELIVER

Q-TABLE

action

ARIA

state

Figure 1: ARIA setup. At each contact point, the meta controller chooses between SILENT and CONSULT. Consultation adds guidance from a stronger advisor to the shared context.

executor and advisor input to be added selectively as the workflow unfolds. The remaining question is when to consult. Current approaches leave this to the executor itself, making escalation depend on self-assessment. Previous work has shown that large language models (LLMs) struggle to localize their own errors and have poorly calibrated confidence (Tyen et al., 2024; Xiong et al., 2024). Uncertainty alone does not indicate whether consultation is useful. An executor may recover, while advice may be valuable even when it appears confident. The relevant question is whether consulting at this point improves the final outcome enough to justify its cost. This separates consultation allocation from a complementary problem: whether the executor incorporates the advice it receives.

We introduce ARIA (Allocation of Reasoning In Agentic systems), a learned meta-controller for selective expert consultation in agentic workflows. ARIA regulates access to a stronger advisor while keeping a lower-cost executor in control. We instantiate ARIA on Magentic-One (Fourney et al., 2024), while the controller itself only assumes recurring decision points: At workflow decision points, such as replanning or final delivery, it chooses whether the executor continues or receives guidance. We formulate this policy as a sequential decision problem and learn it with tabular Monte Carlo control. The state is derived from observable workflow evidence rather than self-reported confidence, and neither language model is fine-tuned. This way, ARIA can learn an optimal trade-off between two deployment extremes by allocating advisor to selected points in the trajectory.

We evaluate ARIA across three agentic settings: SWE-bench Verified (Chowdhury et al., 2024), Terminal-Bench 2.1 (Merrill et al., 2026), and τ2\tau^{2}-bench (Barres et al., 2025), spanning homogeneous, heterogeneous, and interactive workflows across software engineering, data analysis, system administration and customer service. We anchor the comparison with Executor-only and Advisor-only baselines as the lower and stronger-model reference points, and compare fixed, prompted, learned and allocation methods from related work between these reference points. A Random-placement control approximates ARIA's consultation rate to separate the effect of consultation timing from simply having advisor access. We report task success with realized model cost and evaluate how much of the executor-advisor performance gap selective consultation can recover.

Our contributions are threefold. First, we introduce ARIA, a modular and interpretable framework for learning consultation policies over executor–advisor pairs. Second, we evaluate ARIA across three agentic domains, analyzing success, cost and efficiency. Third, we analyze failures in executor–advisor collaboration to gain further insights into inter-agent coordination. We release the framework and traces for research on capability allocation and agent collaboration.

References (69)

  • Near optimal behavior via approximate state abstraction
  • Agent S: An open agentic framework that uses computers like a human
  • AutoMix: Automatically mixing language models (opens the publisher in a new tab)
  • Eitan Altman. Constrained Markov decision processes. Routledge, 1 edition, 1999. doi: 10.1201/9781315140223. (opens the publisher in a new tab)
  • $\tau^{2}$-Bench: Evaluating conversational agents in a dual-control environment, 2025
  • Small language models are the future of agentic AI, 2025
  • Why do multi-agent LLM systems fail? In Advances in Neural Information Processing Systems, volume 38, 2025 (opens the publisher in a new tab)
  • FrugalGPT: How to use large language models while reducing cost and improving performance
  • Teaching large language models to self-debug
  • Introducing SWE-bench Verified
  • Learning with rejection (opens the publisher in a new tab)
  • Learning how hard to think: Input-adaptive allocation of LM computation
  • Magentic-One: A generalist multi-agent system for solving complex tasks, 2024
  • Automated design of agentic systems
  • Large language models cannot self-correct reasoning yet
  • Inner monologue: Embodied reasoning through planning with language models
  • AI agents that matter
  • SWE-Protégé: Learning to selectively collaborate with an expert unlocks small language models as software engineering agents, 2026
  • Confidence-guided stepwise model routing for cost-efficient reasoning (opens the publisher in a new tab)
  • AceReason-Nemotron 1.1: Advancing math and code reasoning through SFT and RL synergy
  • Benchmarking agents on hard, realistic tasks in command line interfaces
  • Building the agentic future: Developer highlights from I/O 2026
  • Magentic-UI: Towards human-in-the-loop agentic systems, 2025
  • Is self-repair a silver bullet for code generation? In International Conference on Learning Representations, 2024
  • RouteLLM: Learning to route LLMs from preference data
  • Collaborative Gym: A framework for enabling and evaluating human-agent collaboration
  • Reflexion: language agents with verbal reinforcement learning (opens the publisher in a new tab)
  • Scaling LLM test-time compute optimally can be more effective than scaling parameters for reasoning
  • Reinforcement learning: An introduction
  • Teaching on a budget: Agents advising agents in reinforcement learning
  • LLMs cannot find reasoning errors, but can correct them given the error location (opens the publisher in a new tab)
  • Executable code actions elicit better LLM agents
  • Can LLMs express their uncertainty? An empirical evaluation of confidence elicitation in LLMs
  • Adaptive collaboration with humans: Metacognitive policy optimization for multi-agent LLMs with continual learning
  • AFlow: Automating agentic workflow generation
  • The advisor is read-only: it does not execute tools, take environment actions, or submit the final answer
  • Under SILENT, no advisor call is made and the underlying workflow continues unchanged
  • Here, we specify the exact mapping from workflow events and observable execution feedback to each state component
  • If no such step exists, $e_t = \text{NONE}$
  • A step is therefore treated as acting when it produces either executed output or a harness-recorded tool result
  • This section details how the cost-aware objective in Eq
  • Each consultation incurs the fixed penalty $\kappa = \lambda \bar{c} / \Delta$, where $\bar{c}$ is the mean consultation cost and $\Delta$ is the mean per-episode spend of consulting at every contact point
  • Only episodes reaching a terminal task outcome contribute value updates
  • Repeated visits within an episode therefore contribute correlated samples, and long trajectories can receive more weight than under first-visit Monte Carlo
  • Evaluation uses a frozen greedy policy without exploration
  • >$\alpha=1/N(s,a)$</td></tr><tr><td>$\epsilon_0$</td><td colspan=
  • The executor and advisor remain fixed throughout; only ARIA's consultation policy is learned on the development tasks
  • Train–test overlap was verified from task identifiers rather than assumed from split names
  • The development tasks are revisited to accumulate controller experience: approximately three passes on SWE-bench, six passes on Terminal-Bench, and eight passes on $\tau^{2}$ -bench
  • During final evaluation, failed or crashed episodes remain part of the benchmark denominator even when no usable trajectory is available for subsequent diagnostic analyses
  • The lower-cost executor is gemini-3-flash-preview at low reasoning effort, and the stronger model is gemini-3.1-pro-preview at high reasoning effort
  • Unlike ARIA, the decision does not depend on the current state or trajectory
  • The nominal consultation probability is
  • Realized model cost is reported separately
  • The scope is restricted to the headline configuration: three evaluation seeds for each of the 33 benchmark-condition cells, with the common $B=4$ consultation budget where applicable
  • Each model call records total prompt tokens, cached prompt tokens, completion tokens, reasoning tokens, and billed cost
  • For gemini-3.1-pro-preview, calls whose prompt exceeds 200K tokens incur the long-context surcharge shown in Table 10
  • The final column reports the incremental surcharge applied above the listed context threshold
  • A re-run episode may leave multiple attempts in the billing log while the episode ledger retains only the attempt used for evaluation
  • Likewise, rows in Table 11 must not be summed to obtain a campaign total: some conditions deliberately reuse and re-charge the same lower-cost base runs
  • Token columns are totals across three evaluation seeds in millions of tokens
  • These values describe dispersion across repeated runs rather than confidence intervals over the underlying task distribution
  • We therefore interpret small differences between nearby operating points descriptively rather than as evidence of statistical separation
  • Entries report mean $\pm$ sample standard deviation ($n = 3$)
  • Figure 4 visualizes this comparison by plotting task success against the realized number of consultations per episode
  • Top: per-episode consultation rates (faint points) and smoothed trajectories (solid lines)
  • Table 13 complements these per-seed policies by summarizing agreement in their resulting greedy actions across seeds
  • No weight trimming is applied
  • The dominant errors are ignored agent input (FM-2.5) and incorrect verification (FM-3.3)