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

Manuscript Offprint

arXiv:2608.29560

Which LLM for Which Work? Budgeted Model Allocation under Uncertain Evaluation

Hamed Khosravi, Xiaoming Huo

Abstract

A company with a fixed artificial intelligence (AI) budget must decide which large language model (LLM) handles each recurring workload. It knows each workload's traffic and each model's price. What it lacks is the quality table, how well each model performs on each workload. Given that table, the decision is a multiple-choice knapsack problem and is routine to solve, so estimating it is the difficulty, and that estimation fails in two ways. Models are rarely compared on the same work, and the recorded score is usually a proxy rather than the outcome the company values. Causal and off-policy methods repair the first but condition on the second, while evaluator-validation methods estimate the second but stop short of the decision. Worse, buying more re-evaluation cannot settle the second: randomization governs which requests are scored, not how a score is produced, so the table stays uncertain however much evaluation is purchased. Yet the deployment decision may still be determined even when the table is not. We therefore ask whether one assignment stays optimal across every quality table consistent with the evidence. For the fixed-budget problem, this admits an exact two-solve certificate: solve once at the estimated table and once at a least-favourable table. Agreement certifies the assignment; disagreement identifies the model–workload pairs where further evidence can matter. We propose CASE (causal active sequential experimentation), which targets evaluation to those pairs and repeats the test as evidence accumulates. On a production log, the measurement failure is the larger of the two: correcting assignment exactly still leaves most of the loss, and randomized re-evaluation does not remove it. In our experiments, the available evidence often does not determine which model should be assigned to each workload. On paid software tasks, better information about model quality yields more savings than further optimization of the model-to-workload assignment using the same quality estimates.

1 Introduction

Consider a company with a fixed monthly budget for language models, whose engineers write code, support team answers tickets, analysts summarize documents, and sales team drafts outreach. Prices differ substantially and the same model need not be best for every kind of work, so the company must decide which model serves which workload, and revisit it as prices and its mix of work change. Such decisions govern much of the $12.5 billion of annual enterprise spending on foundation models [20].

Stated formally the problem is standard. Group the work into JJ workloads and the options into KK candidate models, and let the quality table μref\mu^{\text{ref}} hold, in entry μkjref\mu_{kj}^{\text{ref}}, the average over all of workload jj of the outcome that model kk would deliver. We call that per-request outcome the designated outcome, Preprint.

the quantity the operator has chosen to value and that the recorded score only proxies; its workload average is the cell's target quality. Given that table, choosing one model per workload under a shared budget is a multiple-choice knapsack problem [23, 26], and standard solvers handle far larger instances. The allocation is not the difficulty. Estimating μref\mu^{ref} is, and the way that estimation fails is what separates this problem from a knapsack problem whose coefficients are known.

Why μref\mu^{ref} is hard to estimate. The table must be read off production logs, automatic judges and user feedback, and two features of that data obstruct it. Assignment is not independent of the outcome, since a default, a habit or an automated selection system decided which model received a request [10, 24, 31, 33], so a cheaper model can look competitive merely because it received easier requests. And the recorded score is a proxy, since an LLM judge, a task grader or a click can depend systematically on answer length, answer position, or which model produced the response [8, 14, 22, 29, 34]. These are failures of assignment validity and of measurement validity, both biases rather than sampling error, and they respond differently to spending: re-evaluating a random sample of requests removes the first and leaves the second, because randomization governs which requests are scored and not how a score is produced.

Our approach: settle the decision, not the table. The operator does not need the quality table, only the decision it induces, so we ask not how to estimate the table but whether the allocation is the same at every table the evidence admits. Call the decision settled when it is, pinned down by the evidence in hand however wide that set may be. Deciding this appears to need a continuum of solves. It does not: for the budgeted rule one least favourable table dominates the set, so a second solve of the same program answers it exactly, and the decomposable rule has an exact workload-wise analogue (App. C). When the two solves disagree, the pairs on which they differ are the ones worth paying to measure, and §3 spends a fixed evidence budget there. We call the method CASE (causal active sequential experimentation): causal because the evidence it buys is a randomized re-evaluation rather than more of the same log, active because it buys only where the two solves disagree, and sequential because the test is re-run after each purchase.

How this compares with existing approaches. Three lines of work each supply part of what this problem needs. Optimization under uncertainty starts from the coefficients, or a set of possible values for them, and finds the best decision [7, 18, 23, 26], but begins where we cannot, since that set is what we must derive from data. Causal inference and off-policy evaluation recover what each model would have scored on the whole workload when assignment is as good as random given observed features [11, 13, 27, 32], but take the recorded score at face value, so an evaluator that quietly prefers one model passes undetected, looking exactly like that model being better (Cor. B.4). Work on evaluator validity measures how far a score departs from human judgement [2, 4, 5, 28] without asking whether a gap of that size would change a deployment. Each addresses one half. Our problem requires both at once (App. E). Six corpora test these claims in §4.

References (31)