Skip to content

Menu

WorksComputer Science

Disagreement-Guided Weak-to-Strong Routing

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_ux272fp7. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Small language models are increasingly deployed on edge devices and robotic systems to meet cost and latency constraints, yet their limited capabilities can make reliable deployment challenging. Stronger models can provide assistance when needed, but deciding when to route a weak-model response to a stronger model often relies on signals of response correctness. In open-ended and agentic tasks, however, obtaining such signals can require costly ground-truth supervision that is difficult to obtain at scale. We revisit the foundations of weak-to-strong routing and ask whether routing decisions can instead be guided by signals that do not require ground-truth supervision. We first characterize the optimal weak-to-strong routing policy, while allowing for multiple weak-model responses generated through local inference. Building on this characterization, we derive a principled approximation to the optimal routing based on model-to-model comparison. In particular, we introduce a notion of model disagreement that can be measured directly from model-generated responses, without ground-truth supervision. Importantly, the approximation becomes increasingly accurate as the strong model becomes a better proxy for the ground-truth distribution. Across agentic and single-turn tasks, our approach effectively navigates the trade-off between routing cost and response accuracy without ground-truth supervision. Moreover, even when ground-truth correctness signals are available for training, disagreement-based routing can outperform methods trained directly to predict correctness

Introduction

Small language models offer a practical path to deploying AI agents on edge devices, robots, and other systems constrained by cost, latency, connectivity, or privacy. Yet their limited capabilities make it difficult to rely on them across the full range of tasks they may encounter [4, 30]. This has motivated growing interest in systems that primarily rely on a weak LLM, but occasionally route difficult instances to a stronger model when additional capability is needed [5, 15] [51].

The possibility of such routing changes how we should think about inference with weak LLMs. Rather than simply generating a response and returning it, inference now involves three decisions: whether to accept the current response, spend additional local computation on further reasoning or sampling, or seek assistance from a stronger model at substantially higher cost. These choices introduce a new trade-off: Stopping local inference too early miss improvements achievable through inexpensive additional computation; persisting locally for too long waste time and resources when stronger assistance is ultimately needed; and routing too readily undermines the cost and latency advantages of the weak model.

A natural way to navigate this trade-off is to assess response correctness through learned confidence scores, verifiers, or reward models [27, 45]. In practical agentic applications, however, correctness is often difficult to evaluate. For a robotic agent, assessing a proposed next action may require knowledge of the physical environment and consequences that become apparent after execution. For a computer-use agent, whether an action is appropriate may depend on the state of an external application, user preferences, or the downstream effects of modifying a file or sending a message. More broadly, in long-horizon agentic workflows, a locally plausible action may undermine the eventual outcome, violate a user constraint, or introduce an error that becomes apparent several steps later [11, 32, 42]. Obtaining correctness labels in such settings may require subjective or expert judgment, interaction with the environment, or evaluation of entire trajectories. Such supervision is costly and does not readily scale across tasks and deployment conditions. These challenges motivate our central question:

Can we learn when to rely on weak-model inference and when to seek stronger assistance—without ground-truth correctness labels?

To answer this question, we take a step back and shift the perspective from asking when the weak model needs help to asking about the value of using a stronger model. From this perspective, routing is fundamentally a comparative decision: what matters is not simply whether the weak model’s response is incorrect, but whether using the strong model instead is likely to improve the outcome. If we had access to the true likelihood that each response is correct, the value of using the strong model instead would naturally be captured by the difference

strong-model correctness likelihood−weak-response correctness likelihood.(1)\text{strong-model correctness likelihood} - \text{weak-response correctness likelihood}. \tag*{(1)}

This difference represents the gain in correctness likelihood from going from the current weak-model response to a strong-model response. In § 3, we formalize a generalized version of (1) and characterize optimal routing within a broader framework that jointly accounts for weak-model test-time inference allocation.

Both correctness quantities in (1), however, are difficult to access without ground-truth supervision. This motivates us to ask how (1) can be approximated using only quantities available from the models themselves. A key observation is that (1) depends on the difference between the two correctness likelihoods, rather than requiring either likelihood individually. This naturally shifts our attention from model-to-ground-truth comparison to model-to-model comparison, and in particular to how much the models disagree, which can be measured directly from model-generated responses.

In § 4, we derive a principled, ground-truth-free approximation to (1) using only model-generated responses. At a high level, the resulting score takes a simple form:

weak–strong disagreement⏟difference across models−strong–strong disagreement⏟uncertainty within the strong model.(2)\underbrace{\text{weak--strong disagreement}}_{\text{difference across models}} - \underbrace{\text{strong--strong disagreement}}_{\text{uncertainty within the strong model}} . \tag*{(2)}

The first term asks whether the strong model is likely to provide something different from the weak response. The second then accounts for how uncertain the strong model itself is, since a different response is less likely to represent a useful correction when the strong model is itself uncertain.

This approximation is principled in a natural sense: it becomes increasingly accurate as the strong model’s predictive distribution approaches the ground-truth distribution, and is exact when the two coincide. To this end, our contributions are summarized as follows:

Our contributions are summarized as follows:

  • Fundamentals of weak-to-strong routing. In § 3, we characterize optimal routing within a broader framework that jointly accounts for weak-model test-time inference allocation, identifying the population quantities governing when to continue locally and when to seek stronger assistance.

  • Routing through model disagreement. In § 4, we derive a novel, ground-truth-free approximation to the optimal routing signal based on two disagreement signals: how much the weak and strong models disagree, and how much the strong model disagrees with itself. Importantly, (i) the approximation gap shrinks as the strong model becomes more accurate, and (ii) both signals can be efficiently learned from scalable model-generated data, without ground-truth supervision.

  • Empirical evaluation in agentic and reasoning tasks. In § 6, we evaluate disagreement-based routing across multi-step agentic environments, where step-level correctness is difficult to define or supervise, and controlled single-turn reasoning tasks.2 Across both regimes, our learned disagreement-based signals consistently outperform label-free baselines, validating that disagreement-based approximation provides a reliable, scalable learning signal when ground-truth supervision is unavailable.

Related Work

We briefly discuss the works most closely related to our evaluation setting and baselines, and defer a discussion to Appendix § 9.§ 1.

Learning to defer and supervised routing. The fundamental problem of knowing when a model should abstain or seek help has been extensively studied under the umbrella of learning-to-defer and selective prediction [19, 33]. With the advent of large language models, this challenge translates into determining when a weak model should autonomously escalate to a stronger one. In parallel to frameworks that study deferral for verification [22], our focus is on routing model generations. Many current cascade methods rely on ground-truth correctness labels to train quality scorers, process verifiers, or token-level confidence predictors [1, 5, 6, 15, 38]. In our experiments, we represent this paradigm using a ground-truth supervised baseline highlighting that our proposed framework fundamentally eliminates the need for such expensive, task-specific supervision.

Label-free routing signals. To avoid human annotations, recent work extracts reliability signals directly from a single unlabeled generation using internal uncertainty metrics or hidden-state probes [10, 15, 24]. A prevalent alternative assesses reliability by generating multiple responses to measure internal agreement or semantic overlap [12, 25, 46] [51]. These two paradigms motivate our label-free baselines in both settings to demonstrate that our single-pass, disagreement-trained probe yields a better routing signal than standard internal uncertainty metrics.

Step-level routing in agentic tasks. In sequential environments, determining when to escalate an action to a stronger model is typically guided by process-level verifiers and trajectory-level rewards [17, 20, 41], or frameworks for cost-aware decision support policies [21]. Because these approaches rely on explicit step-level correctness labels or complex episode-success evaluations, they are difficult to scale in open-ended domains. We contrast these paradigms with our agentic experiments, demonstrating that our framework can route actions autonomously at each step by predicting offline action disagreement, entirely bypassing the need for process verifiers or trajectory rewards.

Fundamentals of Weak-to-Strong Routing

In this section, we study the problem of weak-to-strong routing jointly with the allocation of local inference computation.3 We first study this problem at the population level, assuming access to the underlying probabilistic quantities, which allows us to characterize the optimal solution and identify the fundamental principles governing sampling, selection, and routing. In the next sections, we use these principles to develop practical methods that do not require access to such population quantities.

Setup and sampling. Let (P,Y,Yw,Ys)(P, Y, Y_w, Y_s) follow a joint distribution, where P∈PP \in\mathcal{P} is a prompt, Y∈YY \in\mathcal{Y} its correct answer, and Yw,Ys∈YY_w, Y_s \in\mathcal{Y} are the weak- and strong-model responses, respectively.4

A sampling policy σ:P→N+\sigma: \mathcal{P} \to\mathbb{N}_+ specifies the number of weak-model responses generated for each prompt. Given PP, let Yw,1,…,Yw,σ(P)Y_{w,1}, \ldots, Y_{w,\sigma(P)} denote these responses, and define the resulting history as

Hσ=(P,Yw,1,…,Yw,σ(P)).H_\sigma= (P, Y_{w,1}, \ldots, Y_{w,\sigma(P)}).

Selection and routing. Given the sampled weak responses, we define two policies. The routing policy decides whether to settle for one of the weak-model responses or query the strong model, while the selection policy determines which weak-model response to return if we settle for the weak model. Formally,

π(Hσ)∈[0,1],ϕ(Hσ)∈{1,…,σ(P)},\pi(H_\sigma) \in[0,1], \qquad\phi(H_\sigma) \in\{1, \ldots, \sigma(P)\},

where π(Hσ)\pi(H_\sigma) is the probability of querying the strong model and ϕ(Hσ)\phi(H_\sigma) is the index of the selected weak response.

Together, (σ,ϕ,π)(\sigma, \phi, \pi) determine how much local inference to use, which weak response to return, and when to seek strong-model assistance. Our goal is to maximize the accuracy of the final response while controlling the use of both weak- and strong-model inference. We impose separate budgets: BwB_w on the expected number of weak-model samples and BsB_s on the expected frequency of strong-model queries. This gives the following optimization problem:

Budgeted Weak-to-Strong Routing

max⁡σ,ϕ,πE[(1−π(Hσ))1{Yw,ϕ(Hσ)=Y}+π(Hσ)1{Ys=Y}]subject toE[σ(P)]≤Bw,E[π(Hσ)]≤Bs.(3)\begin{aligned} \max_{\sigma,\phi,\pi}\quad&\mathbb{E}\left[(1-\pi(H_\sigma))\mathbf{1}\{Y_{w,\phi(H_\sigma)}=Y\}+\pi(H_\sigma)\mathbf{1}\{Y_s=Y\}\right]\\ \text{subject to}\quad&\mathbb{E}[\sigma(P)]\le B_w,\qquad\mathbb{E}[\pi(H_\sigma)]\le B_s. \tag*{(3)} \end{aligned}

The expectations are over the prompt–answer distribution and model randomness. The two constraints allow weak-model inference and strong-model queries to be allocated across prompts according to their respective benefits.

Population quantities. To characterize the optimal policy, define

qp(y):=Pr⁡(Y=y∣P=p),tp:=Pr⁡(Ys=Y∣P=p).(4)q_p(y):=\Pr(Y=y\mid P=p),\qquad t_p:=\Pr(Y_s=Y\mid P=p). \tag*{(4)}

Here, yy is a fixed candidate response, YY is the random ground-truth answer, and YsY_s is a response drawn from the strong model. Thus, qp(y)q_p(y) is the probability that yy is correct, while tpt_p is the probability that the strong-model response is correct.

