arXiv:2610.19316cs.GTOct 2026

Manuscript Offprint

arXiv:2610.19316

Truthful and Expected-Payment-Optimal Model Routing in Graph-Based Agentic Workflows

Jiayuan Liu, Mingyu Guo, Jiarui Gan, Vincent Conitzer

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

Abstract

Assigning routine tasks to cheaper large language model (LLM) providers can reduce generation cost, but switching providers may require processing accumulated context again. Keeping dependent tasks with the same provider can instead reuse eligible context. Graph-based workflows therefore couple routing decisions across tasks. Independent providers may also privately know their real-time unit costs and strategically misreport them. We formulate this routing problem as a single-parameter procurement auction and propose STAR (Strategy-proof Topology-aware Agent Routing), which minimizes virtual-cost-weighted graph workloads. Its allocation rule and payments, computed by integrating workload over possible cost reports, make truthful reporting utility-maximizing regardless of other providers' reports and cover each truthful provider's execution cost. With independent cost distributions and non-decreasing virtual costs, STAR additionally minimizes the user's expected total payment to providers. Controlled synthetic experiments separate the execution-cost benefit of topology awareness from the payment benefit of virtual-cost optimization: the former grows with fan-out and transferred payload, while the latter increases gradually along the tested prior-shape heterogeneity path. A paired sensitivity study quantifies how payment savings vary with prior misspecification while strategy-proofness is preserved.

Keywords: Mechanism design, procurement auctions, strategy-proofness, LLM routing, graph-based agentic workflows, context reuse.

1 Introduction

Large language model (LLM) systems increasingly organize model calls into dependent workflows. Frameworks such as Graph of Thoughts [2], MetaGPT [7], and ChatDev [12] use structured interactions to address complex tasks. Routing can reserve more capable models for demanding tasks and assign routine tasks to cheaper models that meet their requirements, reducing the cost of executing the workflow [3, 11, 20].

We consider a user who needs a workflow executed and selects a model provider for each task node. Providers independently supply model services and seek to maximize profit. Before they submit bids, the orchestrator identifies the providers that meet each task's requirements and specifies how their inference work is measured. Provider i privately knows its unit cost cic_i: the cost of one unit of this measured work. Multiplying cic_i by its assigned workload gives its execution cost. The user seeks to minimize the total payment to providers while satisfying the workflow's service requirements. Two features shape this routing problem.

First, a task’s cost depends on the providers assigned to neighboring tasks. Its provider must generate output and process the context received from upstream tasks. Keeping adjacent tasks with the same provider can reuse cached input; switching providers requires fresh processing. For example, a coding assistant may use a more capable, more expensive model for planning, switch to a cheaper, less capable model for a routine edit it can handle, and return to the more capable model for verification. With separate serving contexts and no eligible cache reuse for the transferred context, the cheaper model processes the accumulated context, and the more capable model processes the updated context on return. These two context-processing charges can exceed the saving on the routine edit. Globally economical routing therefore balances cheaper task execution against the cost of context switches, especially when a large context feeds many downstream tasks.

Second, providers may privately know their instantaneous unit execution costs. These costs can vary with hardware utilization, available capacity, electricity prices, and local demand. 1^{1} If paid their submitted bids, providers have incentives to quote costs above their actual costs. A truthful mechanism jointly designs task assignments and payments so that reporting the actual cost maximizes each provider’s utility.

We propose STAR, a strategy-proof mechanism that assigns workflow tasks and pays providers using their reported unit costs and public graph-dependent workloads. It scores

1^{1}Capacity-sensitive compute pricing is already illustrated by AWS EC2 Spot Instances (https://aws.amazon.com/ec2/spot/) and Google Cloud Spot VMs (https://cloud.google.com/solutions/spot-vms), which advertise discounts of up to 90% and 91%, respectively, relative to regular on-demand prices.

Figure

Figure 1: STAR overview. STAR assigns a fixed workflow’s tasks to eligible model providers and determines their payments. Providers privately know unit costs cic_i; assignment-dependent workloads include generation and upstream-context processing with eligible reuse. STAR uses reported costs bib_i to optimize virtual-cost-weighted workloads and compute payments that make truthful reporting utility-maximizing and cover truthful providers’ execution costs. The figure uses wi=qi(A)w_i = q_i(A) and, because of strategy-proofness, depicts truthful cost reports bi=cib_i = c_i. With independent, correctly specified cost priors and non-decreasing virtual costs, STAR minimizes the user’s expected total payment among truthful, cost-covering mechanisms.

providers by the procurement analogue of Myerson’s virtual value: the virtual cost ϕi(c)=c+Fi(c)/fi(c)\phi_i(c) = c + F_i(c)/f_i(c), where FiF_i and fif_i are the cumulative distribution function (CDF) and density of provider ii's cost [9]. Its cost prior is the probability distribution of its private unit cost. The added term accounts for the payment incentive associated with that distribution. Under normalized truthful payments, expected total payment equals expected virtual-cost-weighted workload. Minimizing this objective for each reported cost profile therefore minimizes the user’s expected total payment under independent regular priors, meaning independent cost distributions with non-decreasing virtual costs.

STAR is dominant-strategy incentive compatible (DSIC): reporting the true unit cost maximizes a provider's utility for any reports by the others. This strategy-proofness follows from a simple allocation property: increasing a provider's reported unit cost can only decrease or preserve its assigned workload. Comparing the optimal assignments before and after the increase proves this property even when neighboring assignments and cache reuse change together. Integrating the allocated workload over possible cost reports yields truthful payments and ex-post individual rationality (IR): each truthful provider receives at least its execution cost [1]. Virtual-cost scoring selects the expected-payment-optimal allocation within this truthful framework.

Figure 1 summarizes this direct-report mechanism: providers submit their unit costs, and STAR jointly computes task assignments and payments.

We distinguish two sources of economic improvement. Topology awareness can reduce realized execution cost by avoiding repeated fresh-input processing. Separately, virtual-cost optimization can reduce the user’s expected payment relative to a graph-aware raw-score truthful mechanism. This second effect reflects differences in providers’ cost distributions: provider-specific priors induce different virtual-cost markups and can change the globally preferred workflow allocation.

Contributions. First, we model task assignment and provider payments through graph-dependent workloads that capture the trade-off between cheaper models and repeated context processing. Second, we establish strategy-proofness and expected-payment optimality using the single-parameter framework, give exact allocation formulations, and derive an efficient payment formula for affine scores. Third, our controlled experiments quantify execution savings from topology awareness, payment savings from heterogeneous priors, and their sensitivity to prior specification, together with the runtime of the complete mechanism.