betaFeedback

WorksMathematics

Optimal Labelling Designs for Sequential Decisions on Language Model Updates

Abstract

When a large language model (LLM) is updated, its developer must decide whether accuracy improved, worsened or stayed within a tolerance. An LLM judge can assess every prompt cheaply but imperfectly, while human labels are costly. We propose Sequential Decisions with Optimal Labelling Designs (SOLD), which labels one prompt at a time, uses the judge to correct the estimate of the change in accuracy and to choose the prompts, and stops once the evidence is conclusive. A wrong decision has probability at most a prespecified level whenever labelling stops. The commonly used Neyman allocation minimises the variance of the estimate and therefore rarely labels prompts that the judge is confident about. It can need far more draws when the outcomes of these prompts could still fall far below the judge's prediction. We instead derive the design that gathers evidence fastest, which labels each prompt with probability at least proportional to how far its outcome could fall below the prediction. As the level tends to zero, no procedure based on the judge-corrected estimates needs fewer draws than SOLD. In simulations and on the EVOUNA and MMLU-Pro datasets, SOLD needed fewer labels than the other methods.

Introduction

When a large language model (LLM) is updated, its developer needs to know whether accuracy has improved, worsened or stayed unchanged up to a specified tolerance. In recursive self-improvement, LLM agents rewrite their own code or prompts and fine-tuning is scheduled continually [7], so every round produces an update that has to be checked before it is kept. Human labels settle such questions, but they are expensive. An LLM used as a judge can assess the responses of both versions to every prompt cheaply, but its assessments are imperfect, so it can guide the labelling but cannot replace it. A judge that shares the biases of the signal used to develop an update can even overstate its gain (Chen, Zhu, and Zheng, 2026). As judges become more accurate, fewer labels are needed, and which prompts receive them matters more. The developer wants to use the judge to reach this three-way decision with as few labels as possible, while keeping the probability of a wrong decision at most a prespecified level α\alpha.

We consider the setting in which labels are collected one at a time, so that labelling can stop as soon as the evidence is conclusive. A budget fixed in advance must be chosen before knowing how many labels are needed, which depends on how far the change in accuracy is from the tolerance, so it can waste labels or run out before the evidence is conclusive. Applying a test designed for a fixed sample size repeatedly as labels arrive, and stopping at the first rejection, inflates the type I error. A test whose type I error is at most α\alpha at any stopping time is called anytime valid [35, 32, 27]. Testing by betting yields such tests. A test starts with wealth one, bets against its null hypothesis at every label and rejects when its wealth reaches 1/α1/\alpha. If no bet is favourable under the null hypothesis and every bet keeps the wealth nonnegative, Ville’s inequality bounds the probability of a false rejection by α\alpha however the test is stopped.

For a fixed budget of labels, prediction-powered inference [2] estimates a mean outcome from the judge’s predictions on all prompts and corrects their bias with the labels of a uniform sample. Dorner et al. [12] show that such a correction saves at most half of the labels when the judge is no more accurate than the model it evaluates. Active inference (Zrnic and Candès [44]), the cost-optimal sampling of Angelopoulos et al. [3] and the method of Wu et al. (2026) instead label more often the prompts on which the judge is uncertain, so as to reduce the variance of the corrected estimate, and Sawade et al. [29] choose the prompts to label so as to maximise the asymptotic power of a test that compares two models. Unlike active learning, which chooses inputs to label so as to train a predictor (Settles [31]), these methods choose prompts so as to estimate a mean, and they draw them at random with known probabilities so that the estimate is unbiased. Their guarantees, however, hold for a fixed budget, and they do not cover labelling that stops at a time chosen from the data.

Anytime-valid methods have also been developed for related problems. Balachandran [5] decide whether a model update makes the loss worse by more than a tolerance. Their estimate uses only the labels, so a judge can at most decide which inputs are labelled. Park et al. [26] test whether the risk of one model is below a threshold with the help of a judge but label prompts in random order, Mondal et al. [23] test the absolute risk of a new model, and Ao et al. (2026) identify the best of several models with a judge. Closest to our approach, Hsu and Shekhar [17], Zhou et al. [43] and Gao et al. [13] build confidence sequences, that is, intervals that contain the target at all times with a prespecified probability, for the accuracy or the risk of a single model, or for the mean of human labels. They weight each label by the inverse of its labelling probability and use predictions of the labels to decide which prompts to label, and Hsu and Shekhar [17] also use the predictions to correct the estimate. Lin et al. [22] audit the labels of a fixed dataset with confidence sequences and choose which class of labels to inspect next from its remaining uncertainty and its effect on a downstream score. Xu et al. (2024) control the risk of prediction sets, which are meant to contain the correct output, with actively chosen labels, and Csillag et al. [11] construct e-values, nonnegative statistics whose expectation is at most one under the null hypothesis, from predictions when the labelling probabilities are given. None of these methods makes the three-way decision about an update with anytime validity while using the judge both to correct the estimate of the change and to choose which prompts to label.

To fill this gap, we propose Sequential Decisions with Optimal Labelling Designs (SOLD). Let θ\theta be the mean, over a pool of prompts, of an outcome that is 1 if only the new version answers a prompt correctly, −1-1 if only the old version does and 0 otherwise, and let δ\delta be the tolerance. The update is improved if θ>δ\theta> \delta, worsened if θ<−δ\theta< -\delta and negligible if ∣θ∣≤δ|\theta| \le\delta, and SOLD decides which of the three holds with four one-sided tests of θ\theta against ±δ\pm\delta, as in tests of equivalence (Schuirmann [30]). At each step SOLD draws one prompt for labelling according to the labelling probabilities, or the design, which it computes from the judge’s probabilities of the three outcomes. It draws with replacement, reuses the label of a prompt that is drawn again, and lets the four tests share the draws. Each test bets on the prediction-powered estimate of θ\theta computed from the label of the drawn prompt, so the judge enters both the estimate and the choice of the prompts. Each test rejects when its wealth reaches 2/α2/\alpha. For any θ\theta, a wrong decision requires the rejection of one of two null hypotheses that hold, so its probability is at most α\alpha however labelling is stopped (§ 2.4).

The number of draws that a test needs depends on its design. For a single test with a fixed design and a fixed bet, the logarithm of the wealth is, given the outcomes of all prompts, a sum of independent and identically distributed terms. When their mean gg, the growth rate of the wealth, is positive, the wealth reaches its threshold after about log⁡(1/α)/g\log(1/\alpha)/g draws for small α\alpha. We therefore choose the design whose growth rate under the best bet is largest. This is the criterion of Kelly [20] and Breiman [6] for repeated bets, and Hsu and Shekhar [17] used it to choose the prompts to label when estimating the accuracy of a single model. They compute this design numerically at each step and do not characterise its structure. Sandoval et al. [28] use the same criterion to choose which of several data sources to sample when testing a global null hypothesis, and show that the expected rejection time then matches a lower bound. Spertus et al. [34] choose the stratum to sample next and the bets of a test of the mean of a stratified population so as to minimise its expected stopping time. The design with the largest growth rate can differ markedly from Neyman allocation [25], the design that minimises the variance of the estimate, which is the natural target for a fixed budget. The clearest difference comes from a constraint that the variance ignores. Every bet must keep the wealth nonnegative for every prompt that can be drawn and every possible label. The bet is chosen before the prompt is drawn, and the estimate divides the difference between the label and the judge’s prediction by the labelling probability of the prompt. For example, if the judge gives probability 0.99 that only the new version answers a prompt correctly, the judge’s prediction for this prompt is close to 1, but its outcome can still be −1-1, nearly 2 below the prediction. Because the judge is confident, the design that minimises the variance labels this prompt rarely. A label of −1-1 would then make the estimate far negative, so every bet must stay small, and the wealth grows slowly even if no such label ever occurs.

Our theory first characterises the optimal design. For one test, we derive the design that maximises the growth rate (Theorem 1). It labels every prompt at least in proportion to the downside of the prompt, the largest amount by which its outcome can fall below the judge’s prediction. Above this floor, the design equalises across prompts the marginal gain in growth rate. A design that labels some prompt rarely relative to its downside has a small growth rate (Proposition 3). Even if the outcomes follow the judge’s probabilities, the growth rate of Neyman allocation can be much smaller than that of the optimal design when the judge is confident about prompts with a large downside, as in the example above (Theorem 4). Mixing it with uniform sampling keeps the labelling probabilities above a floor, but this floor does not grow with the downside (§ 3.4).

SOLD estimates the optimal design as labels arrive. As α→0\alpha\to0, a single test of SOLD attains a lower bound on the expected number of draws among tests that bet on the prediction-powered estimates and reject with probability tending to one (Theorem 2). When the update is negligible, SOLD may choose its design at random from two designs at each step, and randomising in this way can need fewer draws than any single design (Proposition 2 and § 3.3). With this, each of the three decisions of SOLD attains the corresponding lower bound (Theorem 3). Because a prompt drawn again keeps its label, the number of labels can be smaller than the number of draws (§ 3.2).

In simulations, on updates of the question-answering systems in EVOUNA ([36]) and on updates of language models evaluated on MMLU-Pro ([38]), SOLD needed fewer labels in total than every other method. Its advantage grew with the accuracy of the judge in the simulations and was largest on MMLU-Pro, whereas Neyman allocation needed more labels as the judge’s accuracy rose from 93.3% to 99.9%. In the rest of the paper, § 2 introduces the problem and SOLD, § 3 gives its theoretical properties, § 4 reports the simulation studies, § 5 applies SOLD to EVOUNA and MMLU-Pro, and § 6 concludes with a discussion. The proofs, implementation details and additional numerical results are given in the supplement.

Methodology

Problem setup

Let PP be the uniform distribution on a pool of NN prompts. The outcome Y(x)Y(x) of a prompt xx is 1 if only the new version of the model answers it correctly, −1-1 if only the old version does, and 0 otherwise, and a human who labels xx observes Y(x)Y(x). Write EP\mathbb{E}_{P} for expectation when a prompt XX is drawn from PP and Y=Y(X)Y = Y(X). The target is the mean outcome θ=EP[Y]\theta= \mathbb{E}_{P}[Y], the change in accuracy. If the two versions give the same final answer, Y(x)=0Y(x) = 0 is known without a label. We write [ℓ(x),u(x)][\ell(x), u(x)] for the range of Y(x)Y(x), so that ℓ(x)=u(x)=0\ell(x) = u(x) = 0 for such a prompt and ℓ(x)=−1\ell(x) = -1, u(x)=1u(x) = 1 otherwise. Because human labels need not be deterministic, we regard Y(x)Y(x) as a random variable with a distribution F(⋅∣x)F(\cdot\mid x) on [ℓ(x),u(x)][\ell(x), u(x)]. It is generated once and then fixed, because a prompt that is drawn again keeps its label, and θ\theta and the results of § 2 and § 3 are for the outcomes as generated. We call a prompt with ℓ(x)<u(x)\ell(x) < u(x) a candidate, and write π=P{u(X)>ℓ(X)}\pi= P\{u(X) > \ell(X)\} for the proportion of candidates.

Before any label is collected, the judge supplies for every prompt xx its probabilities p+(x)p_{+}(x), p−(x)p_{-}(x) and p0(x)p_{0}(x) of Y(x)=1Y(x) = 1, −1-1 and 00, with p0(x)=1p_{0}(x) = 1 for a prompt that is not a candidate. Write p(x)=(p+(x),p−(x),p0(x))\mathbf{p}(x) = (p_{+}(x), p_{-}(x), p_{0}(x)). The judge’s predictive distribution has mean m(x)=p+(x)−p−(x)m(x) = p_{+}(x) - p_{-}(x), which lies in [ℓ(x),u(x)][\ell(x), u(x)], and standard deviation σ(x)\sigma(x), where σ(x)2=p+(x)+p−(x)−m(x)2\sigma(x)^2 = p_{+}(x) + p_{-}(x) - m(x)^2. The mean prediction μ=EP[m(X)]\mu= \mathbb{E}_{P}[m(X)] is therefore known before labelling. We call h(x)=m(x)−ℓ(x)h(x) = m(x) - \ell(x), the largest amount by which Y(x)Y(x) can fall below m(x)m(x), the downside of xx.

