arXiv:2610.26676cs.LGOct 2026

Manuscript Offprint

arXiv:2610.26676

Which Model for Which Role? Cost-Efficient Pareto Recommendation for LLM Agentic Workflows

Qian Xie, Wenyue Hua, Yueli He, Sripad Karne, Armaan Agrawal, Nikos Pagonas, Eugene Wu, Kostis Kaffes, Tianyi Peng, Nairen Cao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

LLM agentic workflows increasingly employ different models for specialized roles. Users may prefer different trade-offs between task quality and deployment cost, sometimes also considering latency. Finding good assignments incurs a separate search cost from evaluating multiple candidates. We introduce Cost-Coupled Gittins (CC-GITTINS), a multi-objective extension of single-objective cost-aware Gittins search for Pareto recommendation. It exploits the coupling between evaluation and deployment costs: assignments that cost more to deploy also cost more to evaluate. The search alternates between seeking higher quality and lower deployment cost, reusing each evaluation to inform both searches. After each batch, CC-GITTINS recommends assignments that are nondominated under uncertainty-adjusted estimates of quality and deployment cost. We evaluate CC-GITTINS on eight quality-cost matrices from workflows with two to five roles and up to 1,681 candidate assignments. We also evaluate the method with latency as a third objective. Across the eight benchmarks, CC-GITTINS recovers a substantial fraction of the true Pareto frontier at roughly 10% of the exhaustive-evaluation cost, and recovers most of the frontier with few false positives by 30%.

Code: github.com/AgentOptimizer/agentopt-research

1 INTRODUCTION

BIRD Dev - Monetary Savings

Figure

Pareto frontier (20 seeds)

Figure

Cost / question (USD, log scale)

Figure 1: At 90% lower evaluation cost than exhaustive evaluation, CC-GITTINS (ours) recovers most of the BIRD Dev Pareto frontier with no false positives (88.75% mean recall and 100% mean precision over 20 seeds).

Large language model (LLM) agents increasingly combine multiple interacting roles, such as planning, solving, searching, and verification (Hua et al., 2026; Kim et al., 2026; Jiang et al., 2026).

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors: Qian Xie (qx66@cornell.edu); Wenyue Hua (wenyuehua@microsoft.com); Tianyi Peng (tianyi.peng@columbia.edu); Nairen Cao (caonairen@sufe.edu.cn).

These roles need not use the same underlying model, and using the most capable models in every role can incur substantial deployment cost. This creates a model assignment problem—given a set of candidate models for each role, which assignments best balance end-to-end task quality, deployment cost, and, when response time matters, latency? Since one role's output can affect the inputs and behavior of subsequent roles, an assignment's quality generally cannot be inferred by evaluating each model in isolation. The whole workflow must be treated as the unit of evaluation.

Users may want to compare the task quality of inexpensive and more costly assignments before choosing what to deploy. A representative range of quality–cost trade-offs can support this decision without requiring every Pareto-optimal assignment to be identified.

Existing methods either report quality–cost frontiers over evaluated agent assignments (TeamBench, AgentCARD, and AgentOpt) (Kim et al., 2026; Jiang et al., 2026; Hua et al., 2026), or optimize a specified objective or constraint. In particular, AgentOpt reduces multi-objective search to single-objective optimization using a fixed weighted-sum utility (Hua et al., 2026), SCOPE minimizes deployment cost subject to a quality threshold (Huang et al., 2026), and VineLM adapts model choices at individual invocations under cost or latency budgets (Pagonas et al., 2026). We study anytime recommendation of complete role assignments through costly evaluations, without fixing the preferred trade-off or final search cost in advance.

Exhaustive evaluation is costly: the number of assignments grows multiplicatively across roles, and each candidate must be run on multiple queries to estimate quality and deployment cost. Figure 1 illustrates quality–cost trade-offs recovered at a fraction of exhaustive evaluation cost.

A key observation is that deployment cost and evaluation cost are naturally coupled. Let DiD_i denote the mean deployment cost per query for assignment ii. Evaluating a batch of BB comparable queries costs approximately κi≈BDi\kappa_i \approx BD_i. The total search cost accumulates these charges across evaluated assignments, including those never deployed. Consequently, configurations that are expensive to deploy are also expensive to learn about.

We introduce Cost-Coupled Gittins (CC-GITTINS), a multi-objective method for anytime Pareto recommendation that exploits this coupling. For quality and cost, two search policies, called controllers, take turns choosing evaluations: one seeks higher quality and the other lower deployment cost. The quality controller prices further evaluation using configuration-specific API costs. In the simplified model of Section 3.4, its Gittins indices rank assignments by quality minus a deployment-cost penalty, so relaxing the evaluation-price multiplier can favor different quality-cost trade-offs. The controllers share observations. After each batch, assignments nondominated under uncertainty-adjusted quality and deployment-cost estimates form the recommendation. Figure 2 gives an overview.

We evaluate CC-GITTINS through offline replay on eight quality-cost workflow benchmarks, including complete HotpotQA and MathQA assignment matrices and six SCOPE-derived instances. These benchmarks span two to five roles and up to 1,681 candidate assignments. Compared with five search baselines, CC-GITTINS achieves competitive hypervolume regret and generational distance at low search cost, although frontier coverage varies across benchmarks. We further conduct controlled ablations and evaluate the method with end-to-end latency as a third objective on HotpotQA and MathQA.

Contributions. Our main contributions are as follows:

• We formulate model assignment in multi-role LLM workflows as anytime recommendation of a useful range of Pareto trade-offs through costly end-to-end evaluations.

• We develop CC-GITTINS, a multi-objective extension of single-objective cost-aware Gittins search for anytime Pareto recommendation. Each batch updates the recommendation, so users can stop without fixing a final search budget or preferred trade-off.

• We implement a workflow evaluation harness in AgentOpt and collect complete response matrices that jointly record task scores (accuracy or F1), input and output token counts, token-derived API costs, and end-to-end latency for each workflow execution. These records support reproducible replay against exhaustive Pareto frontiers.

• Across eight quality–cost workflow benchmarks, CC-GITTINS recovers a substantial fraction of the true Pareto frontier at roughly 10% of exhaustive evaluation cost, and most of

Figure

Figure 2: Overview of CC-GITTINS in the quality-cost setting. Workflow evaluations provide quality and deployment-cost observations. Quality and cost controllers share observations, take turns choosing evaluations, and independently relax their evaluation prices. After each batch, Pareto dominance is checked using quality lower confidence bound (LCB) and cost upper confidence bound (UCB) scores. Nondominated assignments form the Pareto recommendations (green). When latency is included, additional controllers share observations and recommendations use three-objective Pareto dominance.

the frontier with few false positives by 30%. We also evaluate the method with latency as a third objective.

References (44)