Theorem 3.1. Fix any sampling policy σ\sigma satisfying E[σ(P)]≤Bw\mathbb{E}[\sigma(P)]\le B_w. For a realized history hσ=(p,yw,1,…,yw,σ(p))h_\sigma=(p,y_{w,1},\ldots,y_{w,\sigma(p)}), define

Δ(hσ):=tp−max⁡i≤σ(p)qp(yw,i).(5)\Delta(h_\sigma):=t_p-\max_{i\le\sigma(p)}q_p(y_{w,i}). \tag*{(5)}

In words, Δ(hσ)\Delta(h_\sigma) is the gain in correctness probability from querying the strong model rather than returning the best available weak response. The optimal selection and routing policies are

ϕ∗(hσ)∈arg⁡max⁡i≤σ(p)qp(yw,i),π∗(hσ)={1,Δ(hσ)>τ,0,Δ(hσ)<τ,(6)\phi^*(h_\sigma)\in\arg\max_{i\le\sigma(p)}q_p(y_{w,i}),\qquad \pi^*(h_\sigma)= \begin{cases} 1, & \Delta(h_\sigma)>\tau,\\ 0, & \Delta(h_\sigma)<\tau, \end{cases} \tag*{(6)}

where τ≥0\tau\ge0 is a global threshold chosen to satisfy the strong-model budget.5

Interpreting the optimal policies. From (6), the optimal selection rule is straightforward: among the sampled weak responses, it selects the one with the highest probability of being correct. However, the optimal routing policy is more involved: it is a threshold rule over the score Δ(hσ)\Delta(h_\sigma) defined in (5). This score measures the improvement in correctness probability from querying the strong model, tpt_p, instead of returning the best weak response, max⁡i≤σ(p)qp(yw,i)\max_{i\le\sigma(p)}q_p(y_{w,i}). The policy routes whenever this improvement exceeds the global threshold τ\tau, which controls the routing budget. Thus, routing depends not only on how reliable the weak response is, but on how much the strong model is expected to improve upon it.

One-shot sampling as a special case. When σ(P)≡1\sigma(P)\equiv1, selection is trivial and routing is the only remaining decision. In this case, (5) reduces to Δ(hσ)=tp−qp(yw,1)\Delta(h_\sigma)=t_p-q_p(y_{w,1}). This formalizes the accuracy-gain intuition introduced in (1), also recovering the known one-shot characterization of Jitkrittum et al. [19], Mozannar & Sontag [33].

Approximations

The optimal routing rule derived in § 3, particularly equations 5 and 6, depends on the conditional correctness probabilities qpq_p and tpt_p defined in (4). In many practical tasks, these population quantities are unavailable without expensive human labels or exhaustive ground-truth verifiers. In this section, we derive a principled approximation to the optimal routing score in (5) that eliminates this dependence on ground-truth correctness. We first present the resulting routing score and its practical interpretation, and then derive it from the population-optimal rule.

Our approximation, which we call corrected disagreement, takes a simple form. Recall that hσ=(p,yw,1,…,yw,σ(p))h_\sigma= (p, y_{w,1}, \ldots, y_{w,\sigma(p)}) contains the prompt and its sampled weak-model responses, and that YsY_s and Ys′Y'_s are independent responses drawn from the strong model for the same prompt. We define the corrected-disagreement routing score as

SCD(hσ)=min⁡i≤σ(p)Pr⁡(Ys≠yw,i∣P=p)−Pr⁡(Ys≠Ys′∣P=p)(7)S_{\mathrm{CD}}(h_\sigma) = \min_{i \leq\sigma(p)} \Pr(Y_s \neq y_{w,i} \mid P = p) - \Pr(Y_s \neq Y'_s \mid P = p) \tag*{(7)}

The first term measures the disagreement of the strong model with the collection of sampled weak responses. It corresponds to selecting the weak response that the strong model is least likely to disagree with. The second term corrects for disagreement arising from uncertainty within the strong model itself. Importantly, both terms can be learned from model-generated data without ground-truth labels. We discuss how to learn these quantities in practice in § 5.

We next show SCDS_{\mathrm{CD}} arises as a principled approximation to the population-optimal routing rule.

Deriving Corrected Disagreement

The population-optimal routing gain in (5) is Δ(hσ)=tp−max⁡i≤σ(p)qp(yw,i)\Delta(h_\sigma) = t_p - \max_{i \leq\sigma(p)} q_p(y_{w,i}), where qpq_p and tpt_p are defined in (4).

Let sp(y):=Pr⁡(Ys=y∣P=p)s_p(y) := \Pr(Y_s = y \mid P = p) denote the strong model’s predictive distribution. Then

Δ(hσ)=∑y∈Yqp(y)sp(y)−max⁡i≤σ(p)qp(yw,i)≈∑y∈Ysp(y)2−max⁡i≤σ(p)sp(yw,i)=min⁡i≤σ(p)Pr⁡(Ys≠yw,i∣P=p)−Pr⁡(Ys≠Ys′∣P=p)=SCD(hσ).(8)\begin{aligned} \Delta(h_\sigma) &= \sum_{y \in\mathcal{Y}} q_p(y)s_p(y) - \max_{i \leq\sigma(p)} q_p(y_{w,i}) \\ &\approx\sum_{y \in\mathcal{Y}} s_p(y)^2 - \max_{i \leq\sigma(p)} s_p(y_{w,i}) \\ &= \min_{i \leq\sigma(p)} \Pr(Y_s \neq y_{w,i} \mid P = p) - \Pr(Y_s \neq Y'_s \mid P = p) = S_{\mathrm{CD}}(h_\sigma). \tag*{(8)} \end{aligned}

Here, (a)(a) uses the conditional independence Ys⊥ ⁣ ⁣ ⁣⊥Y∣PY_s \perp\!\!\!\perp Y \mid P to write tp=∑yqp(y)sp(y)t_p = \sum_y q_p(y)s_p(y). In (b)(b), we replace the unknown ground-truth distribution qpq_p by the strong model’s predictive distribution sps_p. Finally, (c)(c) follows from Pr⁡(Ys≠y∣P=p)=1−sp(y)\Pr(Y_s \neq y \mid P = p) = 1 - s_p(y) and Pr⁡(Ys≠Ys′∣P=p)=1−∑ysp(y)2\Pr(Y_s \neq Y'_s \mid P = p) = 1 - \sum_y s_p(y)^2. Thus, corrected disagreement approximates the population-optimal routing gain using only comparisons between model-generated responses.

Approximation quality. The only approximation in (8) occurs in step (b)(b), where the unknown ground-truth distribution qpq_p is replaced by the strong model’s predictive distribution sps_p. As the strong model becomes a better proxy for the ground-truth distribution, this approximation becomes more accurate. In the ideal case sp=qps_p = q_p, step (b) is exact, and corrected disagreement recovers the population-optimal routing gain: SCD(hσ)=Δ(hσ)S_{\mathrm{CD}}(h_\sigma) = \Delta(h_\sigma). Thus, the approximation gap naturally shrinks as sps_p approaches qpq_p.

Population Comparison of Routing Scores

In this section, we compare the quality of different routing scores at the population level. We use extensive Monte Carlo sampling to accurately estimate the probabilities defining each score, allowing us to compare the underlying routing signals independently of how they are learned in practice. For simplicity, we consider the one-shot setting σ(P)≡1\sigma(P) \equiv1. We compare four routing signals:

  • Optimal routing gain: Δ(p,yw)=Pr⁡(Ys=Y∣P=p)−Pr⁡(Y=yw∣P=p)\Delta(p, y_w) = \Pr(Y_s = Y \mid P = p) - \Pr(Y = y_w \mid P = p). This is the exact gain defined in Theorem 3.1. It serves as an oracle upper bound representing full knowledge of both models’ correctness, and requires ground-truth supervision.

  • Weak-model correctness: Scor(p,yw)=1−Pr⁡(Y=yw∣P=p)S_{\mathrm{cor}}(p, y_w) = 1 - \Pr(Y = y_w \mid P = p). This represents optimal confidence-based routing, routing when the weak model is likely incorrect. It serves as the population oracle for confidence- and consistency-based methods and requires ground-truth labels.

  • Weak-strong disagreement: Sdisagree(p,yw)=Pr⁡(Ys≠yw∣P=p)S_{\mathrm{disagree}}(p, y_w) = \Pr(Y_s \ne y_w \mid P = p). This baseline routes purely based on raw cross-model disagreement, without using ground-truth labels.

  • Corrected disagreement: SCD(p,yw)S_{\mathrm{CD}}(p, y_w) (Equation (7)). This represents our proposed approximation and requires no ground-truth supervision.

Figure 1 reports results across the three varying benchmarks. In each panel, the top row displays weak-to-strong routing accuracy across informative escalation budget regime B∈[0,0.5]B \in[0, 0.5], and the bottom row illustrates the gap relative to optimal routing. The results reveal three central insights: (i) Corrected disagreement, SCDS_{\mathrm{CD}}, consistently outperforms uncorrected weak–strong disagreement, SdisagreeS_{\mathrm{disagree}}, across all budgets. (ii) In operational regimes where the escalation budget is constrained (B≤0.4B \le0.4), SCDS_{\mathrm{CD}} and SdisagreeS_{\mathrm{disagree}} outperform the weak-model correctness baseline. The reason is, while correctness indicates when the weak model is wrong, it cannot anticipate whether the strong model will succeed. (iii) Because SCDS_{\mathrm{CD}} replaces ground truth with the strong model’s predictive distribution, the approximation gap of SCDS_{\mathrm{CD}} is smaller for more accurate strong models.

Comparison of optimal routing gain, corrected disagreement, weak-strong disagreement, and weak-model correctness across MATH-500, Spider, and AceCode

Figure 1. Corrected disagreement better approximates optimal routing than alternatives.

Finite-Sample Routing Algorithms

We now turn the corrected-disagreement score into a practical routing algorithm. We describe two components: first, how the learned score is used at test time to route between the weak and strong models. Second, how this score can be learned using only weak- and strong-model generations.

Routing algorithm. Following Theorem 3.1, we fix a sampling policy σ\sigma and a selection policy ϕ\phi. Recall from § 3 that σ(p)\sigma(p) specifies the number of weak responses generated for prompt pp, ϕ(hσ)\phi(h_{\sigma}) selects one of these responses, and hσ=(p,yw,1,…,yw,σ(p))h_{\sigma} = (p, y_{w,1}, \ldots, y_{w,\sigma(p)}) denotes the resulting history.

Given a routing score S^(hσ)∈R\widehat{S}(h_{\sigma}) \in\mathbb{R}, test-time routing proceeds as follows:

  1. Generate σ(p)\sigma(p) weak-model responses, forming hσh_{\sigma}.

  2. Compute the routing score S^(hσ)\widehat{S}(h_{\sigma}).

  3. If S^(hσ)>τ\widehat{S}(h_{\sigma}) > \tau, query the strong model; otherwise, return the weak response selected by ϕ(hσ)\phi(h_{\sigma}).

The threshold τ\tau can be calibrated on held-out data to meet a desired strong-model budget BsB_s. More generally, the threshold can be updated online to maintain budget constraints over time, as in Kiyani et al. [21].

To recap, Theorem 3.1 shows that the optimal routing rule is obtained by setting the routing score to the accuracy gain Δ(hσ)\Delta(h_{\sigma}) in (5). In § 4.1, we approximated this optimal score by SCD(hσ)S_{\mathrm{CD}}(h_{\sigma}) in (7), which, unlike Δ(hσ)\Delta(h_{\sigma}), depends only on model disagreement and does not require ground-truth supervision. We now complete the framework by showing how SCDS_{\mathrm{CD}} can be learned in practice using only model-generated data.

Learning corrected disagreement. The corrected-disagreement score in (7) consists of two quantities: weak–strong disagreement and strong-model self-disagreement. We learn both offline using only model-generated responses, without ground-truth labels.

For each training prompt pp, we generate KwK_w independent responses from the weak model, yw,1,…,yw,Kwy_{w,1}, \ldots, y_{w,K_w}, and KsK_s independent responses from the strong model, ys,1,…,ys,Ksy_{s,1}, \ldots, y_{s,K_s}. Let A(y,y′)∈{0,1}A(y,y') \in\{0,1\} indicate whether two responses yy and y′y' disagree. These generations allow us to construct empirical training targets for the two terms appearing in SCDS_{\mathrm{CD}}.

Weak–strong disagreement. For each weak response yw,iy_{w,i}, we define

d^(p,yw,i):=1Ks∑k=1KsA(yw,i,ys,k),i=1,…,Kw.(9)\widehat{d}(p,y_{w,i}) := \frac{1}{K_s}\sum_{k=1}^{K_s} A(y_{w,i},y_{s,k}), \qquad i=1,\ldots,K_w. \tag*{(9)}

This is the fraction of strong-model responses that disagree with yw,iy_{w,i}, and hence provides an empirical estimate of the weak–strong disagreement probability Pr⁡(Ys≠yw,i∣P=p)\Pr(Y_s \ne y_{w,i} \mid P=p).

Strong-model self-disagreement. We similarly define

g^(p):=1Ks(Ks−1)∑k≠k′A(ys,k,ys,k′).(10)\widehat{g}(p) := \frac{1}{K_s(K_s-1)}\sum_{k\ne k'} A(y_{s,k},y_{s,k'}). \tag*{(10)}

This is the fraction of pairs of strong responses that disagree, and hence provides an empirical estimate of the strong-model self-disagreement probability Pr⁡(Ys≠Ys′∣P=p)\Pr(Y_s \ne Y'_s \mid P=p).

The disagreement indicator AA depends on the task and only needs to determine whether two responses are equivalent, rather than whether either response is correct. For example, it can be implemented using exact matching, task-specific parsing or execution, or an LLM judge. Importantly, AA is used only offline to construct the training targets and is not required at test time.

We train two predictors, f^d(p,yw)\widehat{f}_d(p,y_w) and f^g(p)\widehat{f}_g(p), to predict the targets in (9) and (10), respectively. The first predicts the probability that the strong model disagrees with a given weak response, while the second predicts the strong model’s self-disagreement from the prompt alone. In Appendix § 9.§ 5, we provide implementation details for the predictors used in our experiments.

At test time, we combine the two predictors according to the corrected-disagreement score:

S^CD(hσ)=min⁡i≤σ(p)f^d(p,yw,i)−f^g(p).(11)\widehat{S}_{\mathrm{CD}}(h_\sigma)=\min_{i\le\sigma(p)}\widehat{f}_d(p,y_{w,i})-\widehat{f}_g(p). \tag*{(11)}

Thus, S^CD\widehat{S}_{\mathrm{CD}} can be computed using only the prompt and the sampled weak-model responses. In particular, neither the strong model nor ground-truth labels are required at test time.

Experiments

In this section, we evaluate our disagreement-based routing framework across two settings. § 6.1 first examines multi-step agentic environments, where step-level correctness is notoriously difficult to define. § 6.2 considers single-turn reasoning tasks, where gold answers provide a rigorous testbed to directly compare our approach with ground-truth-supervised baselines.

Baselines. We benchmark against established routing signals, categorized by their test-time inference cost and reliance on ground-truth labels:

Single-response, label-free signals (N=1N=1): Evaluating a single weak response adds zero test-time generation overhead. We compare Corrected disagreement (ours) (Equation 7); Weak–strong disagreement (ours), isolating the value of the self-disagreement penalty; and Token entropy [15], averaging internal predictive uncertainty over the generated sequence.

Multi-response, label-free signals (N>1N>1): These assess confidence via weak-model self-agreement, a standard approach for cascade deferral [51]. Though label-free, generating and clustering NN responses significantly increases inference overhead. We compare against Self-consistency [46], routing via the plurality cluster’s vote share, and Semantic entropy [25], routing via the cluster distribution’s entropy.

Supervised reference: For benchmark with ground-truth labels, we train a Proxy reward linear probe f^c\hat{f}_c. Requiring privileged supervision unavailable in open-ended tasks, it serves strictly as a supervised upper-bound reference rather than a fair label-free competitor.

Evaluation metrics. We evaluate cascade performance by plotting task success (final-answer accuracy for single-turn benchmarks, and end-to-end trajectory success for agentic environments) against the realized routing budget (the fraction of escalated queries or actions). To isolate the quality of the routing signal, we fix sampling and selection across all baselines and, at each routing budget, escalate the instances with the highest scores. This allows us to compare routing signals under the same sampling and selection policies without introducing error from threshold calibration. Selection ablations are deferred to Appendix § 9.§ 3.

Agentic Environments: Routing Without Ground Truth

In multi-step environments, an agent completes a goal through a sequence of actions. Let Ht=(p,y1,o1,…,yt−1,ot−1)H_t = (p, y^{1}, o^{1}, \ldots, y^{t-1}, o^{t-1}) denote the trajectory history at step tt, comprising the prompt pp, past actions yiy_i, and observations oio_i. Rather than escalating entire trajectories, we formulate routing at the action level: given HtH_t, the router decides whether to execute the weak model’s action locally (ywy_w) or defer that specific step to the strong model (ysy_s). Defining step-level correctness in sequential environments is fundamentally difficult. Because tasks admit multiple valid paths, and expert evaluation is costly to scale[32]. Furthermore, locally plausible actions may cause delayed downstream failures, making long-horizon credit assignment ambiguous [11]. Consequently, correctness-supervised routers and automated LLM judges remain notoriously unreliable in agentic domains [42] [54].

While correctness is ambiguous, step-level disagreement remains objective and easily verifiable. Let T(Ht,y)T(H_t, y) denote the transition triggered by action yy (e.g., a parsed tool call or state change). Two actions are equivalent if they induce identical transitions: A(yw,ys)=1{T(Ht,yw)=T(Ht,ys)}A(y_w, y_s) = \mathbb{1}\{T(H_t, y_w) = T(H_t, y_s)\}. Relying on observable mechanics rather than subjective evaluation enables effortless data collection from offline rollouts, entirely bypassing human labels and complex reward engineering.

Datasets and models. We evaluate two interactive environments, generating K=10K = 10 samples per step for training targets and multi-sample baselines. In BFCL Multi-Turn [36] (160 train / 40 test tasks), Qwen3-8B routes to GPT-5-mini; action agreement requires identical function calls and arguments. In WebShop [48] (2,000 train / 500 test), Qwen3-8B routes to a task-specialized RL policy. To prevent distribution shifts by test-time strong-model interventions, we collect training data via an iterative, DAgger-style schedule [26] (Appendix § 9.§ 6).

Figure 2 shows both disagreement-based signals consistently outperform the best label-free baseline. Crucially, contrasting the two environments reveals how teacher capability dictates the value of the self-disagreement correction. In WebShop, where the strong model is highly capable, corrected disagreement significantly outperforms raw weak–strong disagreement. This reinforces our population-level finding: under a stronger teacher, the self-disagreement penalty prevents wasteful queries and the approximation approaches optimal routing. Conversely, in BFCL, the strong model itself struggles; here, the self-disagreement correction provides negligible benefit, rendering the gap between the two scores statistically insignificant. Beyond performance gains, the results highlight a practical advantage for agentic workflows. Because step-level correctness is inherently vague, determining exactly when an action requires escalation remains a persistent challenge. Relying instead on observable cross-model disagreement provides practitioners with a reliable, objective signal to safely guide routing decisions.

Action-level routing performance in agentic environments

Figure 2. Action-level routing performance in agentic environments. For clarity, we plot our proposed signals against only the best-performing label-free baseline. Results are averaged over m=5m=5 runs; comprehensive baselines, standard deviations, and tabular data are provided in Appendix § 9.§ 4.

Controlled Ablations on Single-Turn Benchmarks

Single-turn reasoning benchmarks provide an ideal testbed for controlled ablations that are difficult to isolate in multi-step settings. Because these tasks feature canonical gold answers, they allow us to directly compare our label-free signals against a supervised proxy reward and study the impact of the weak-model sampling budget.

Datasets and models. We use three diverse datasets spanning a spectrum of evaluation complexity: Math-500 [18] (Phi-3.5-mini-instruct →\to GPT-4o-mini; Disagreement indicator AA is based on exact final-answer match), Spider [49] (Qwen3-1.7B →\to OmniSQL-7B; AA is identical SQL execution), and AceCode [52] (Qwen2.5-Coder-1.5B-Instruct →\to Qwen3-Coder-30B-A3B-Instruct; AA is identical hidden unit test behavior). These tasks progress from closed-form verification to open-ended generation, where structurally distinct outputs can yield identical functional results. This spectrum allows us to observe how routing methods scale as simple answer-matching becomes insufficient, reflecting the practical challenges of open-ended generations. Finally, to confirm that our findings hold across different capability gaps, we evaluate additional Weak–strong model pairings in Appendix § 9.§ 2.

Results and discussion.

Figure 3 shows cascade accuracy at representative representative escalation budgets (further budgets in Appendix § 9.§ 2). We compare the one-shot regime (N=1N = 1), where consistency scores are undefined, against a multi-sample regime using uniform sampling (N=8N = 8). For clarity, we plot our scores against the supervised proxy reward and only the strongest label-free baseline (exhaustive comparisons and additional budget values and sample sizes are deferred to Appendix § 9.§ 2).

Finite-sample routing performance on single-turn benchmarks for one-shot and multi-sample regimes

Figure 3. Finite-sample routing performance on single-turn benchmarks for one-shot (N=1N = 1) and multi-sample (N=8N = 8) regimes. Corrected disagreement consistently outperforms raw disagreement and the best label-free baselines. Multi-sample baselines only close the gap on closed-form tasks (MATH) where clustering is trivial, but break down on open-ended tasks (Spider, AceCode).

The empirical results validate our population-level analysis from § 4.2. First, at these practical budget constraints, corrected disagreement consistently outperforms the supervised proxy reward. Second, across all three benchmarks, corrected disagreement yields higher accuracy than raw weak–strong disagreement, confirming that penalizing strong-model self-inconsistency successfully prevents the cascade from wasting queries on ambiguous prompts.

Finally, the multi-sample (N=8N = 8) results expose the brittleness of consistency-based routing. On MATH-500, where answers are easily grouped, self-consistency leverages additional samples to narrow the gap with our approach. However, on SPIDER and ACECODE, where semantic clustering is difficult, consistency baselines fail to scale. In these domains, our learned probe maintains superior performance without additional inference overhead of generating and clustering multiple responses.

Conclusion

In this work, we study weak-to-strong routing in its general setting, jointly accounting for test-time sampling of candidate weak responses, candidate selection, and escalation to a stronger model. Conventional cascades and standard routing approaches rely on signals of response correctness, which are often costly to obtain and ambiguous to define in open-ended or agentic tasks. To bypass the need for ground-truth supervision, we introduce a perspective based on model disagreement. We derive corrected disagreement, a principled approximation to the optimal routing rule that balances cross-model disagreement against the strong model’s internal uncertainty. This formulation provides an objective learning signal that can be collected at scale from model-generated responses alone. Across multi-step agentic environments and reasoning benchmarks, our learned disagreement signal consistently outperforms label-free baselines, showing that our principled approximation offers a practical and scalable path to guiding hybrid inference without ground-truth supervision.

Acknowledgments

This work was supported by EnCORE, the Institute for Emerging CORE Methods in Data Science, and NSF award 2502489 through the MFAI: Mathematical Foundations of Alignment in Generative Artificial Intelligence program. SK also received support through an AWS gift to Penn Engineering’s ASSET Center for Trustworthy AI.

Appendix

As large language models are increasingly deployed, a broad literature has emerged around adaptive inference to balance response quality and computational cost. This design space generally splits into two paradigms: prompt-based routing, which selects a model before any text is generated [8, 35], and sequential cascades, which evaluate a cheaper model’s output before deciding whether to escalate [5, 19] [51]. While recent works such as [7] develop a unified formulation bridging both approaches, our work is specifically grounded in the cascade paradigm. Motivated by the growing need to deploy LLMs locally on resource-constrained edge devices [28, 39, 50], we study a two-model cascade with a significant capability gap. In this setting, a weak local model first generates candidate responses, and the system subsequently decides whether to invoke a more capable, expensive strong model based entirely on the realized generation history. To contextualize our contributions, the remainder of this section categorizes prior work along three critical axes: when the routing decision occurs, the required test-time inference compute, and the reliance on ground-truth supervision.

Prompt-Based Routing and Learning to Defer. Prompt-based routers learn which model should answer an input without first observing its generated response. Building on classical literature regarding optimal deferral rules [19, 33], methods like Hybrid LLM [8] and Route LLM [35] allocate queries between models using learned predictions of quality. Other approaches focus on selecting a suitable expert from a larger pool of LLMs by predicting model performance through meta-models [2], distilling reward assessments to identify expertise [29], using input-dependent routing [44], estimating translation improvements using prompt representations [31], or decomposing input uncertainty using labeled calibration data to avoid routing inherently ambiguous queries [37]. These methods fundamentally differ from our approach in two ways: they make routing decisions before observing the generated weak response, and they heavily rely on ground-truth correctness or reward signals for training. In contrast, our cascade evaluates the realized weak response before routing, strictly in an unannotated two-model setting.

Supervised Confidence and Deferral (N=1N = 1). Cascade methods commonly assess whether a single generated weak response is reliable enough to retain. FrugalGPT [5] trains a response-quality scorer to escalate when its confidence is insufficient. [15] study token-level uncertainty and learned deferral predictors supervised directly by whether the strong model corrects a weak-model error. Automix [1] utilizes a POMDP routing policy trained on self-verification judgments and ground-truth signals. Finally, SELF-REF [6] and Gatekeeper [38] train the weak model to express verbalized confidence or produce more useful confidence scores. All of these methods rely on task-specific correctness labels for supervision, and cannot be deployed in our purely label-free setting. Motivated by these works, our supervised weak-correctness probe Proxy Reward serves as a controlled oracle reference to represent this category of quality-based deferral. Our proposed framework assumes no access to ground-truth correctness or improvement signals.

Consistency and Ensemble-Based Cascades (N>1N > 1 Label-Free). Consistency-based approaches assess reliability without labels by comparing multiple generated responses. [51] use self-consistency([46]) agreement among reasoning paths for deferral. Semantic Entropy [25] and Kernel Language Entropy [12] measure uncertainty over clusters of equivalent answers which can be used as deferral rules in cascades. Similarly, [53] rely on clustering to compute the semantic entropies of both student and teacher models to construct routing preferences. Other methods evaluate consensus across an ensemble of multiple models: ABC [23] uses pairwise similarities across inexpensive models, SMOOTHIE [14] estimates quality from distances between embedded outputs (which requires generator triplets), and [34] groups queries into skill clusters via confidence-weighted ensemble consensus. These within-model consistency methods (particularly self-consistency and semantic entropy) directly motivate our multi-sample (N>1N > 1) baselines. However, as a broader category, these approaches fundamentally differ from our framework in their operational assumptions and mechanics. First, ensemble routers ([14, 34]) are designed to select among a diverse pool of multiple models, whereas we study a strict cascade between a single local weak model and a more capable strong model. Consequently, our framework only requires the weak model’s internal representations; the strong model can remain entirely black-box, accessed only for its text outputs during offline training. Second, consistency methods require generating multiple responses at inference time and rely heavily on semantic clustering. As we demonstrate in § 6.2, grouping responses into equivalence classes is notoriously brittle for open-ended tasks.

Learned Label-Free Reliability and Cross-Model Verification. Recent work has explored learning reliability predictors from unlabeled outputs or cross-model comparisons. Semantic Entropy Probes [24] predict semantic-entropy targets directly from model representations to enable single-response uncertainty estimation. HaloScope [10] derives pseudo-labels from unlabeled response representations to train a truthfulness classifier. Additionally, [47, 16], and [13] explore cross-model disagreement and verifier surprise to quantify uncertainty. These works provide strong conceptual motivation for comparing models and utilizing hidden-state probes. However, rather than detecting hallucinations or requiring test-time queries to a second model, our approach uniquely trains a probe on offline strong-model disagreement to directly approximate the optimal cascade routing gain, evaluating it autonomously at test time.

Allocating Test-Time Computation. Additional inference computation can significantly improve response quality by generating and selecting among multiple candidates. For example, self-consistency [46] aggregates sampled reasoning paths, while broader test-time compute strategies [43] scale sampling and refinement based on input difficulty. For routing specifically, BEST-Route [9] predetermines a sampling budget combined with model selection, and ModelSwitch [3] evaluates consistency across multi-model samples to adaptively halt generation. Our work studies when to escalate after observing the weak model’s candidate responses. We characterize the expected improvement from replacing the selected weak response with a strong-model response and develop a disagreement-based approximation to guide this decision without ground-truth correctness labels.

Sequential Tasks and Step-Level Routing. In sequential tasks, escalation decisions must be made repeatedly as the agent’s state evolves. TRIM [20] uses process-level feedback to decide when to replace a weak reasoning step with a strong-model step. R2V-Agent [17] learns step-level escalation from weak-policy episode outcomes by combining uncertainty statistics with task-specific verifier features trained via verifier-guided DPO. Alternatively, Inference-Time Distillation [41] determines escalation based on consistency among candidate actions to guide a weak agent. These methods typically rely on explicit step-level correctness labels, task-specific process verifiers, or expensive test-time consistency checks (which we benchmark via our multi-sample baselines). Our agentic experiments (§ 6.1) show that by learning from objective action disagreement, we can outperform consistency based alternatives and effectively route at the step level without ever requiring episode-success labels or step-correctness annotations.

Population estimates of routing signals across varying weak-strong model pairs

We extend the population-level comparison in § 4.2 to the full routing-budget range B∈[0,1]B \in[0, 1] for completeness and additional weak–strong model pairs and examine how the findings vary across models, datasets, and numbers of weak-model samples. Figure 4 reports the one-shot setting, while Figure 5 and Figure 6 report results with N=4N = 4 and N=8N = 8 weak-model samples, respectively.

Population-level comparison of routing signals with $N = 1$ weak-model response

Figure 4. Population-level comparison of routing signals with N=1N = 1 weak-model response. Each panel shows routing accuracy over the full budget range B∈[0,1]B \in[0,1] for a different dataset and weak–strong model pair. We compare optimal routing, corrected disagreement, raw weak–strong disagreement, and weak-model correctness.

Population-level comparison of routing signals with $N = 4$ weak-model responses per prompt

Figure 5. Population-level comparison of routing signals with N=4N = 4 weak-model responses per prompt. Panels and routing signals follow Figure 4.

Population-level comparison of routing signals with $N = 8$ weak-model responses per prompt

Figure 6. Population-level comparison of routing signals with N=8N = 8 weak-model responses per prompt. Panels and routing signals follow Figure 4.

The results support the main observations: corrected disagreement generally improves on raw weak–strong disagreement and closely approximates optimal routing when the strong model is accurate. Its advantage over weak-model correctness is most apparent at limited routing budgets; the ordering can change at larger budgets. We first report the one-shot setting (N=1N = 1), then vary the number of weak-model samples NN. While correctness flags when the weak model is wrong, it cannot anticipate whether the strong model will actually succeed. In practice, weak-model correctness is often viewed as a highly accessible baseline because the strong model can act as an automated judge to provide those labels. Conversely, obtaining ground-truth labels for the strong model’s own correctness is notoriously difficult because it typically surpasses available automated judges. Our disagreement scores bypass this labeling bottleneck entirely while explicitly capturing potential accuracy gains. At very high escalation budgets, weak-model correctness slightly surpasses corrected disagreement because it strictly avoids routing those rare instances where the weak model is correct but the strong model fails. However, in typical weak-to-strong deployments, these failure modes are infrequent, making low-budget efficiency the governing practical metric.

Extended Finite-Sample Results Across Routing and Sampling Budgets

We supplement § 6.2 with detailed results on Math-500, Spider, and AceCode in Table 1, Table 2, and Table 3, respectively. The tables include baselines omitted from the main-text plots, additional routing budgets, and N∈{1,4,8,16}N \in\{1, 4, 8, 16\} weak-model samples per prompt.

Table 1: Math\mathrm{Math}-500 routing results for the weak–strong pair Phi-3.5-mini-instruct →\to GPT-4o-mini. The student answer is kept unless routed to the strong model. Each panel reports accuracy at different routing budgets. The b=0b = 0 value is the accuracy of the kept weak answer before routing.

SettingRouting score5%10%15%20%25%30%50%
N=1N = 1 weak sample per prompt (b=0b = 0: 0.380)
Corrected disagreementours0.4190.4520.4820.5130.5400.5680.659
Weak–strong disagreementours0.3970.4180.4400.4640.4910.5190.631
Token entropybaseline0.4040.4270.4470.4680.4890.5090.584
Proxy reward{sup}†baseline0.3960.4150.4360.4600.4870.5140.629
Oracle routing gainoracle0.4290.4790.5290.5780.6260.6700.776
N=4N = 4 weak samples per prompt (b=0b = 0: 0.430)
Corrected disagreementours0.4650.4950.5240.5510.5760.5990.677
Weak–strong disagreementours0.4470.4670.4890.5120.5390.5630.664
Self-consistencybaseline0.4560.4820.5090.5360.5640.5900.679
Semantic entropybaseline0.4560.4830.5090.5360.5630.5900.676
Token entropybaseline0.4490.4690.4860.5050.5240.5420.607
Proxy reward{sup}†baseline0.4450.4630.4840.5070.5330.5580.661
Oracle routing gainoracle0.4800.5290.5790.6270.6720.7120.783
N=8N = 8 weak samples per prompt (b=0b = 0: 0.467)
Corrected disagreementours0.4980.5240.5520.5750.5960.6170.686
Weak–strong disagreementours0.4840.5030.5230.5470.5710.5930.680
Self-consistencybaseline0.4920.5180.5440.5680.5920.6150.694
Semantic entropybaseline0.4930.5180.5440.5670.5890.6120.690
Token entropybaseline0.4830.5010.5160.5320.5490.5640.623
Proxy reward{sup}†baseline0.4820.4990.5200.5430.5660.5890.680
Oracle routing gainoracle0.5160.5660.6150.6620.7040.7410.787
N=16N = 16 weak samples per prompt (b=0b = 0: 0.490)
Corrected disagreementours0.5180.5410.5670.5880.6090.6280.691
Weak–strong disagreementours0.5070.5250.5440.5660.5880.6090.687
Self-consistencybaseline0.5140.5380.5620.5840.6060.6270.700
Semantic entropybaseline0.5140.5380.5610.5820.6020.6240.697
Token entropybaseline0.5050.5190.5330.5480.5640.5770.634
Proxy reward{sup}†baseline0.5050.5220.5420.5620.5850.6060.687
Oracle routing gainoracle0.5390.5880.6370.6820.7230.7540.789

Table 1. Consistency-based scores are undefined for N=1N = 1 and are therefore omitted in that panel. Bold numbers mark the best non-oracle routing score at each budget within a fixed NN. †Proxy reward denotes the reward-model-based routing baseline.

SettingRouting score5%10%15%20%25%30%50%
N=1N = 1 weak sample per prompt (b=0b = 0: 0.499)
Corrected disagreementours0.5370.5630.5860.6080.6280.6480.716
Weak–strong disagreementours0.5330.5590.5820.6050.6260.6460.716
Token entropybaseline0.5150.5300.5470.5620.5770.5910.647
Proxy reward†baseline0.5320.5570.5790.6010.6230.6430.714
Oracle routing gainoracle0.5490.5980.6480.6980.7440.7830.818
N=4N = 4 weak samples per prompt (b=0b = 0: 0.529)
Corrected disagreementours0.5650.5910.6120.6320.6500.6680.728
Weak–strong disagreementours0.5610.5860.6080.6290.6470.6660.729
Self-consistencybaseline0.5520.5730.5900.6080.6250.6430.700
Semantic entropybaseline0.5520.5730.5910.6090.6260.6440.701
Token entropybaseline0.5420.5550.5690.5820.5950.6090.659
Proxy reward†baseline0.5610.5850.6050.6250.6450.6630.727
Oracle routing gainoracle0.5790.6280.6780.7280.7710.8020.820
N=8N = 8 weak samples per prompt (b=0b = 0: 0.544)
Corrected disagreementours0.5800.6040.6240.6420.6600.6760.734
Weak–strong disagreementours0.5770.6010.6220.6420.6590.6760.735
Self-consistencybaseline0.5650.5830.6020.6200.6370.6530.708
Semantic entropybaseline0.5640.5830.6010.6200.6370.6530.709
Token entropybaseline0.5570.5690.5820.5940.6070.6190.666
Proxy reward†baseline0.5770.6000.6180.6360.6550.6730.732
Oracle routing gainoracle0.5940.6430.6930.7420.7820.8090.820
N=16N = 16 weak samples per prompt (b=0b = 0: 0.552)
Corrected disagreementours0.5880.6120.6310.6490.6660.6820.737
Weak–strong disagreementours0.5850.6080.6290.6470.6640.6810.737
Self-consistencybaseline0.5700.5880.6060.6250.6420.6580.712
Semantic entropybaseline0.5700.5890.6050.6220.6400.6580.714
Token entropybaseline0.5640.5750.5870.6000.6110.6240.668
Proxy reward†baseline0.5840.6070.6250.6430.6610.6770.734
Oracle routing gainoracle0.6020.6510.7010.7490.7880.8110.821

Table 2. Spider routing results for the weak–strong pair Qwen3-1.7B → OmniSQL-7B. The weak query is kept unless routed to the strong model. Each panel reports accuracy at different routing budgets. The b=0b = 0 value is the accuracy of the kept weak query before routing.

Routing scoreType5%10%15%20%25%30%50%
N=1N = 1 weak sample per prompt (b=0b = 0: 0.447)
Corrected disagreementours0.4680.4860.5030.5190.5350.5520.608
Weak–strong disagreementours0.4640.4840.5020.5180.5350.5510.606
Token entropybaseline0.4600.4750.4890.5040.5180.5320.591
Proxy reward†baseline0.4580.4710.4860.5010.5170.5340.594
Oracle routing gainoracle0.4970.5470.5960.6460.6900.7080.709
N=4N = 4 weak samples per prompt (b=0b = 0: 0.449)
Corrected disagreementours0.4690.4870.5030.5200.5350.5520.608
Weak–strong disagreementours0.4650.4850.5030.5190.5360.5520.607
Self-consistencybaseline0.4600.4720.4840.4950.5070.5190.565
Semantic entropybaseline0.4590.4700.4820.4940.5060.5180.564
Token entropybaseline0.4610.4760.4900.5050.5200.5350.592
Proxy reward†baseline0.4600.4720.4880.5030.5190.5350.594
Oracle routing gainoracle0.5000.5500.5990.6490.6920.7090.710
N=8N = 8 weak samples per prompt (b=0b = 0: 0.449)
Corrected disagreementours0.4700.4870.5030.5200.5360.5520.608
Weak–strong disagreementours0.4650.4850.5030.5190.5350.5510.607
Self-consistencybaseline0.4590.4710.4820.4940.5050.5170.563
Semantic entropybaseline0.4590.4700.4820.4930.5060.5170.564
Token entropybaseline0.4640.4780.4920.5070.5210.5360.592
Proxy reward†baseline0.4600.4720.4880.5030.5190.5350.594
Oracle routing gainoracle0.4990.5490.5980.6480.6910.7080.709
N=16N = 16 weak samples per prompt (b=0b = 0: 0.448)
Corrected disagreementours0.4680.4860.5030.5190.5360.5510.608
Weak–strong disagreementours0.4640.4840.5020.5180.5340.5500.606
Self-consistencybaseline0.4590.4710.4830.4950.5070.5180.565
Semantic entropybaseline0.4580.4700.4810.4930.5040.5160.563
Token entropybaseline0.4630.4770.4910.5060.5210.5350.592
Proxy reward†baseline0.4600.4730.4880.5040.5190.5350.594
Oracle routing gainoracle0.4990.5490.5990.6480.6910.7080.709

Table 3. ACECode routing results for the weak–strong pair Qwen2.5-Coder-1.5B-Instruct → Qwen3-Coder-10B-A3B-Instruct. The weak program is kept unless routed to the strong model. Each panel reports accuracy at different routing budgets. The b=0b = 0 value is the accuracy of the kept weak program before routing.

The results support the findings in the main text. On Math-500, self-consistency and semantic entropy approach corrected disagreement as the routing budget and sample count increase, and slightly outperform it at the 50% budget for N>1N > 1. These consistency-based scores are less effective on Spider and AceCode, where grouping equivalent responses is more difficult. On AceCode, increasing NN provides little benefit to either the selected weak response or consistency-based routing.

Disagreement-based scores remain competitive across all three datasets, with corrected disagreement generally matching or improving on raw weak–strong disagreement.

Ablations on Selection Policy

In the main experiments, we use the same selection policy across routing methods to isolate the effect of the routing score. Here, we examine how the choice of weak response affects cascade accuracy.

Consistency-based scores are undefined for N=1N = 1 and are therefore omitted in that panel. Bold numbers mark the best non-oracle routing score at each budget within a fixed NN. †Proxy reward denotes the reward-model-based routing baseline.

Consistency-based scores are undefined for N=1N = 1 and are therefore omitted in that panel. For N>1N > 1, judge-based clusters do not improve the kept-program accuracy, so gains come from improved routing signals rather than a better plurality answer. Bold numbers mark the best non-oracle routing score at each budget within a fixed NN. †Proxy reward denotes the reward-model-based routing baseline.

Recall from Section 3 that, given hσ=(p,yw,1,…,yw,N)h_{\sigma} = (p, y_{w,1}, \ldots, y_{w,N}), the optimal selection policy is

ϕ∗(hσ)∈arg⁡max⁡i≤NPr⁡(Y=yw,i∣P=p).\phi^{*}(h_{\sigma}) \in\arg\max_{i \le N} \Pr(Y = y_{w,i} \mid P = p).

Thus, the selection policy should choose the weak response most likely to be correct. Learning this probability directly requires correctness labels. We compare several selection rules that do not require ground-truth supervision, together with a supervised correctness probe:

  • Majority vote. Group equivalent responses and select a response from the largest group.

  • Token entropy. Select the response with the lowest mean token entropy under the weak model.

  • Disagreement (ours). Select the response with the lowest predicted weak–strong disagreement, ϕ(hσ)∈arg⁡min⁡i≤Nf^d(h(p,yw,i))\phi(h_{\sigma}) \in\arg\min_{i \le N} \hat{f}_{d}(\mathbf{h}(p, y_{w,i})). This favors responses that the strong model is more likely to agree with.

  • Correctness probe. Select the response with the highest predicted probability of correctness. This probe uses ground-truth correctness labels during training and serves as a supervised comparison.

Selection across routing scores. Figure 7 compares these selection policies on Math-500 with N=8N = 8 weak responses per prompt. Each panel fixes the routing score and varies the selection policy and routing budget. Majority vote achieves the highest accuracy at every reported budget for all four routing scores. This is consistent with the effectiveness of grouping equivalent final answers in mathematical reasoning. Disagreement-based selection performs similarly to the supervised correctness probe, and both improve on random selection and token entropy.

Effect of weak-response selection on Math-500 for Phi-3.5-mini-instruct → GPT-4o-mini

Figure 7. Effect of weak-response selection on Math-500 for Phi-3.5-mini-instruct → GPT-4o-mini, using N=8N = 8 weak responses per prompt and 500 test prompts. Each panel fixes the routing score and reports cascade accuracy for different selection policies and routing budgets. At b=0b = 0, accuracy depends only on the selection policy. Bold values indicate the highest accuracy in each column. † denotes methods that use ground-truth supervision during training.

Selection across sample counts. Figure 8 and Figure 9 extend the comparison to Spider and AceCode. We fix the routing score to corrected disagreement and vary both the routing budget and the number of weak responses NN. These experiments examine whether selection policies can benefit from additional candidates in tasks where identifying equivalent responses is more difficult.

Effect of weak-response selection on Spider

Figure 8. Effect of weak-response selection on Spider. Routing uses corrected disagreement throughout. We compare selection policies across routing budgets and different numbers of weak-model samples NN.

Effect of weak-response selection on AceCode

Figure 9. Effect of weak-response selection on AceCode. Routing uses corrected disagreement throughout. We compare selection policies across routing budgets and different numbers of weak-model samples NN.

Additional Results for the Agentic Experiments

In this section, we provide complementary results for the multi-step agentic experiments presented in § 6.1. Table 4 reports additional results, including the token-entropy baseline omitted from the main text. Alongside full-trajectory success, we report the mean task score for completeness.

Routing StrategySuccess Rate (SE)Average Task Score
Realized Budget (≈)20%40%60%20%40%60%
Corrected disagreement (ours)0.210 (0.029)0.460 (0.035)0.765 (0.030)0.6650.7480.828
Weak–strong disagreement (ours)0.065 (0.017)0.260 (0.031)0.715 (0.032)0.4660.7160.880
Self-consistency0.045 (0.015)0.145 (0.025)0.410 (0.035)0.4480.5360.755
Token entropy0.040 (0.014)0.150 (0.025)0.405 (0.035)0.4480.5350.698
Random baseline0.160 (0.026)0.200 (0.028)0.505 (0.035)0.5430.5900.776

Table 4. WebShop routing performance (200 evaluation tasks) comparing realized routing budget, end-to-end success rate, and average task score across multiple label-free baselines.

Probe Representations and Training

We provide additional details on the probes used to estimate the routing signals in § 5. The probes are trained on empirical targets computed from offline model generations, while the weak model remains frozen. We extract both probe inputs from the weak model’s hidden states. For the strong-model self-disagreement probe, we use the hidden state at the final prompt token, denoted by h(p)\mathbf{h}(p). For the weak–strong disagreement probe, we use the mean hidden state over the generated response tokens, denoted by h(p,yw)\mathbf{h}(p, y_w). The second representation depends on both the prompt and the generated response from the weak model. In the agentic environments, the trajectory history HtH_t serves as the prompt and the proposed action serves as the response.

We train each probe:

f^∈arg⁡min⁡f∈F1∣D∣∑(z,u^)∈Dℓ(f(h(z)),u^)(12)\widehat{f} \in\mathop{\arg\min}_{f \in\mathcal{F}} \frac{1}{|\mathcal{D}|} \sum_{(z,\widehat{u}) \in\mathcal{D}} \ell(f(\mathbf{h}(z)), \widehat{u}) \tag*{(12)}

by minimizing binary cross-entropy with empirical probabilities as soft targets. For f^d\widehat{f}_d, each example pairs a prompt–response representation h(p,yw)\mathbf{h}(p,y_w) with the target d^(p,yw)\widehat{d}(p,y_w) defined in Equation (9). For f^g\widehat{f}_g, each example pairs a prompt representation h(p)\mathbf{h}(p) with the target g^(p)\widehat{g}(p) defined in Equation (10). Probe outputs are restricted to [0,1][0,1]. For brevity, the main text writes these predictors as f^d(p,yw)\widehat{f}_d(p,y_w) and f^g(p)\widehat{f}_g(p), leaving the representation extraction implicit.

Additionally, when ground-truth answers are available, we also train the proxy-reward probe f^c\widehat{f}_c using the same prompt–response representation and binary cross-entropy loss, with correctness target 1−A(yw,Y)1-A(y_w,Y). This probe provides a supervised comparison; the two disagreement probes require no ground-truth correctness labels. At inference, computing the learned routing scores requires only weak-model representations; the strong model is queried only when the router chooses to escalate. We will release the training code and experiment configurations upon acceptance, which will including feature-extraction layers used for each model and hyperparameter details.

On-Policy Data Collection for Agentic Probes

To ensure our learned probes generalize to test-time deployments where strong-model interventions alter the trajectory state, we collect training data using an iterative, on-policy schedule inspired by DAgger [26, 40].

During test-time routing, executing strong-model actions steers the agent into states that the weak model would not visit autonomously. Fitting probes exclusively on purely weak-model trajectories results in a distribution mismatch (the classic compounding-shift problem of behavioral cloning [40]). We mitigate this by collecting training data across iterative phases: each phase rolls out the current routed policy, labels every visited state, and trains subsequent probes on the aggregated dataset from all preceding phases.

Dataset aggregation. In multi-step environments, let Ht=(p,y1,o1,…,yt−1,ot−1)H_t = (p, y^1, o^1, \ldots, y^{t-1}, o^{t-1}) denote the trajectory history at step tt, comprising the instruction prompt pp, past actions yiy_i, and observations oio_i. At each step, both models propose actions: the weak model generates KK sampled actions {y1w,…,yKw}\{y_1^w, \ldots, y_K^w\} and KK sampled actions {y1s,…,yKs}\{y_1^s, \ldots, y_K^s\} from the strong model. (K=10K = 10 across all environments). For simplicity and consistency across agentic baselines, we fix the weak-model candidate selection policy ϕ(Ht)\phi(H_t) to execute the first sampled action (y1w)(y_1^w). Using the task-specific transition agreement indicator AA defined in § 5, we compute empirical disagreement targets d^(Ht,y1w)\hat{d}(H_t,y_1^w) and g^(Ht)\hat{g}(H_t). We record the weak model’s hidden states: the final history token representation h(Ht)\mathbf{h}(H_t) for the self-disagreement probe f^g\hat{f}_g, and the mean hidden-state representation over action tokens h(Ht,y1w)\mathbf{h}(H_t,y_1^w) for the weak–strong disagreement probe f^d\hat{f}_d.

Stochastic routing during collection. In the first phase, the weak model acts at every step. In subsequent phases, we fit the probes on the accumulated training data and keep them fixed throughout collection. At each visited history HtH_t, we map the corrected disagreement score to a routing probability:

proute(m)(Ht,y1w)={0,m=1,1+f^d(m)(h(Ht,y1w))−f^g(m)(h(Ht))2,m≥2.(13)p_{\mathrm{route}}^{(m)}(H_t,y_1^w) = \begin{cases} 0, & m = 1,\\ \frac{1 + \hat{f}_d^{(m)}(\mathbf{h}(H_t,y_1^w)) - \hat{f}_g^{(m)}(\mathbf{h}(H_t))}{2}, & m \ge2. \end{cases} \tag*{(13)}

Both probes take values in [0,1][0,1], so the corrected disagreement score lies in [−1,1][-1,1] and the routing probability lies in [0,1][0,1]. We sample a routing decision from this probability and execute either the strong model’s greedy action or the first weak sample.

Algorithm 1 On-Policy Collection of Disagreement Data

Require: Tasks Ttrain\mathcal{T}_{\mathrm{train}}, Ttest\mathcal{T}_{\mathrm{test}}; weak and strong models; selection policy ϕ\phi; samples KK; phases MM

  1. D←∅\mathcal{D} \leftarrow\varnothing

  2. for m=1,…,Mm = 1,\ldots,M do

  3. &nbsp;&nbsp;if m≥2m \ge2 then

  4. &nbsp;&nbsp;&nbsp;&nbsp;Fit f^d(m)\hat{f}^{(m)}_d, f^g(m)\hat{f}^{(m)}_g on training-task records in D\mathcal{D}

  5. &nbsp;&nbsp;end if

  6. &nbsp;&nbsp;for each task u∈Ttrain∪Ttestu \in\mathcal{T}_{\mathrm{train}} \cup\mathcal{T}_{\mathrm{test}} do

  7. &nbsp;&nbsp;&nbsp;&nbsp;Initialize trajectory history H1H_1; set t←1t \leftarrow1

  8. &nbsp;&nbsp;&nbsp;&nbsp;while task uu is not finished do

  9. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw yw,1,…,yw,Ky_{w,1},\ldots,y_{w,K} independently from the weak model given HtH_t

  10. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw ys,1,…,ys,Ky_{s,1},\ldots,y_{s,K} independently from the strong model given HtH_t

  11. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ht,K←(Ht,yw,1,…,yw,K)h_{t,K} \leftarrow(H_t,y_{w,1},\ldots,y_{w,K}); it←ϕ(ht,K)i_t \leftarrow\phi(h_{t,K})

  12. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compute g^(Ht)\hat{g}(H_t) and {d^(Ht,yw,i)}i=1K\{\hat{d}(H_t,y_{w,i})\}_{i=1}^{K} from the sampled actions

  13. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add these targets and their weak-model representations to D\mathcal{D}, tagged by task uu

  14. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pt←0p_t \leftarrow0

  15. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if m≥2m \ge2 then

  16. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pt←1+f^d(m)(h(Ht,yw,it))−f^g(m)(h(Ht))2p_t \leftarrow\frac{1+\hat{f}^{(m)}_d(h(H_t,y_{w,i_t}))-\hat{f}^{(m)}_g(h(H_t))}{2}

  17. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if

  18. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw bt∼Bernoulli⁡(pt)b_t \sim\operatorname{Bernoulli}(p_t)

  19. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if bt=1b_t = 1 then

  20. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw ysy_s from the strong model given HtH_t

  21. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yt←ysy^t \leftarrow y_s

  22. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else

  23. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yt←yw,ity^t \leftarrow y_{w,i_t}

  24. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if

  25. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Execute yty^t and observe oto^t

  26. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ht+1←(Ht,yt,ot)H_{t+1} \leftarrow(H_t,y^t,o^t); t←t+1t \leftarrow t+1

  27. &nbsp;&nbsp;&nbsp;&nbsp;end while

  28. &nbsp;&nbsp;end for

  29. end for

  30. return D\mathcal{D}

Proof of Theorem 3.1

We first give a more detailed statement of the result, including the optimal sampling policy. The proof has a simple structure. For a fixed number of weak samples, we condition on the sampled responses: the best weak response is the one with the largest correctness probability, and routing is optimal when the improvement offered by the strong model is large enough. To optimize sampling, we introduce prices for weak-model samples and strong-model queries. For each prompt, the optimal number of weak samples then maximizes its expected value net of the sampling price.

For the sampling characterization, assume that at most K<∞K < \infty weak responses may be generated. Conditional on P=pP = p, the weak responses are i.i.d. and independent of (Y,Ys)(Y,Y_s). Recall

qp(y):=Pr⁡(Y=y∣P=p),tp:=Pr⁡(Ys=Y∣P=p).q_p(y) := \Pr(Y = y \mid P = p), \qquad t_p := \Pr(Y_s = Y \mid P = p).

Theorem B.1 (Full version of Theorem 3.1). Let 1≤Bw≤K1 \le B_w \le K and 0≤Bs≤10 \le B_s \le1.

(i) Fixed sampling. Fix any sampling policy σ\sigma satisfying E[σ(P)]≤Bw\mathbb{E}[\sigma(P)] \le B_w. For a realized history hσ=(p,yw,1,…,yw,σ(p))h_\sigma= (p, y_{w,1}, \ldots, y_{w,\sigma(p)}),

define

Δ(hσ):=tp−max⁡i≤σ(p)qp(yw,i).(14)\Delta(h_\sigma) := t_p - \max_{i \le\sigma(p)} q_p(y_{w,i}). \tag*{(14)}

Then an optimal selection and routing policy is

ϕ∗(hσ)∈arg⁡max⁡i≤σ(p)qp(yw,i),π∗(hσ)={1,Δ(hσ)>τ,0,Δ(hσ)<τ,ρ(hσ),Δ(hσ)=τ,(15)\phi^*(h_\sigma) \in\arg\max_{i \le\sigma(p)} q_p(y_{w,i}), \qquad \pi^*(h_\sigma) = \begin{cases} 1, & \Delta(h_\sigma) > \tau,\\ 0, & \Delta(h_\sigma) < \tau,\\ \rho(h_\sigma), & \Delta(h_\sigma) = \tau, \end{cases} \tag*{(15)}

where τ≥0\tau\ge0 and ρ(hσ)∈[0,1]\rho(h_\sigma) \in[0,1] can be chosen so that

E[π∗(Hσ)]≤Bs,τ(E[π∗(Hσ)]−Bs)=0.(16)\mathbb{E}[\pi^*(H_\sigma)] \le B_s, \qquad \tau\bigl(\mathbb{E}[\pi^*(H_\sigma)] - B_s\bigr) = 0. \tag*{(16)}

(ii) Optimal sampling. For n∈{1,…,K}n \in\{1,\ldots,K\}, define

Mp,n:=max⁡i≤nqp(Yw,i)M_{p,n} := \max_{i \le n} q_p(Y_{w,i})

and

Up(n;τ):=E[max⁡{Mp,n,tp−τ}∣P=p].(17)U_p(n;\tau) := \mathbb{E}\left[\max\{M_{p,n}, t_p-\tau\}\mid P=p\right]. \tag*{(17)}

Then, for some global weak-sampling price β≥0\beta\ge0, an optimal sampling policy satisfies

σ∗(p)∈arg⁡max⁡1≤n≤K{Up(n;τ)−βn}.(18)\sigma^*(p) \in\arg\max_{1 \le n \le K}\{U_p(n;\tau)-\beta n\}. \tag*{(18)}

Together with the selection and routing rules in (15), the prices can be chosen so that

E[σ∗(P)]≤Bw,β(E[σ∗(P)]−Bw)=0,(19)\mathbb{E}[\sigma^*(P)] \le B_w, \qquad \beta\bigl(\mathbb{E}[\sigma^*(P)]-B_w\bigr)=0, \tag*{(19)}

and (16) holds.

If needed at a budget boundary, the policy may randomize between tied maximizers in (18) or at Δ(hσ)=τ\Delta(h_\sigma)=\tau.

Proof. We prove the result in a few simple steps.

Claim 1. For fixed sampling, the selection rule in (15) is optimal.

Condition on a realized history hσ=(p,yw,1,…,yw,σ(p))h_\sigma=(p,y_{w,1},\ldots,y_{w,\sigma(p)}). Because the weak-model samples are independent of (Y,Ys)(Y,Y_s) conditional on PP, the conditional correctness probabilities are

Pr⁡(Yw,i=Y∣Hσ=hσ)=qp(yw,i),Pr⁡(Ys=Y∣Hσ=hσ)=tp.\Pr(Y_{w,i}=Y\mid H_\sigma=h_\sigma)=q_p(y_{w,i}), \qquad \Pr(Y_s=Y\mid H_\sigma=h_\sigma)=t_p.

Hence, for any selection and routing decisions, the conditional expected accuracy is

(1−π(hσ))qp(yw,ϕ(hσ))+π(hσ)tp.(1-\pi(h_\sigma))q_p(y_{w,\phi(h_\sigma)})+\pi(h_\sigma)t_p.

For any fixed routing decision, this is maximized by selecting a weak response with the largest value of qp(yw,i)q_p(y_{w,i}). Therefore

ϕ∗(hσ)∈arg⁡max⁡i≤σ(p)qp(yw,i).\phi^*(h_\sigma) \in\arg\max_{i\leq\sigma(p)} q_p(y_{w,i}).

With this choice, the conditional expected accuracy becomes

max⁡i≤σ(p)qp(yw,i)+π(hσ)Δ(hσ).\max_{i\leq\sigma(p)} q_p(y_{w,i})+\pi(h_\sigma)\Delta(h_\sigma).

Thus, after optimizing selection, routing only needs to decide where to spend the strong-model budget based on the gain Δ(hσ)\Delta(h_\sigma).

Claim 2. The optimal routing policy is a threshold rule on Δ(hσ)\Delta(h_\sigma).

For fixed σ\sigma, maximizing accuracy is equivalent to

max⁡πE[π(Hσ)Δ(Hσ)]subject toE[π(Hσ)]≤Bs.\max_{\pi}\mathbb{E}[\pi(H_\sigma)\Delta(H_\sigma)] \qquad\text{subject to} \qquad\mathbb{E}[\pi(H_\sigma)]\leq B_s.

Therefore the budget should be allocated to histories with the largest values of Δ\Delta.

More formally, choose τ≥0\tau\geq0 and, if necessary, randomize on {Δ=τ}\{\Delta=\tau\} so that (16) holds. For any other feasible routing policy π\pi,

(π∗−π)(Δ−τ)≥0(\pi^*-\pi)(\Delta-\tau)\geq0

pointwise. Hence

E[(π∗−π)Δ]=E[(π∗−π)(Δ−τ)]+τ(E[π∗]−E[π])≥0,\mathbb{E}[(\pi^*-\pi)\Delta]=\mathbb{E}[(\pi^*-\pi)(\Delta-\tau)]+\tau\left(\mathbb{E}[\pi^*]-\mathbb{E}[\pi]\right) \geq0,

where the second term is nonnegative by feasibility and complementary slackness. Thus π∗\pi^* is optimal, proving part (i).

Claim 3. For fixed prices (β,τ)(\beta,\tau), the optimal number of weak samples satisfies (18).

Introduce a price β\beta for each weak-model sample and a price τ\tau for each strong-model query. Consider a prompt pp for which we choose nn weak samples.

After the samples are observed, Claim 1 shows that the best weak-model accuracy is

Mp,n=max⁡i≤nqp(Yw,i).M_{p,n}=\max_{i\leq n}q_p(Y_{w,i}).

If we return the weak response, the priced value is Mp,nM_{p,n}. If we query the strong model, the priced value is tp−τt_p-\tau. Therefore the optimal terminal value is

max⁡{Mp,n,tp−τ}.\max\{M_{p,n},t_p-\tau\}.

Before the weak responses are sampled, its expected value is exactly Up(n;τ)U_p(n;\tau) from (17). After subtracting the sampling cost βn\beta n, the value of choosing nn samples is

Up(n;τ)−βn.U_p(n;\tau)-\beta n.

Since σ\sigma depends only on the prompt, the optimal choice can be made separately for each pp, giving

σ∗(p)∈arg⁡max⁡1≤n≤K{Up(n;τ)−βn}.\sigma^*(p)\in\arg\max_{1\leq n\leq K}\{U_p(n;\tau)-\beta n\}.

The sampling rule also has a useful marginal interpretation. Define

Gp(n;τ):=Up(n+1;τ)−Up(n;τ),n<K.G_p(n;\tau) := U_p(n+1;\tau) - U_p(n;\tau), \qquad n < K.

These marginal gains are nonincreasing in nn. To see this, write

Zi:=qp(Yw,i),Rn:=max⁡{tp−τ,Z1,…,Zn}.Z_i := q_p(Y_{w,i}), \qquad R_n := \max\{t_p-\tau,Z_1,\ldots,Z_n\}.

Then

Gp(n;τ)=E[(Zn+1−Rn)+∣P=p].G_p(n;\tau) = \mathbb{E}[(Z_{n+1}-R_n)_+ \mid P=p].

Since Rn+1≥RnR_{n+1} \ge R_n and a fresh weak response has the same distribution at every step, the expected improvement from one additional sample cannot increase with nn. Thus (18) can equivalently be viewed as increasing the planned number of weak samples while the expected marginal gain exceeds β\beta, and stopping once it falls below β\beta.

Claim 4. Suitable prices recover the constrained optimum.

Let

A(σ,ϕ,π)A(\sigma,\phi,\pi)

denote expected accuracy, and define

W(σ):=E[σ(P)],S(σ,π):=E[π(Hσ)].W(\sigma) := \mathbb{E}[\sigma(P)], \qquad S(\sigma,\pi) := \mathbb{E}[\pi(H_\sigma)].

For prices β,τ≥0\beta,\tau\ge0, consider the priced objective

A(σ,ϕ,π)−βW(σ)−τS(σ,π).A(\sigma,\phi,\pi)-\beta W(\sigma)-\tau S(\sigma,\pi).

Claims 1–3 characterize a policy that maximizes this objective.

Under the standard randomized-policy formulation with finite KK, the set of achievable triples (W,S,A)(W,S,A) is convex and compact. Therefore a supporting-hyperplane argument gives prices β,τ≥0\beta,\tau\ge0 and boundary randomization, when necessary, satisfying (16) and (19).

It remains only to verify that these conditions imply constrained optimality. Let (σ∗,ϕ∗,π∗)(\sigma^*,\phi^*,\pi^*) be the resulting policy, and let (σ,ϕ,π)(\sigma,\phi,\pi) be any other feasible policy. Since the former maximizes the priced objective,

A(σ,ϕ,π)≤A(σ∗,ϕ∗,π∗)−βW(σ∗)−τS(σ∗,π∗)+βW(σ)+τS(σ,π)≤A(σ∗,ϕ∗,π∗)+β(Bw−W(σ∗))+τ(Bs−S(σ∗,π∗))=A(σ∗,ϕ∗,π∗).\begin{aligned} A(\sigma,\phi,\pi) &\le A(\sigma^*,\phi^*,\pi^*)-\beta W(\sigma^*)-\tau S(\sigma^*,\pi^*) \\ &\quad+\beta W(\sigma)+\tau S(\sigma,\pi) \\ &\le A(\sigma^*,\phi^*,\pi^*)+\beta(B_w-W(\sigma^*))+\tau(B_s-S(\sigma^*,\pi^*)) \\ &= A(\sigma^*,\phi^*,\pi^*). \end{aligned}

where the last equality follows from complementary slackness. Hence the stated sampling, selection, and routing policies are jointly optimal.

Selectionb=0%b = 0\%b=5%b = 5\%b=10%b = 10\%b=20%b = 20\%b=30%b = 30\%
Random candidate0.3770.4160.4490.5110.567
Majority vote0.4670.4980.5240.5750.619
Token entropy0.4040.4430.4740.5350.592
Disagreement (ours)0.4490.4780.5070.5580.601
Correctness probe†0.4500.4780.5080.5600.602

Table 7. Routing: corrected disagreement (ours)

Selectionb=0%b = 0\%b=5%b = 5\%b=10%b = 10\%b=20%b = 20\%b=30%b = 30\%
Random candidate0.3770.3950.4150.4640.517
Majority vote0.4670.4830.5020.5460.593
Token entropy0.4040.4220.4430.4870.543
Disagreement (ours)0.4490.4600.4790.5220.571
Correctness probe†0.4500.4600.4800.5230.571

Table 7. Routing: weak–strong disagreement (ours)

Selectionb=0%b = 0\%b=5%b = 5\%b=10%b = 10\%b=20%b = 20\%b=30%b = 30\%
Random candidate0.3770.3940.4130.4590.513
Majority vote0.4670.4820.5000.5420.589
Token entropy0.4040.4210.4410.4850.539
Disagreement (ours)0.4490.4590.4760.5200.567
Correctness probe†0.4500.4600.4770.5210.568

Table 7. Routing: proxy reward†

Selectionb=0%b = 0\%b=5%b = 5\%b=10%b = 10\%b=20%b = 20\%b=30%b = 30\%
Random candidate0.3770.4070.4370.4960.557
Majority vote0.4670.4920.5180.5670.613
Token entropy0.4040.4330.4610.5190.575
Disagreement (ours)0.4490.4750.5010.5530.604
Correctness probe†0.4500.4750.5010.5530.605

Table 7. Routing: self-consistency

References

  1. [1]Pranjal Aggarwal, Aman Madaan, Ankit Anand, Srividya Pranavi Potharaju, Swaroop Mishra, Pei Zhou, Aditya Gupta, Dheeraj Rajagopal, Karthik Kappaganthu, Yiming Yang, Shyam Upadhyay, Manaal Faruqui, and Mausam. Automix: Automatically mixing language models, 2025. URL https://arxiv.org/abs/2310.12963.
  2. [2]Marija akota, Maxime Peyrard, and Robert West. Fly-swat or cannon? cost-effective language model choice via meta-modeling. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining, pp. 606–615. ACM, March 2024. doi: 10.1145/3616855.3635825. URL http://dx.doi.org/10.1145/3616855.3635825.
  3. [3]Jianhao Chen, Zishuo Xun, Bocheng Zhou, Han Qi, Hangfan Zhang, Qiaosheng Zhang, Yang Chen, Wei Hu, Yuzhong Qu, Wanli Ouyang, and Shuyue Hu. Do we truly need so many samples? multi-llm repeated sampling efficiently scales test-time compute, 2025. URL https://arxiv.org/abs/2504.00762.
  4. [4]Lijie Chen, Binghui Peng, and Hongyun Wu. Theoretical limitations of multi-layer transformer, 2024. URL https://arxiv.org/abs/2412.02975.
  5. [5]Lingjiao Chen, Matei Zaharia, and James Zou. Frugalgpt: How to use large language models while reducing cost and improving performance, 2023. URL https://arxiv.org/abs/2305.05176.
  6. [6]Yu-Neng Chuang, Prathusha Kameswara Sarma, Parikshit Gopalan, John Boccio, Sara Bolouki, Xia Hu, and Helen Zhou. Learning to route llms with confidence tokens, 2025. URL https://arxiv.org/abs/2410.13284.
  7. [7]Jasper Dekoninck, Maximilian Baader, and Martin Vechev. A unified approach to routing and cascading for llms, 2025. URL https://arxiv.org/abs/2410.10347.
  8. [8]Dujian Ding, Ankur Mallick, Chi Wang, Robert Sim, Subhabrata Mukherjee, Victor Ruhle, Laks V. S. Lakshmanan, and Ahmed Hassan Awadallah. Hybrid llm: Cost-efficient and quality-aware query routing, 2024. URL https://arxiv.org/abs/2404.14618.
  9. [9]Dujian Ding, Ankur Mallick, Shaokun Zhang, Chi Wang, Daniel Madrigal, Mirian Del Carmen Hipolito Garcia, Menglin Xia, Laks V. S. Lakshmanan, Qingyun Wu, and Victor Rühle. Best-route: Adaptive llm routing with test-time optimal compute, 2025. URL https://arxiv.org/abs/2506.22716.
  10. [10]Xuefeng Du, Chaowei Xiao, and Yixuan Li. Haloscope: Harnessing unlabeled llm generations for hallucination detection, 2024. URL https://arxiv.org/abs/2409.17504.
  11. [11]Shengda Fan, Xuyan Ye, Yupeng Huo, Zhi-Yuan Chen, Yiju Guo, Shenzhi Yang, Wenkai Yang, Shuqi Ye, Jingwen Chen, Haotian Chen, Xin Cong, and Yankai Lin. Agentprocessbench: Diagnosing step-level process quality in tool-using agents, 2026. URL https://arxiv.org/abs/2603.14465.
  12. [12]Sebastian Farquhar, Jannik Kossen, Lorenz Kuhn, and Yarin Gal. Detecting hallucinations in large language models using semantic entropy. Nature, 630:625–630, 06 2024. doi: 10.1038/s41586-024-07421-0.DOI
  13. [13]Matt Gorbett and Suman Jana. Cross-model disagreement as a label-free correctness signal, 2026. URL https://arxiv.org/abs/2603.25450.
  14. [14]Neel Guha, Mayee F. Chen, Trevor Chow, Ishan S. Khare, and Christopher Ré. Smoothie: Label free language model routing, 2024. URL https://arxiv.org/abs/2412.04692.
  15. [15]Neha Gupta, Harikrishna Narasimhan, Wittawat Jitkrittum, Ankit Singh Rawat, Aditya Krishna Menon, and Sanjiv Kumar. Language model cascades: Token-level uncertainty and beyond, 2024. URL https://arxiv.org/abs/2404.10136.
  16. [16]Kimia Hamidieh, Veronika Thost, Walter Gerych, Mikhail Yurochkin, and Marzyeh Ghassemi. Complementing self-consistency with cross-model disagreement for uncertainty quantification, 2026. URL https://arxiv.org/abs/2604.17112.
  17. [17]Raghu Vamshi Hemadri, Humaira Firdowse Mohammed, Rishabh Maheshwary, Srivatsava Daruru, Sagar Davasam, Vikas Yadav, Srinivas Sunkara, and Sai Rajeswar. R2v agent: Teaching slms when to ask for help, 2026. URL https://arxiv.org/abs/2605.16604.
  18. [18]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset, 2021. URL https://arxiv.org/abs/2103.03874.
  19. [19]Wittawat Jitkrittum, Neha Gupta, Aditya Krishna Menon, Harikrishna Narasimhan, Ankit Singh Rawat, and Sanjiv Kumar. When does confidence-based cascade deferral suffice?, 2024. URL https://arxiv.org/abs/2307.02764.
  20. [20]Vansh Kapoor, Aman Gupta, Hao Chen, Anurag Beniwal, Jing Huang, and Aviral Kumar. Trim: Hybrid inference via targeted stepwise routing in multi-step reasoning tasks, 2026. URL https://arxiv.org/abs/2601.10245.
  21. [21]Shayan Kiyani, Sima Noorani, George Pappas, and Hamed Hassani. Strategic decision support for ai agents, 2026. URL https://arxiv.org/abs/2606.12587.
  22. [22]Shayan Kiyani, Sima Noorani, George Pappas, and Hamed Hassani. When to trust the cheap check: Weak and strong verification for reasoning, 2026. URL https://arxiv.org/abs/2602.17633.
  23. [23]Steven Kolawole, Don Dennis, Ameet Talwalkar, and Virginia Smith. Agreement-based cascading for efficient inference, 2025. URL https://arxiv.org/abs/2407.02348.
  24. [24]Jannik Kossen, Jiatong Han, Muhammed Razzak, Lisa Schut, Shres[h]th Malik, and Yarin Gal. Semantic entropy probes: Robust and cheap hallucination detection in llms, 2024. URL https://arxiv.org/abs/2406.15927.
  25. [25]Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. Semantic uncertainty: Linguistic invariances for uncertainty estimation in natural language generation, 2023. URL https://arxiv.org/abs/2302.09664.
  26. [26]Changhao Li, Rushi Qiang, Jiawei Huang, Chenxiao Gao, Chao Zhang, Niao He, and Bo Dai. Revisiting dagger in the era of llm-agents, 2026. URL https://arxiv.org/abs/2605.12913.
  27. [27]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step, 2023. URL https://arxiv.org/abs/2305.20050.
  28. [28]Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedorov, Yuny ang Xiong, Ernie Chang, Yangyang Shi, Raghuraman Krishnamoorthi, Liangzhen Lai, and Vikas Chandra. Mobilellm: Optimizing sub-billion parameter language models for on-device use cases, 2024. URL https://arxiv.org/abs/2402.14905.
  29. [29]Keming Lu, Hongyi Yuan, Runji Lin, Junyang Lin, Zheng Yuan, Chang Zhou, and Jingren Zhou. Routing to the expert: Efficient reward-guided ensemble of large language models, 2023. URL https://arxiv.org/abs/2311.08692.
  30. [30]Zhenyan Lu, Xiang Li, Dongqi Cai, Rongjie Yi, Fangming Liu, Wei Liu, Jian Luan, Xiwen Zhang, Nicholas D. Lane, and Mengwei Xu. Demystifying small language models for edge deployment. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar (eds.), Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 14747–14764, Vienna, Austria, July 2025. Association for Computational Linguistics. ISBN 979-8-89176-251-0. doi: 10.18653/v1/2025.acl-long.718. URL https://aclanthology.org/2025.acl-long.718/.DOI
  31. [31]Yingfeng Luo, Hongyu Liu, Dingyang Lin, Kaiyan Chang, Chenglong Wang, Bei Li, Quan Du, Tong Xiao, and Jingbo Zhu. Route1mt: Learned sample routing for hybrid llm translation deployment, 2026. URL https://arxiv.org/abs/2604.22520.
  32. [32]Xing Han Lù, Amirhossein Kazemnejad, Nicholas Meade, Arkil Patel, Dongchan Shin, Alejandra Zambrano, Karolina Stańczak, Peter Shaw, Christopher J. Pal, and Siva Reddy. Agentrewardbench: Evaluating automatic evaluations of web agent trajectories, 2025. URL https://arxiv.org/abs/2504.08942.
  33. [33]Hussein Mozannar and David Sontag. Consistent estimators for learning to defer to an expert, 2021. URL https://arxiv.org/abs/2006.01862.
  34. [34]Tianyi Niu, Justin Chih-Yao Chen, Genta Indra Winata, Shi-Xiong Zhang, Supriyo Chakraborty, Sambit Sahu, Yue Zhang, Elias Stengel-Eskin, and Mohit Bansal. Routing with generated data: Annotation-free llm skill estimation and expert selection, 2026. URL https://arxiv.org/abs/2601.09692.
  35. [35]Isaac Ong, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang, Tianhao Wu, Joseph E. Gonzalez, M Waleed Kadous, and Ion Stoica. Route1lm: Learning to route llms with preference data, 2025. URL https://arxiv.org/abs/2406.18665.
  36. [36]Shishir G Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng-Jie Ji, Vishnu Suresh, Ion Stoica, and Joseph E. Gonzalez. The berkeley function calling leaderboard (BFCL): From tool use to agentic evaluation of large language models. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=2GmDdhBdDk.
  37. [37]Charlotte Peale, Siddartha Devic, Parikshit Gopalan, Udi Wieder, and Aravind Gollakota. Flexible routing via uncertainty decomposition, 2026. URL https://arxiv.org/abs/2605.07805.
  38. [38]Stephan Rabanser, Nathalie Rauschmayr, Achin Kulshrestha, Petra Poklukar, Wittawat Jitkrittum, Sean Augenstein, Congchao Wang, and Federico Tombari. Gatekeeper: Improving model cascades through confidence tuning, 2025. URL https://arxiv.org/abs/2502.19335.
  39. [39]Zachary Ravichandran, Ignacio Hounie, Fernando Cladera, Alejandro Ribeiro, George J. Pappas, and Vijay Kumar. Distilling on-device language models for robot planning with minimal human intervention, 2025. URL https://arxiv.org/abs/2506.17486.
  40. [40]Stephane Ross, Geoffrey J. Gordon, and J. Andrew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning, 2011. URL https://arxiv.org/abs/1011.0686.
  41. [41]Vishnu Sarukkai, Asanshay Gupta, James Hong, Michaël Gharbi, and Kaviyon Fatahiian. Inference-time distillation: Cost-efficient agents without fine-tuning or manual prompt engineering, 2026. URL https://arxiv.org/abs/2512.02543.
  42. [42]Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning, 2023. URL https://arxiv.org/abs/2303.11366.
  43. [43]Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling llm test-time compute optimally can be more effective than scaling model parameters, 2024. URL https://arxiv.org/abs/2408.03314.
  44. [44]KV Aditya Srivatsa, Kaushal Kumar Maurya, and Ekaterina Kochmar. Harnessing the power of multiple minds: Lessons learned from llm routing, 2024. URL https://arxiv.org/abs/2405.00467.
  45. [45]Peiyi Wang, Lei Li, Zhihong Shao, R. X. Xu, Damai Dai, Yifei Li, Deli Chen, Y. Wu, and Zhifang Sui. Math-shepherd: Verify and reinforce llms step-by-step without human annotations, 2024. URL https://arxiv.org/abs/2312.08935.
  46. [46]Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models, 2023. URL https://arxiv.org/abs/2203.11171.
  47. [47]Yihao Xue, Kristjan Greenewald, Youssef Mroueh, and Baharan Mirzasoleiman. Verify when uncertain: Beyond self-consistency in black box hallucination detection, 2026. URL https://arxiv.org/abs/2502.15845.
  48. [48]Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents, 2023. URL https://arxiv.org/abs/2207.01206.
  49. [49]Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, Zilin Zhang, and Dragomir Radev. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task, 2019. URL https://arxiv.org/abs/1809.08887.
  50. [50]Zhongzhi Yu, Zheng Wang, Yuhan Li, Haoran You, Ruijie Gao, Xiaoya Zhou, Sreenidhi Reedy Bommu, Yang Katie Zhao, and Yingyan Celine Lin. Edge-llm: Enabling efficient large language model adaptation on edge devices via layerwise unified compression and adaptive layer tuning and voting, 2024. URL https://arxiv.org/abs/2406.15758.

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type