# Asymptotically Optimal Sequential Testing with Heterogeneous LLMs

arXiv: https://arxiv.org/abs/2604.01086 · HTML: https://mlsanity.com/paper/2604.01086/

## Key facts

- Cited by 3 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 1 Apr 2026.

## Built on by (most cited first, 3 of 3)

- [Allocating Human Oversight in AI-Enabled Analytics](https://mlsanity.com/paper/2604.12497/) (2026)
- [Online Pandora's Box for Contextual LLM Cascading](https://mlsanity.com/paper/2606.07392/) (2026)
- [Designing Agentic AI Workflow Portfolios under Imperfect Selection and Compute Cost](https://mlsanity.com/paper/2609.18126/) (2026)

## Abstract (arXiv)

We study a Bayesian binary sequential hypothesis testing problem with multiple large language models (LLMs). Each LLM j has per-query cost cj>0, random waiting time with mean μj>0 and sub-Gaussian tails, and asymmetric accuracies: the probability of returning the correct label depends on the true hypothesis θ∈A,B and needs not be the same under A and B. This asymmetry induces two distinct information rates (Ij,A, Ij,B) per LLM, one under each hypothesis. The decision-maker chooses LLMs sequentially, observes their noisy binary answers, and stops when the posterior probability of one hypothesis exceeds 1-α. The objective is to minimize the sum of expected query cost and expected waiting cost, mathbbE[Cπ] + mathbbE[g(Wπ)], where Cπ is the total query cost, Wπ is the total waiting time and g is a polynomial function (e.g., g(x)=xρ with ρ≥ 1). We prove that as the error tolerance α→0, the optimal policy is asymptotically equivalent to one that uses at most two LLMs. In this case, a single-LLM policy is not generically optimal: optimality now requires exploiting a two-dimensional tradeoff between information under A and information under B. Any admissible policy induces an expected information-allocation vector in ℝ_+2, and we show that the optimal allocation lies at an extreme point of the associated convex set when α is relatively small, and hence uses at most two LLMs. We construct belief-dependent policies that first mix between two LLMs when the posterior is ambiguous, and then switch to a single "specialist" LLM when the posterior is sufficiently close to one of the hypotheses. These policies match the universal lower bound up to a (1+o(1)) factor as αrightarrow 0.