For a tolerance δ>0\delta> 0, consider the four null hypotheses

H0(1):θ≤δ,H0(2):θ≥−δ,H0(3):θ≥δ,H0(4):θ≤−δ.\begin{aligned} H_{0}^{(1)} &: \theta\le\delta, \qquad H_{0}^{(2)} : \theta\ge-\delta, \qquad H_{0}^{(3)} : \theta\ge\delta, \qquad H_{0}^{(4)} : \theta\le-\delta. \end{aligned}

The update is improved if H0(1)H_{0}^{(1)} is false, worsened if H0(2)H_{0}^{(2)} is false, and negligible otherwise. Labels are collected one at a time, and the update is declared improved when H0(1)H_{0}^{(1)} is rejected, worsened when H0(2)H_{0}^{(2)} is rejected, and negligible when both H0(3)H_{0}^{(3)} and H0(4)H_{0}^{(4)} are rejected. A decision is wrong if it declares one of the three when another holds. Since Y(x)=0Y(x) = 0 for a prompt that is not a candidate and ∣Y(x)∣≤1\lvert Y(x)\rvert\le1 otherwise, ∣θ∣≤π\lvert\theta\rvert\le\pi, so the update is negligible without any label if δ≥π\delta\ge\pi, and we assume δ<π\delta< \pi.

Prediction-powered betting test

We first construct a test of H0(1)H_0^{(1)}. § 2.4 combines this test with the tests of the other three null hypotheses. At step ii we choose a design rir_i, a nonnegative function with EP[ri(X)]=1\mathbb{E}_P[r_i(X)] = 1, draw Xi=xX_i = x with probability ri(x)/Nr_i(x)/N and observe its label Yi=Y(Xi)Y_i = Y(X_i). We call ri(x)r_i(x) the labelling probability of xx relative to uniform sampling. The label gives the increment

Zi=μ+Yi−m(Xi)ri(Xi)(1)Z_i = \mu+ \frac{Y_i - m(X_i)}{r_i(X_i)} \tag*{(1)}

the prediction-powered estimate of θ\theta [2, 44] computed from that label alone. With bets λi≥0\lambda_i \ge0 the wealth after nn draws is

Wn=∏i=1n{1+λi(Zi−δ)}.(2)W_n = \prod_{i=1}^{n}\{1 + \lambda_i(Z_i - \delta)\}. \tag*{(2)}

The test rejects H0(1)H_0^{(1)} as soon as Wn≥1/αW_n \ge1/\alpha. The wealth WnW_n is a special case of the prediction-powered e-values of Csillag et al. [11]. We sample with replacement and reuse the label of a prompt that is drawn again, so each label is paid for once. Write Fi\mathcal{F}_i for the history after ii draws, which consists of the prompts drawn and their labels. The design rir_i and the bet λi\lambda_i should be predictable, that is, Fi−1\mathcal{F}_{i-1}-measurable.

The type I error is at most α\alpha if, under H0(1)H_0^{(1)}, every factor 1+λi(Zi−δ)1 + \lambda_i(Z_i - \delta) is nonnegative and E[1+λi(Zi−δ)∣Fi−1]≤1\mathbb{E}[1 + \lambda_i(Z_i - \delta) \mid\mathcal{F}_{i-1}] \le1. Then WnW_n is a nonnegative supermartingale with respect to (Fn)n≥0(\mathcal{F}_n)_{n\ge0}, and Ville’s inequality [35] gives Pr⁡(Wn≥1/α\Pr(W_n \ge1/\alpha for some n)≤αn) \le\alpha [32, 27, 39]. Since λi≥0\lambda_i \ge0 is Fi−1\mathcal{F}_{i-1}-measurable and θ≤δ\theta\le\delta under H0(1)H_0^{(1)}, E[1+λi(Zi−δ)∣Fi−1]≤1\mathbb{E}[1 + \lambda_i(Z_i - \delta) \mid\mathcal{F}_{i-1}] \le1 if E[Zi∣Fi−1]≤θ\mathbb{E}[Z_i \mid\mathcal{F}_{i-1}] \le\theta, which is the case when ri(x)>0r_i(x) > 0 for every prompt xx with h(x)>0h(x) > 0.

To see this, fix a design rr and drop the index ii. Write EQr\mathbb{E}_{Q_r} for expectation when XX is drawn from Qr(dx)=r(x)P(dx)Q_r(\mathrm{d}x) = r(x)P(\mathrm{d}x), the distribution of the drawn prompt, and Y=Y(X)Y = Y(X). Only prompts with r(x)>0r(x) > 0 can be drawn, and μ+EP[Y−m(X)]=θ\mu+ \mathbb{E}_P[Y - m(X)] = \theta, so

EQrZ=θ−EP[1{r(X)=0}{Y−m(X)}].(3)\mathbb{E}_{Q_r}Z = \theta- \mathbb{E}_P\left[1\{r(X) = 0\}\{Y - m(X)\}\right]. \tag*{(3)}

If m(x)=ℓ(x)m(x)=\ell(x) at every prompt with r(x)=0r(x)=0, then Y(x)−m(x)≥0Y(x)-m(x)\ge0 at these prompts, so the expectation subtracted in (3) is nonnegative. We therefore call a design eligible if r(x)>0r(x)>0 for every prompt xx with h(x)>0h(x)>0. Under an eligible design EQrZ≤θ\mathbb{E}_{Q_r}Z\le\theta whatever the values of Y(x)Y(x), so under H0(1)H_0^{(1)}, E[Zi∣Fi−1]≤θ≤δ\mathbb{E}[Z_i\mid\mathcal{F}_{i-1}]\le\theta\le\delta.

The factor 1+λ(Z−δ)1+\lambda(Z-\delta) is nonnegative for every possible value of Y(x)Y(x) at every prompt xx with r(x)>0r(x)>0 if and only if it is nonnegative at Z=μ−H(r)Z=\mu-H(r), the smallest possible value of ZZ, where H(r)=max⁡x:r(x)>0h(x)/r(x)H(r)=\max_{x:r(x)>0}h(x)/r(x). We call a bet λ≥0\lambda\ge0 safe for the design rr if

λ{δ−μ+H(r)}≤1.(4)\lambda\{\delta-\mu+H(r)\}\le1. \tag*{(4)}

With eligible designs and safe bets the test is anytime valid, as Proposition 1(a) in § 2.4 states.

Labelling design and bet

We measure a design rr by its growth rate. For distributions Fˉ(⋅∣x)\bar{F}(\cdot\mid x) on [ℓ(x),u(x)][\ell(x),u(x)], let

GFˉ(r)=sup⁡λ safegFˉ(r,λ),(5)G_{\bar{F}}(r)=\sup_{\lambda\ \mathrm{safe}}g_{\bar{F}}(r,\lambda), \tag*{(5)}
gFˉ(r,λ)=EP[r(X)∫log⁡{1+λ(μ−δ+y−m(X)r(X))}Fˉ(dy∣X)],g_{\bar{F}}(r,\lambda)=\mathbb{E}_{P}\left[r(X)\int\log\left\{1+\lambda\left(\mu-\delta+\frac{y-m(X)}{r(X)}\right)\right\}\bar{F}(\mathrm{d}y\mid X)\right],

