arXiv:2610.24355cs.DCOct 2026

Manuscript Offprint

arXiv:2610.24355

Koi: Evidence-Guided, Self-Calibrating Planning for Multi-Cloud, Heterogeneous LLM Inference Fleets

Mankeerat Sidhu, Gangmuk Lim, Hetarth Chopra, Maximillian Eisenberg, Quan Hao Ng, Aryan Gosaliya, Shu Liu, Luka Govedič, Jiaxin Shan, Hongkuan Zhou, Vikram Sharma Mailthody, P. Brighten Godfrey, Ion Stoica

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

Abstract

Deploying a large language model (LLM) requires choosing the right accelerator, parallelization strategy, engine configuration, and replica count amongst ~140 other variables across clouds, regions, and markets. These decisions are intertwined, and the best cluster-wide plan continually changes as jobs contend for shared capacity on shifting workloads.

We present Koi, a self-calibrating cluster planner for heterogeneous, multi-cloud fleets. Koi uses a Recursive Language Model (RLM) hierarchy to propose hypotheses and reason over deployment while deterministic components predict serving behavior, score candidates, and control placement. It represents inference behavior as a fixed causal graph linking decisions (e.g., accelerator, parallelism), runtime mediators (e.g., KV-cache pressure, communication overhead), and outcomes (e.g., latency, throughput). Each deployment strengthens or weakens scoped causal relationships, building a comprehensive playbook for inference that the planner employs to guide future decisions. Job-wise configurations are composed into cluster-wide plans and evaluated against serving objectives, resource constraints, SLO risks, and cost.

Across benchmarks, Koi achieves 1.18×1.18\times greater goodput than the strongest baseline while reducing /token/\text{token} by 20% in a real heterogeneous cluster. Ablations isolate the contribution of Koi's architecture: a pure language model attains a composite score of 35.3, the same model equipped with Koi's deterministic tools reaches 51.6, and the full Koi planner reaches 70.8.

1 Introduction

An LLM inference provider serves a changing mix of jobs on a shared accelerator fleet that spans clouds, regions, markets (reserved, on-demand, or spot), and hardware generations. Users specify each job's model, workload profile (input/output lengths and arrival process), class (online or batch), and serving target (a latency bound for online jobs or a completion deadline for batch jobs). The provider decides how every job runs, including the environment and accelerator, the parallelism and engine configuration, and the number of replicas, and must revise these decisions as jobs arrive and complete and as available capacity changes.

Figure

Figure 1. Parallelism configurations expose conflicting performance, cost, and utilization trade-offs. It used Llama 3 70B on AWS A10G GPUs with 2,048/512 input/output tokens. Each axis is normalized independently.

Even for a single job, this choice is consequential. For a profiled 70B dense model on one accelerator family, five feasible tensor- and pipeline-parallel configurations span 4.4×4.4\times in throughput and 7.5×7.5\times in cost per token and trade off performance, cost, and utilization differently (Figures 1 and 2). TP4/PP2 across two four-GPU instances serves the workload at 180 tok/s for 0.97, whereas TP8/PP1 on one eight-GPU instance reaches only 162 tok/s for 2.16. The best configuration also depends on workload shape, because prefill-heavy traffic stresses compute while decode-heavy

∗^{*}Co-first authors.

Figure

Figure 2. Parallelism substantially changes inference performance and cost. Done on AWS A10G instances with Llama 3 70B model. The workload has 2,048 input and 512 output tokens per request.

traffic stresses memory bandwidth and KV-cache capacity. Neither the workload nor the serving stack is stationary. A job’s realized input/output distribution drifts, and engine and library updates change throughput for the same deployment, so a configuration profiled once does not stay optimal and the planner must keep recalibrating from what it observes.

These choices are also coupled across jobs that compete for the same finite accelerators, quota, and budget. Most schedulers decide one job at a time, giving each arriving job its best-ranked feasible placement, so scarce capacity goes to whichever job arrives first. This is suboptimal whenever an earlier job has a workable second choice that a later job lacks. For example, an online chat job and a batch evaluation job both prefer the cluster's only free H100 node, but only the batch job can meet its target on A100s. If the batch job arrives first, a greedy scheduler gives it the H100, and the online job must miss its SLO or wait. Even a correct per-job ranking cannot prevent this, because avoiding it requires weighing the opportunity cost of giving a scarce device to one job rather than another, which only a cluster-wide decision can do.

Existing systems address parts of this problem. Serving engines optimize request execution within a given deployment [3, 14, 31]. Multi-cloud orchestrators place workloads across clouds and markets but leave the accelerator type and configuration to the user [18, 30]. Configuration optimizers and heterogeneous serving planners choose parallelism, placement, or GPU types for a single model or a fixed set of models [11, 15, 19, 29]. Request schedulers decide how requests are queued and served on existing deployments [10, 22], and cluster schedulers allocate resources among competing jobs [7, 12, 25], but neither chooses the deployment configuration of an inference job. No existing system jointly chooses deployment configurations and allocates shared capacity for all online and batch inference jobs across a heterogeneous, multi-cloud fleet, while recalibrating those choices as observed behavior drifts.

