Manuscript Offprint

arXiv:2610.03296

JOVE: Joint Execution and Verification for Resource-Aware LLM Task Graphs

Haoran Zhang, Dongjun Kim, Seohyeon Cha, Kevin S Chan, Ananthram Swami, Gustavo De Veciana, Haris Vikalo

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

ABSTRACT

Complex reasoning queries can be decomposed into directed acyclic task graphs and distributed across heterogeneous LLMs, reducing latency through parallelism and enabling smaller models to solve complex tasks. In practice, however, the suitability of an LLM for a given subtask may be a priori unknown, and execution alone does not reveal output correctness. We propose JOVE, an online framework that jointly assigns executor LLMs and selects intermediate outputs for paid verification. Verification runs asynchronously and is used to improve future allocations, so the system must balance spending on execution now against learning for later. We study how to optimize this trade-off under a long-term budget and a per-query latency constraint, with stochastic, initially unknown LLM service quality, invocation costs, and execution times. JOVE makes execution and verification decisions by solving a sequence of per-query mixed-integer linear programs. Online learning updates task-dependent estimates of LLM quality based on verification feedback, while an information-gain bonus incorporates the value of learning into allocation decisions. Under a natural set of assumptions, we establish sublinear quality-learning regret for JOVE. Across four reasoning benchmarks, JOVE achieves competitive accuracy against standard inference baselines while reducing average cost and latency by at least 3.17 times. Code: link.

1 INTRODUCTION

Large language models (LLMs) offer different combinations of capability, specialization, and serving cost. This heterogeneity has motivated LLM routing: instead of sending every query to the strongest model, a router might select a less expensive model when that is likely to suffice (Chen et al., 2023; Ong et al., 2025; Wang et al., 2025). Model selection is of particular interest for complex reasoning queries, which often benefit from an agentic workflow that decomposes the original problem into smaller, interdependent subtasks. A natural abstraction is graph-based inference: a planner decomposes a query into a directed acyclic graph (DAG) whose nodes represent subtasks and whose edges indicate dependencies between them. The node outputs are then used to construct the final response. This structure enables lightweight models to handle individual subtasks and reduces latency through parallel execution of independent branches.

Prior work spans three directions. (1) Graph-structured decoding organizes intermediate reasoning or exposes parallelism, typically with a fixed LLM (Ning et al., 2024; Jin et al., 2025a). (2) LLM routing selects models per query or through sequential interactions (Chen et al., 2023; Zhang et al., 2025). (3) Graph-aware LLM systems coordinate different model calls within task graphs (Kim et al., 2023; Dong et al., 2026a). Existing routing and graph-aware allocation methods typically learn from offline data or assume free model-quality feedback after each call. However, in practice, obtaining such feedback may require a judge model or human evaluator at an extra cost. In this paper, we therefore ask: given a query and its generated task graph, how should a resource-constrained system jointly select executor LLMs and decide which node outputs to verify, balancing current-query performance against paid verification that improves future allocations?

Challenges and our design. We study the problem under two practical resource constraints: a long-term average API-cost budget shared across queries, which offers the flexibility to absorb cost fluctuations over rounds, and delivery deadlines set per query according to its urgency and difficulty. (1) The first challenge is allocating heterogeneous LLMs under uncertain model quality, cost, and

Figure

Figure 1: Overview of JOVE. A planner decomposes each query into a task graph and identifies candidate executor LLMs for each node. JOVE jointly assigns executors and selects outputs for verification, subject to a long-term execution/verification budget and latency constraints. Verification proceeds asynchronously without delaying the current response, improving model-quality estimates.

latency while satisfying both constraints. The budget limit couples decisions across queries: spending more on difficult queries requires saving on others. The deadline couples decisions within each task graph: choosing a slower executor at one node can restrict feasible choices downstream, even when it is locally favorable in quality and cost. (2) The second challenge is obtaining sufficiently granular model-quality feedback without wasting resources by verifying every output. A model call reveals its cost and latency but not output correctness, and the final response feedback may be too coarse to attribute errors to individual node-model assignments. We therefore introduce selective node-level verification to provide feedback on individual outputs at an extra cost. Each node contains a narrowly scoped subtask and an explicit success criterion. After a selected node completes, its subtask, outputs, and criterion are sent to a fixed verifier (a human evaluator or a judge model), which returns a binary correctness label. This label updates the estimated quality of the selected model for similar subtasks, informing future allocations. Verification is not required to construct the current response and can proceed asynchronously after node completion. We therefore assume that it does not delay response delivery, although its cost counts toward the long-term query cost.

In this paper, we propose JOVE, Joint Optimization of Verification and Execution, a framework that jointly selects executor LLMs and outputs to verify under system resource constraints (Figure 1). We formulate the problem as an online constrained optimization problem that maximizes average node correctness subject to a long-term average API-cost budget and a probabilistic latency limit for each query. JOVE makes allocation decisions by solving per-query mixed-integer linear programs (MILPs), using online estimates of model quality, cost, and latency, with an information-gain bonus that values verification feedback for future allocations. Our main contributions are:

• Joint execution–verification formulation. We formulate task-graph inference as an online problem of jointly choosing executor LLMs and which outputs to verify, with initially unknown model quality, cost, and latency, under a long-term cost budget and a per-query latency chance constraint.

• Verification-aware online allocation. We develop JOVE, a per-query MILP policy combining online quality estimates with an information-gain bonus for verification. We prove sublinear quality-learning regret when verification is frequent enough to learn but does not crowd out execution.

• Empirical evaluation. Across multiple reasoning datasets, JOVE achieves average accuracy comparable to the strongest baseline while achieving 3.7–16.3×3.7–16.3\times lower cost and 8.3–17.0×8.3–17.0\times lower latency. Ablation studies examine the effects of different verification weights and resource constraints.

References (32)