where the term of a prompt with r(x)=0r(x)=0 is taken to be zero, since such a prompt is never drawn. Then gFˉ(r,λ)g_{\bar{F}}(r,\lambda) is the expectation of log⁡{1+λ(Z−δ)}\log\{1+\lambda(Z-\delta)\} when XX is drawn from QrQ_r and YY from Fˉ(⋅∣X)\bar{F}(\cdot\mid X). For a design that is not eligible, let GFˉ(r)=0G_{\bar{F}}(r)=0. Write GG and gg for GFˉG_{\bar{F}} and gFˉg_{\bar{F}} with Fˉ(⋅∣x)\bar{F}(\cdot\mid x) the point mass at Y(x)Y(x), and call a design optimal if it attains the largest growth rate G⋆=sup⁡r eligibleG(r)G^\star=\sup_{r\ \mathrm{eligible}}G(r). Since GG depends on the outcomes Y(x)Y(x), which are unknown, at step ii we use Fˉ=F^i\bar{F}=\hat{F}_i, where F^i(⋅∣x)\hat{F}_i(\cdot\mid x) is the point mass at Y(x)Y(x) if xx has been labelled before step ii and p(x)p(x) otherwise. We compute the design r′r' that maximises GF^i(r)G_{\hat{F}_i}(r) and the safe bet λ′\lambda' that attains GF^i(r′)G_{\hat{F}_i}(r').

Write the bet as λt=t/{1−t(μ−δ)}\lambda_t=t/\{1-t(\mu-\delta)\}, where tt is the normalised bet. By (4), λt\lambda_t is safe for an eligible design rr exactly when

r(x)≥th(x)for every prompt x,(6)r(x) \ge t h(x) \quad\text{for every prompt } x, \tag*{(6)}

and we call th(x)t h(x) the safety floor of xx. For a given tt and distributions Fˉ\bar{F}, let

rt,Fˉ(x)=max⁡{tΨx,Fˉ−1(νt,Fˉ), th(x)},Ψx,Fˉ(s)=EFˉ[log⁡(1+se)−se1+se | X=x],(7)r_{t,\bar{F}}(x) = \max\left\{\frac{t}{\Psi_{x,\bar{F}}^{-1}(\nu_{t,\bar{F}})},\,t h(x)\right\}, \qquad\Psi_{x,\bar{F}}(s) = \mathbb{E}_{\bar{F}}\left[\log(1+se)-\frac{se}{1+se}\,\middle|\,X=x\right], \tag*{(7)}

where e=Y−m(X)e=Y-m(X) and EFˉ[⋅∣X=x]\mathbb{E}_{\bar{F}}[\cdot\mid X=x] denotes expectation with YY drawn from Fˉ(⋅∣x)\bar{F}(\cdot\mid x). Here Ψx,Fˉ−1\Psi_{x,\bar{F}}^{-1} is a generalised inverse of Ψx,Fˉ\Psi_{x,\bar{F}} on [0,1/h(x))[0,1/h(x)) and, for 0<t<1/EP[h(X)]0<t<1/\mathbb{E}_{P}[h(X)], νt,Fˉ\nu_{t,\bar{F}} is the constant for which EP[rt,Fˉ(X)]=1\mathbb{E}_{P}[r_{t,\bar{F}}(X)]=1, the Lagrange multiplier of this constraint. Supplementary S1.1 gives both precisely. Above its safety floor, a prompt has Ψx,Fˉ{t/rt,Fˉ(x)}=νt,Fˉ\Psi_{x,\bar{F}}\{t/r_{t,\bar{F}}(x)\}=\nu_{t,\bar{F}}, which equalises across these prompts the marginal gain in growth rate from a larger labelling probability (§ 3.1). At t=1/EP[h(X)]t=1/\mathbb{E}_{P}[h(X)] the design is rt,Fˉ(x)=h(x)/EP[h(X)]r_{t,\bar{F}}(x)=h(x)/\mathbb{E}_{P}[h(X)]. Let t⋆t^\star maximise gF^i(rt,F^i,λt)g_{\hat{F}_i}(r_{t,\hat{F}_i},\lambda_t) over 0<t≤1/EP[h(X)]0<t\leq1/\mathbb{E}_{P}[h(X)]. Then r′=rt⋆,F^ir'=r_{t^\star,\hat{F}_i} and λ′=λt⋆\lambda'=\lambda_{t^\star} by Theorem 1.

We compute the design ((7)) by a search over νt,F^i\nu_{t,\hat{F}_i} (Supplementary S1.1). Since F^i\hat{F}_i changes only when a prompt is labelled for the first time, r′r' and λ′\lambda' are recomputed only then. If the mean outcome under F^i\hat{F}_i, θ^i=EP{∫y F^i(dy∣X)}\hat{\theta}_i=\mathbb{E}_{P}\{\int y\,\hat{F}_i(dy\mid X)\}, is at most δ\delta, then GF^i(r)=0G_{\hat{F}_i}(r)=0 for every eligible design rr, and we set r′(x)=1{u(x)>ℓ(x)}/πr'(x)=1\{u(x)>\ell(x)\}/\pi for every xx and λ′=0\lambda'=0.

If the judge’s probabilities make r′(x)r'(x) small for a candidate whose Y(x)Y(x) differs from the judge’s prediction, xx may be labelled too rarely for this error to be corrected. We therefore mix r′r' with uniform sampling of the candidates, as in Zrnic and Candès [44] and Hsu and Shekhar [17], and draw XiX_i from ri(x)=(1−ϵi)r′(x)+ϵi1{u(x)>ℓ(x)}/πr_i(x)=(1-\epsilon_i)r'(x)+\epsilon_i1\{u(x)>\ell(x)\}/\pi with weight ϵi=i−1/2/4\epsilon_i=i^{-1/2}/4. We start from the base bet

λ^i=(1−ϵi)λ′1+ϵiλ′(μ−δ),(8)\hat{\lambda}_i=\frac{(1-\epsilon_i)\lambda'}{1+\epsilon_i\lambda'(\mu-\delta)}, \tag*{(8)}

which is safe for rir_i by Lemma S5. Because λ′\lambda' is the best safe bet for GF^i(r′)G_{\hat{F}_i}(r') rather than for G(r′)G(r'), it can be too large, and a bet larger than the best one lowers the growth rate, so a multiple bλ^ib\hat{\lambda}_i with b<1b<1 may grow faster. Every multiple with b∈[0,1]b\in[0,1] is safe, because the safe bets form an interval that contains 0. We therefore average the wealth over b∈[0,1]b\in[0,1], as in the universal portfolio of Cover [10],

Wn=∫01∏i≤n{1+bλ^i(Zi−δ)} db.W_n=\int_0^1\prod_{i\le n}\{1+b\hat{\lambda}_i(Z_i-\delta)\}\,db.

For every b∈[0,1]b\in[0,1], log⁡Wn≥log⁡∏i≤n{1+bλ^i(Zi−δ)}−log⁡(n+1)−1\log W_n\ge\log\prod_{i\le n}\{1+b\hat{\lambda}_i(Z_i-\delta)\}-\log(n+1)-1 (Lemma S7), so WnW_n grows nearly as fast as the wealth of the best bb chosen after seeing the data. This average equals the wealth (2) of the single predictable safe bet λi=bˉiλ^i\lambda_i=\bar{b}_i\hat{\lambda}_i, where bˉi\bar{b}_i is the mean of bb under weights proportional to ∏j<i{1+bλ^j(Zj−δ)}\prod_{j<i}\{1+b\hat{\lambda}_j(Z_j-\delta)\}. The test rejects at Tα=inf⁡{n:Wn≥1/α}T_\alpha=\inf\{n:W_n\ge1/\alpha\} (Algorithm S1 in Supplementary S1.1).

Remark 1 (Refitting the judge’s probabilities). The test needs more labels when the judge’s probabilities are biased or overconfident. We can refit them to the labels collected so far, for example by the refitting model of Supplementary S1.2, which changes the predictions m(x)m(x), the mean prediction μ\mu and the design. Each refit at step ii uses only Fi−1\mathcal{F}_{i-1}, and the designs and bets computed from the refitted probabilities are eligible and safe, so Proposition 1(a) applies with refitting.

Three-way decision

With −δ-\delta in place of δ\delta, the test of § 2.2 and § 2.3 tests H0(4):θ≤−δH_0^{(4)}:\theta\le-\delta. With −Y-Y, −u(x)-u(x), −ℓ(x)-\ell(x) and −m(x)-m(x) in place of YY, ℓ(x)\ell(x), u(x)u(x) and m(x)m(x), it tests H0(2):−θ≤δH_0^{(2)}:-\theta\le\delta, and H0(3):−θ≤−δH_0^{(3)}:-\theta\le-\delta if δ\delta is also replaced by −δ-\delta.

We let the four tests share the draws. Write Wn(k)W_n^{(k)} for the wealth of the test of H0(k)H_0^{(k)} after nn draws, k=1,…,4k=1,\ldots,4, and add to Fn\mathcal{F}_n the randomisation used to choose the designs and the bets of the first nn steps. We use one design r′r' at each step, chosen for the decision that θ^i\hat{\theta}_i indicates. If θ^i>δ\hat{\theta}_i>\delta, r′r' is the design of the test of H0(1)H_0^{(1)}. If θ^i<−δ\hat{\theta}_i<-\delta, it is that of the test of H0(2)H_0^{(2)}. While ∣θ^i∣≤δ|\hat{\theta}_i|\le\delta, both H0(3)H_0^{(3)} and H0(4)H_0^{(4)} must be rejected, so r′r' must serve both tests, although they bet in opposite directions. Write Gk,F^i(r)G_{k,\hat{F}_i}(r) for the growth rate (5) of the test of H0(k)H_0^{(k)}, computed under F^i\hat{F}_i. For w∈[0,1]w \in[0,1], Lemma S14 in Supplementary S3.5 gives the form of the designs that maximise wG3,F^i(r)+(1−w)G4,F^i(r)wG_{3,\hat{F}_i}(r) + (1-w)G_{4,\hat{F}_i}(r). Let w∗w^* minimise max⁡r{wG3,F^i(r)+(1−w)G4,F^i(r)}\max_r\{wG_{3,\hat{F}_i}(r) + (1-w)G_{4,\hat{F}_i}(r)\} over w∈[0,1]w \in[0,1], and let Γ^\hat{\Gamma} be this minimum. If some maximiser rr at w∗w^* has min⁡{G3,F^i(r),G4,F^i(r)}=Γ^\min\{G_{3,\hat{F}_i}(r),G_{4,\hat{F}_i}(r)\} = \hat{\Gamma}, as when G3,F^i(r)=G4,F^i(r)G_{3,\hat{F}_i}(r) = G_{4,\hat{F}_i}(r), we take r′=rr' = r. Otherwise we take two maximisers rar_a and rbr_b at w∗w^* and set r′=rar' = r_a with probability ϱ\varrho and r′=rbr' = r_b otherwise, where ϱG3,F^i(ra)+(1−ϱ)G3,F^i(rb)=ϱG4,F^i(ra)+(1−ϱ)G4,F^i(rb)\varrho G_{3,\hat{F}_i}(r_a) + (1-\varrho)G_{3,\hat{F}_i}(r_b) = \varrho G_{4,\hat{F}_i}(r_a) + (1-\varrho)G_{4,\hat{F}_i}(r_b) (Proposition 2). Once exactly one of the tests of H0(3)H_0^{(3)} and H0(4)H_0^{(4)} has rejected, and while ∣θ^i∣≤δ|\hat{\theta}_i| \le\delta, r′r' is the design of the other.

We draw prompts from (1−εi)r′(x)+εi1{u(x)>ℓ(x)}/π(1-\varepsilon_i)r'(x) + \varepsilon_i\mathbf{1}\{u(x) > \ell(x)\}/\pi as in § 2.3. Every test that has not rejected bets on ZiZ_i, or on −Zi-Z_i if it tests −Y-Y, with the base bet (8). For the test of H0(k)H_0^{(k)}, λ′\lambda' in (8) attains Gk,F^i(r′)G_{k,\hat{F}_i}(r'), or is 0 if r′r' is not eligible for that test. The design in use is eligible for every test because it is mixed with uniform sampling of the candidates, and every base bet is safe for its test. Hence, for every kk for which H0(k)H_0^{(k)} holds, W(k)W^{(k)} is a nonnegative supermartingale with respect to (Fn)(\mathcal{F}_n), by the argument of § 2.2 applied given Fi−1\mathcal{F}_{i-1} and the randomisation of step ii, also with refitted probabilities.

The test of H0(k)H_0^{(k)} rejects when Wn(k)≥2/αW_n^{(k)} \ge2/\alpha. For any θ\theta, a wrong decision requires the rejection of one of two null hypotheses that hold, so this threshold keeps the probability of a wrong decision at most α\alpha. Labelling stops at the first decision, or earlier with no decision. If every candidate has been labelled before a decision, θ\theta is known and the decision is read off. Algorithm S2 in Supplementary S1.1 summarises the procedure. Supplementary S2 proves all results in the order in which they appear.

Proposition 1. Fix the outcomes Y(x)Y(x) of all prompts, so that the only randomness is in the draws XiX_i and in the choice of designs.

(a) Suppose that the predictions m(x)m(x), the design rir_i and the bet λi\lambda_i used at step ii are

Fi−1\mathcal{F}_{i-1}-measurable, that each design is eligible and that each bet is safe for its design. If H0(1)H_{0}^{(1)} holds, Pr⁡(Wn≥1/α for some n)≤α\Pr(W_n \ge1/\alpha\text{ for some }n) \le\alpha.

(b) Suppose that, for every kk for which H0(k)H_{0}^{(k)} holds, (Wn(k))n≥0(W_n^{(k)})_{n\ge0} is a nonnegative supermartingale with respect to (Fn)n≥0(\mathcal{F}_n)_{n\ge0} with W0(k)=1W_0^{(k)}=1. Then, with probability at least 1−α1-\alpha, no wrong decision is made, however labelling is stopped.

Theoretical analysis

§ 3.1 derives the design that maximises the growth rate. § 3.2 shows that the largest growth rate determines how many draws a test that bets on ZiZ_i needs, and that our test needs, to first order as α→0\alpha\to0, the fewest. § 3.3 extends these results to the three decisions, and § 3.4 compares the optimal design with Neyman allocation.

Optimal design

Write e=Y−m(X)e=Y-m(X) for the residual of a drawn prompt, Δ=μ−δ\Delta=\mu-\delta, which we call the gap, and t=λ/(1+λΔ)t=\lambda/(1+\lambda\Delta) for the normalised bet of § 2.3. Since Z−δ=Δ+e/r(X)Z-\delta=\Delta+e/r(X), we have 1+λ(Z−δ)=(1+λΔ){1+te/r(X)}1+\lambda(Z-\delta)=(1+\lambda\Delta)\{1+te/r(X)\} and 1+λΔ=(1−tΔ)−11+\lambda\Delta=(1-t\Delta)^{-1}, so, for distributions Fˉ\bar{F} as in § 2.3,

gFˉ(r,λ)=−log⁡(1−tΔ)−CFˉ(r,t),CFˉ(r,t)=EP[r(X)cX,Fˉ(t/r(X))].(9)g_{\bar{F}}(r,\lambda)=-\log(1-t\Delta)-C_{\bar{F}}(r,t),\qquad C_{\bar{F}}(r,t)=\mathbb{E}_{P}\left[r(X)c_{X,\bar{F}}\left(t/r(X)\right)\right]. \tag*{(9)}

where cx,Fˉ(s)=−EFˉ[log⁡(1+se)∣X=x]c_{x,\bar{F}}(s)=-\mathbb{E}_{\bar{F}}[\log(1+se)\mid X=x], and the term of a prompt with r(x)=0r(x)=0 is again taken to be zero. The design enters only through CFˉ(r,t)C_{\bar{F}}(r,t), which we call the cost of the design rr at the bet tt. The cost is the expected loss in the logarithm of the wealth due to the residuals. Write CFˉ(t)=CFˉ(rt,Fˉ,t)C_{\bar{F}}(t)=C_{\bar{F}}(r_{t,\bar{F}},t) for 0<t≤1/EP[h(X)]0<t\le1/\mathbb{E}_{P}[h(X)], σFˉ(x)2=EFˉ[e2∣X=x]\sigma_{\bar{F}}(x)^2=\mathbb{E}_{\bar{F}}[e^2\mid X=x] and θFˉ=EP{EFˉ[Y∣X]}\theta_{\bar{F}}=\mathbb{E}_{P}\{\mathbb{E}_{\bar{F}}[Y\mid X]\}.

Theorem 1 (Optimal design). Suppose that EP[h(X)]>0\mathbb{E}_{P}[h(X)]>0 and P{σFˉ(X)>0}>0P\{\sigma_{\bar{F}}(X)>0\}>0.

(a) For 0<t<1/EP[h(X)]0 < t < 1/\mathbb{E}_{P}[h(X)], the design rt,Fˉr_{t,\bar{F}} is the unique minimiser of the cost CFˉ(r,t)C_{\bar{F}}(r,t) over eligible designs satisfying (6).

(b) If θFˉ>δ\theta_{\bar{F}} > \delta, then rt⋆,Fˉr_{t^\star,\bar{F}} maximises GFˉ(r)G_{\bar{F}}(r) over eligible designs, where t⋆t^\star maximises −log⁡(1−tΔ)−CFˉ(t)-\log(1-t\Delta)-C_{\bar{F}}(t) over 0<t≤1/EP[h(X)]0 < t \le1/\mathbb{E}_{P}[h(X)].

In Theorem 1(a), the design minimises the cost CFˉ(r,t)C_{\bar{F}}(r,t) subject to EP[r(X)]=1\mathbb{E}_{P}[r(X)] = 1 and the floors r(x)≥th(x)r(x) \ge t h(x). Prompt xx contributes r(x)cx,Fˉ{t/r(x)}r(x)c_{x,\bar{F}}\{t/r(x)\} to the cost, through the effective bet s=t/r(x)s=t/r(x) on its residual. Since Ψx,Fˉ(s)=scx,Fˉ′(s)−cx,Fˉ(s)\Psi_{x,\bar{F}}(s)=s c'_{x,\bar{F}}(s)-c_{x,\bar{F}}(s), this contribution has derivative −Ψx,Fˉ{t/r(x)}-\Psi_{x,\bar{F}}\{t/r(x)\} with respect to r(x)r(x), and since Ψx,Fˉ\Psi_{x,\bar{F}} increases from Ψx,Fˉ(0)=0\Psi_{x,\bar{F}}(0)=0 (Lemma S1), it decreases in r(x)r(x) and is convex, that is, labelling a prompt more often lowers its contribution, by less and less. The minimiser therefore has Ψx,Fˉ{t/r(x)}=νt,Fˉ\Psi_{x,\bar{F}}\{t/r(x)\}=\nu_{t,\bar{F}}, the same value, for every prompt above its floor, which gives r(x)=t/Ψx,Fˉ−1(νt,Fˉ)r(x)=t/\Psi^{-1}_{x,\bar{F}}(\nu_{t,\bar{F}}) in (7). With Fˉ(⋅∣x)\bar{F}(\cdot\mid x) the point mass at Y(x)Y(x), (b) gives an optimal design.

Lower bound and achievability

We now give a lower bound on the expected number of draws of any test that bets on ZiZ_i in (1), and show that our test attains it. A test chooses the design rir_i from Fi−1\mathcal{F}_{i-1} and draws XiX_i from it, and the labels it sees form a process (Xi,Yi)i≥1(X_i,Y_i)_{i\ge1}. For the pool of § 2.1, Yi=Y(Xi)Y_i=Y(X_i), and we write QQ for the distribution of this process, under which, given Fi−1\mathcal{F}_{i-1} and rir_i, XiX_i has the distribution QriQ_{r_i} of § 2.2. Let N\mathcal{N} be the set of processes under which, for every ii, E[Zi∣Fi−1,ri]≤δ\mathbb{E}[Z_i\mid\mathcal{F}_{i-1},r_i]\le\delta and Zi≥μ−H(ri)Z_i\ge\mu-H(r_i), the smallest possible value of ZiZ_i (§ 2.2). It contains the processes with Yi=Y(Xi)Y_i=Y(X_i) in which the designs are eligible and H0(1)H^{(1)}_0 holds. When the labels come from a process in N\mathcal{N}, the wealth of a test that bets on ZiZ_i with predictable designs and safe bets is a nonnegative supermartingale, so the test rejects with probability at most α\alpha. Write TαT_\alpha for the number of draws after which a test at level α\alpha stops.

Theorem 2 (Lower bound and achievability). Suppose that θ>δ\theta> \delta. In (b) and (c), suppose in addition that EP[h(X)]>0\mathbb{E}_{P}[h(X)] > 0 and that the judge’s probabilities are not refitted (Remark 1).

(a) Consider a sequential test that draws prompts with replacement, chooses eligible designs predictably and has type I error at most α\alpha under every process in N\mathcal{N}. If it rejects H0(1)H_{0}^{(1)} with probability at least 1−ϖ1-\varpi under QQ, for some ϖ∈[0,1)\varpi\in[0,1), then

EQ[Tα]≥(1−ϖ)log⁡(1/α)−log⁡2G⋆.\mathbb{E}_{Q}[T_{\alpha}] \ge\frac{(1-\varpi)\log(1/\alpha)-\log2}{G^{\star}}.

If the test draws from the same design rr at every step, the bound holds with G(r)G(r) in place of G⋆G^{\star}.

(b) For a fixed eligible design rr with G(r)>0G(r)>0 and the largest safe bet as the base bet,

EQ[Tα]≤log⁡(1/α)/G(r)+O({log⁡(1/α)log⁡log⁡(1/α)}1/2)as α→0.\mathbb{E}_{Q}[T_{\alpha}] \le\log(1/\alpha)/G(r)+O\left(\{\log(1/\alpha)\log\log(1/\alpha)\}^{1/2}\right)\quad\text{as }\alpha\to0.

(c) For our test of § 2.3, EQ[Tα]<∞\mathbb{E}_{Q}[T_{\alpha}]<\infty for every α\alpha and

lim⁡α→0EQ[Tα]log⁡(1/α)=1G⋆,lim sup⁡α→0Tαlog⁡(1/α)≤1G⋆almost surely.\lim_{\alpha\to0}\frac{\mathbb{E}_{Q}[T_{\alpha}]}{\log(1/\alpha)}=\frac{1}{G^{\star}},\qquad\limsup_{\alpha\to0}\frac{T_{\alpha}}{\log(1/\alpha)}\le\frac{1}{G^{\star}}\quad\text{almost surely.}

By Theorem 2(a), a test that is valid under every process in N\mathcal{N} and has power close to one needs at least about log⁡(1/α)/G⋆\log(1/\alpha)/G^{\star} draws. The bound comes from the least favourable process in N\mathcal{N}, which need not be a pool with fixed outcomes. For each design, G(r)G(r) is the information per draw against this process ([16, 1]).

The proof follows the change-of-measure arguments of Chernoff [9], Kaufmann et al. [19] and Garivier and Kaufmann [14]. Shekhar [33] proves a bound of this form for tests of a composite null hypothesis from independent observations whose distribution does not depend on a design, Naghshvar and Javidi [24] give such bounds for sequential tests that choose which experiment to perform, and Ham et al. [15] for a test of a proportion with scores from an AI system and human labels.

By part (a), the limit 1/G⋆1/G^{\star} in (c) is the smallest that a test whose power tends to one can attain, so our test is asymptotically optimal among tests that bet on ZiZ_i. Part (c) also holds when the design and the bet are computed only approximately and for other weights εi\varepsilon_i (Theorem S2 in Supplementary S3.1). The test in (b) has EQ[Tα]<∞\mathbb{E}_Q[T_\alpha] < \infty, so it rejects with probability one, and part (a) with G(r)G(r) in place of G⋆G^{\star} and part (b) give EQ[Tα]/log⁡(1/α)→1/G(r)\mathbb{E}_Q[T_\alpha]/\log(1/\alpha) \to1/G(r). A design rr therefore needs about G⋆/G(r)G^{\star}/G(r) times as many draws as an optimal design.

Theorem 2 counts draws, but only labels are paid for. In SOLD a prompt that is drawn again needs no new label, so the number of labels is at most the number of draws, and the upper bounds of Theorem 2(b) and (c) also bound the expected number of labels. Proposition S2 in Supplementary S3.4 shows that, if every prompt is a candidate and ri(x)≤rmax⁡r_i(x) \le r_{\max} for a constant rmax⁡r_{\max}, the expected number of labels is at least the lower bound of Theorem 2(a) minus a term that is small when the pool is large compared with the number of draws needed.

Optimality for the three decisions

We now extend the results of § 3.2 to the three decisions of § 2.4. For k=1,…,4k = 1, \ldots, 4, let hkh_k be the downside of the test of H0(k)H_0^{(k)} and Gk(r)G_k(r) its growth rate G(r)G(r), which uses YY or −Y-Y and δ\delta or −δ-\delta as in § 2.4, so that G1=GG_1 = G and Gk(r)=0G_k(r) = 0 if r(x)=0r(x) = 0 for some prompt xx with hk(x)>0h_k(x) > 0. When θ≠±δ\theta\ne\pm\delta, let DD be the correct decision, and let K(D)K(D) be the set of tests that must all reject for DD to be declared, which is {1}\{1\} if DD is improved, {2}\{2\} if DD is worsened and {3,4}\{3,4\} if DD is negligible. The analogue of G⋆G^{\star} for the decision DD is ΓD\Gamma_D, defined, for weights w=(wk)k∈K(D)w = (w_k)_{k \in K(D)} that are nonnegative and sum to one, by

VD(w)=sup⁡r∑k∈K(D)wkGk(r),ΓD=min⁡wVD(w),V_D(w) = \sup_r \sum_{k \in K(D)} w_k G_k(r), \qquad\Gamma_D = \min_w V_D(w),

the supremum being over designs. If DD is improved, ΓD=G⋆\Gamma_D = G^{\star}, and if DD is worsened, ΓD=sup⁡rG2(r)\Gamma_D = \sup_r G_2(r). If DD is negligible, ΓD≥sup⁡rmin⁡{G3(r),G4(r)}\Gamma_D \ge\sup_r \min\{G_3(r), G_4(r)\}, and ΓD\Gamma_D can be larger because GkG_k need not be concave in the design. A procedure can then do better by choosing its design at random. Hsu and Shekhar [17] face the same choice for the two tests at the end points of a confidence sequence and maximise the smaller of the two growth rates over single designs. In the two-prompt example of Supplementary S3.6, a random choice of design needs, to first order as α→0\alpha\to0, about 0.83 times as many draws as the best single design. Write Nk\mathcal{N}_k for the set N\mathcal{N} of § 3.2 for the test of H0(k)H_0^{(k)}.

Proposition 2 (Randomised designs). Suppose that DD is negligible and that EP[hk(X)]>0\mathbb{E}_{P}[h_k(X)] > 0 for k=3,4k = 3, 4. If w⋆w^\star attains ΓD\Gamma_D, there are designs rar_a and rbr_b, possibly equal, that maximise w3⋆G3(r)+w4⋆G4(r)w_3^\star G_3(r) + w_4^\star G_4(r), and a probability ϱ\varrho, such that choosing the design rar_a with probability ϱ\varrho and rbr_b otherwise gives each of the two tests the expected growth rate ϱGk(ra)+(1−ϱ)Gk(rb)≥ΓD\varrho G_k(r_a) + (1-\varrho)G_k(r_b) \ge\Gamma_D. No random choice of designs gives both tests an expected growth rate larger than ΓD\Gamma_D.

Theorem 3 (Lower bound and achievability for the decisions). Suppose that θ≠±δ\theta\ne\pm\delta. In (b), suppose in addition that EP[hk(X)]>0\mathbb{E}_{P}[h_k(X)] > 0 for k=1,…,4k = 1,\ldots,4 and that the judge’s probabilities are not refitted.

(a) Consider a sequential procedure that draws prompts with replacement and chooses predictably, possibly with independent randomisation, designs that are eligible for every test in K(D)K(D). Suppose that, for every k∈K(D)k \in K(D), it declares DD with probability at most α\alpha under every process in Nk\mathcal{N}_k, and that it declares DD with probability at least 1−ϖ1-\varpi under QQ. Then

EQ[Tα]≥(1−ϖ)log⁡(1/α)−log⁡2ΓD.\mathbb{E}_{Q}[T_\alpha] \ge\frac{(1-\varpi)\log(1/\alpha)-\log2}{\Gamma_D}.

(b) For SOLD without the read-off of § 2.4 and with r′r^\prime and λ′\lambda^\prime computed exactly under F^i\widehat{F}_i, EQ[Tα]<∞\mathbb{E}_{Q}[T_\alpha] < \infty for every α\alpha and

lim⁡α→0EQ[Tα]log⁡(1/α)=1ΓD.\lim_{\alpha\to0} \frac{\mathbb{E}_{Q}[T_\alpha]}{\log(1/\alpha)} = \frac{1}{\Gamma_D}.

Part (a) extends Theorem 2(a) to the three decisions, with ΓD\Gamma_D in place of G⋆G^\star. SOLD in (b) declares DD only when every test in K(D)K(D) has crossed its threshold 2/α2/\alpha. Under every process in Nk\mathcal{N}_k the wealth of the test of H0(k)H_0^{(k)} is a nonnegative supermartingale, so by Ville’s inequality it crosses 2/α2/\alpha with probability at most α/2\alpha/2, and SOLD satisfies the conditions of part (a). The two parts show that, for each of the three decisions, SOLD needs to first order the smallest expected number of draws among procedures that bet on ZiZ_i and −Zi-Z_i and declare the correct decision with probability tending to one. If no single design attains ΓD\Gamma_D, which can happen only when DD is negligible, SOLD attains it through the random choice between two designs of Proposition 2. Part (b) also holds when r′r' and λ′\lambda' are computed only approximately and for other weights εi\varepsilon_i (Theorem S4 in Supplementary S3.2).

Comparison with Neyman allocation

We now compare the optimal design with Neyman allocation, the design that minimises the variance of the estimate of θ\theta. Several methods for a fixed budget in § 1 choose their designs to make this variance small. With nn draws from a fixed design rr, the estimate n−1∑i=1nZin^{-1}\sum_{i=1}^{n} Z_i has variance Var⁡Qr(Z)/n\operatorname{Var}_{Q_r}(Z)/n. Both designs are computed from the judge’s probabilities, so we compare them when these probabilities are correct, that is, when among the prompts with the same p(x)\mathbf{p}(x) the proportions of Y=1Y=1, −1-1 and 00 are p(x)\mathbf{p}(x). We compute the growth rate and Var⁡Qr(Z)\operatorname{Var}_{Q_r}(Z) under the judge’s distribution Fˉ(⋅∣x)\bar{F}(\cdot\mid x), which puts probabilities p+(x)p_+(x), p−(x)p_-(x) and p0(x)p_0(x) on 11, −1-1 and 00, and write a subscript p\mathbf{p} in place of Fˉ\bar{F}, as in GpG_{\mathbf{p}} and Gp⋆=sup⁡r eligibleGp(r)G^\star_{\mathbf{p}}=\sup_{r\ \mathrm{eligible}}G_{\mathbf{p}}(r). The design of Theorem 1 attains Gp⋆G^\star_{\mathbf{p}} and, like Neyman allocation and the other designs in this subsection, depends on xx only through p(x)\mathbf{p}(x) and [ℓ(x),u(x)][\ell(x),u(x)]. For such a design rr, G(r)=Gp(r)G(r)=G_{\mathbf{p}}(r) (Lemma S3 in Supplementary S2.8.3). Under p\mathbf{p}, μ=θ\mu=\theta, Δ=θ−δ\Delta=\theta-\delta and Var⁡Qr(Z)=EP[σ(X)2/r(X)]\operatorname{Var}_{Q_r}(Z)=\mathbb{E}_{\mathbf{P}}[\sigma(X)^2/r(X)]. If EP[σ(X)]>0\mathbb{E}_{\mathbf{P}}[\sigma(X)]>0, then, by the Cauchy–Schwarz inequality and EP[r(X)]=1\mathbb{E}_{\mathbf{P}}[r(X)]=1, Var⁡Qr(Z)\operatorname{Var}_{Q_r}(Z) is minimised by Neyman allocation rN(x)=σ(x)/EP[σ(X)]r_N(x)=\sigma(x)/\mathbb{E}_{\mathbf{P}}[\sigma(X)] ([25]), with minimum {EP[σ(X)]}2\{\mathbb{E}_{\mathbf{P}}[\sigma(X)]\}^2.

The bet tt is limited in two ways, by the cost in the growth rate (9) and by the safety condition (6), and the designs that maximise the growth rate and minimise Var⁡Qr(Z)\operatorname{Var}_{Q_r}(Z) differ most when the safety condition determines the bet. The cost Cp(r,t)C_p(r,t) is nonnegative by Jensen’s inequality, because EP[e∣X=x]=0\mathbb{E}_P[e\mid X=x]=0, and increases with tt, and for small tt it is approximately 12t2EP[σ(X)2/r(X)]\frac{1}{2}t^2\mathbb{E}_P[\sigma(X)^2/r(X)], which Neyman allocation minimises. If σ(x)\sigma(x) is bounded away from zero on the candidates, the design of Theorem 1(a), which minimises this cost subject to (6), tends to Neyman allocation uniformly over the prompts as t→0t\to0 (Corollary S2 in Supplementary S3.8). The safety condition (6) bounds the bet by min⁡x:h(x)>0r(x)/h(x)\min_{x:h(x)>0}r(x)/h(x). For rNr_N, (6) reads σ(x)/EP[σ(X)]≥th(x)\sigma(x)/\mathbb{E}_P[\sigma(X)]\ge t h(x) for every xx, that is, t≤1/{κNEP[σ(X)]}t\le1/\{\kappa_N\mathbb{E}_P[\sigma(X)]\}, where κN:=max⁡xh(x)/σ(x)\kappa_N:=\max_x h(x)/\sigma(x), with h(x)/σ(x)=∞h(x)/\sigma(x)=\infty if σ(x)=0<h(x)\sigma(x)=0<h(x) and 00 if h(x)=σ(x)=0h(x)=\sigma(x)=0.

Neyman allocation can give low labelling probabilities to the prompts that limit the bet most. Consider two candidates, with ℓ(x)=−1\ell(x)=-1 and h(x)=m(x)+1h(x)=m(x)+1. For the first the judge gives p+(x)=0.99p_+(x)=0.99 and p−(x)=p0(x)=0.005p_-(x)=p_0(x)=0.005, so that σ(x)=0.157\sigma(x)=0.157 and h(x)=1.985h(x)=1.985, and for the second p+(x)=p−(x)=0.4p_+(x)=p_-(x)=0.4, so that σ(x)=0.894\sigma(x)=0.894 and h(x)=1h(x)=1. Neyman allocation labels the first prompt about a sixth as often as the second. A prompt enters the condition (4) for a safe bet through h(x)/rN(x)={h(x)/σ(x)}EP[σ(X)]h(x)/r_N(x)=\{h(x)/\sigma(x)\}\mathbb{E}_P[\sigma(X)], and h(x)/σ(x)h(x)/\sigma(x) is 12.6 for the first prompt and 1.1 for the second. The first prompt thus restricts the bet about eleven times as much as the second, although Y(x)=−1Y(x)=-1 only with probability 0.005. As the judge becomes certain of an outcome other than −1-1, h(x)/σ(x)h(x)/\sigma(x) grows without bound.

Proposition 3 (Safety bound). Let Fˉ\bar{F} be distributions with θFˉ>δ\theta_{\bar{F}}>\delta. For every eligible design rr, H(r)−Δ≥δ−EP[ℓ(X)]>0H(r)-\Delta\ge\delta-\mathbb{E}_P[\ell(X)]>0 and

GFˉ(r)≤θFˉ−δH(r)−Δ.G_{\bar{F}}(r)\le\frac{\theta_{\bar{F}}-\delta}{H(r)-\Delta}.

Proposition 3 shows that a design that labels some prompt rarely relative to its downside has a small growth rate, whatever Fˉ\bar{F}. The bound depends on Fˉ\bar{F} only through θFˉ\theta_{\bar{F}}, and

on the design only through H(r)H(r). If Neyman allocation rNr_{\mathrm{N}}, computed from the judge’s σ(x)\sigma(x), is eligible, then H(rN)=κNEP[σ(X)]H(r_{\mathrm{N}})=\kappa_{\mathrm{N}}\mathbb{E}_{P}[\sigma(X)], so G‾F(rN)≤(θF‾−δ)/{κNEP[σ(X)]−Δ}\overline{G}_{F}(r_{\mathrm{N}})\leq(\theta_{\overline{F}}-\delta)/\{\kappa_{\mathrm{N}}\mathbb{E}_{P}[\sigma(X)]-\Delta\}. If σ(x)/EP[σ(X)]\sigma(x)/\mathbb{E}_{P}[\sigma(X)] tends to zero on prompts whose downside h(x)h(x) stays bounded away from zero, as when the judge becomes confident of an outcome other than −1-1 on some prompts but not on all, then κNEP[σ(X)]→∞\kappa_{\mathrm{N}}\mathbb{E}_{P}[\sigma(X)]\to\infty and G‾F(rN)→0\overline{G}_{F}(r_{\mathrm{N}})\to0 for every F‾\overline{F}, whether or not the judge’s probabilities are correct. A design with r(x)≥th(x)r(x)\geq th(x) for every prompt, such as that of Theorem 1, has H(r)≤1/tH(r)\leq1/t, so Proposition 3 does not force its growth rate to zero however confident the judge is.

To measure how much the safety condition reduces the growth rate, we compare with the growth rate that a variance criterion predicts. When tΔt\Delta and the effective bets t/r(x)t/r(x) are small, gpg_{p} in (9) is to leading order tΔ−12t2Var⁡Qr(Z)t\Delta-\frac{1}{2}t^{2}\operatorname{Var}_{Q_{r}}(Z), which is maximised at t=Δ/Var⁡Qr(Z)t=\Delta/\operatorname{Var}_{Q_{r}}(Z) with value Δ2/{2Var⁡Qr(Z)}\Delta^{2}/\{2\operatorname{Var}_{Q_{r}}(Z)\}. To this order the best design is Neyman allocation, with bet and growth rate

tid=Δ{EP[σ(X)]}2,Gid=Δ22{EP[σ(X)]}2,t_{\mathrm{id}}=\frac{\Delta}{\{\mathbb{E}_{P}[\sigma(X)]\}^{2}}, \qquad G_{\mathrm{id}}=\frac{\Delta^{2}}{2\{\mathbb{E}_{P}[\sigma(X)]\}^{2}},

which we call ideal because they ignore the safety condition, and we express growth rates as fractions of GidG_{\mathrm{id}}. Because GidG_{\mathrm{id}} comes from a second-order expansion, Gp⋆G_{p}^{\star} can exceed it.

Two ratios measure how much safety restricts the bet. The ratio of tidt_{\mathrm{id}} to the largest safe bet for rNr_{\mathrm{N}}, ρN:=tidκNEP[σ(X)]=ΔκN/EP[σ(X)]\rho_{\mathrm{N}}:=t_{\mathrm{id}}\kappa_{\mathrm{N}}\mathbb{E}_{P}[\sigma(X)]=\Delta\kappa_{\mathrm{N}}/\mathbb{E}_{P}[\sigma(X)], measures how much safety restricts Neyman allocation, since tidt_{\mathrm{id}} is safe for rNr_{\mathrm{N}} if and only if ρN≤1\rho_{\mathrm{N}}\leq1. Every design requires t≤1/EP[h(X)]t\leq1/\mathbb{E}_{P}[h(X)], as taking expectations in (6) with EP[r(X)]=1\mathbb{E}_{P}[r(X)]=1 shows, and the corresponding ratio ρ⋆:=tidEP[h(X)]=ΔEP[h(X)]/{EP[σ(X)]}2\rho^{\star}:=t_{\mathrm{id}}\mathbb{E}_{P}[h(X)]=\Delta\mathbb{E}_{P}[h(X)]/\{\mathbb{E}_{P}[\sigma(X)]\}^{2} measures how much safety restricts any design. Since EP[h(X)]=EP[{h(X)/σ(X)}σ(X)]≤κNEP[σ(X)]\mathbb{E}_{P}[h(X)]=\mathbb{E}_{P}[\{h(X)/\sigma(X)\}\sigma(X)]\leq\kappa_{\mathrm{N}}\mathbb{E}_{P}[\sigma(X)], ρ⋆≤ρN\rho^{\star}\leq\rho_{\mathrm{N}}, and since h(x)≤R‾:=sup⁡x{u(x)−ℓ(x)}h(x)\leq\overline{R}:=\sup_{x}\{u(x)-\ell(x)\}, ρ⋆≤ρ‾:=ΔR‾/{EP[σ(X)]}2\rho^{\star}\leq\overline{\rho}:=\Delta\overline{R}/\{\mathbb{E}_{P}[\sigma(X)]\}^{2}.

Theorem 4 bounds the growth rates of Neyman allocation and of the optimal design through these ratios and the functions

φ(z):=sup⁡0≤k<1/z{2k−k21−kz}=2z1−v1+v,v=(1+2z)−1/2,\varphi(z) := \sup_{0 \le k < 1/z} \left\{2k - \frac{k^2}{1-kz}\right\} = \frac{2}{z}\frac{1-v}{1+v}, \qquad v=(1+2z)^{-1/2},
φ⋆(z):=sup⁡0<q<1(1−q)φ((1−q)zq),\varphi^\star(z) := \sup_{0<q<1}(1-q)\varphi\left(\frac{(1-q)z}{q}\right),

with φ(∞)=0\varphi(\infty)=0. Both equal 1 at z=0z=0, decrease, and behave like 2/z2/z as z→∞z\to\infty.

Theorem 4 (Growth rate of Neyman allocation). Suppose that the judge’s probabilities are correct, that EP[σ(X)]>0\mathbb{E}_{P}[\sigma(X)]>0 and that θ>δ\theta>\delta.

(a) For Neyman allocation,

φ(ρN)≤Gp(rN)Gid≤−log⁡(1−2Gid/ρN)Gid=2ρN{1+O(Gid/ρN)}.\varphi(\rho_{\mathrm{N}}) \le\frac{G_{\mathrm{p}}(r_{\mathrm{N}})}{G_{\mathrm{id}}} \le\frac{-\log(1-2G_{\mathrm{id}}/\rho_{\mathrm{N}})}{G_{\mathrm{id}}} = \frac{2}{\rho_{\mathrm{N}}}\{1+O(G_{\mathrm{id}}/\rho_{\mathrm{N}})\}.

(b) For the optimal design,

φ⋆(ρ⋆)≤Gp⋆Gid≤−log⁡(1−2Gid/ρ⋆)Gid=2ρ⋆{1+O(Gid/ρ⋆)},\varphi^\star(\rho^\star) \le\frac{G^\star_{\mathrm{p}}}{G_{\mathrm{id}}} \le\frac{-\log(1-2G_{\mathrm{id}}/\rho^\star)}{G_{\mathrm{id}}} = \frac{2}{\rho^\star}\{1+O(G_{\mathrm{id}}/\rho^\star)\},

and Gp⋆/Gid→1G^\star_{\mathrm{p}}/G_{\mathrm{id}}\to1 when ρˉ→0\bar{\rho}\to0.

A design rr needs about G⋆/G(r)G^\star/G(r) times as many draws as the optimal design (§ 3.2), where G⋆G^\star is the largest growth rate over all designs, including those that use information beyond p(x)p(x). Since G(rN)=Gp(rN)G(r_{\mathrm{N}})=G_{\mathrm{p}}(r_{\mathrm{N}}) and G⋆≥Gp⋆G^\star\ge G^\star_{\mathrm{p}}, dividing the lower bound in (b) by the upper bound in (a) shows that Neyman allocation needs at least

G⋆G(rN)≥Gp⋆Gp(rN)≥φ⋆(ρ⋆)Gid−log⁡(1−2Gid/ρN)=φ⋆(ρ⋆)ρN2{1+O(Gid/ρN)}\frac{G^\star}{G(r_{\mathrm{N}})} \ge\frac{G^\star_{\mathrm{p}}}{G_{\mathrm{p}}(r_{\mathrm{N}})} \ge\frac{\varphi^\star(\rho^\star)G_{\mathrm{id}}}{-\log(1-2G_{\mathrm{id}}/\rho_{\mathrm{N}})} = \frac{\varphi^\star(\rho^\star)\rho_{\mathrm{N}}}{2}\{1+O(G_{\mathrm{id}}/\rho_{\mathrm{N}})\}

times as many draws as the optimal design, to first order as α→0\alpha\to0. If Δ\Delta stays fixed and σ(x)/EP[σ(X)]\sigma(x)/\mathbb{E}_{P}[\sigma(X)] tends to zero on prompts whose downside h(x)h(x) stays bounded away from zero, then ρN→∞\rho_{\mathrm{N}}\to\infty while ρ⋆\rho^\star can stay bounded, and then this lower bound grows linearly in ρN\rho_{\mathrm{N}} and Gp(rN)/Gp⋆→0G_{\mathrm{p}}(r_{\mathrm{N}})/G^\star_{\mathrm{p}}\to0. If ρN→0\rho_{\mathrm{N}}\to0 and ρˉ→0\bar{\rho}\to0, then Gp(rN)/Gp⋆→1G_{\mathrm{p}}(r_{\mathrm{N}})/G^\star_{\mathrm{p}}\to1. For one pool of Supplementary S3.9, as the accuracy of the judge rises from 59.9% to 99.9%, ρN\rho_{\mathrm{N}} rises from 0.60.6 to about 1,3001{,}300 while ρ⋆\rho^\star stays below 55, and Gp⋆/Gp(rN)G^\star_p/G_p(r_N) rises from 11 to about $220 (Table S1).

Neyman allocation fails here because it labels some prompts too rarely. Zrnic and Candès [44] and Hsu and Shekhar [17] mix the design with uniform sampling, which keeps the labelling probability of every candidate away from zero. Mixing Neyman allocation with uniform sampling of the candidates with weight τ∈(0,1)\tau\in(0,1) gives

rτ(x)=(1−τ)rN(x)+τ1{u(x)>ℓ(x)}π,(10)r_\tau(x)=(1-\tau)r_N(x)+\tau\frac{\mathbf{1}\{u(x)>\ell(x)\}}{\pi}, \tag*{(10)}

and τ=1/2\tau=1/2 is the default of Zrnic and Candès [44] for sequential sampling. The mixture labels every candidate with probability at least τ/π\tau/\pi, but this floor does not grow with the downside h(x)h(x), as the safety floor th(x)t h(x) of the optimal design does. Proposition S3 in Supplementary S3.7 studies pools in which the judge is certain of the outcomes of some prompts, so that σ(x)=0\sigma(x)=0 for them. As the gap and the proportion of the other prompts tend to zero, an asymptotically optimal design has a closed form and labels the prompts of which the judge is certain at their safety floors th(x)t h(x), whereas Neyman allocation never labels them and has G(rN)=0G(r_N)=0 when h(x)>0h(x)>0 for some of them, and the mixture with τ=1/2\tau=1/2 can need nearly twice as many draws as the optimal design.

Simulation studies

Data generation and comparison methods

Each simulated pool has N=3,000N=3{,}000 prompts in two groups. The first group consists of 85%85\% of the prompts, all with Y(x)=0Y(x)=0. In the second group, Y(x)=0Y(x)=0 on about 10%10\% of its prompts, and the numbers with Y(x)=1Y(x)=1 and Y(x)=−1Y(x)=-1 among its other prompts are chosen so that θ\theta is exactly 00, 0.070.07, 0.090.09 or 0.110.11. We use δ=0.05\delta=0.05 and α=0.05\alpha=0.05, so the update is negligible at θ=0\theta=0 and improved at the other three values, which exceed δ\delta by 0.02, 0.04 and 0.06. Replacing Y(x)Y(x) by −Y(x)-Y(x) and exchanging p+(x)p_{+}(x) and p−(x)p_{-}(x) turns an improved update into a worsened one, and every method treats the two in the same way, so we do not simulate worsened updates. In setting A the two versions give the same final answer on the first group and different final answers on the second, so the candidates are the prompts of the second group. In setting B the final answers of the two versions differ on every prompt, as when they are free text, so every prompt is a candidate.

For each candidate xx, the judge sees a score drawn from the normal distribution with mean γY(x)\gamma Y(x) and variance 1, and turns it into p+(x)p_{+}(x), p−(x)p_{-}(x) and p0(x)p_{0}(x), the probabilities that Y(x)=1Y(x)=1, −1-1 and 0 given the score, by Bayes’ rule with the proportions of these outcomes among the candidates as the prior. The judge’s probabilities are therefore correct on average over the generation of the pool. A larger γ\gamma separates the scores of the three outcomes more. For a candidate with Y(x)≠0Y(x) \ne0, the score has the sign of Y(x)Y(x) with probability Φ(γ)\Phi(\gamma), where Φ\Phi is the standard normal distribution function, and we call Φ(γ)\Phi(\gamma) the accuracy of the judge. We use γ=1,1.5,2,2.5,3\gamma=1,1.5,2,2.5,3, that is, accuracies of 84.1%, 93.3%, 97.7%, 99.4% and 99.9%.

We compare SOLD with five other designs and one other method. We use the decision rule and the bets of § 2.4 for all five designs, so the four that use the judge differ from SOLD only in the design. They are PPI, uniform sampling with the judge, with ZiZ_i as in (1) [2]; Neyman, Neyman allocation, which is the cost-optimal rule of [3] when only labels have a cost, as in our setting; Mixture, the mixture (10) with τ=1/2\tau=1/2 [44]; SLS, the design of Sawade, Landwehr and Scheffer (2012); and Uniform, uniform sampling without the judge, with 0 in place of m(x)m(x) and μ\mu in (1). The other method, DISCERN [5], reaches the decision in its own way and labels every candidate that it draws. We apply the refitting of Remark 1 also to PPI, Neyman, Mixture and SLS, and run SOLD and these four designs both with and without it. In every method, as in SOLD, we reuse the label of a prompt that is drawn again, so we compare methods by the number of prompts they label.

The two settings, five accuracies and four values of θ\theta give 40 combinations. For each, we generate 100 pools and run every method once on each pool. Because wrong decisions are rare, we also set θ=δ\theta= \delta, the largest θ\theta at which the update is negligible and where a wrong decision is most likely, and generate 500 pools for each setting and accuracy. § 4.2 reports the wrong decisions in these runs, and § 4.3 the numbers of labels in the 40 combinations. § 4.4 repeats the 40 combinations with the judge’s probabilities wrong in eight ways, with N=1,000N = 1{,}000 or 9,000, and with δ=0.03\delta= 0.03 or 0.07 and θ\theta equal to 0, δ+0.02\delta+ 0.02, δ+0.04\delta+ 0.04 or δ+0.06\delta+ 0.06. Supplementary S5.1 gives the details.

Wrong decisions

Every method kept the proportion of wrong decisions below α\alpha. With θ=0\theta= 0, 0.07, 0.09 and 0.11, no method made a wrong decision in any run. With θ=δ\theta= \delta, every method made a wrong decision in at most 4 of the 500 runs for each setting and accuracy (Table S6). Over the 5,000 runs of each method, SOLD made 1 wrong decision, SOLD with refitting 8, and the other methods at most 13. Wrong decisions were this rare because, with θ=δ\theta= \delta, most runs labelled every candidate before reaching a decision, and the decision was then read off from θ\theta.

Number of labels

Without refitting and averaged over the 40 combinations of setting, accuracy and θ\theta, PPI needed 1.16 times the labels of SOLD, Neyman 6.49 times, Mixture 1.64 times, SLS 1.35 times, Uniform 2.45 times and DISCERN 2.88 times (Figure 1, Table S4). SOLD needed at most 1.09 times the fewest labels in every combination, whereas each of the other methods needed more than 1.5 times the fewest in some combination, from 1.55 times for PPI to 17.15 times for Neyman. When the judge’s probabilities are correct, refitting changed the total labels of each design by at most 4% in setting A and 10% in setting B (Table S5).

Figure 1. Mean labels per decision against the accuracy of the judge, for each setting and θ\theta. PPI, Neyman, Mixture and SLS are shown without refitting. The standard errors of the means are at most 5.5% of the means.

The advantage of SOLD grew with the accuracy of the judge. Averaged over the eight combinations of setting and θ\theta, PPI needed 1.04 times the labels of SOLD with the 84.1% accurate judge and 1.29 times with the 99.9% accurate one, and the other five methods needed between 1.13 and 2.24 times with the 84.1% accurate judge and between 1.69 and 11.56 times with the 99.9% accurate one. In setting A SOLD needed between 23 and 159 labels per decision, and in setting B, where every prompt is a candidate, between 128 and 1,535, and for every θ\theta and in both settings it needed fewer labels as the judge became more accurate. SOLD saved the most labels in the hardest case, θ=0.07\theta= 0.07 in setting B. There it needed 1,535 labels with the 84.1% accurate judge and 518 with the 99.9% accurate one, and with the 99.9% accurate judge PPI, Neyman, Mixture and SLS needed between 1.43 and 5.29 times its labels, Uniform 3.60 times and DISCERN 4.18 times. Neyman instead needed more labels as the accuracy of the judge rose from 93.3% to 99.9%, from 1,426 to 2,743 in this case, as the Theorem 4 predicts.

Robustness

Refitting matters when the judge’s probabilities are wrong. We kept the pools, the outcomes and the scores of § 4.1, and hence the accuracy of the judge, and made the judge turn the scores into probabilities wrongly in eight ways. In four of them it applies Bayes’ rule as if the scores had mean cγY(x)c\gamma Y(x) instead of γY(x)\gamma Y(x), with c=2c=2 or 44, which makes the probabilities overconfident, or c=1/2c=1/2 or 1/41/4, which makes them underconfident. For the 97.7% accurate judge, for example, γ=2\gamma=2, and with c=4c=4 it applies Bayes’ rule as if the scores had mean 8Y(x)8Y(x). In two others it treats every score as γ/2\gamma/2 higher or lower than it is, half the distance between the mean scores of adjacent outcomes, which makes the probabilities favour the new version, with Y(x)=1Y(x)=1, or the old one, with Y(x)=−1Y(x)=-1. In the last two it gives 1% or 5% of the prompts with Y(x)≠0Y(x)\ne0, chosen at random, probability 0.99 of −Y(x)-Y(x) and 0.005 of each of the other two outcomes. We ran each of the eight errors for the 40 combinations of setting, accuracy and θ\theta. Figure 2 gives the labels with θ=0.09\theta=0.09, and Supplementary Figures S2, S3 and S4 give them with θ=0\theta=0, 0.07 and 0.11. In these figures, PPI, Neyman, Mixture and SLS refit the judge’s probabilities.

Figure 2. Mean labels per decision against the accuracy of the judge when the judge’s probabilities are wrong, for each error and setting, with θ=0.09\theta= 0.09.

Compared with the six other methods in Figure 2, SOLD with refitting needed the fewest labels in 189 of the 320 combinations of error, setting, accuracy and θ\theta, and was within 5% of the fewest in 254. With θ=0.09\theta=0.09 and the 99.9% accurate judge, SOLD with or without refitting needed the fewest labels of the methods in Figure 2 for 12 of the 16 combinations of error and setting. Refitting matters most when the judge’s probabilities are overconfident or favour one version. Summed over the five accuracies and the four values of θ\theta (Tables S8 and S9), SOLD without refitting needed 1.95 times the labels of SOLD with refitting in both settings with c=4c = 4, and 2.36 times in setting B when they favoured the old version. When the probabilities were underconfident or confidently wrong on a few prompts, these totals for SOLD with and without refitting were within 10% of each other. The largest gap in these totals between SOLD with refitting and another method was in setting B with 5% of the prompts confidently wrong, where SLS without refitting needed 12% fewer labels. Only 11 of the 384,000 runs made a wrong decision, none of them by SOLD with refitting. SOLD stayed within 5% of the fewest labels in 155 of the 160 combinations of setting,

accuracy and θ\theta when we changed the pool size or the tolerance, and needed the fewest in 142 (Table S7). Its advantage grew with the size of the pool. With θ=δ+0.02\theta= \delta+ 0.02 in setting B and a 99.9% accurate judge, PPI, Neyman, Mixture and SLS needed between 1.13 and 2.28 times the labels of SOLD for N=1,000N = 1{,}000, and between 1.43 and 12.55 times for N=9,000N = 9{,}000. Only 2 of the 192,000 runs made a wrong decision, none of them by SOLD.

Real data analysis

We replayed the methods on updates in two collections of questions, EVOUNA and MMLU-Pro, in which the outcome of every question is known and is revealed only when a method labels the question. We compare the methods of § 4. We ran each method 100 times for each question set, update and value of δ\delta, which we call a case. The only randomness is the choice of questions.

EVOUNA

We applied SOLD to updates of question-answering systems in EVOUNA (Wang et al., [36]). Each question in EVOUNA comes with reference answers and with the answers of five systems, and human annotators marked the answer of each system as correct or incorrect. The questions come from Natural Questions (NQ) (Kwiatkowski et al., [21]) and TriviaQA (TQ) (Joshi et al., [18]), and we use 3,019 from NQ and 1,938 from TQ as two question sets (Supplementary S6.1). We take four pairs of these systems as updates, the retrieval-based system DPR+FiD to GPT-3.5 (E1), GPT-3.5 to ChatGPT (E2), ChatGPT to GPT-4 (E3) and GPT-4 to Bing Chat (E4).

For an update, a question xx to which the two versions give identical answers has Y(x)=0Y(x) = 0 and is not a candidate, which happens for at most 10% of the questions of a question set (Supplementary S6.1). For every other question, Y(x)Y(x) is 1 if only the answer of the new version is marked correct, −1-1 if only that of the old version is, and 0 otherwise, and the question is a candidate with ℓ(x)=−1\ell(x)=-1 and u(x)=1u(x)=1. The mean θg\theta_g of Y(x)Y(x) over question set gg is then the gain in accuracy. We evaluate each update on each of the two question sets separately, and for each question set we declare the update improved, worsened or negligible as in § 2.4, with δ=0.05\delta=0.05 or 0.10 and α=0.05\alpha=0.05. At δ=0.05\delta=0.05 the correct decision is improved for E2 and E3 and negligible for E1 and E4, for both question sets, and at δ=0.10\delta=0.10 it is negligible for all four updates (Supplementary S6.1 gives θg\theta_g).

The judge combines two language models, Llama-3.1-8B-Instruct and DeepSeek-V4.1 Flash, which we call J1 and J2. J1 and J2 read a question with its reference answers and one answer, and return the probability cv(x)c_v(x) that the answer of version vv is correct (Supplementary S6.1). We treat the correctness of the two answers as independent under the judge’s predictive distribution, so that for a candidate xx, p+(x)=cnew(x){1−cold(x)}p_{+}(x)=c_{\mathrm{new}}(x)\left\{1-c_{\mathrm{old}}(x)\right\} and p−(x)={1−cnew(x)}cold(x)p_{-}(x)=\left\{1-c_{\mathrm{new}}(x)\right\}c_{\mathrm{old}}(x) and m(x)=cnew(x)−cold(x)m(x)=c_{\mathrm{new}}(x)-c_{\mathrm{old}}(x). Of the probabilities returned by J2, 44% are exactly 0 or 1, which gives probability zero to an outcome that can occur and leaves the refitting of Supplementary S1.2 undefined, so we clip all probabilities to [10−6,1−10−6][10^{-6},1-10^{-6}], and the cv(x)c_v(x) of the judge is the average of the clipped probabilities of J1 and J2 on the logit scale. When an answer is called correct if cv(x)>1/2c_v(x)>1/2, the judge agreed with the annotators on 95.1% of the 24,785 answers, J1 alone on 90.8% and J2 alone on 94.9%, and the area under the ROC curve of the judge was between 0.97 and 0.99 for every update (Table S12). Supplementary S6.2 gives the results with J1 or J2 alone as the judge.

SOLD, with or without refitting, needed the fewest labels in 12 of the 16 cases, 10 without refitting and 2 with it, and was within 5% of the fewest in 13 (Table S13). Among the methods without refitting, SOLD needed at most 1.08 times the fewest labels in every case, whereas the largest such ratio of the other methods ranged from 1.74 for PPI to 5.69 for Neyman. Averaged over the 16 cases, PPI, Neyman, Mixture and SLS needed between 1.28 and 2.75 times the labels of SOLD, Uniform 2.39 times and DISCERN 2.59 times. Neyman and SLS give labelling probabilities close to zero to the questions for which the judge is nearly certain that Y(x)=0Y(x)=0, which limits their growth rates whether or not the judge is right (Proposition 3). With refitting, SOLD needed on average 1.06 times the labels of SOLD without it, and PPI, Neyman, Mixture and SLS between 1.30 and 1.85 times. Averaged over the 12 cases whose correct decision is negligible, the other methods needed between 1.31 and 3.20 times the labels of SOLD, and over the 4 improved cases between 1.02 and 1.73 times (Supplementary S6.2). The largest ratio is smaller in the improved cases, where θg\theta_g exceeds δ\delta by 0.008 to 0.024, so that labelling every candidate, the most that any method can need, takes on average only 1.94 times the labels of SOLD. No method made a wrong decision in any of the 19,200 runs. With J1 or J2 alone as the judge, the other methods needed on average between 1.17 and 2.76 times the labels of SOLD.

MMLU-Pro

MMLU-Pro [38] has 12,032 multiple-choice questions with a keyed answer each, and its authors released the answers of many language models to every question.

We take four updates, Llama-2 from 7B to 13B (M1), Llama-3 to Llama-3.1 at 8B (M2) and at 70B (M3), and Mistral-7B v0.1 to v0.2 (M4), each on the 9,797 to 11,302 questions on which the released files agree (Supplementary S6.3). The candidates are the questions on which the two versions choose different options, and Y(x)Y(x) is defined as in § 5.1 with the key in place of the annotators, as if an expert checked each answer. We use α=0.05\alpha= 0.05 and δ=0.02\delta= 0.02 or 0.10. With δ=0.02\delta= 0.02 the correct decision is improved for every update, and with δ=0.10\delta= 0.10 it is negligible (Supplementary S6.3 gives θ\theta).

The judge is Claude Opus 5.5, which sees neither the key nor the answers of the two versions and gives for every option oo the probability q(o)q(o) that it is the key. For a candidate on which the new and the old version choose onewo_{\mathrm{new}} and ooldo_{\mathrm{old}}, p+(x)=q(onew)p_{+}(x) = q(o_{\mathrm{new}}) and p−(x)=q(oold)p_{-}(x) = q(o_{\mathrm{old}}) (Supplementary S6.3). On the questions with Y(x)≠0Y(x) \ne0, m(x)m(x) had the sign of Y(x)Y(x) for 97.5% to 98.6% of them, but the probabilities are conservative, and of the answers to which the judge gave a probability between 0.7 and 0.9, 94.3% were correct.

SOLD with refitting needed the fewest labels in all 8 cases, and SOLD without refitting fewer than every method other than SOLD with refitting (Figure 3, Table S15). Averaged over the cases, PPI needed 1.36 times the labels of SOLD without refitting, Neyman 9.47 times, Mixture 1.82 times, SLS 3.14 times, Uniform 5.41 times and DISCERN 6.65 times, and SOLD with refitting 0.86 times. With refitting, which corrects the conservative probabilities, PPI, Mixture and SLS needed on average 1.47, 2.18 and 3.36 times the labels of SOLD with refitting. Neyman and SLS, which rarely label the questions on which the judge is nearly certain, needed up to 14.3 and 5.3 times the labels of SOLD (Proposition 3). SOLD saved more labels here than on EVOUNA, in line with the simulations, in which its advantage grew with the accuracy of the judge. No method made a wrong decision in any of the 9,600 runs.

Figure 3. Labels per decision on EVOUNA and MMLU-Pro relative to SOLD without refitting. PPI, Neyman, Mixture and SLS are shown without refitting. Each point gives, for one case, the mean labels of the method divided by the mean labels of SOLD without refitting. The bar and the number on the right of each row give the mean of these ratios over the 16 cases of EVOUNA or the 8 cases of MMLU-Pro. The horizontal axes are logarithmic.

Discussion

SOLD extends beyond a single update and a fixed judge. When many updates are evaluated, as in the successive rounds of recursive self-improvement, the multiplicity of the tests must be accounted for. Since the wealths of the tests when labelling stops are e-values, the e-Benjamini–Hochberg procedure [37] controls the false discovery rate among the rejected one-sided hypotheses under arbitrary dependence, and e-LOND (Xu and Ramdas, 2024) does so when the updates arrive one after another. SOLD also allows the judge to change between draws, as when a self-improving system also updates its evaluator (Chen, Zhu, and Zheng, 2026), since Proposition 1 requires only that the predictions m(x)m(x) used at step ii be Fi−1\mathcal{F}_{i-1}-measurable.

The lower bound of Theorem 2(a) changes little if a test needs its type I error to be at most α\alpha only when the prompts are drawn from its own designs, rather than under every process in N\mathcal{N}. When F(⋅∣x)=p(x)F(\cdot\mid x)=p(x) for every xx, the optimal growth rate of such tests exceeded Gp⋆G_p^\star by at most 0.74% in the 48 pools of Supplementary S3.9, and the two are equal to first order as ρˉ→0\bar{\rho}\to0 and in the regime of Proposition S3 (Supplementary S4).

Several directions are left for future work. Theorems 2 and 3 count draws as α→0\alpha\to0, whereas what is paid for is the number of labels at a fixed level α\alpha, and bounds on this number would sharpen them. When the refitted predictions converge, Theorems S3 and S5 give upper bounds relative to their limit, for one test and for the three decisions, and a matching lower bound is a natural next step. Park et al. [26] average the wealths of tests that give different weights to the judge’s predictions. By Proposition 1, each such test is valid under the designs of SOLD, so the two can be combined. If the pool is a sample from a larger population, Theorems 1 and 4 still compare designs whenever the mean prediction over that population is known, and estimating it is a further extension (Supplementary S1.3). In recursive self-improvement, successive updates are often evaluated on the same pool. If the response of each version is labelled separately, the labels of the previous version carry over, so a prompt is cheaper to label in later rounds, which a design could take into account.

References

  1. [1]Agrawal, S., W. M. Koolen, and S. Juneja (2021). Optimal best-arm identification methods for tail-risk measures. In Advances in Neural Information Processing Systems, Volume 34, pp. 25578–25590.arxiv.org/abs/2008.07606
  2. [2]Angelopoulos, A. N., S. Bates, C. Fannjiang, M. I. Jordan, and T. Zrnic (2023). Prediction-powered inference. Science 382(6671), 669–674.arxiv.org/abs/2301.09633
  3. [3]Angelopoulos, A. N., J. Eisenstein, J. Berant, A. Agarwal, and A. Fisch (2025). Cost-optimal active AI model evaluation. arXiv:2506.07949.arxiv.org/abs/2506.07949
  4. [5]Balachandran, V. B. (2026). Pay only for disagreement: Certified no-regression verdicts for model updates with matching label-complexity bounds. arXiv:2609.17560.arxiv.org/abs/2609.17560
  5. [6]Breiman, L. (1961). Optimal gambling systems for favorable games. In Proceedings of the Fourth Berkeley Symposium on Mathematical Statistics and Probability, Volume 1, pp. 65–78. University of California Press.
  6. [7]Chen, M., L. Wang, and B. Qu (2026). Recursive self-improvement in AI: From bounded self-refinement to autonomous research loops. arXiv:2607.07663.arxiv.org/abs/2607.07663
  7. [9]Chernoff, H. (1959). Sequential design of experiments. Annals of Mathematical Statistics 30(3), 755–770.
  8. [10]Cover, T. M. (1991). Universal portfolios. Mathematical Finance 1(1), 1–29.
  9. [11]Csillag, D., C. J. Struchiner, and G. T. Goedert (2025). Prediction-powered e-values. In Proceedings of the 42nd International Conference on Machine Learning, Volume 267 of Proceedings of Machine Learning Research.arxiv.org/abs/2502.04294
  10. [12]Dorner, F. E., V. Y. Nastl, and M. Hardt (2025). Limits to scalable evaluation at the frontier: LLM as judge won’t beat twice the data. In International Conference on Learning Representations.arxiv.org/abs/2410.13341
  11. [13]Gao, H., J. Hu, P. Liu, and W. Zhou (2026). Anytime-valid empirical likelihood inference from LLM annotations with adaptive human auditing. arXiv:2611.15197.arxiv.org/abs/2611.15197
  12. [14]Garivier, A. and E. Kaufmann (2016). Optimal best arm identification with fixed confidence. In Proceedings of the 29th Conference on Learning Theory, Volume 49 of Proceedings of Machine Learning Research, pp. 998–1027.
  13. [15]Ham, D. W., X. Zhao, S. Jasin, and F. Yang (2026). Human-AI-powered hypothesis testing: Cost-aware selective AI scoring and sequential human escalation. arXiv:2609.28509.
  14. [16]Honda, J. and A. Takemura (2010). An asymptotically optimal bandit algorithm for bounded support models. In Proceedings of the 23rd Conference on Learning Theory, pp. 67–79.
  15. [17]Hsu, C.-Y. and S. Shekhar (2026). Efficient sequential evaluation of large language models. arXiv:2607.17409.arxiv.org/abs/2607.17409
  16. [18]Joshi, M., E. Choi, D. Weld, and L. Zettlemoyer (2017). TriviaQA: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1601–1611. Association for Computational Linguistics.arxiv.org/abs/1705.03551
  17. [19]Kaufmann, E., O. Cappé, and A. Garivier (2016). On the complexity of best-arm identification in multi-armed bandit models. Journal of Machine Learning Research 17(1), 1–42.
  18. [20]Kelly, Jr., J. L. (1956). A new interpretation of information rate. Bell System Technical Journal 35(4), 917–926.
  19. [21]Kwiatkowski, T., J. Palomaki, O. Redfield, M. Collins, A. Parikh, C. Alberti, D. Epstein, I. Polosukhin, J. Devlin, K. Lee, K. Toutanova, L. Jones, M. Kelcey, M.-W. Chang, A. M. Dai, J. Uszkoreit, Q. Le, and S. Petrov (2019). Natural Questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics 7, 453–466.DOI
  20. [22]Lin, F., N. Krever, J. Černý, and L. Xu (2026). Not all label errors are equal: Efficient task-aware auditing with confidence sequences. In Advances in Neural Information Processing Systems, Volume 39.arxiv.org/abs/2610.33262
  21. [23]Mondal, J. J., M. Banik, M. S. A. Apurba, and M. M. A. Mahmud (2026). When can old evaluations certify a new model? Label-efficient release decisions under evaluator drift. arXiv:2609.32267.
  22. [24]Naghshvar, M. and T. Javidi (2013). Active sequential hypothesis testing. Annals of Statistics 41(6), 2703–2738.DOI
  23. [25]Neyman, J. (1934). On the two different aspects of the representative method: The method of stratified sampling and the method of purposive selection. Journal of the Royal Statistical Society 97(4), 558–625.
  24. [26]Park, S., M. Zecchin, and O. Simeone (2025). Adaptive prediction-powered AutoEval with reliability and efficiency guarantees. In Advances in Neural Information Processing Systems.
  25. [27]Ramdas, A., P. Grünwald, V. Vovk, and G. Shafer (2023). Game-theoretic statistics and safe anytime-valid inference. Statistical Science 38(4), 576–601.arxiv.org/abs/2210.01948
  26. [28]Sandoval, R. J., I. Waudby-Smith, and M. I. Jordan (2026). Multi-armed sequential hypothesis testing by betting. arXiv:2603.17925.arxiv.org/abs/2603.17925
  27. [29]Sawade, C., N. Landwehr, and T. Scheffer (2012). Active comparison of prediction models. In Advances in Neural Information Processing Systems, Volume 25.
  28. [30]Schuirmann, D. J. (1987). A comparison of the two one-sided tests procedure and the power approach for assessing the equivalence of average bioavailability. Journal of Pharmacokinetics and Biopharmaceutics 15(6), 657–680.pubmed.ncbi.nlm.nih.gov/3450848
  29. [31]Settles, B. (2009). Active learning literature survey. Computer Sciences Technical Report 1648, University of Wisconsin–Madison.
  30. [32]Shafer, G. (2021). Testing by betting: A strategy for statistical and scientific communication. Journal of the Royal Statistical Society, Series A 184(2), 407–431.DOI
  31. [33]Shekhar, S. (2025). Optimal anytime-valid tests for composite nulls. arXiv:2512.20039.arxiv.org/abs/2512.20039
  32. [34]Spertus, J. V., M. Sridhar, and P. B. Stark (2024). Sequential stratified inference for the mean. arXiv:2409.06680.arxiv.org/abs/2409.06680
  33. [35]Ville, J. (1939). Étude critique de la notion de collectif. Paris: Gauthier-Villars.
  34. [36]Wang, C., S. Cheng, Q. Guo, Y. Yue, B. Ding, Z. Xu, Y. Wang, X. Hu, Z. Zhang, and Y. Zhang (2023). Evaluating open-QA evaluation. In Advances in Neural Information Processing Systems (Datasets and Benchmarks Track), Volume 36, pp. 77013–77042.arxiv.org/abs/2305.12421
  35. [37]Wang, R. and A. Ramdas (2022). False discovery rate control with e-values. Journal of the Royal Statistical Society, Series B 84(3), 822–852.arxiv.org/abs/2009.02824
  36. [38]Wang, Y., X. Ma, G. Zhang, Y. Ni, A. Chandra, et al. (2024). MMLU-Pro: A more robust and challenging multi-task language understanding benchmark. In Advances in Neural Information Processing Systems (Datasets and Benchmarks Track).arxiv.org/abs/2406.01574
  37. [39]Waudby-Smith, I. and A. Ramdas (2024). Estimating means of bounded random variables by betting. Journal of the Royal Statistical Society, Series B 86(1), 1–27.
  38. [43]Zhou, Z., Z. Ye, Z. Chen, B. Li, and F. Liu (2026). CELEUS: Certifiable and efficient LLM evaluation via e-processes. arXiv:2606.20820.arxiv.org/abs/2606.20820
  39. [44]Zrnic, T. and E. J. Candès (2024). Active statistical inference. In Proceedings of the 41st International Conference on Machine Learning, Volume 235 of Proceedings of Machine Learning Research, pp. 62993–63010.arxiv.org/abs/2403.03208

Paper details

vlnc:W_mpjpv76g
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents