Manuscript Offprint
arXiv:2608.20316Pandora's AI Model Routing Box: Efficient Allocation with Costly Value Estimation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Heterogeneous AI systems composed of multiple models, architectures, harnesses, or inference-time settings can improve quality and efficiency by routing queries to the specialist who can answer most effectively at the lowest cost. Routing requires estimating each specialist’s expected return, but this value estimation has a cost. Cheap estimators (e.g., embedding-based predictors) are fast but noisy, while accurate estimators (e.g., fine-tuned models with access to retrieval results or partial reasoning traces) are expensive. We formalize this tradeoff as an instance of Pandora’s Box, the classical problem of optimal search with costly inspection. Under a Gaussian signal model, the resulting policies have closed-form value-of-information expressions that determine, for each specialist and input, whether refining the value estimate is worth its cost. We call the centralized policy Pandora’s Router. We extend this to a decentralized setting, Pandora’s Bidder, where specialists independently decide whether to invest in self-assessment before accepting an offered price to claim a query. Experiments across three domains—a standard multi-LLM benchmark, retrieval-augmented specialists, and LLMs with variable inference-time reasoning—show that Pandora’s Router matches the routing quality of exhaustive estimation, while querying the expensive estimator far less often. In the decentralized setting, value-of-information reasoning improves allocative efficiency when competing estimates are accurate; when competing estimates are noisy, however, it can increase the strategic specialist’s utility at the expense of others.
1 Introduction
AI model providers now often offer heterogeneous model families spanning a wide range of costs and capabilities: small and fast models for simple prompts, large and expensive ones for complex tasks, and augmented variants with tools, retrieval, or extended reasoning for more specialized tasks. This raises the question of how to allocate each input to the model best suited for it, for a given level of cost sensitivity. This is the routing problem, and a growing body of work addresses it by estimating each model’s expected return on the input and selecting the maximizer (24; 43; 13). But value estimation is neither free nor particularly easy. An embedding-based predictor is cheap but noisy; a fine-tuned scoring model is more accurate but more expensive; and computing partial solutions, executing tool calls, or running retrieval pipelines can be more expensive still. The routing decision itself thus involves a cost-accuracy tradeoff, which is typically ignored. We explore this tradeoff, asking: when is it worth paying for a better value estimate?
The question has a clean analogy to the Pandora’s Box problem from search theory (47). Pandora is presented with boxes, each with a hidden value which is known to her only in distribution. For a cost she can open any box and observe its value. At any point, she can stop searching and claim the best value seen thus far. Her goal is to maximize the difference between the value obtained minus the costs paid. 47 showed that the optimal policy has a remarkably simple structure, based on computing, for each box, its reservation price—the outside-option value at which the expected benefit of opening the box balances out the cost of opening it. Once these prices are calculated, Pandora opens the boxes in descending order of their reservation prices, stopping when she has found a value that exceeds the maximum of the reservation prices of the remaining unopened boxes.
In this paper, we cast routing with costly value estimation as an instance of Pandora’s Box. Here, each specialist can be viewed as a box. The router always has access to a cheap value estimate , and can optionally pay to query a more accurate but costly estimate ; i.e., pay to "open the box", and gain more information about the quality of specialist . The question of which estimates to compute, and when to stop computing and commit to a specialist, is the same as Pandora’s problem. Under a Gaussian signal model for the relationship between and , the reservation prices and the associated value-of-information expressions have closed forms. To allow Pandora to select a box without making any queries to , we consider the non-obligatory variant of the Pandora’s Box problem, in which she can select a box that she has not opened (10; 2).
Next, we consider the generalization from routing to decentralized forms of prompt allocation. In a routing system, a single centralized router controls all value estimation. In practice, however, the specialists themselves may be better positioned to estimate their own value. For example, a retrieval-augmented specialist has access to its own corpus, and can measure how relevant it is to the query; a math specialist can start to reason about or plan what computations will be required; a domain expert can know its own performance on internal benchmarks. None of these resources need be available to the router, and in some scenarios, specialists might even want to conceal information such as whether there are matches to a query in a private retrieval corpus. With this in mind, we extend the concept of value estimation for routing, to value estimation for bidding, where decentralized agents learn how to leverage costly value estimation when claiming queries, in a way that maximizes their profit. Concretely, we propose Pandora’s Bidder: each specialist faces a posted price—the current best competing offer—and must decide whether to invest in a more accurate self-assessment before claiming the query. This corresponds to a single stage of the ascending-price mechanism with costly preference elicitation studied by 38; analyzing this simple setting isolates core components of decentralized prompt allocation under private value estimation with profit incentives.
Core contributions of this work As AI systems with diverse capabilities proliferate, reasoning about the economics of model selection becomes increasingly relevant. To our knowledge, this is the first paper to explicitly connect model routing with the classical Pandora’s Box problem from economics and operations research. Specifically, this paper makes three main contributions: • We formalize model routing with costly value estimation as an instance of Pandora’s Box with non-obligatory inspection (10), yielding a reservation-price-based policy. Under a Gaussian signal model, this policy has a closed form that is straightforward to compute (§4). • We extend to a decentralized setting where specialists use value-of-information reasoning to decide whether to refine their self-assessments before accepting a posted price (§5). • We evaluate both frameworks (see Figure 1) across three domains: a multi-LLM routing benchmark (EmbedLLM), retrieval-augmented specialists for factoid QA, and inference-time computation for mathematical reasoning. In each setting, we find that both Pandora’s Router and Pandora’s Bidder are able to gracefully trade-off expensive and cheap estimates to achieve strong allocative performance relative to baselines across a range of estimation costs.
1Prompt Find the remainder when is divided by . 2Cheap screeningSpecialist 1$$f_{1}(x): modest priorSpecialist 2$$f_{2}(x): promising priorSpecialist M$$f_{M}(x): modest prior All specialists get an initial cheap, noisy value estimate . 3Reservation prices Solve for the reservation price , , where • is a more accurate but costly value estimate; • is the cost of querying . Pandora estimates the value of information for running each expensive value estimator . 4AllocationPandora’s RouterCentralized policy Inspect specialists in reservation-price order, stopping when no remaining query is worth its cost. Choose the maximizer of the observed . Pandora’s BidderDecentralized policy The high bidder is selected in an auction. Each specialist refines its own value estimate only when the market price makes inspection worthwhile. The same principle yields both a centralized and decentralized policy.
Figure 1: Overview of the Pandora framework. The system balances cheap screening and costly reasoning for routing. (1) A concrete prompt is received. (2) Multiple specialists generate cheap, noisy value estimates . (3) The system computes reservation prices that quantify the expected value-of-information for querying a more costly and accurate value estimate , e.g., by running the specialist for a few reasoning tokens and checking if it is on the right track. (4) This unified principle supports allocation by centralized routing and decentralized auctions.
Formally, let be a random input prompt, and let denote a realization. Conditional on the input , specialist samples an output , , and receives a cost-adjusted reward . For notational convenience, we will write the cost-adjusted reward simply as . The reward may combine, for example, the graded quality of the output with the cost of producing it (which could be the inference cost, or API fees for tools called), and is a random variable through both the randomness of and any noise in the evaluation itself (e.g., from a human annotator). The input-specific oracle routing problem is to select the specialist that maximizes the conditional expected reward, that is, with However, since the true reward is typically not available at routing time, the router must instead apply a value estimator to predict it, and then pick the best specialist based on their estimated values.
Of course, there are many ways to do value estimation, and these estimators may themselves incur widely varying computational costs. At one extreme, a cheap value estimate could just be a constant, such as the average cost-adjusted reward on a calibration set (and not conditional on ). At the other extreme, we might actually materialize the candidate output for each model , and then score with an estimate of (with an LLM-based auto-rater for example, if involves a human judgment), or even observe directly (if the reward is a known function of ). In practice, a straightforward approach to value estimation is to apply a trained model to the text of the prompt, or its embedding (24; 32; 37, inter alia). These estimators can move along a cost-accuracy curve depending on their complexity, or depending on any other auxiliary input information that is gathered by the estimator (e.g., by invoking tools or computing partial solutions, such as plans (50; 31)). We denote the additional information revealed from such a costly inspection of specialist by . Note that the costly information need not be private to the specialist—it may simply reflect additional computation applied to the prompt, such as from using a more expressive encoder.
Under this view, the routing process separates naturally into two phases: gathering information and making a final choice. We consider a minimal setting in which there are just two available value estimators: (cheap) and (costly), with costs , respectively. For simplicity, we set , so that is always computed. We will use uppercase letters for the corresponding random variables. Let be the cheap estimate for the specialist and let Inspecting specialist reveals the costly information needed to compute the refined estimate ; a process we simply call querying . We denote the cost of this process as . For the additional cost of to be justified, it should be more accurate, in the sense that on calibration data we have The router must dynamically decide which specialists to inspect (by querying ) in order to maximize the expected reward of the final assignment, minus the total cost of the realized estimates.
To make things more concrete before presenting our efficient routing algorithms, we now describe three real-world domains where the two-tier estimation between versus arises organically, each with a qualitatively different source of costly information that is useful for deciding the best allocation.
2.1 Experimental domains and value estimators
We explore several empirical settings, each featuring different types of specialists and value estimators. In all cases, the cheap estimator embeds the prompt with a pretrained encoder, retrieves the nearest prompts from a calibration set (measured by cosine similarity in embedding space), and returns the average reward of the retrieved neighbors as the value estimate. The costly estimator is then constructed by fine-tuning a small language model encoder to predict the reward from a tailored, domain-specific input context. We describe these below. Note that in each domain, we partition the data into three splits: training (for fitting value estimators), calibration (for estimating the value-of-information model parameters in Sections 4 and 5), and test. Table 1 reports the MSE of each estimator on held-out calibration data. Additional dataset and implementation details are included in Appendix B.
MATH: Inference-time scaling in mathematical reasoning tasks.
In inference-time scaling, extended reasoning improves accuracy on hard problems but increases latency and cost. The costly estimator treats the early tokens of a reasoning trace as private information: it receives the prompt along with the first tokens of a model’s chain-of-thought, effectively peeking at a partial solution to judge whether the model’s reasoning looks promising before committing to it. This is passed with the prompt to a small language model (Gemini 2.5 Flash-Lite) with a regression loss to predict the specialist’s reward directly from the prompt text. The router chooses between Gemma3-4B (16) (low-cost) and Gemini-3.1-Flash-Lite (18) (cost , so that ). This high cost is chosen so that it is beneficial to route to Gemini only when confident that it can answer correctly and Gemma cannot. We evaluate on a corpus of 16,512 mathematical problems spanning MATH (22), Omni-Math (15), AIME (34; 20), and HMMT (19).
RAG: Retrieval-augmented generation with specialized corpora.
In retrieval-augmented generation (30, RAG;), retrieval results can improve answer quality but incur costs from retrieval computation, longer contexts, and potentially licensing fees for specialized corpora. The costly estimator runs retrieval and passes the results alongside the prompt to a language model fine-tuned with a regression loss, as in Math. Notably, the retrieval results themselves do carry some signal: if the retrieved documents are relevant to the query, the specialist is more likely to answer correctly, whereas irrelevant retrievals may hurt. The router selects between three specialists: a low-cost model with no retrieval (the costly estimator here is just the more expensive LLM-based estimator), a Wikipedia RAG model, and a PubMed RAG model, where the RAG models each incur a cost of (again, subtracted from correctness in ). Prompts are a mixture of general-knowledge factoid questions and biomedical questions, following the same experimental setup as 12.
EmbedLLM: Large-scale language model selection.
Finally, we consider EmbedLLM (52), a standard routing benchmark without auxiliary information, where the value of costly estimation comes purely from spending more compute to better distinguish among a large pool of candidates. As above, is a fine-tuned language model; even without private information, this is more expensive at inference time than the KNN baseline, but is significantly more accurate than the KNN baseline, since the model can learn prompt-level features that the embedding space misses. EmbedLLM incorporates more than 100 open-weights models as routing targets; following 26, we assign each model a cost proportional to its parameter count. Queries are drawn from standard benchmarks like MMLU (21) and GSM8K (5).
| Setting | Estimator | MSE | Description | |
|---|---|---|---|---|
| MATH | : KNN | -nearest neighbors on prompt embeddings | ||
| : SFT-CoT- | Fine-tuned transformer on prompt + first tokens of the model’s chain-of-thought (CoT) reasoning trace | |||
| RAG | : KNN | -nearest neighbors on prompt embeddings | ||
| : SFT-retrievals | Fine-tuned transformer on prompt + retrieval results | |||
| EmbedLLM | : KNN | -nearest neighbors on prompt embeddings | ||
| : SFT-prompt | Fine-tuned transformer on prompt |
Table 1: Value estimators across experimental domains. The cheap estimator is always computed; the costly estimator is queried selectively. The mean-squared error (MSE) is measured on a held-out calibration set. The cost ratios are discussed in Section 2.2 and derived in Section D.3.
While the MATH and RAG settings have only two and three target models to choose from respectively, both routing and efficient value estimation are still challenging and important problems even when the number of target models is small. The strongest frontier models can be up to five times as expensive as cheaper models from the same provider, so there are strong financial incentives to reserve the most expensive models for situations where they yield meaningful improvements. Similarly, as shown in Table 1, more computationally-intensive value estimation strategies can yield significant improvements, but at high cost. The difficulty of the information acquisition problem depends not primarily on the number of targets, but on how discriminable the options are: we can have many options, but this doesn’t matter if there is always a clear best box to use based on cheap signals alone; or we can have a few boxes that are hard to choose between, and it is expensive to know more. We picked experimental settings that try to cover key aspects of each of these considerations.
2.2 Value estimator costs
To estimate monetary costs for the value estimators in Table 1, we use prices from https://ai.google.dev/gemini-api/docs/pricing (retrieved August 1, 2026), because it offers a single source of prices for LLM inference, embedding, and retrieval. The resulting estimates are meant only to show that approaches to value estimation can incur vastly different costs; we do not claim that these specific prices are optimal or even typical. Because the cost-accuracy tradeoff is a user characteristic rather than an objectively-measurable property of the domain or method, we focus on the ratio between the prices of and . Please see Section D.3 for the derivation of these ratios.
3 Preliminaries: The Pandora’s Box Problem
We begin by briefly reviewing the Pandora’s Box problem (47), which we will connect to model routing and model bidding in the following sections. In the Pandora’s Box problem, a decision-maker (i.e., Pandora) is presented with options, called “boxes”, each with an unknown reward (but with known distribution). For a price she can inspect any box to observe its reward, and at any time she can terminate the search and take the best reward that she has observed. The optimal policy depends on a mathematical object called the reservation price, which is a single scalar that encodes the value of inspecting a box. The reservation prices alone can be used to construct a simple, but optimal, priority-based search. Notably, this optimal search must be sequential, as the information acquired so far will help determine whether the remaining inspections still justify their cost.
To gain intuition for the reservation price, suppose Pandora has already found a box with value for the input , and must decide whether to open box , whose hidden value is yet unknown, but known to be drawn from a distribution . If Pandora opens the box and finds , she takes ; otherwise, if , she keeps . Given an inspection cost of , her expected payoff at this step from opening the box is therefore ; the payoff for not opening is . The net value is , which is positive when the expected upside exceeds the cost. The reservation price , defined by 47, is the outside-option value at which this net value is exactly zero:
When the current best value exceeds , the cost of opening box outweighs the expected gain. The resulting decision rule is therefore quite simple: we open box if , and skip it otherwise. The full selection strategy, however, requires more than a single “open-or-skip” decision. Pandora must sequence her inspections, since each opened box updates the current best value , which in turn changes. She may also skip inspection entirely: if the prior strongly favors box , she can save and commit sight-unseen. These choices define the two classical variants of the problem.
Pandora-OI (obligatory inspection).
In the obligatory-inspection variant, Pandora must open every box she eventually selects. This is the classical Pandora’s Box setting, and admits a simple solution. Specifically, 47 showed that reservation prices alone determine the optimal policy: initialize a best-seen value , open boxes in descending order of , and stop as soon as exceeds the highest remaining reservation price. The box that yielded is selected. The remaining boxes can be safely ignored because implies , by the definition of .
Pandora-NI (non-obligatory inspection).
When inspection is non-obligatory, Pandora may select any unopened box, committing to it without paying the inspection cost, but accepting the risk that its realized value may disappoint (10). The optimal adaptive policy for this variant is NP-hard (14), so we use a tractable restriction to committing policies (2). A committing policy designates a single box as “held out”: this box will not be opened, but may be selected as the final choice. The remaining boxes are searched via Pandora-OI, with the held-out box providing the initial outside option.
To use an unopened box as an outside option, we need to assign it a deterministic value. We use the backup price , which like the reservation price in Equation 1, is defined as the solution to:
Note that the backup price is related to, but different from, the reservation price. The reservation price is the outside option that makes Pandora indifferent to inspecting a box or skipping it; the backup price is the outside option that makes Pandora indifferent to committing to the sealed box sight-unseen versus paying to inspect it. Any opened box must exceed this threshold to justify discarding the sealed option. The relationship between the backup price and the reservation price depends on the expected shortfall below the mean of the held-out box, specifically, if and only if . For costs exceeding this threshold (very expensive boxes), the inequality reverses.
The algorithm proceeds as follows. For each candidate holdout , define the expected payoff of the committing policy that reserves box :
where is the value of the (random) box that the committing policy selects, and is the (random) set of boxes opened by Pandora-OI on with initial outside option . The case corresponds to running Pandora-OI on all boxes with no holdout (). Because the held-out box is unobserved, we estimate via Monte Carlo (MC) samples ; we denote the MC estimate . We select that maximizes , using samples. At test time, we run Pandora-OI on with initial value , opening the actual boxes. We default to if we open no boxes or if no realized value clears ; otherwise, we select the best opened box.
4 Pandora’s Router
A value-based router tries to select the specialist with the highest expected return. We connect routing to Pandora’s Box by treating each specialist as a box and the costly value estimate as the value revealed by opening that box. One subtlety is that the box value is not the realized downstream reward itself. The router never observes before choosing a specialist. The relevant decision value is thus the expected reward conditional on the information the router can acquire. In practice, our learned costly estimate is a learned plug-in approximation to this posterior decision value, and our proxy objective is to find the specialist for which is largest. In Proposition 1 and Corollary 1 (Appendix A), we show that this is equivalent in expectation to optimizing , assuming conditional independence.
Gaussian signal model.
The Pandora’s Box algorithm requires an estimate of the distribution of the box values. We model the distribution of conditional on the cheap estimates as
where collects the realized cheap estimates for all specialists and is a function of this vector, where and are estimated on calibration data. The choice of is flexible; we explore both gradient boosted decision trees and linear regression depending on the domain (see Appendix C). captures the predictable component of given , and captures the residual uncertainty, which is approximated as normally distributed per Equation 4. Under this model, the value of opening box against an outside option is the expectation of a Gaussian censored at :
with , and and the standard normal CDF and PDF. The reservation price satisfies and can be obtained by simple root-finding on Equation 5. Of course, while convenient, the Gaussian model is only an approximation, and real box values are rarely strictly Gaussian. We also explore a non-Gaussian signal model in Section D.6 (for an alternative model based on Gaussian processes, see 48), but find that while it is possible to improve fit to the empirical distribution, it does not yield an improvement in overall routing success and inspection cost.
An extension for handling correlated values. In routing, the Pandora-OI and Pandora-NI policies described above must contend with an additional complication: the hidden values of the boxes are not independent. For some difficult prompts, all specialist scores will tend to fall below the prediction ; for easy prompts, they will cluster above it. This correlation is particularly strong in the EmbedLLM domain, where there are routing targets, some of which are extremely similar (e.g., different fine-tunings of the same base model). To handle this, we propose a heuristic approximation that recomputes reservation prices at each step of the sequential policy (inspired by 17, and also similar to the Gaussian process updates in 48). On calibration data we estimate the parameters of a multivariate Gaussian model After each box is opened, we condition on the observed values and compute via the standard multivariate Gaussian posterior. We then make a mean-field approximation to this posterior, yielding updated marginal distributions for each remaining box, from which we recompute the reservation prices. The sequential policy then proceeds as before with these new parameters.
Algorithm 1 Pandora’s Router (with non-obligatory inspection)
1: Cheap value estimates , multi-variate Gaussian signal model parameters , costs , number of Monte Carlo samples .
2: Compute predicted means for all
3: Compute reservation prices via root-finding on Equation 1
4: Compute backup prices for all via root-finding on Equation 2
5: for each candidate held-out box do
6: // Note: corresponds to Pandora-OI on with
7: // is an MC estimate of the expected committing-policy payoff (Equation 3).
8: Estimate by running Pandora-OI on with initial value , averaged over samples of realized where .
9: Select held-out box
10: Run Pandora-OI on with initial value , using actual -queries
11: if no boxes were opened or the best realized value then
12: return sealed holdout
13: else
14: return the best opened box
Experimental setup.
We evaluate Pandora’s Router on the three domains described in §2.1 (MATH, RAG, and EmbedLLM), and compare with the following methods:
- -only: Route using the cheap estimator only (never opening any box).
- -always: Route using the expensive estimator only (always opening all boxes).
- Top-: Always queries for the two models with highest (open the two expected best boxes).
- Coin Flip: Query with probability ; route to the maximum observed (randomly open boxes).
We also evaluate two ablations that use the same inspection budget selected by Pandora’s Router, but use different methods to decide which boxes to open (that is, instead of reservation prices). Specifically, we first run Pandora’s Router to count how many times, , in total was queried over a test set (in hindsight), and then reallocate those inspections according to the following rules:
- Random-: A simple control where is randomly queried up to times over the entire test set; for every example we route to the best candidate among the randomly inspected options. We route to as a default if no inspections were made for that example.
- Margin-: An uncertainty-based heuristic that queries for specialists whose -scores are close to being best: letting , if is small, we inspect both and . Again, we inspect for at most specialists over the entire test set, and route to as a default.
The primary metric is regret inspection cost: routing regret (the gap between the selected specialist’s true, realized reward and the oracle best specialist in hindsight) plus the total cost of all -queries. Although our method generalizes to heterogeneous costs, for simplicity we use a uniform inspection cost , and sweep to trace out the cost versus performance frontier.
| Method | MATH | RAG | EmbedLLM | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Regret | Cost | Total | Regret | Cost | Total | Regret | Cost | Total | |
| -only | 0.117 | 0.000 | 0.117 | 0.150 | 0.000 | 0.150 | 0.393 | 0.000 | 0.393 |
| -only | 0.090 | 0.038 | 0.128 | 0.084 | 0.057 | 0.141 | 0.370 | 1.986 | 2.356 |
| Top- | 0.090 | 0.038 | 0.128 | 0.107 | 0.038 | 0.146 | 0.402 | 0.036 | 0.438 |
| Coin Flip | 0.107 | 0.019 | 0.127 | 0.122 | 0.029 | 0.151 | 0.398 | 0.992 | 1.390 |
| Random- | 0.164 | 0.011 | 0.175 | 0.135 | 0.027 | 0.162 | 0.363 | 0.075 | 0.438 |
| Margin- | 0.094 | 0.011 | 0.105 | 0.101 | 0.027 | 0.128 | 0.314 | 0.075 | 0.389 |
| Pandora’s Router | 0.094 | 0.011 | 0.105 | 0.091 | 0.027 | 0.118 | 0.311 | 0.075 | 0.386 |
Table 2: Routing evaluation results averaged across query costs . Lower is better on all metrics; the lowest average regret + cost measured per setting is bolded. See Section D.4 in the Appendix for a breakdown of results per cost level , together with paired statistical significance tests.
Results.
Results for the full set of baselines are shown in Table 2 for all three datasets, averaging over all values of (see Section D.4 for results per ; the values tested correspond to those in Figure 2). Pandora’s Router is reliably the best. The two inspection ablations, Margin- and Random-, borrow the query budget from Pandora’s Router, but achieve higher regret because they do not use the budget as effectively. Differences in particular between Margin-, which is the most competitive comparison, and Pandora’s Router at each specific cost level are shown in Figure 2 (for clarity in the figure, we compare Pandora’s Router with -only, -only, and the margin baseline). Pandora minimizes regret plus inspection cost at nearly all cost levels , in all settings. When the cost of is low, Pandora’s Router queries it for nearly every specialist, and all methods except -only (which never queries ) perform similarly. As increases, the -always baseline continues to make a fixed number of queries regardless of cost, while -only still never queries at all. Pandora’s Router interpolates between these extremes, querying only when the value of information exceeds the cost. As a result, the total regret + inspection cost of Pandora’s Router tracks the lower envelope of the baselines across the full range.
10^{-3}$$10^{-2}$$10^{-1}$$9\cdot 10^{-2}$$0.1$$0.11$$0.12$$0.13$$c_{g}Regret + Inspection CostMATH10^{-3}$$10^{-2}$$10^{-1}$$0.1$$0.15$$0.2$$c_{g}RAG10^{-5}$$10^{-4}$$10^{-3}$$10^{-2}$$10^{-1}$$0.38$$0.4$$0.42$$0.44$$c_{g}EmbedLLM2
Figure 2: Routing performance on the MATH, RAG, and EmbedLLM domains for varying costs of querying , with . The ideal value estimation policy would minimize regret + inspection cost at every cost level. Pandora’s Router achieves near-minimal total cost across the full range of (where for all ), querying frequently when it is cheap and rarely when it is expensive.
As a secondary analysis, Figure 6 in Section D.3 shows the cost-performance tradeoff offered by Pandora’s Router, in terms of monetary costs and routing regret. The costs are computed from the Gemini API prices described in Section 2.2. When , we are in a setting in which users are eager to pay for queries that improve routing; here Pandora’s Router obtains regret that almost matches -only, while incurring much lower inspection costs. When , we are in a setting in which users are unwilling to pay for queries to ; here Pandora’s Router never queries , and routing performance and cost match the -only baseline. These tradeoffs are dynamically navigated by Pandora’s Router.
Note that in the MATH experiment the aggregate results for Pandora’s Router and Margin- are nearly identical. Since there are only two routing targets, regret is determined largely by the decision about how many values to query: with two queries, both methods always select the -maximizer; with zero queries both methods almost always select the -maximizer (except in rare cases where the reserve price ordering is different from the ordering of ). Because Margin- inherits the query budget () from Pandora’s Router, it is unsurprising that its overall performance is very similar.
5 Pandora’s Bidder
We now derive a simple but interesting extension of Pandora’s Router to a decentralized setting in which the specialists control their own value estimates, and use them to participate in a marketplace. Pandora’s Router assumes that a single decision-maker controls which boxes to open and which specialist to select. In many settings, however, the specialists themselves are better positioned to estimate their own value: a retrieval-augmented specialist has access to its own corpus, a math specialist can execute partial computations, and a domain expert may have proprietary benchmarks. None of these resources need be visible to a centralized router. Decentralization also has a number of practical advantages: new specialists can join without retraining the routing model, and the cost of value estimation is borne by the specialists rather than the platform.
As an alternative to a centralized router, consider a market-based mechanism where each specialist can purchase the right to answer a query. We formalize this via a posted-price mechanism corresponding to a single stage of the ascending-price framework with costly preference elicitation studied by 38. We consider a leave-one-out setting with a single strategic specialist. A platform collects nonstrategic value estimates from specialists and posts the best estimate as the price at which the remaining specialist can claim the query. The strategic specialist must then apply the same value-of-information (VoI) reasoning from Pandora’s Router to decide whether this price is worth accepting, and whether or not to pay to observe a refined estimate before making this decision.
Concretely, for a given query , the platform solicits from each of the nonstrategic specialists and sets the posted price as . Note that the platform could incorporate a markup to extract profit, but here we simply use the best competing estimate. The strategic specialist then faces a decision: accept the price (winning the right to answer the query, instead of the platform’s choice), or decline (in which case the platform routes to the specialist that set the price). Specialist begins with only the cheap estimate, which yields a predicted mean for , as in Equation 4. The expected gain from paying to observe before responding to the price is
This is the difference in expected profit between deciding after observing and deciding based only on . The structure mirrors the reservation price computation for Pandora’s Router in §4, but with the price playing the role of the outside option. When is low relative to , the specialist can confidently accept based on alone; when is high, the specialist can confidently decline. The value of information peaks when is close to and the correct action is uncertain. The condition defines an interval within which it is worth paying for the refined estimate (38). Using the same Gaussian model as in Equations 4 and 5, the boundaries satisfy
with , and and the standard normal CDF and PDF. Like the reservation price, these values are obtained via standard root-finding techniques. The resulting bidding strategy pays to observe when , accepting if . Outside this interval, refinement is not worth it: the specialist simply accepts if and declines if .
10^{-2}$$10^{-1}$$0.05$$0.06$$0.07Surplus RegretMATH10^{-2}$$10^{-1}$$0.08$$0.1$$0.12RAG10^{-5}$$10^{-4}$$10^{-3}$$10^{-2}$$10^{-1}$$0.07$$0.075$$0.08EmbedLLM10^{-2}$$10^{-1}$$0.03$$0.04$$0.05$$c_{g}Efficiency Regret10^{-2}$$10^{-1}$$0.04$$0.05$$0.06$$c_{g}$$10^{-5}$$10^{-4}$$10^{-3}$$10^{-2}$$10^{-1}$$0.05$$0.06$$0.07$$c_{g}7
Figure 3: Results for the posted-price auction across the three experimental domains for varying refinement cost . The VoI-based bidding strategy interpolates between querying when cheap and declining when expensive, while static baselines either over-invest or under-invest in refinement.
Experimental setup.
We evaluate Pandora’s Bidder in a leave-one-out setting across the three domains from Section 2.1. For each query, one specialist is designated as the strategic bidder; the remaining specialists submit their estimates nonstrategically, and the platform posts the best as the price via . The strategic bidder then applies the VoI-based acceptance strategy above. We rotate the held-out specialist across all models and report the average. As in the centralized routing experiments, we sweep over to trace out the cost versus performance frontier.We measure two quantities: (1) specialist surplus, which is when the strategic specialist accepts the price and when it declines, as well as any incurred estimation costs; and (2) allocative efficiency, which is the true reward of the winning specialist ( if it accepts, otherwise the platform-chosen specialist), minus the ’s estimation costs. We exclude competitors’ estimation costs; by treating their estimates as given, we isolate the contribution of the VoI-based policy. We compare against the -always baseline (the bidder always pays for ) and the -only baseline (the bidder always decides based on ). For both metrics, we measure the regret versus an oracle that knows for free.
Results.
Figure 3 plots allocative efficiency and bidder surplus for different . Pandora’s Bidder closely tracks the lower envelope of the regret of the two baselines across the full range. When is low, the bidder frequently refines its estimate, winning queries where it holds a true advantage. As increases, the bidder selectively defaults to the cheap estimate or declines the price, avoiding the cost collapse of the -always baseline. The -only baseline, conversely, leaves efficiency on the table at low costs by never investing in refinement. With decentralization, however, maximizing local surplus does not always lead to better overall allocative efficiency. For example, when the price is inaccurate (set using the cheap estimate rather than for the competitors) the strategic bidder captures higher surplus at the cost of overall allocative efficiency (see additional results in Section D.2). Overpriced queries offer insufficient expected profit to incentivize the bidder; declining them protects the bidder’s surplus but assigns the input to a less capable specialist. This tension is absent in the centralized setting, where the router internalizes all costs and optimizes global welfare directly. Extending Pandora’s Bidder to multi-round ascending-price mechanisms (38) may recover some of this efficiency loss.
6 Related Work
Information value theory.
Many scenarios require agents to decide whether to spend effort learning more about the world or to exploit what they already know. An early formalization of this decision problem is information value theory (23), which provides the general framework for Equations (1) and (6). Bayesian Q Learning is an application of information value theory that quantifies the downstream value of actions that increase the precision of the agent’s beliefs about state-action values (8). While similar in spirit, the core ideas of Bayesian Q Learning cannot easily be applied to model routing because state-action pairs cannot be visited more than once; in this work, however, we show that the form of the model routing decision problem admits specialized efficient algorithms based on Pandora’s Box (formalized as Pandora’s Router in Section 4).
LLM routing.
Routing user inputs within a collection of language models has been proposed as a way to reduce costs while maintaining high accuracy (4) and to leverage complementary capabilities of heterogenous models (43). There are now several routing benchmarks (24; 13, e.g.,), of which we use EmbedLLM (52). Most routing approaches require predicting the answer quality for each model on a given input, using pointwise (26) or pairwise (37) data. In all of this prior work, value estimation is treated as a cost-free operation with a fixed error profile. Our contribution in Pandora’s Router in Section 4 is to treat value estimation as a decision involving a cost-performance tradeoff of its own.
Adaptive retrieval and tool use.
Closely related to routing is the decision of whether to invoke external tools or retrievers. Adaptive RAG frameworks (25) dynamically adjust retrieval strategies depending on the query complexity to save computational costs. Similarly, recent evaluations of adaptive retrieval (35) highlight the tension between using internal LLM uncertainty estimation vs. lightweight external heuristics. We formalize this exact tradeoff—that is, deciding whether to spend computational power on self-assessment or tool-planning—through a value-of-information perspective that is both theoretically principled and empirically effective.
Pandora’s Box and optimal search.
Prior work on sequential search with costly inspection is reviewed in §3. The Pandora’s Box problem is also used as a motivating framework for LLM reasoning about cost-uncertainty tradeoffs by 9, as well as by 48 for cost-aware Bayesian optimization in which the reservation price (for obligatory inspection) is used to drive an acquisition function. In contrast, we instantiate the non-obligatory variant of the Pandora’s Box algorithm to drive LLM routing specifically, and we derive closed-form value-of-information expressions under a practical Gaussian signal model that make our algorithm simple to implement and execute. On a more technical level, we focus on a committing policy approximation to the non-obligatory inspection variant of the Pandora’s Box problem (2). Another class of approximations uses randomization (1; 42), which we may consider in future work.
Decentralized AI and multi-agent systems.
Decentralized coordination through market mechanisms has a long history in AI, from ContractNet (7), which introduced negotiation-based task allocation, to AgentNet (49), which builds dynamic graph topologies between LLM agents. Our work on Pandora’s Bidder in Section 5 is most informed by auction-based approaches, which were applied to ContractNet by 40 and linked to decentralized RL by 3. The combination of auctions with cost-accuracy tradeoffs in value estimation is generally intractable, but 38 offers empirically-validated heuristics. For a survey on the problem of delegation between AI components, see 46. Auctions and related mechanisms have received increasing attention as an approach for decentralized orchestration of LLMs (11; 6; 51; 45; 36), but these frameworks generally assume that agents know their own valuations a priori, while we describe how agents can reason about costly value estimation when they are unknown.
7 Conclusion
Value-based routing is a natural approach to optimizing the allocation of computing power to AI model inputs. We have argued that value estimation itself brings cost-accuracy tradeoffs, and we show how the Pandora’s Box problem offers a unified framework for value-based routing under heterogeneous value estimators. We also extend the framework to a decentralized setting, in which specialists reason about the value of information in an auction-based allocation mechanism.
Limitations.
Several limitations suggest promising directions for future work. The Gaussian signal model, while tractable, may not capture the heavy tails or multimodality present in some domains (see Section D.6 for coverage statistics and a pilot study of a non-Gaussian signal model). The two-estimator restriction ( and ) could be relaxed to chains or trees of estimators with varying performance tradeoffs. And the myopic VoI computation in the leave-one-out auction does not account for strategic anticipation of future bids; an extension to a multi-round ascending-price auction (38) is a natural next step. Furthermore, as discussed in Section 5, when bidding against weaker adversaries that place poor bids, Pandora’s Bidder can improve its own utility at the expense of the overall welfare.
Acknowledgements
We thank Alekh Agarwal, Jonathan Berant, and Ian Gemp for helpful research discussions, and Chris Dyer and Artem Sokolov for helpful comments and feedback on the manuscript. This research also benefited from early-stage discussions with Will Dabney.
References
H. Beyhaghi and L. Cai Pandora’s problem with nonobligatory inspection: optimal structure and a PTAS. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pp. 803–816. Cited by: §6.
H. Beyhaghi and R. Kleinberg Pandora’s problem with nonobligatory inspection. In Proceedings of the 2019 ACM Conference on Economics and Computation, pp. 131–132. Cited by: Figure 7, §D.5, §1, §3, §6, footnote 2, footnote 4.
M. Chang, S. Kaushik, S. M. Weinberg, T. Griffiths, and S. Levine Decentralized reinforcement learning: global decision-making via local economic transactions. In International Conference on Machine Learning, pp. 1437–1447. Cited by: §6.
L. Chen, M. Zaharia, and J. Zou FrugalGPT: how to use large language models while reducing cost and improving performance. arXiv preprint arXiv:2305.05176. Cited by: §6.
K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Cited by: Appendix B, §2.1.
N. Collina, S. Goel, A. Roth, E. Ryu, and M. Shi Emergent alignment via competition. arXiv preprint arXiv:2509.15090. Cited by: §6.
R. Davis and R. G. Smith Negotiation as a metaphor for distributed problem solving. Artificial Intelligence 20 (1), pp. 63–109. Cited by: §6.
R. Dearden, N. Friedman, S. Russell, et al. Bayesian q-learning. Aaai/iaai 1998, pp. 761–768. Cited by: §6.
W. Ding, N. Tomlin, and G. Durrett Calibrate-then-act: cost-aware exploration in LLM agents. arXiv preprint arXiv:2602.16699. Cited by: §6.
L. Doval Whether or not to open Pandora’s box. Journal of Economic Theory 175, pp. 127–158. Cited by: 1st item, §1, §3.
P. Dütting, V. Mirrokni, R. P. Leme, H. Xu, and S. Zuo Mechanism design for large language models. In Proceedings of the ACM Web Conference 2024, Cited by: §6.
J. Eisenstein, R. Aghajani, A. Fisch, D. Dua, F. Huot, M. Lapata, V. Zayats, and J. Berant Don’t lie to your friends: learning what you know from collaborative self-play. arXiv preprint arXiv:2503.14481. Cited by: Appendix B, §2.1.
S. Feng, Y. Bai, Z. Yang, Y. Wang, Z. Tan, J. Yan, Z. Lei, W. Ding, W. Shi, H. Wang, et al. MoCo: a one-stop shop for model collaboration research. arXiv preprint arXiv:2601.21257. Cited by: §1, §6.
H. Fu, J. Li, and D. Liu Pandora box problem with nonobligatory inspection: hardness and approximation scheme. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pp. 789–802. Cited by: §3.
B. Gao, F. Song, Z. Yang, Z. Cai, Y. Miao, Q. Dong, L. Li, C. Ma, L. Chen, R. Xu, Z. Tang, B. Wang, D. Zan, S. Quan, G. Zhang, L. Sha, Y. Zhang, X. Ren, T. Liu, and B. Chang Omni-math: A universal olympiad level mathematic benchmark for large language models. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025, External Links: Link Cited by: Appendix B, §2.1.
Gemma Team, A. Kamath, J. Ferret, S. Pathak, N. Vieillard, R. Merhej, S. Perrin, T. Matejovicova, A. Ramé, M. Rivière, L. Rouillard, T. Mesnard, G. Cideron, J. Grill, S. Ramos, E. Yvinec, M. Casbon, E. Pot, I. Penchev, G. Liu, F. Visin, K. Kenealy, L. Beyer, X. Zhai, A. Tsitsulin, R. Busa-Fekete, A. Feng, N. Sachdeva, B. Coleman, Y. Gao, B. Mustafa, I. Barr, E. Parisotto, D. Tian, M. Eyal, C. Cherry, J. Peter, D. Sinopalnikov, S. Bhupatiraju, R. Agarwal, M. Kazemi, D. Malkin, R. Kumar, D. Vilar, I. Brusilovsky, J. Luo, A. Steiner, A. Friesen, A. Sharma, A. Sharma, A. M. Gilady, A. Goedeckemeyer, A. Saade, A. Feng, A. Kolesnikov, A. Bendebury, A. Abdagic, A. Vadi, A. György, A. S. Pinto, A. Das, A. Bapna, A. Miech, A. Yang, A. Paterson, A. Shenoy, A. Chakrabarti, B. Piot, B. Wu, B. Shahriari, B. Petrini, C. Chen, C. L. Lan, C. A. Choquette-Choo, C. Carey, C. Brick, D. Deutsch, D. Eisenbud, D. Cattle, D. Cheng, D. Paparas, D. S. Sreepathihalli, D. Reid, D. Tran, D. Zelle, E. Noland, E. Huizenga, E. Kharitonov, F. Liu, G. Amirkhanyan, G. Cameron, H. Hashemi, H. Klimczak-Plucińska, H. Singh, H. Mehta, H. T. Lehri, H. Hazimeh, I. Ballantyne, I. Szpektor, I. Nardini, J. Pouget-Abadie, J. Chan, J. Stanton, J. Wieting, J. Lai, J. Orbay, J. Fernandez, J. Newlan, J. Ji, J. Singh, K. Black, K. Yu, K. Hui, K. Vodrahalli, K. Greff, L. Qiu, M. Valentine, M. Coelho, M. Ritter, M. Hoffman, M. Watson, M. Chaturvedi, M. Moynihan, M. Ma, N. Babar, N. Noy, N. Byrd, N. Roy, N. Momchev, N. Chauhan, N. Sachdeva, O. Bunyan, P. Botarda, P. Caron, P. K. Rubenstein, P. Culliton, P. Schmid, P. G. Sessa, P. Xu, P. Stanczyk, P. Tafti, R. Shivanna, R. Wu, R. Pan, R. Rokni, R. Willoughby, R. Vallu, R. Mullins, S. Jerome, S. Smoot, S. Girgin, S. Iqbal, S. Reddy, S. Sheth, S. Põder, S. Bhatnagar, S. R. Panyam, S. Eiger, S. Zhang, T. Liu, T. Yacovone, T. Liechty, U. Kalra, U. Evci, V. Misra, V. Roseberry, V. Feinberg, V. Kolesnikov, W. Han, W. Kwon, X. Chen, Y. Chow, Y. Zhu, Z. Wei, Z. Egyed, V. Cotruta, M. Giang, P. Kirk, A. Rao, K. Black, N. Babar, J. Lo, E. Moreira, L. G. Martins, O. Sanseviero, L. Gonzalez, Z. Gleicher, T. Warkentin, V. Mirrokni, E. Senter, E. Collins, J. Barral, Z. Ghahramani, R. Hadsell, Y. Matias, D. Sculley, S. Petrov, N. Fiedel, N. Shazeer, O. Vinyals, J. Dean, D. Hassabis, K. Kavukcuoglu, C. Farabet, E. Buchatskaya, J. Alayrac, R. Anil, Dmitry, Lepikhin, S. Borgeaud, O. Bachem, A. Joulin, A. Andreev, C. Hardin, R. Dadashi, and L. Hussenot Gemma 3 technical report. External Links: 2503.19786, Link Cited by: §2.1.
E. Gergatsouli and C. Tzamos Weitzman’s rule for Pandora’s box with correlations. Advances in Neural Information Processing Systems 36, pp. 12644–12664. Cited by: §4.
Google DeepMind External Links: Link Cited by: §2.1.
[19] Harvard-MIT Mathematics Tournament HMMT past problems and solutions. Note: https://www.hmmt.org/Accessed: 2026-04-22 Cited by: Appendix B, §2.1.
C. He, R. Luo, Y. Bai, S. Hu, Z. L. Thai, J. Shen, J. Hu, X. Han, Y. Huang, Y. Zhang, J. Liu, L. Qi, Z. Liu, and M. Sun OlympiadBench: a challenging benchmark for promoting AGI with olympiad-level bilingual multimodal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, Cited by: Appendix B, §2.1.
D. Hendrycks, C. Burns, S. Basart, A. Zou, M. Mazeika, D. Song, and J. Steinhardt Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300. Cited by: Appendix B, §2.1.
D. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song, and J. Steinhardt Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks 1, NeurIPS Datasets and Benchmarks 2021, J. Vanschoren and S. Yeung (Eds.), External Links: Link Cited by: Appendix B, §2.1.
R. A. Howard Information value theory. IEEE Transactions on systems science and cybernetics 2 (1), pp. 22–26. Cited by: §6.
Q. J. Hu, J. Bieker, X. Li, N. Jiang, B. Keigwin, G. Ranganath, K. Keutzer, and S. K. Upadhyay RouterBench: a benchmark for multi-LLM routing system. In International Conference on Machine Learning, Cited by: §1, §2, §6.
S. Jeong, J. Baek, S. Cho, S. J. Hwang, and J. Park Adaptive-RAG: learning to adapt retrieval-augmented large language models through question complexity. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), K. Duh, H. Gomez, and S. Bethard (Eds.), pp. 7036–7050. External Links: Link, Document Cited by: §6.
W. Jitkrittum, H. Narasimhan, A. S. Rawat, J. Juneja, C. Wang, Z. Wang, A. Go, C. Lee, P. Shenoy, R. Panigrahy, et al. Universal model routing for efficient LLM inference. arXiv preprint arXiv:2502.08773. Cited by: Appendix B, §2.1, §6.
A. Krithara, A. Nentidis, K. Bougiatiotis, and G. Paliouras BioASQ-qa: a manually curated corpus for biomedical question answering. Scientific Data 10 (1), pp. 170. Cited by: Appendix B.
T. Kwiatkowski, J. Palomaki, O. Redfield, M. Collins, A. Parikh, C. Alberti, D. Epstein, I. Polosukhin, J. Devlin, K. Lee, K. Toutanova, L. Jones, M. Kelcey, M. Chang, A. M. Dai, J. Uszkoreit, Q. Le, and S. Petrov Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics 7, pp. 452–466. External Links: Link, Document Cited by: Appendix B.
J. Lee, F. Chen, S. Dua, D. Cer, M. Shanbhogue, I. Naim, G. H. Ábrego, Z. Li, K. Chen, H. S. Vera, et al. Gemini embedding: generalizable embeddings from gemini. arXiv preprint arXiv:2503.07891. Cited by: §C.1.
P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Küttler, M. Lewis, W. Yih, T. Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in neural information processing systems 33, pp. 9459–9474. Cited by: §2.1.
A. Liang, J. Berant, A. Fisch, A. Goyal, K. Krishna, and J. Eisenstein Plantain: plan-answer interleaved reasoning. arXiv preprint arXiv:2512.03176. Cited by: §2.
K. Lu, H. Yuan, R. Lin, J. Lin, Z. Yuan, C. Zhou, and J. Zhou Routing to the expert: efficient reward-guided ensemble of large language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), K. Duh, H. Gomez, and S. Bethard (Eds.), Mexico City, Mexico, pp. 1964–1974. External Links: Link, Document Cited by: §2.
A. Mallen, A. Asai, V. Zhong, R. Das, D. Khashabi, and H. Hajishirzi When not to trust language models: investigating effectiveness of parametric and non-parametric memories. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), A. Rogers, J. Boyd-Graber, and N. Okazaki (Eds.), Toronto, Canada, pp. 9802–9822. External Links: Link, Document Cited by: Appendix B.
[34] Mathematical Association of America American invitational mathematics examination (AIME). Note: https://maa.org/math-competitions/amc-1012Accessed: 2026-04-22 Cited by: Appendix B, §2.1.
V. Moskvoretskii, M. Marina, M. Salnikov, N. Ivanov, S. Pletenev, D. Galimzianova, N. Krayko, V. Konovalov, I. Nikishina, and A. Panchenko Adaptive retrieval without self-knowledge? bringing uncertainty back home. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 6355–6384. External Links: Link, Document, ISBN 979-8-89176-251-0 Cited by: §6.
N. Nourzad, H. Yang, S. Chen, and C. Joe-Wong DR. WELL: Dynamic reasoning and learning with symbolic world model for embodied llm-based multi-agent collaboration. CoRR abs/2511.04646. External Links: Document, 2511.04646 Cited by: §6.
I. Ong, A. Almahairi, V. Wu, W. Chiang, T. Wu, J. E. Gonzalez, M. W. Kadous, and I. Stoica RouteLLM: learning to route LLMs from preference data. In The Thirteenth International Conference on Learning Representations, External Links: Link Cited by: §2, §6.
D. C. Parkes Auction design with costly preference elicitation. Annals of Mathematics and Artificial Intelligence 44 (3), pp. 269–302. Cited by: §1, §5, §5, §5, §6, §7.
D. Rein, B. L. Hou, A. C. Stickland, J. Petty, R. Y. Pang, J. Dirani, J. Michael, and S. R. Bowman Gpqa: a graduate-level google-proof q&a benchmark. arXiv preprint arXiv:2311.12022. Cited by: Appendix B.
T. Sandholm An implementation of the contract net protocol based on marginal cost calculations. In AAAI, Vol. 93, pp. 256–262. Cited by: §6.
C. Sciavolino, Z. Zhong, J. Lee, and D. Chen Simple entity-centric questions challenge dense retrievers. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, M. Moens, X. Huang, L. Specia, and S. W. Yih (Eds.), Online and Punta Cana, Dominican Republic, pp. 6138–6148. External Links: Link, Document Cited by: Appendix B.
Z. Scully and L. Doval Local hedging approximately solves pandora’s box problems with nonobligatory inspection. arXiv preprint arXiv:2410.19011. Cited by: §6.
T. Shnitzer, A. Ou, M. Silva, K. Soule, Y. Sun, J. Solomon, N. Thompson, and M. Yurochkin Large language model routing with benchmark datasets. arXiv preprint arXiv:2309.15789. Cited by: §1, §6.
K. Sun, Y. Xu, H. Zha, Y. Liu, and X. L. Dong Head-to-tail: how knowledgeable are large language models (LLMs)? A.K.A. will LLMs replace knowledge graphs?. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), K. Duh, H. Gomez, and S. Bethard (Eds.), Mexico City, Mexico, pp. 311–325. External Links: Link Cited by: Appendix B.
E. Tarasova, V. Erofeeva, O. Granichin, and K. Chernikov Decentralized adaptive task allocation for dynamic multi-agent systems. Scientific Reports 15 (1), pp. 39226. Cited by: §6.
N. Tomašev, M. Franklin, and S. Osindero Intelligent AI delegation. arXiv preprint arXiv:2602.11865. Cited by: §6.
M. L. Weitzman Optimal search for the best alternative. Econometrica 47 (3), pp. 641–654. Cited by: §1, §3, §3, §3.
Q. Xie, R. Astudillo, P. I. Frazier, Z. Scully, and A. Terenin Cost-aware bayesian optimization via the pandora’s box gittins index. Advances in Neural Information Processing Systems 37, pp. 115523–115562. Cited by: §4, §4, §6.
Y. Yang, H. Chai, S. Shao, Y. Song, S. Qi, R. Rui, and W. Zhang AgentNet: Decentralized evolutionary coordination for LLM-based multi-agent systems. In Advances in Neural Information Processing Systems, Cited by: §6.
S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. R. Narasimhan, and Y. Cao React: synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations, Cited by: §2.
C. Zhao, Q. Hu, S. Song, D. Chen, Z. Han, J. Xu, and B. Zheng LLM-auction: generative auction towards llm-native advertising. ArXiv abs/2512.10551. Cited by: §6.
R. Zhuang, T. Wu, Z. Wen, A. Li, J. Jiao, and K. Ramchandran EmbedLLM: learning compact representations of large language models. In The Thirteenth International Conference on Learning Representations, Cited by: Appendix B, §2.1, §6.
Appendix A Pandora’s Routing Objective
In Section 4, we connect routing to Pandora’s Box by treating each specialist as a box and the costly value estimate as the value revealed by opening that box. The revealed value, however, is not itself, but , which is the costly, more accurate estimate of . In this section we formally justify the objective of searching for the maximum value of when is unknown.
Let denote the zero-cost information available before any costly queries, including the prompt and the cheap estimates . Inspecting specialist reveals costly information at cost . In the ideal calibrated case, the value revealed by opening box is
Thus is the posterior decision value of specialist after has been acquired.
Admissible Policies. We restrict attention to sequential policies that only use information that has actually been observed. Let be the zero-cost information state, and let be the set of opened specialists. At each step , a policy either stops, or selects an unopened specialist to inspect. The stopping decision and the choice of are required to be -measurable. If is inspected, the policy pays cost , observes , and the state updates to
where denotes the sigma algebra generated by and . Let be the stopping time, the final opened set, and
the total inspection cost. The final selected specialist must be measurable with respect to the terminal information . We call such a policy admissible. In the obligatory-inspection case we require almost surely; in the non-obligatory case, may also be unopened.
Remark 1.
Here should be interpreted as the information available at zero computational cost. Costly computations are represented by and are not included in the information state until specialist is inspected, even when they are deterministic functions of the prompt.
Proposition 1 (Opened-value reduction).
Suppose the collection is conditionally independent given . Let be any admissible policy that opens a random set , incurs cost , and selects an opened specialist almost surely. Define
Then
Consequently, among policies that select opened specialists, maximizing expected realized reward is equivalent to maximizing the opened posterior decision value net of inspection costs.
Proof.
By admissibility, and are -measurable. Hence the tower property gives
Because is -measurable,
On the event , the specialist has been opened, so contains . The remaining terminal information consists of zero-cost information and signals from other opened specialists, together with decisions that are measurable functions of those observed signals. Conditional independence implies that this additional information does not change the posterior mean of once is known. Therefore
on the event that has been opened. Substituting this into the previous equation yields
and therefore
∎
Corollary 1 (Sealed value of an unopened specialist).
Let be any information state generated by an admissible policy before specialist has been opened. Define the value that would be revealed by opening at this information state as
If specialist is selected without being opened, then its decision value is
Thus an unopened specialist is evaluated by the posterior expectation of the value that would have been revealed by opening it.
Proof.
This is the tower property:
∎
Proposition 1 explains why opened boxes can be searched using posterior decision values rather than realized rewards. Corollary 1 explains the corresponding role of unopened boxes in the non-obligatory inspection variant: an unopened specialist is a sealed outside option, whose value is the current posterior expectation of the value that opening would reveal. The backup-price construction in Pandora-NI is a way to compare this sealed option against the opened values of the other boxes.
The proposition and corollary are exact for the ideal posterior values. In practice, we do not observe directly. Our costly estimator returns a learned score
which we use as a plug-in approximation to . If were trained by squared loss with unlimited data and sufficient model capacity, its population regression target would be the conditional mean in Equation 8. With finite data and a restricted model class, is only an approximation. The Pandora reduction should therefore be read as exact for calibrated posterior decision values, and approximate when implemented with learned scores. The empirical question is whether the learned is accurate and calibrated enough to improve routing decisions for the original reward objective.
Appendix B Dataset Details
MATH.
For this evaluation, we compile a diverse corpus of mathematical problems spanning multiple levels of difficulty. This includes the standard Hendrycks MATH dataset (22), which provides roughly problems across seven mathematical domains. We also incorporate the Omni-Math dataset (15), an Olympiad-level benchmark designed to assess advanced reasoning capabilities. From this dataset, we utilize a subset of 1625 hard problems, filtered by problems which have between zero and 16 derivation steps. Furthermore, we include 969 American Invitational Mathematics Examination (AIME) problems (34; 20), filtered to preclude any overlap with the MATH dataset, alongside 1419 problems from the Harvard-MIT Mathematics Tournament (HMMT) (19) (filtered to avoid overlap with Omni-Math). For the MATH dataset, we retain its standard 5000-problem test split. The remaining datasets are divided using a balanced 50/50 train-test split, resulting in a final aggregate corpus of 9504 training and 7008 testing examples. Prompts are shown in Appendix C.2.
RAG.
Our RAG evaluation setting builds on prior work that combines two retrieval specialists (Wikipedia and PubMed) along with a low-cost model without retrieval (12). Following prior work, we train and evaluate on a collection of factoid questions from PopQA (33), Entity Questions (41), Natural Questions (28), and BioASQ (27). We use 18661 questions for training, 1600 for test, and 400 for calibration, drawing an equal proportion from each of the four datasets. We use the same retrieval pipelines as 12, and generate responses using Gemini-3.1-Flash-Lite. Prompts are shown in Appendix C.2. We use 4 few-shot examples per dataset (16 total) in order to prompt the LLM to generate answers in the right format. The responses are judged for correctness against the ground-truth answers given in each dataset. For each question, we sample responses and score each for correctness. The reward is the average correctness score, less a constant cost penalty of for systems that use retrieval (i.e., Wikipedia and Pubmed specialists). This cost value was chosen to make the routing problem non-trivial (i.e., the model without retrieval can compete when retrieval is not necessary). To avoid false negatives inherent in exact string matching, we use Gemini-3.1-Flash as an LLM-as-a-judge using the same annotation prompt as 44 (Appendix A.1, Prompt 2), which was measured to have very strong agreement with human judgements ().
EmbedLLM.
The EmbedLLM dataset is composed of questions from benchmarks such as GPQA (39), GSM8K (5), and MMLU (21), along with the scores from 123 models (52). We use this dataset without modification. Following 26, we set the model costs to be a linear multiple of the number of parameters. Specifically we apply a cost of 1 per trillion parameters, so that, e.g., Qwen-1.5-7B-Chat has a cost of and Qwen-1.5-32B-chat has a cost of . Seven models were excluded because the parameter count could not be determined (e.g., Claude). We use 16756 prompts for training, 2436 for test, and 609 for calibration.
Appendix C Implementation details
C.1 Value estimators
We give additional details for the value estimators and described in Section 2.1.
Embedding-based estimation (KNN).
The cheap value estimator computes an embedding of the prompt and retrieves the nearest neighbors from a calibration set, returning:
where proximity is measured by cosine similarity in the embedding space. This estimator is fast but limited to patterns that are visible in the embedding space. We use Gemini Embedding 2 (29) as our embedder, and use for the KNN computation.
Fine-tuned estimation (SFT).
A small language model is fine-tuned with a regression loss to predict the cost-adjusted reward from an input context :
The context can be the prompt alone (SFT-prompt), the prompt with retrieval results (SFT-retrievals), or the prompt with partial reasoning traces (SFT-CoT-). We use Gemini-2.5-Flash-Lite as the base model for fine-tuning. Targets are real-valued. Prompts are shown in Appendix C.2.
C.2 Prompts
Math task: prompt with reasoning. Solve the following math problem. Show your work step-by-step, explaining your reasoning clearly. After your reasoning, provide the final answer enclosed in \boxed{} tags. Problem: {problem} Step-by-step solution: reasoning here The final answer is \boxed{answer}.
Math task: SFT value estimator prompt using CoT. Question: {question} Chain-of-Thought: {CoT text} Specialist: {specialist} Based on the question and the chain of thought, will the specialist answer correctly? (Predict 1.0 for yes, 0.0 for no)
RAG task: QA prompt with retrievals. You are a helpful agent whose job is to answer a question. Your answers should be short. For example, if the question is “What is the capital of France?”, please answer “Paris”, and not “Paris is the capital of France”. If you are asked a yes/no question, you may only answer “yes” or “no”. To help you answer the question correctly, you will be given verified information from {corpus}. The verified information may not be necessary, and you can directly answer the question if you are confident that you have the correct answer. The verified information may also not be relevant or sufficient to answer the question. You should still always respond with your best guess. {few_shot_examples} QUESTION: {question} {retrievals} QUESTION: {question} ANSWER:
RAG task: standard prompt without retrievals. You are a helpful agent whose job is to answer a question. Your answers should be short. For example, if the question is “What is the capital of France?”, please answer “Paris”, and not “Paris is the capital of France”. If you are asked a yes/no question, you may only answer “yes” or “no”. {few_shot_examples} QUESTION: {question} ANSWER:
RAG task: SFT value estimator prompt using retrievals. INSTRUCTIONS: Your task is to predict how likely it is that a language model with {capability} correctly answers the following question. QUESTION: {question} INFORMATION: Here are the retrieved passages that the language model will have access to: 1. Title: {title_1} Passage: {passage_1} 2. Title: {title_2} Passage: {passage_2} … QUESTION: {question} RESPONSE:
RAG task: SFT value estimator prompt without retrievals. INSTRUCTIONS: Your task is to predict how likely it is that a language model with {capability} correctly answers the following question. QUESTION: {question} RESPONSE:
EmbedLLM: SFT value estimator prompt (no additional info). INSTRUCTIONS: Your task is to predict how likely it is that the model {actor} gives a satisfactory response to the following prompt. PROMPT: {prompt} How likely is it?
C.3 Experiment compute resources
Much of our work is based on pre-computed outputs from existing models (e.g., the EmbedLLM data). The main exception is in value estimation, for which we finetuned small Transformer-based encoders ourselves, and inference for the RAG and math domains. Specifically, in the evaluation on the math domain, where we made 15k calls to the Gemini-2.5-Flash-Lite and Gemma3-4B models to compute answers, where the models are served on a TPU cluster with 32 TPUs. This process took less than 1 hour. For the RAG domain, we made 500k calls to Gemini-2.5-Flash-Lite to generate 8 responses per question per retrieval setting, and then another 500k calls to Gemini-2.5-Flash to score all the responses for correctness. We also fine-tuned small Transformers as value estimators for each setting, requiring 1-3 hours of training time. The training time was higher for the math domain, needing up to 6 hours, while running on 64 Google TPUs utilizing up to 436.69 GiB of Memory. The Pandora’s box algorithm itself was run on CPU at minimal cost.
Appendix D Supplemental Results
D.1 Number of queries
Figure 4 shows the number of queries executed by each algorithm. Note that Pandora-OI, the obligatory-inspection variant, must always execute at least one query. At higher costs, most of the savings for Pandora-NI derives from identifying prompts for which it is not necessary to query .
10^{-3}$$10^{-2}$$10^{-1}$$0$$1$$2CostNum QueriesMATH10^{-3}$$10^{-2}$$10^{-1}$$0$$1$$2$$3CostRAG10^{-5}$$10^{-4}$$10^{-3}$$10^{-2}$$10^{-1}$$10^{0}$$10^{1}$$10^{2}CostEmbedLLM7
Figure 4: Number of queries to during model routing.
D.2 Auctions against weak opponents
In Section 5, the leave-one-out auction computes a posted price from the costly value estimates . Since the optimal value-of-information-based strategy for the strategic specialist depends on the price it faces (i.e., if it is in the interval ), changing the posted price will also affect the total allocative efficiency and the specialist’s surplus. In particular, we will see that when the price does not accurately represent the true value of the best competing specialist, the strategic specialist can exploit this the maximize its own profit at the expense of the overall allocative efficiency of the joint system. Figure 5 shows what happens if the posted prices are computed from the weak estimator instead. In both the RAG and EmbedLLM settings, efficiency regret actually increases, even while individual surplus regret improves at most cost levels. This indicates that the leave-one-out bidder is able to improve its individual utility at the expense of overall welfare, by exploiting poor bids from the other participants. This can happen both when the posted price is too low (the specialist will accept the price, even though a competitor might be better), or when the posted price is too high (the specialist will decline the price, even though it is better than all competitors).
10^{-2}$$10^{-1}$$0.05$$0.06Surplus RegretMATH10^{-2}$$10^{-1}$$0.1$$0.15RAG10^{-5}$$10^{-4}$$10^{-3}$$10^{-2}$$10^{-1}$$0.09$$0.095$$0.1EmbedLLM10^{-2}$$10^{-1}$$0.02$$0.025$$0.03$$c_{g}Efficiency Regret10^{-2}$$10^{-1}$$0.055$$0.06$$0.065$$0.07$$c_{g}$$10^{-5}$$10^{-4}$$10^{-3}$$10^{-2}$$10^{-1}$$0.04$$0.06$$0.08$$0.1$$0.12$$c_{g}7
Figure 5: Specialist surplus regret and total allocative efficiency regret of the posted-price auction, when bidding against opponents who have access only to , rather than as in Figure 3.
D.3 Monetary costs for value functions
As noted in Section 2.2, we estimate monetary costs from prices listed at https://ai.google.dev/gemini-api/docs/pricing (retrieved August 1, 2026). In all evaluations, the value estimator is a small MLP applied to a question embedding. The MLP itself is very cheap to run, and can be assumed to be cost-free. The embedding costs c_{g}/c_{f}g$ value estimators are priced as follows:
- SFT-CoT-20, used in the MATH domain, requires running the target model LLM reasoning process for 20 tokens. The cheapest frontier LLM (Gemini 3.5 flash-lite) costs 0.25 per million input tokens. In the MATH domain, there are approximately 43 tokens per question. This gives and , yielding
- SFT-retrievals, used in the RAG domain, requires running retrieval, which costs per model evaluation. At tokens per question in the RAG domain, we have We conservatively estimate
- SFT-prompt, used in EmbedLLM, requires LLM inference to generate a single token. As above, this costs per output token and per input token; the estimator costs per input token. At tokens per query, this yields a ratio of However, this does not account for amortization of the embedding cost across target models, which would be most significant in this domain because it has the largest number of models.
10^{1.5}$$10^{2}$$0.09$$0.1$$0.11Inspection cost (10^{-2}10^{0}10^{2}0.10.14/1K queries)RAG10^{0.5}$$0.37$$0.38$$0.39Inspection cost ($/1K queries)EmbedLLM6
Figure 6: Routing performance versus monetary inspection cost, as estimated in Section D.3.
D.4 Numerical results and significance tests
Numerical results and significance tests for the routing evaluations are shown in Tables 3, 4, and 5. In each table, bold indicates the lowest regret + inspection cost, asterisk indicates a statistically significant improvement over all alternatives at by a paired bootstrap test. These results present a consistent picture: Pandora’s router is in the argmin of regret at nearly every cost level. At low costs, it matches -always; at high costs it matches -only; at intermediate costs, it often offers the best regret, although this difference is usually not statistically significant with respect to all alternatives.
| Cost | f-only | g-only | Top- | Coin Flip | Random- | Margin- | Pandora’s Router |
|---|---|---|---|---|---|---|---|
| 1.5e-03 | 0.117 | 0.093 | 0.093 | 0.109 | 0.194 | 0.093 | 0.095 |
| 2.1e-03 | 0.117 | 0.094 | 0.094 | 0.109 | 0.193 | 0.097 | 0.096 |
| 3.2e-03 | 0.117 | 0.096 | 0.096 | 0.110 | 0.198 | 0.098 | 0.098 |
| 4.6e-03 | 0.117 | 0.099 | 0.099 | 0.112 | 0.197 | 0.099 | 0.099 |
| 6.8e-03 | 0.117 | 0.104 | 0.104 | 0.114 | 0.193 | 0.101 | 0.101 |
| 1.0e-02 | 0.117 | 0.110 | 0.110 | 0.117 | 0.199 | 0.104* | 0.107 |
| 1.5e-02 | 0.117 | 0.119 | 0.119 | 0.122 | 0.175 | 0.108* | 0.113 |
| 2.2e-02 | 0.117 | 0.133 | 0.133 | 0.129 | 0.177 | 0.113 | 0.111 |
| 3.2e-02 | 0.117 | 0.153 | 0.153 | 0.139 | 0.147 | 0.112 | 0.111 |
| 4.6e-02 | 0.117 | 0.183 | 0.183 | 0.154 | 0.130 | 0.113 | 0.113 |
| 6.8e-02 | 0.117 | 0.226 | 0.226 | 0.176 | 0.117 | 0.117 | 0.109* |
Table 3: Numerical results on MATH routing. Bold indicates lowest regret + inspection cost, asterisk indicates significance at (paired bootstrap).
| Cost | f-only | g-only | Top- | Coin Flip | Random- | Margin- | Pandora’s Router |
|---|---|---|---|---|---|---|---|
| 1.5e-03 | 0.150 | 0.088 | 0.110 | 0.124 | 0.129 | 0.100 | 0.090 |
| 2.1e-03 | 0.150 | 0.090 | 0.112 | 0.125 | 0.134 | 0.103 | 0.090 |
| 3.2e-03 | 0.150 | 0.093 | 0.114 | 0.127 | 0.146 | 0.110 | 0.092 |
| 4.6e-03 | 0.150 | 0.098 | 0.117 | 0.129 | 0.155 | 0.113 | 0.098 |
| 6.8e-03 | 0.150 | 0.104 | 0.121 | 0.132 | 0.155 | 0.119 | 0.104 |
| 1.0e-02 | 0.150 | 0.114 | 0.127 | 0.137 | 0.170 | 0.124 | 0.110 |
| 1.5e-02 | 0.150 | 0.128 | 0.137 | 0.144 | 0.182 | 0.134 | 0.122 |
| 2.2e-02 | 0.150 | 0.148 | 0.150 | 0.155 | 0.198 | 0.143 | 0.136 |
| 3.2e-02 | 0.150 | 0.178 | 0.171 | 0.170 | 0.196 | 0.154 | 0.144 |
| 4.6e-02 | 0.150* | 0.223 | 0.200 | 0.192 | 0.167 | 0.155 | 0.157 |
| 6.8e-02 | 0.150 | 0.288 | 0.244 | 0.225 | 0.150 | 0.150 | 0.155 |
Table 4: Numerical results on RAG routing. Bold indicates lowest regret + inspection cost, asterisk indicates significance at (paired bootstrap).
| Cost | f-only | g-only | Top- | Coin Flip | Random- | Margin- | Pandora’s Router |
|---|---|---|---|---|---|---|---|
| 1.0e-05 | 0.393 | 0.371 | 0.402 | 0.398 | 0.412 | 0.377 | 0.372 |
| 1.0e-04 | 0.393 | 0.381 | 0.402 | 0.403 | 0.421 | 0.377 | 0.372 |
| 3.0e-04 | 0.393 | 0.403 | 0.403 | 0.414 | 0.436 | 0.378 | 0.374 |
| 1.0e-03 | 0.393 | 0.480 | 0.404 | 0.453 | 0.454 | 0.387 | 0.382 |
| 3.0e-03 | 0.393 | 0.700 | 0.408 | 0.563 | 0.469 | 0.398 | 0.390 |
| 1.0e-02 | 0.393 | 1.470 | 0.422 | 0.947 | 0.484 | 0.403 | 0.399 |
| 3.0e-02 | 0.393* | 3.670 | 0.462 | 2.047 | 0.439 | 0.401 | 0.405 |
| 1.0e-01 | 0.393 | 11.370 | 0.602 | 5.894 | 0.393 | 0.393 | 0.395 |
| 3.0e-01 | 0.393 | 33.370 | 1.002 | 16.887 | 0.393 | 0.393 | 0.391 |
Table 5: Numerical results on EmbedLLM routing. Bold indicates lowest regret + inspection cost, asterisk indicates significance at (paired bootstrap).
D.5 Alternative algorithm
We build on prior work on non-obligatory inspection 2, which differs slightly from Algorithm 1: instead of using in lines 6, 8, and 9, they use In low-cost settings, we have which means that in these settings, our variant of the algorithm is less likely to commit to non-inspection and is therefore more aligned with Pandora-OI. In high-cost settings, which means that in these settings, our variant is more likely to commit to non-inspection and is therefore more similar to -always. Empirically, our variant is slightly superior to the original algorithm, as shown in Figure 7.
10^{-2.5}$$10^{-2}$$10^{-1.5}$$0.1$$0.11$$0.12$$0.13CostRegret + Inspection Costmath10^{-2}$$10^{-1.5}$$0.1$$0.12$$0.14$$0.16$$0.18CostRAG10^{-5}$$10^{-4}$$10^{-3}$$10^{-2}$$10^{-1}$$0.38$$0.4$$0.42$$0.44Costembedllm7
Figure 7: Evaluation of the 2 algorithm, which uses instead of for evaluating committing policies.
D.6 Non-Gaussian signal models
Our implementation models as a conditional Gaussian, but real value distributions are bounded in , so a Gaussian may not be an appropriate model. For this reason, we also experimented using KNN on the vector of -scores to estimate local conditional mean and local standard deviation directly from the neighborhood of . For this indeed improved calibration metrics somewhat: empirical coverage of the interval ranged between 58.7% (RAG) – 78.1% (MATH) for Gaussian, and 63.0% (RAG) – 74.8% (MATH) for KNN (theoretical target: ). For the interval, the range was (RAG) – (EmbedLLM) for the Gaussian signal model, and (MATH) – (EmbedLLM) for KNN (theoretical target: ).
We apply this signal model to the routing task, with results shown in Table 6. Despite the better calibration of the KNN signal model, we did not see a significant improvement in regret + cost. For this reason, we focus on the Gaussian signal model in the main implementation.
| Setting | Method | Gaussian | KNN | ||
|---|---|---|---|---|---|
| Regret + Cost | Queries | Regret + Cost | Queries | ||
| MATH | Pandora’s Router | 0.1049 | 0.58 | 0.1090 | 0.78 |
| RAG | Pandora’s Router | 0.1181 | 1.40 | 0.1218 | 1.22 |
| EmbedLLM | Pandora’s Router | 0.3867 | 3.71 | 0.3913 | 0.40 |
Table 6: Comparison between Gaussian and KNN approximations for Pandora’s Router.