Joint planning is hard for two reasons. First, the space is vast. Each job’s deployment sets about 140 configuration knobs (Appendix A), including accelerator, parallelism, engine, quantization, batching, and KV-cache settings, which yields at least 21402^{140} configurations per job. A cluster plan chooses one deployment for every job under shared capacity, so the number of candidate plans grows exponentially with the number of jobs and cannot be enumerated. Second, the planner must predict the performance of never-run deployments for every job and candidate. Analytical models and profile-based simulators [2, 29] rest on fixed assumptions about memory, communication, and engine behavior that break as workloads, hardware, and software change. In our measurements, even a roofline model calibrated with measured peak compute and memory bandwidth errs by up to 4.7×4.7\times. Language models encode broad systems knowledge but not calibrated, deployment-specific quantities. Two frontier models, Claude Opus 4.8 and GPT-5.6 Sol, overpredict throughput by 4×4\times and 9×9\times. A planner therefore cannot trust predictions unless it corrects them from observed behavior.

Search-based methods instead deploy candidate configurations, observe their end-to-end performance, and use it to choose the next candidates. Bayesian optimization fits a statistical model to these observations [5, 8], and LLM-guided evolutionary search asks a language model to propose new candidates from high-scoring ones [6, 17, 27, 28]. These methods have two fundamental limitations. First, because they learn only from end-to-end outcomes, they cannot tell why a candidate performed as it did, for example whether low throughput came from pipeline bubbles or KV-cache pressure, and therefore which fix applies or which other jobs the evidence should inform. Second, every trial is a live deployment that occupies capacity other jobs need and can breach a running job's SLO. Evolutionary search needs many such trials, and Bayesian optimization restarts for each new workload. LLM-guided evolutionary search pairs a language model with measurement only loosely, because the model sees only a scalar score and measurements never confirm or refute its reasoning. A tighter pairing is difficult because the model's knowledge is qualitative while telemetry is numeric.

Koi pairs them tightly through a fixed causal graph on which both can operate. The graph links deployment decisions (e.g., accelerator, parallelism), runtime mediators (e.g., KV-cache pressure, communication overhead), and serving outcomes (e.g., latency, throughput). Scoped mechanisms compose its edges into testable hypotheses, which a language model can propose and telemetry can support or contradict. For example, one mechanism states that raising pipeline parallelism lowers throughput through pipeline bubbles for a given model and hardware. Each edge and mechanism carries a confidence and an uncertainty updated from runtime evidence, so confident relationships guide exploitation and uncertain ones identify deployments worth testing. Koi runs no separate trials, since every deployment both serves its job and tests the relationships it exercises, and the plan score values both. Bayesian optimization also updates a model after each trial, but that model maps configurations to end-to-end outcomes for a single workload. Koi instead updates its beliefs about mechanisms, so evidence from one job informs every job within the mechanism's scope.

Koi turns this evidence into a cluster plan by alternating between language-model proposals and deterministic evaluation. For each job, the language model proposes candidate deployments from the causal graph, the cluster snapshot, the job's workload, and the matching mechanisms. The graph lets it focus on the decisions that affect the job's targets, so Koi evaluates a few candidates per job instead of enumerating the space. Deterministic components predict each candidate's behavior with a profile-based performance model whose error is tracked against observed outcomes, score it against the job's weighted objectives, and compose candidates into a cluster-wide plan. The plan score balances serving value, the value of testing uncertain relationships, SLO risk under prediction error, and reconfiguration cost, subject to shared capacity. Because candidates for all jobs compete within one plan, this score exposes the opportunity costs that per-job optimization misses. Only deployment evidence updates causal confidence, and the language model only proposes and cannot override measured evidence or cluster constraints.

We evaluate Koi on a real 104-GPU cluster spanning three regions and on simulated 400- and 800-GPU clusters, all heterogeneous, against nine baselines including the approaches above (three on the real cluster). Against the strongest baseline, Koi delivers 1.18×1.18\times the goodput at 20% lower /token on the real cluster and 45% more goodput at 31% lower /token in the 3-hour simulation. Ablations show that these gains come mainly from the structure around the language model rather than from the model itself.

This paper makes the following three contributions.

  • We design and implement Koi, a provider-side control plane that self-calibrates the cluster-wide deployment plan for mixed online and batch jobs across heterogeneous clouds, and release it as open source ∗^{*}.

  • We develop an evidence-guided agentic planning algorithm around a causal DAG that links deployment decisions, runtime mediators, and outcomes. Our RLM [33] hierarchy proposes candidates and scoped hypotheses, deterministic evaluation selects the cluster plan, and telemetry updates the evidence that guides subsequent intervals.

  • We evaluate Koi on heterogeneous benchmarks spanning ten model architectures and nine baselines, where it improves goodput by up to 45% and lowers $/token by up to 31% while admitting 96% of online and 100% of batch jobs over 12 hours.