English

Asymptotically Optimal Sequential Testing with Heterogeneous LLMs

Data Structures and Algorithms 2026-04-03 v2 Information Theory math.IT Statistics Theory Statistics Theory

Abstract

We study a Bayesian binary sequential hypothesis testing problem with multiple large language models (LLMs). Each LLM jj has per-query cost cj>0c_j>0, random waiting time with mean μj>0\mu_j>0 and sub-Gaussian tails, and \emph{asymmetric} accuracies: the probability of returning the correct label depends on the true hypothesis θ{A,B}\theta\in\{A,B\} and needs not be the same under AA and BB. This asymmetry induces two distinct information rates (Ij,A,Ij,B)(I_{j,A}, I_{j,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α1-\alpha. The objective is to minimize the sum of expected query cost and expected waiting cost, E[Cπ]+E[g(Wπ)]\mathbb{E}[C_\pi] + \mathbb{E}[g(W_\pi)], where CπC_\pi is the total query cost, WπW_\pi is the total waiting time and gg is a polynomial function (e.g., g(x)=xρg(x)=x^\rho with ρ1\rho\ge 1). We prove that as the error tolerance α0\alpha\to0, the optimal policy is asymptotically equivalent to one that uses at most two LLMs. In this case, a single-LLM policy is \emph{not} generically optimal: optimality now requires exploiting a two-dimensional tradeoff between information under AA and information under BB. Any admissible policy induces an expected information-allocation vector in R+2\mathbb{R}_+^2, and we show that the optimal allocation lies at an extreme point of the associated convex set when α\alpha 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))(1+o(1)) factor as α0\alpha\rightarrow 0.

Keywords

Cite

@article{arxiv.2604.01086,
  title  = {Asymptotically Optimal Sequential Testing with Heterogeneous LLMs},
  author = {Guokai Li and Alys Liang and Mo Liu and Murray Lei and Stefanus Jasin and Fenghua Yang and Preet Baxi},
  journal= {arXiv preprint arXiv:2604.01086},
  year   = {2026}
}
R2 v1 2026-07-01T11:48:33.107Z