Reading + AI

Direct Pass@kk Optimization for Thought Pruning: Balancing Quality and Diversity in Test-Time Reasoning

Mahdi Salmani, Adel Javanmard, Devansh Gupta, Meisam Razaviyayn

arXiv:2610.31667v1 · This workspace stays on this version. Check arXiv for newer versions

Affiliations and author notes
  • University of Southern California {salmanis, ajavanma, guptadev, razaviya}@usc.edu
Some source details need review 5 to check

Original formulas, table values and figures are preserved. Comparison can miss differences; use the original PDF to check details.

Reading view checked: 1199 math expressions, 5 rendering failures; 23 of 23 images available.

Compared 350 of 398 source passages against 41 of 48 PDF pages.

  • Some graphics are laid out differently in the HTML source than in the paper (text or formulas outside their frame); check the original PDF. (1)
  • Some formulas could not be rendered; their original TeX is shown. Check the original PDF. (5)
  • S2_SS0_SSS0_Px3_p3_pic1: the arXiv HTML draws text or formulas of this graphic outside its frame and it could not be corrected safely (too-small); the image shows the HTML layout, which differs from the PDF.
  • This long paper was only partially compared; the original sources remain available.
  • An unsupported comparison claim was rejected; source verification is incomplete.

23 of 23 figure, table and graphic images captured. Open original PDF

Abstract

Test-time scaling has emerged as a key inference strategy for reasoning models, where a model generates a large number of candidate solutions in the hope of finding at least one correct solution. Running all candidate solutions to completion can be computationally demanding, so recent work prunes the candidate pool after generating only a short prefix, committing further computation only to the surviving candidates. Existing pruning strategies divide broadly into two categories: Quality-based methods assign a score to each partial solution and discard those predicted to ultimately lead to an incorrect final solution, while diversity-based methods select partial solutions that follow different reasoning trajectories and are therefore likely to cover different final solutions. The tension between these two objectives is an instance of exploration versus exploitation, yet little to no prior work on pruning exposes this trade-off directly, let alone optimizes it. In this paper, we introduce a pruning procedure that addresses this trade-off directly by optimizing pass@k\mathrm{pass}@k over the selected solution pool. In particular, it chooses the pool to maximize the probability that at least one of its partial solutions, when continued to completion, yields a correct answer. Because this objective simultaneously rewards high-quality partial solutions and penalizes redundancy among them, quality and diversity are naturally balanced by the criterion itself rather than through separate ad-hoc design choices. On eight open-weight reasoning models, our method outperforms existing quality-based and diversity-based pruning strategies. The gains are particularly pronounced when the pruning procedure keeps a moderate number of partial solutions for continued generation, highlighting the value of directly balancing quality and diversity during pruning.

Figure 1
Figure 1: Test-time pruning. Only kk of the NN rollouts (ringed) continue past the cutoff TT, up to the budget BB.

Large Language Models (LLMs) have demonstrated remarkable capabilities in complex reasoning, showcasing a strong aptitude for solving complex problems that require multi-step logic [45, 21, 52, 18, 15]. To further enhance these capabilities, test-time scaling has emerged as a prominent strategy, where generating multiple candidate solutions for a single problem allows the model to explore diverse reasoning strategies and achieve substantially better final performance [35, 44, 3, 48]. However, a significant challenge in scaling test-time compute is the prohibitive cost of generating many full solutions, which we refer to as rollouts moving forward [33, 23]. Beyond generation, there is also the cost of evaluating the finished rollouts in best-of-NN methods, which score each rollout with a reward model, and this is computationally demanding on a large pool of long reasoning traces [11, 26, 36]. This computational bottleneck, both in generation and in evaluating all NN rollouts in best-of-NN methods, necessitates test-time pruning of partial rollouts before they reach a final answer and terminate. In other words, we generate all NN rollouts only up to a cutoff of TT tokens, keep the kk most promising of them and run those to the full token budget BB, as illustrated in Fig. 1.

One family of methods examines the confidence dynamics of the model during generation, utilizing metrics such as logit entropy or confidence [30, 50, 17, 43]. The underlying intuition is that if a model is overly confident at an intermediate decoding step, extending the reasoning process is a waste of compute; conversely, if the model is entirely lacking in confidence, it is unlikely to reach a correct solution regardless of the additional compute provided, allowing for early termination. Another line of work leverages the model’s internal state, specifically the hidden states of its transformer blocks, to identify which rollouts are worth continuing [54, 1]. By “probing” these internal states, one can predict whether the model will ultimately arrive at a correct solution, effectively framing the pruning problem as a classification task. This allows for the early discarding of partial rollouts that are unlikely to yield a correct final answer. In parallel, a separate line of research prioritizes representation exploration (RepExp) to select a subset of rollouts that cover as many distinct reasoning strategies as possible [39]. By selecting partial rollouts whose corresponding embeddings are dissimilar, RepExp aims to explore a diverse set of reasoning trajectories.

Figure 2
Figure 2: Conceptual illustration. The same pool of candidate rollouts, positioned by their partial rollout representations in embedding space, under three pruning strategies. Each rollout is colored by its predicted correctness and marked ✓/✗ by its actual outcome; the k=3k=3 kept rollouts are ringed. (a) Pure exploitation keeps the highest-scoring rollouts, but they are correlated and cluster together, so they miss the correct rollout. (b) Pure exploration keeps a maximally diverse subset yet spends its budget on low-quality rollouts, also missing it. (c) Our method optimizes pass@k\mathrm{pass}@k directly over the kept subset, balancing quality and diversity, and retains the correct rollout.

These approaches, however, sit at the two ends of a spectrum, and neither directly optimizes the quantity we actually care about. The problem with probing methods is that the rollouts they rank highest tend to be similar to one another. As a result, the probe may be confidently wrong about all of the kept rollouts at once, and none of them reaches a correct answer. This is the problem of pure exploitation (Fig. 2a). RepExp, on the other hand, finds diverse rollouts, but because it ignores the quality of the rollouts, it can spend much of its budget on rollouts that are unlikely to succeed (Fig. 2b). These limitations motivate selecting the rollouts by the metric we actually want to optimize, choosing the set SS of kk rollouts that maximizes pass@k\mathrm{pass}@k, that is, max⁡∣S∣=kpass@k(S)\max_{|S|=k}\mathrm{pass}@k(S), which we formalize in Eq. 3. Optimizing this objective directly keeps the selected rollouts diverse enough to avoid shared failures while still favoring high-quality ones (Fig. 2c).

To this end, we propose PKTP (Pass@\mathbfit{k} Thought Pruning), a pruning framework that chooses the kept rollouts by maximizing pass@k\mathrm{pass}@k directly. The main difficulty is that, even if the rollouts are sampled independently, their outcomes are not independent (conditioned on the partial observation of the rollout). Hence, pass@k\mathrm{pass}@k depends on their joint distribution (i.e., rollouts with similar partial rollouts tend to succeed or fail together). We model this joint distribution with a latent Gaussian model, in which the correctness of each rollout is obtained by thresholding a Gaussian score. Evaluating pass@k\mathrm{pass}@k under this model requires an expectation over the latent variables, so we instead derive a closed-form second-order approximation of it. We show that this approximation is submodular, enabling us to approximately solve it using a greedy procedure to find a subset of size kk. An important aspect of the proposed framework is that the latent model is trained only once and does not depend on kk, and a single greedy pass yields a nested sequence of subsets, so the budget kk can be chosen online at inference time without retraining.

First, we cast pruning as maximizing the pass@k\mathrm{pass}@k of the kept set, and we model how similar rollouts fail together. Second, we derive a closed-form, submodular approximation of pass@k\mathrm{pass}@k that links the probe and RepExp. Third, through experiments on eight reasoning models, we show that PKTP improves over existing pruning methods, especially for moderate values of kk.

Given a question \mathbfit{q}, we draw NN candidate reasoning rollouts y^{(i)}\sim\pi(\,\cdot\mid\mathbfit{q}\,) from a model π\pi. Each rollout is observed only through its first TT tokens, the prefix y1:T(i)y_{1:T}^{(i)}. We encode this prefix as a representation vector hi=h ⁣(y1:T(i))h_{i}=h\!\left(y_{1:T}^{(i)}\right), a hidden-state embedding of the reasoning up to token T. Pruning then keeps k≤Nk\leq N rollouts, runs them to the full token budget BB, and discards the rest. A completed rollout y1:By_{1:B} is either correct or not, recorded by the sign C(y1:B)∈{−1,+1}C(y_{1:B})\in\{-1,+1\},

C(y1:B)  =  {+1,if Verify ⁣(y1:B),−1,otherwise.C(y_{1:B})\;=\;\begin{cases}+1,&\text{if }\text{{Verify}}\!\left(y_{1:B}\right),\\[2.0pt] -1,&\text{otherwise}.\end{cases}
(1)

Here Verify is a task-specific checker that returns true exactly when a completed rollout reaches a correct final answer, for instance by matching a reference solution on a math problem or passing the unit tests on a coding task. We write C(y(i))C(y^{(i)}) for the outcome of the ii-th rollout once it is run to the budget BB.

To prune partial rollouts, we need to map each prefix to a vector that captures its essential information. One line of work relies on hand-designed features of the rollout and the model’s internal states, such as token confidence, the geometry of the hidden-state trajectory, or the convergence of intermediate answers. These features are usually very low dimensional [13, 40, 38, 19, 28]. A second line of work instead keeps the hidden states of the transformer and pools them into a single vector [42, 39, 29], and this is the class we use. In particular, we take hih_{i} to be an exponential moving average (EMA) of the hidden states, which has proven an effective pooling operation [29]. Our improvements are thus shown for this class of embeddings, although our framework can be applied to other embeddings as well. Appendix F gives the details of the representation we use.

At pruning time the outcomes C(y(i))C(y^{(i)}) are still unknown, since each depends on a (random) continuation we have not yet generated. How, then, should we choose the set S⊆{1,…,N}S\subseteq\{1,\ldots,N\} of ∣S∣=k|S|=k rollouts to keep? Two extreme choices are as follows.

  1. (i)

    (Pure exploitation) Keep in SS the rollouts {i}\{i\} with the highest predicted success \mathbb{P}\!\bigl(C(y^{(i)})=+1\mid\mathbfit{q},y_{1:T}^{(i)}\bigr), estimated by a linear probe trained on the representations hih_{i} [54], that is, the kk rollouts with the largest scores w⊤hiw^{\top}h_{i} for a learned weight vector ww. We refer to this pruning policy as Linear Probe.

  2. (ii)

    (Pure exploration) Build a diverse SS, starting from a random rollout and greedily adding to SS the rollout i⋆i^{\star} by solving

    i⋆=arg⁡max⁡i∉S  hi⊤(τI+∑j∈Shjhj⊤)−1hi,i^{\star}=\arg\max_{i\notin S}\;h_{i}^{\top}\Bigl(\tau I+\sum_{j\in S}h_{j}h_{j}^{\top}\Bigr)^{-1}h_{i},
    (2)

    that is, we add, the rollout whose representation is least explained by those already chosen, where τ>0\tau>0 is a regularizer. This is the RepExp pruning policy [39].

Neither extreme balances quality against diversity. What we actually want is the set of kk rollouts with the best pass@k\mathrm{pass}@k. Mathematically, we seek the set SS most likely to contain a correct rollout,

Graphic from the paper; its text follows
Text in this graphic

Pass@kk Pruning Objective

\max_{S\,\subseteq\,\{1,\ldots,N\}}\mathbb{P}\!\left(\,\sum_{i\in S}\mathbf{1}\{C(y^{(i)})=+1\}\;\geq\;1\;\middle|\;\mathbfit{q},\,y_{1:T}^{(1)},\ldots,y_{1:T}^{(N)}\,\right)\quad\text{s.t.}\quad|S|=k.

Here, 1{⋅}\mathbf{1}\{\cdot\} is the indicator function, i.e., 1{True}=1\mathbf{1}\{True\}=1 and 1{False}=0\mathbf{1}\{False\}=0. The objective in Eq. 3 is exactly pass@k\mathrm{pass}@k of the kept pool, the probability that at least one surviving rollout, once run to the budget BB, yields a correct answer. We also assume that the final outcomes are binary, although the same approach generalizes to continuous outcomes, where each completed rollout is scored by a reward model and the goal is to maximize the best of the kept rollouts [10], in which case Eq. 3 becomes a max@kk objective [41].

Existing pruning methods score each rollout on its own, using the model’s confidence [30, 13], a reward model [36], or a probe on its hidden states [54, 25], or they select a diverse set, as RepExp does [39]. Pass@kk has also been used as a training objective for reasoning models [41, 8], but not to decide which partial rollouts to keep. Outside of language models, choosing a set so that at least one item succeeds has been studied in information retrieval and Bayesian optimization [6, 34, 46]. Appendix G gives an extended discussion. In what follows, we discuss how such an objective can be solved.

There are some challenges in solving Eq. 3: First, we need to obtain the pass@k\mathrm{pass}@k of a given set of rollouts. We address this by learning the joint distribution of the rollouts’ outcomes under a probabilistic model, from which the pass@k\mathrm{pass}@k of any set can be estimated. Second, even with such an estimate, finding the subset of kk rollouts with the highest estimated pass@k\mathrm{pass}@k is a mixed-integer program. We can therefore view our framework as two components, learning the joint distribution of the outcomes (Section 3.1), and solving this mixed-integer program at selection time (Section 3.2).

Let H=[h1,…,hN]∈Rd×NH=[h_{1},\ldots,h_{N}]\in\mathbb{R}^{d\times N} collect the representations of the NN generated partial rollouts, Qθ:Rd→RQ_{\theta}:\mathbb{R}^{d}\to\mathbb{R} be a learnable mapping predicting the rollout quality, and define Qθ(H)=[q1,…,qN]⊤Q_{\theta}(H)=[q_{1},\ldots,q_{N}]^{\top} with qi:=Qθ(hi)q_{i}:=Q_{\theta}(h_{i}). We model the latent scores of the rollouts as

Z=Qθ(H)H⊤⏟Rollout Quality+H⊤f⏟Rollouts Correlation+mH⊤⏟Outcome Noise,m∼N(0,IN),f∼N(0,Id),\mathbf{Z}=\underbrace{Q_{\theta}(H)\vphantom{H^{\top}}}_{\text{Rollout Quality}}+\underbrace{H^{\top}\mathbf{f}}_{\text{Rollouts Correlation}}+\underbrace{\mathbf{m}\vphantom{H^{\top}}}_{\text{Outcome Noise}},\qquad\mathbf{m}\sim\mathcal{N}(0,I_{N}),\quad\mathbf{f}\sim\mathcal{N}(0,I_{d}),
(4)

where m\mathbf{m} and f\mathbf{f} are independent. Intuitively, Zi\mathbf{Z}_{i} is a score of how promising rollout ii is, so the higher its quality qiq_{i}, the higher its score. On top of qiq_{i}, the term hi⊤fh_{i}^{\top}\mathbf{f} is a random effect shared by rollouts with similar representations, which makes them succeed or fail together. Indeed, for distinct rollouts, Cov⁡(Zi,Zj∣H)=hi⊤hj\operatorname{Cov}(\mathbf{Z}_{i},\mathbf{Z}_{j}\mid H)=h_{i}^{\top}h_{j}, so rollouts with aligned hih_{i} have positively correlated outcomes. Finally, mi\mathbf{m}_{i} is noise specific to rollout ii.

The correctness C(y(i))C(y^{(i)}) of rollout ii is then modeled by thresholding its score at zero. More specifically, we define the random variable Ci=2×1{Zi≥0}−1\mathbf{C}_{i}=2\times\mathbf{1}\{\mathbf{Z}_{i}\geq 0\}-1. In other words, a positive score implies that the rollout is correct, while a negative score implies that it is incorrect. Since the scores are independent conditionally on f\mathbf{f}, the likelihood of an observed correctness pattern c∈{−1,1}Nc\in\{-1,1\}^{N} is

Pr⁡[C=c∣H]=Ef[∏i=1NΦ(ci(qi+hi⊤f))],\Pr\bigl[\mathbf{C}=c\mid H\bigr]=\mathbb{E}_{\mathbf{f}}\Bigl[\prod_{i=1}^{N}\Phi\bigl(c_{i}(q_{i}+h_{i}^{\top}\mathbf{f})\bigr)\Bigr],
(5)

where Φ\Phi is the standard Gaussian CDF, and the derivation can be found in Section A.1.

Suppose we have MM training questions, where question mm consists of the representations H(m)H^{(m)} of a pool and its observed outcomes c(m)∈{−1,1}Nc^{(m)}\in\{-1,1\}^{N}. The mapping QθQ_{\theta} is trained by maximizing their likelihood under Eq. 5, that is, by solving

max⁡θ 1M∑m=1Mlog⁡Pr⁡θ[C=c(m)∣H(m)],\max_{\theta}\ \frac{1}{M}\sum_{m=1}^{M}\log\Pr\nolimits_{\theta}\bigl[\mathbf{C}=c^{(m)}\mid H^{(m)}\bigr],
(6)

where Pr⁡θ\Pr_{\theta} is the likelihood of Eq. 5 with H=H(m)=[h1(m),…,hN(m)]H=H^{(m)}=[h_{1}^{(m)},\ldots,h_{N}^{(m)}] and qi=Qθ(hi(m))q_{i}=Q_{\theta}(h_{i}^{(m)}). Solving Eq. 6 directly is hard, since the expectation over f\mathbf{f} in Eq. 5 has no closed form. We therefore expand each log-factor to second order in hi⊤fh_{i}^{\top}\mathbf{f}, which turns the expectation into a Gaussian integral that can be evaluated exactly (Theorem 1).

Theorem 1 (Second-order surrogate).

For a pattern c∈{−1,1}Nc\in\{-1,1\}^{N}, let ϕ\phi be the standard Gaussian density, λi(ci)=ϕ(qi)/Φ(ciqi)\lambda_{i}(c_{i})=\phi(q_{i})/\Phi(c_{i}q_{i}), κi(ci)=λi(ci)(λi(ci)+ciqi)\kappa_{i}(c_{i})=\lambda_{i}(c_{i})\bigl(\lambda_{i}(c_{i})+c_{i}q_{i}\bigr),

Σ(c)=∑i=1Nκi(ci) hihi⊤,b(c)=∑i=1Nciλi(ci) hi.\Sigma(c)=\sum_{i=1}^{N}\kappa_{i}(c_{i})\,h_{i}h_{i}^{\top},\qquad b(c)=\sum_{i=1}^{N}c_{i}\lambda_{i}(c_{i})\,h_{i}.
(7)

Then, as ε→0\varepsilon\to 0,

log⁡Φ(ci(qi+ε))=log⁡Φ(ciqi)+ciλi(ci) ε−κi(ci)2ε2+O(∣ε∣3),\log\Phi\bigl(c_{i}(q_{i}+\varepsilon)\bigr)=\log\Phi(c_{i}q_{i})+c_{i}\lambda_{i}(c_{i})\,\varepsilon-\frac{\kappa_{i}(c_{i})}{2}\varepsilon^{2}+O(|\varepsilon|^{3}),
(8)

and replacing each log-factor of Pr⁡[C=c∣H]\Pr[\mathbf{C}=c\mid H] in Eq. 5 by this expansion at ε=hi⊤f\varepsilon=h_{i}^{\top}\mathbf{f} gives

Pr⁡~[C=c∣H]=(∏i=1NΦ(ciqi))det⁡(Id+Σ(c))−1/2exp⁡(12 b(c)⊤(Id+Σ(c))−1b(c)).\widetilde{\Pr}[\mathbf{C}=c\mid H]=\Bigl(\prod_{i=1}^{N}\Phi(c_{i}q_{i})\Bigr)\det\bigl(I_{d}+\Sigma(c)\bigr)^{-1/2}\exp\Bigl(\frac{1}{2}\,b(c)^{\top}\bigl(I_{d}+\Sigma(c)\bigr)^{-1}b(c)\Bigr).
(9)

The proof is in Section B.1.1. The expansion is local, so we use Eq. 9 as a tractable surrogate rather than as an exact identity or a bound. We therefore replace Pr⁡θ\Pr_{\theta} in Eq. 6 by Pr⁡~θ\widetilde{\Pr}_{\theta}.

Instead of using hih_{i} directly in the correlation term, one could learn an encoder Eψ\mathcal{E}_{\psi} of the representations and use Eψ(hi)\mathcal{E}_{\psi}(h_{i}) in its place, but its helpfulness depends on the amount of data. Since our data is limited, we keep hih_{i} fixed, so that QθQ_{\theta} is the only learned component, and for the same reason we use a simple linear model Qθ(h)=θ⊤h+θ0Q_{\theta}(h)=\theta^{\top}h+\theta_{0} for QθQ_{\theta}, as in the Linear Probe [54]. Unlike the Linear Probe, which is trained on the correctness of each rollout separately, QθQ_{\theta} is trained on the joint outcomes of all rollouts of a question, so the quality it learns already accounts for the correlation between them. Since Eq. 9 is in closed form and differentiable in θ\theta, we maximize the surrogate likelihood by stochastic gradient ascent over the training questions.

Maximizing pass@k\mathrm{pass}@k in Eq. 3 is the same as minimizing the probability that every kept rollout fails. Under the latent Gaussian model, and suppressing the conditioning on HH, the failure probability of a set SS of kept rollouts is

L(S)=Pr⁡[Ci=−1 ∀i∈S]=Ef∼N(0,Id)[∏i∈SΦ(−(qi+hi⊤f))],L(S)=\Pr\bigl[\mathbf{C}_{i}=-1\ \forall i\in S\bigr]=\mathbb{E}_{\mathbf{f}\sim\mathcal{N}(0,I_{d})}\Bigl[\prod_{i\in S}\Phi\bigl(-(q_{i}+h_{i}^{\top}\mathbf{f})\bigr)\Bigr],
(10)

and we seek the set of kk rollouts that minimizes it. Since L(S)L(S) has no closed form, we approximate it with Theorem 1.

Corollary 1 (Selection surrogate).

For a set S⊆[N]:={1,…,N}S\subseteq[N]:=\{1,\ldots,N\}, let λi=ϕ(qi)/Φ(−qi)\lambda_{i}=\phi(q_{i})/\Phi(-q_{i}), κi=λi(λi−qi)\kappa_{i}=\lambda_{i}(\lambda_{i}-q_{i}), ΣS=∑i∈Sκi hihi⊤\Sigma_{S}=\sum_{i\in S}\kappa_{i}\,h_{i}h_{i}^{\top} and bS=∑i∈Sλi hib_{S}=\sum_{i\in S}\lambda_{i}\,h_{i}. Applying Theorem 1 to the rollouts in SS with ci=−1c_{i}=-1 for every i∈Si\in S gives a surrogate L~(S)\widetilde{L}(S) of L(S)L(S) with

log⁡L~(S)=∑i∈Slog⁡Φ(−qi)⏟Rollout Quality  +  ∑i∈S(−12log⁡det⁡(Id+ΣS)+12 bS⊤(Id+ΣS)−1bS)⏟Rollouts Correlation.\log\widetilde{L}(S)=\underbrace{\sum_{i\in S}\log\Phi(-q_{i})}_{\textnormal{Rollout Quality}}\;+\;\underbrace{\vphantom{\sum_{i\in S}}\Bigl(-\frac{1}{2}\log\det(I_{d}+\Sigma_{S})+\frac{1}{2}\,b_{S}^{\top}(I_{d}+\Sigma_{S})^{-1}b_{S}\Bigr)}_{\textnormal{Rollouts Correlation}}.
(11)

The proof is in Section B.1.2. We therefore minimize log⁡L~(S)\log\widetilde{L}(S) over ∣S∣=k|S|=k. Each term of Eq. 11 has a direct interpretation. The first term favors large qiq_{i}, because the baseline failure factor Φ(−qi)\Phi(-q_{i}) decreases with qiq_{i}. The negative log-determinant rewards a collection of hih_{i}’s that covers several directions instead of repeatedly selecting the same direction. The last term is nonnegative and penalizes sets whose weighted vectors λihi\lambda_{i}h_{i} add up in the same direction, which the determinant alone cannot detect since it treats hih_{i} and −hi-h_{i} identically. For example, two rollouts of the same quality fail together more often with h2=h1h_{2}=h_{1} than with h2=−h1h_{2}=-h_{1}, yet both cases give the same ΣS\Sigma_{S} and hence the same determinant, while bSb_{S} is 2λ1h12\lambda_{1}h_{1} in the first case and 00 in the second.

However, minimizing log⁡L~(S)\log\widetilde{L}(S) exactly is hard.

Proposition 1 (Hardness of exact selection).

Minimizing log⁡L~(S)\log\widetilde{L}(S) over all S⊆[N]S\subseteq[N] with ∣S∣=k|S|=k is NP-hard.

The proof is in Section B.3, by a reduction from the maximum independent set problem. When the objective is monotone and submodular, however, a greedy optimizer that adds one rollout at a time is guaranteed to achieve at least a (1−e−1)(1-e^{-1}) fraction of the optimal value [32]. The exact pass probability P(S):=1−L(S)P(S):=1-L(S) is known to be monotone and submodular [46]. An approximation of a submodular function, though, is not necessarily submodular, so we prove that its surrogate P~(S):=1−L~(S)\widetilde{P}(S):=1-\widetilde{L}(S) is also monotone and submodular, and hence the greedy optimizer and its approximation guarantee apply to our problem.

Theorem 2 (Greedy guarantee).

P~\widetilde{P} is normalized (P~(∅)=0\widetilde{P}(\varnothing)=0), monotone (P~(A)≤P~(B)\widetilde{P}(A)\leq\widetilde{P}(B) whenever A⊆BA\subseteq B), and submodular, that is, for all A⊆B⊆[N]A\subseteq B\subseteq[N] and j∉Bj\notin B,

P~(A∪{j})−P~(A)≥P~(B∪{j})−P~(B).\widetilde{P}(A\cup\{j\})-\widetilde{P}(A)\geq\widetilde{P}(B\cup\{j\})-\widetilde{P}(B).
(12)

Consequently, the set SkgreedyS_{k}^{\mathrm{greedy}} obtained by adding, kk times, the candidate that most increases P~\widetilde{P} satisfies

P~(Skgreedy)≥(1−e−1)max⁡∣S∣≤kP~(S).\widetilde{P}(S_{k}^{\mathrm{greedy}})\geq(1-e^{-1})\max_{|S|\leq k}\widetilde{P}(S).
(13)

The proof is in Section B.2.

The greedy optimizer starts from the empty set and, at each step, adds the candidate j∉Sj\notin S with the smallest change Δj(S)=log⁡L~(S∪{j})−log⁡L~(S)\Delta_{j}(S)=\log\widetilde{L}(S\cup\{j\})-\log\widetilde{L}(S). Since adding a candidate changes ΣS\Sigma_{S} by a rank-one matrix, this change has a closed form that can be updated cheaply without rebuilding the determinant and the inverse (Section A.2). With these rank-one updates, the greedy optimizer costs O(k(Nd+d2))O\bigl(k(Nd+d^{2})\bigr) time and O(Nd+d2)O(Nd+d^{2}) memory. By comparison, a naive implementation that rebuilds and factorizes Id+ΣS∪{j}I_{d}+\Sigma_{S\cup\{j\}} for every candidate costs O(d3)O(d^{3}) per candidate, that is, O(kNd3)O(kNd^{3}) time, with the same O(Nd+d2)O(Nd+d^{2}) memory.

The surrogate makes the quality–diversity trade-off explicit and connects to the two baseline criteria in limiting regimes. If the correlation term in Eq. 11 is switched off, then log⁡L~(S)=∑i∈Slog⁡Φ(−qi)\log\widetilde{L}(S)=\sum_{i\in S}\log\Phi(-q_{i}), so minimizing it keeps the kk largest quality scores and recovers a quality-only, probe-style ranking; it coincides with Linear Probe when QθQ_{\theta} is the corresponding linear probe. At the other extreme, suppose that the quality scores are equal and that the penalty term is negligible throughout selection. Then every κi\kappa_{i} equals a common value κ\kappa, so ΣS=κ∑i∈Shihi⊤\Sigma_{S}=\kappa\sum_{i\in S}h_{i}h_{i}^{\top} and the relevant set-dependent term is −12log⁡det⁡(Id+ΣS)-\tfrac{1}{2}\log\det(I_{d}+\Sigma_{S}). By the matrix determinant lemma, its greedy marginal ranks a candidate jj by hj⊤(Id+ΣS)−1hjh_{j}^{\top}(I_{d}+\Sigma_{S})^{-1}h_{j}, the residual-variance criterion used by RepExp on the same representations (see Section A.3 for the derivation). Between these limits, the modular quality, log-determinant diversity, and penalty terms jointly determine the selected set.

The above two extremes do not show how PKTP moves from Linear Probe to RepExp as kk grows. To see this, we expand log⁡L(S)\log L(S) and its surrogate when the correlations are weak.

Proposition 2 (Weak correlations).

Fix SS, qiq_{i} and hih_{i}, and replace f\mathbf{f} by ρ f\rho\,\mathbf{f}. As ρ→0\rho\to 0,

log⁡L(S)=∑i∈S[log⁡Φ(−qi)+ρ22λiqi∥hi∥2]+ρ2∑i<j∈Sλiλj hi⊤hj+O(ρ4),\log L(S)=\sum_{i\in S}\Bigl[\log\Phi(-q_{i})+\tfrac{\rho^{2}}{2}\lambda_{i}q_{i}\|h_{i}\|^{2}\Bigr]+\rho^{2}\sum_{i<j\in S}\lambda_{i}\lambda_{j}\,h_{i}^{\top}h_{j}+O(\rho^{4}),
(14)

and log⁡L~(S)\log\widetilde{L}(S) has the same expansion.

Proposition 2 shows how the correlation strength ρ\rho controls where PKTP sits between the two baselines. At ρ=0\rho=0 the rollouts are independent, the expansion reduces to ∑i∈Slog⁡Φ(−qi)\sum_{i\in S}\log\Phi(-q_{i}), and PKTP ranks the rollouts by quality, as Linear Probe does. For ρ>0\rho>0, every pair of kept rollouts adds a penalty ρ2λiλjhi⊤hj\rho^{2}\lambda_{i}\lambda_{j}h_{i}^{\top}h_{j}, which is large when their representations are similar. A rollout added to a set of tt rollouts pays tt such penalties, so the first pick is decided by quality alone, and as the set grows the penalties add up until they outweigh the differences in quality, after which PKTP spreads its picks out, as RepExp does. The larger ρ\rho is, the sooner this happens, so ρ\rho sets how fast PKTP moves from Linear Probe to RepExp as kk grows.

Appendix C makes the two ends of this behavior precise for a fixed ρ\rho. At small kk, if the gap between the kkth and (k+1)(k+1)th largest qualities exceeds a constant multiple of kρ2k\rho^{2}, PKTP keeps exactly the kk candidates with the largest qiq_{i}, as Linear Probe does, and in the same order when this holds at every budget up to kk. At large kk, when a few candidates of high quality stand out from a bulk of lower quality, the objective of PKTP, averaged over the bulk qualities, reduces to the RepExp objective plus a term for these candidates. Its minimizers therefore keep them and nearly maximize the RepExp objective. Finally, the conditions of these two results do not conflict. We construct a single model, with one quality distribution and one value of ρ\rho, in which PKTP follows Linear Probe at small kk, while its averaged objective reduces to the RepExp objective as kk grows.

We evaluate on eight open-weight reasoning models in two size tiers. The small tier is Qwen3-0.6B, Qwen3-1.7B [49], OpenMath-Nemotron-1.5B [31] and DeepSeek-R1-Distill-Qwen-1.5B [15], and the large tier is Qwen3-8B, OpenMath-Nemotron-7B, DeepSeek-R1-Distill-Qwen-7B and Skywork-OR1-Math-7B [16]. Every model generates its rollouts with temperature 0.80.8, top-pp of 0.950.95, and a full token budget of B=32,768B=32{,}768 tokens.

We pool problems from several benchmark sources rather than a single one, since a pruning policy has to be trained on part of the problems and evaluated on the rest, and no single competition benchmark is large enough for both. The two model tiers are evaluated on different benchmark substrates, chosen so that neither tier is saturated. Both tiers use AIME 2024, 2025 and 2026 and HMMT 2024, 2025 and 2026 [2], together with RIMO-N [9]. The small tier adds BeyondAIME [4], OlymMATH (Easy) [37] and Omni-MATH levels 7 and 8 [14], while the large tier replaces these by AMO-Bench [27], OlymMATH (Hard) and Omni-MATH levels 8 and 9. This gives around 600600 problems per model. For each model we then remove the problems on which it generates all correct or all wrong solutions in 128128 trials.

A completed rollout counts as correct when its final answer matches the reference answer of the problem. We take that answer from the \boxed{} expression of the rollout and ask a Qwen3-32B judge [49] whether it is equivalent to the reference answer. We use a judge rather than a symbolic checker such as math-verify [24], because benchmarks like AMO-Bench have descriptive answers that a symbolic checker cannot handle.

Only a few hundred problems are available for each model, so a single split into training and test problems would leave too few on either side, and we evaluate with cross-validation instead. For each model we partition its problems into eight folds, with each benchmark spread evenly across the folds. Each fold serves once as the test set while the learned components are trained on the other seven, so every problem is scored exactly once by a model that was not trained on it. One such pass over all eight folds forms a repetition. Because the outcome of a repetition depends on how the problems happen to be divided, we run 2020 repetitions, each with a new random partition obtained by shuffling the problems of every benchmark before assigning them to folds, and with fresh random seeds for training. Every reported number is the average over the 2020 repetitions, and its standard error is computed across them. For RepExp we set the regularizer to τ=1\tau=1. For all methods, the representation hih_{i} of a partial rollout is the EMA of its hidden states with rate 10−310^{-3}.

Figure 3
Figure 3: Gain in pass@k\mathrm{pass}@k over random pruning. For every model, the pooled pass@k\mathrm{pass}@k of each pruning policy minus that of Random (Pass@kk), in percentage points, as a function of the number kk of rollouts kept, with a band of one standard error of the repetition-by-repetition difference. The absolute numbers are in Table 1 and the per-benchmark breakdown in Appendix D.

Figure 3 reports our main setting, in which each method selects k∈{1,2,4,8,16}k\in\{1,2,4,8,16\} of the N=128N=128 rollouts of a problem from their prefixes, and we set the cutoff threshold to T=4000T=4000 tokens. For every model it shows the pass@k\mathrm{pass}@k of each pruning policy minus that of Random (Pass@kk), pooled over all test problems. Random keeps kk rollouts chosen uniformly at random, which is equivalent to sampling kk rollouts without any pruning, so it is the natural reference point. The absolute numbers are given in Table 1 and the breakdown by benchmark in Appendix D.

Figure 4
Figure 4: Linear Probe keeps a cluster of rollouts that fail together. The 128128 rollouts of one problem (Qwen3-8B, AMO-Bench), projected on the first two principal components of their representations, with correct rollouts in green and wrong rollouts in red. The 1616 rollouts ranked highest by the Linear Probe (blue rings) lie close together and are all wrong, while 1616 random picks (gray rings) include 77 correct rollouts.

As evident in Fig. 3, the Linear Probe performs strongly at k=1k=1, but as kk increases it gets closer and closer to Random, as in the Qwen models, and in some cases it even becomes worse than Random at large kk. This can be attributed to a bias towards a cluster of rollouts that the model predicts to be correct but that may not be, in the case where the classifier is wrong. In other words, ranking by the probe sharpens the distribution of the kept rollouts around what the probe considers correct. This mirrors the effect observed in reinforcement learning, where models trained with GRPO outperform their base models at small kk but are outperformed by them at large kk [53]. As an example, Fig. 4 shows the 128128 rollouts of one problem (Qwen3-8B, AMO-Bench), projected on the first two principal components of their representations. The 1616 rollouts ranked highest by the probe are all close to each other and all wrong, while 1616 random picks include 77 correct ones.

Figure 5
Figure 5: RepExp keeps outliers that are unlikely to be correct. The 128128 rollouts of one problem (Qwen3-8B, Omni-MATH), embedded in two dimensions by multidimensional scaling of their representations, with correct rollouts in green and wrong rollouts in red. After a random first pick, RepExp (pink rings, numbered in pick order) selects rollouts far from the rest, and all 44 of its picks are wrong, while 44 random picks (gray rings) include 11 correct rollout.

Figure 3 also shows that RepExp behaves in the opposite way to the Linear Probe. At k=1k=1 it shows, as expected, a performance similar to Random, since its first pick is random. As kk increases, the general trend is that RepExp gets better and better than Random, especially at k=16k=16 (e.g., the DeepSeek-R1-Distill models). Interestingly, however, for moderate kk it is sometimes outperformed by Random, for instance on OpenMath-Nemotron-1.5B and Qwen3-8B. We attribute this to a tendency of RepExp to favor outliers at small and moderate kk, since the rollouts farthest from those already selected are often unusual rollouts that are unlikely to be correct. A similar effect is reported by Tuyls et al. 39, where RepExp stops helping under high-temperature sampling, since the less coherent responses look novel in representation space yet do not necessarily contain correct answers. As an example, Fig. 5 shows the 128128 rollouts of one problem (Qwen3-8B, Omni-MATH), embedded in two dimensions with multidimensional scaling on their representations. After its first, random pick, RepExp selects outliers far from the other rollouts, and all 44 of its picks are wrong, while 44 random picks include 11 correct one.

Finally, Fig. 3 shows that PKTP outperforms both the Linear Probe and RepExp, and its advantage is clearest at moderate kk, where each baseline suffers from its own bias. On DeepSeek-R1-Distill-Qwen-1.5B at k=4k=4, for example, PKTP is 3.03.0 points above the Linear Probe and 3.23.2 points above RepExp. On Qwen3-0.6B it leads both baselines by more than 22 points at every k≥2k\geq 2, and on DeepSeek-R1-Distill-Qwen-7B it is 3.33.3 points above the Linear Probe at k=4k=4. Unlike the two baselines, PKTP also stays above Random on every model for k≥2k\geq 2, since it keeps the correctness signal of the probe while spreading the kept rollouts over outcomes that are unlikely to fail together. At large kk, however, the performance of PKTP and RepExp gets closer. We believe this is due to the weak correctness signal in the embeddings of the partial rollouts, which raises the question of how a quality embedding can be obtained from a partial rollout, and whether this is possible at all.

Results for the other pool sizes, N∈{32,48,64,80,96,112}N\in\{32,48,64,80,96,112\} with the same cutoff T=4000T=4000, are given in Appendix E.

Figure 6
Figure 6: A later cutoff improves PKTP. Pass@44 on Qwen3-1.7B and DeepSeek-R1-Distill-Qwen-7B as the cutoff TT grows from 20002000 to 80008000 tokens, with N=128N=128. PKTP is the best method for every T≥4000T\geq 4000 and keeps improving with longer prefixes, while the Linear Probe and RepExp gain much less, and the Linear Probe on Qwen3-1.7B even drifts below Random. Bands are one standard error.

An important aspect of pruning is the cutoff threshold TT, and how the algorithm behaves as the cutoff grows. Figure 6 varies TT on Qwen3-1.7B and DeepSeek-R1-Distill-Qwen-7B. For every T≥4000T\geq 4000, PKTP outperforms all other methods on both models. An interesting observation is that a later cutoff in general improves the performance of PKTP. On Qwen3-1.7B its pass@44 rises from 63.5%63.5\% at T=2000T=2000 to 65.9%65.9\% at T=8000T=8000, and on DeepSeek-R1-Distill-Qwen-7B from 57.4%57.4\% to 61.7%61.7\%. Intuitively, the more tokens are generated, the more is revealed about the quality of a rollout and where it is heading, so there is more signal to exploit. Interestingly, however, the same does not necessarily happen for the Linear Probe and RepExp. On Qwen3-1.7B, for example, the Linear Probe drifts down from 64.2%64.2\% to 62.3%62.3\% and ends below Random. One reason can be the representation we use. Since the EMA with rate 10−310^{-3} effectively averages over the last 10001000 tokens, it may lose the signal in the earlier tokens.

Figure 7
Figure 7: PKTP leads once the pool is large enough. Pass@44 on Qwen3-1.7B and DeepSeek-R1-Distill-Qwen-7B as the pool size NN grows from 3232 to 128128, with T=4000T=4000. PKTP is the best method for every NN on Qwen3-1.7B and from N=80N=80 on DeepSeek-R1-Distill-Qwen-7B, where the Linear Probe falls as the pool grows and stays below Random. Bands are one standard error.

Another important aspect of pruning is the size NN of the pool the kk rollouts are chosen from. Figure 7 varies NN on Qwen3-1.7B and DeepSeek-R1-Distill-Qwen-7B. PKTP outperforms all other methods for every NN on Qwen3-1.7B, and on DeepSeek-R1-Distill-Qwen-7B once the pool reaches N=80N=80. A larger pool offers more candidates to choose from, and on Qwen3-1.7B both baselines benefit from it, with RepExp rising from 62.9%62.9\% at N=32N=32 to 63.9%63.9\% at N=128N=128 as the pool becomes more diverse and the Linear Probe from 62.1%62.1\% to 63.1%63.1\%. Interestingly, however, the same does not hold on DeepSeek-R1-Distill-Qwen-7B, where the Linear Probe falls from 58.1%58.1\% to 56.4%56.4\% and stays below Random for every NN, and RepExp falls from 59.5%59.5\% at N=48N=48 to 58.6%58.6\%, while PKTP rises from 58.8%58.8\% to 59.7%59.7\%. One reason can be that a larger pool also contains more outliers, which raises the chance that extreme cases like RepExp and the Linear Probe select them at a moderate kk such as k=4k=4.

We introduced PKTP, a pruning framework that chooses which partial rollouts to keep by directly optimizing pass@k\mathrm{pass}@k. PKTP learns the joint distribution of the rollouts’ outcomes with a latent Gaussian model, approximates the resulting likelihood in closed form, and selects the kept set greedily, with an approximation guarantee on the surrogate objective. Across eight reasoning models, it outperforms both quality-based and diversity-based pruning, and the gains are largest at moderate kk, where each of these baselines suffers from its own bias. Since PKTP can be combined with any representation of partial rollouts, representations that better capture the correctness of a rollout would directly strengthen it, and developing them is a natural direction for future work.

This work was supported in part by a Generative AI Research Award from the USC Office of Research and Innovation, the NSF NRT program, the USC-Meta Center for Research and Education in AI and Learning, and a gift from Amazon. AJ was supported in part by the NSF Award DMS-2311024, an Amazon Faculty Research Award, an Adobe Faculty Research Award, and an iORB grant from USC Marshall School of Business.

In this work, we used generative AI tools to assist with several parts of the project. For the write-up, we used them to edit and polish the text and to format the LaTeX source. For the figures, we used them to write the scripts that plot our experimental results. For the code, we used them to help implement parts of our implementation. For the theory, we used them to help derive and write parts of the proofs in the appendix. We have not used generative AI tools to generate data or experimental results. All AI-assisted content, including the code and the proofs, was reviewed and verified by the authors, who take full responsibility for the content of this paper.

References

  1. [1] A. Afzal, F. Matthes, G. Chechik, and Y. Ziser (2025) Knowing before saying: LLM representations encode information about chain-of-thought success before completion. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 12791–12806. Cited by: Appendix G, §1.
  2. [2] M. Balunović, J. Dekoninck, I. Petrov, N. Jovanović, and M. Vechev (2025) MathArena: evaluating LLMs on uncontaminated math competitions. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, Cited by: §4.1.
  3. [3] B. Brown, J. Juravsky, R. Ehrlich, R. Clark, Q. V. Le, C. Ré, and A. Mirhoseini (2024) Large language monkeys: scaling inference compute with repeated sampling. arXiv preprint arXiv:2407.21787. Cited by: Appendix G, §1.
  4. [4] ByteDance Seed (2025) Seed1.5-Thinking: advancing superb reasoning models with reinforcement learning. arXiv preprint arXiv:2504.13914. Cited by: §4.1.
  5. [5] J. Carbonell and J. Goldstein (1998) The use of MMR, diversity-based reranking for reordering documents and producing summaries. In Proceedings of the 21st Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Cited by: Appendix G.
  6. [6] H. Chen and D. R. Karger (2006) Less is more: probabilistic models for retrieving fewer relevant documents. In Proceedings of the 29th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 429–436. Cited by: Appendix G, §2.
  7. [7] Y. Chen, S. Chakraborty, L. Wolf, Y. Paschalidis, and A. Pacchiano (2026) Post-training large language models for diverse high-quality responses. In International Conference on Learning Representations, Cited by: Appendix G.
  8. [8] Z. Chen, X. Qin, Y. Wu, Y. Ling, Q. Ye, W. X. Zhao, and G. Shi (2025) Pass@k training for adaptively balancing exploration and exploitation of large reasoning models. arXiv preprint arXiv:2508.10751. Cited by: Appendix G, §2.
  9. [9] Z. Chen, C. Qin, and Y. Shu (2025) RIMO: an easy-to-evaluate, hard-to-solve olympiad benchmark for advanced mathematical reasoning. arXiv preprint arXiv:2509.07711. Cited by: §4.1.
  10. [10] Y. Chow, G. Tennenholtz, I. Gur, V. Zhuang, B. Dai, S. Thiagarajan, C. Boutilier, R. Agarwal, A. Kumar, and A. Faust (2025) Inference-aware fine-tuning for best-of-N sampling in large language models. In International Conference on Learning Representations, Cited by: Appendix G, §2.
  11. [11] K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, C. Hesse, and J. Schulman (2021) Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Cited by: §1.
  12. [12] R. Durrett (2019) Probability: theory and examples. 5th edition, Cambridge University Press. External Links: Document Cited by: §B.2.2, §B.2.2.Source
  13. [13] Y. Fu, X. Wang, H. Zhang, Y. Tian, and J. Zhao (2026) Deep think with confidence. In International Conference on Learning Representations, Cited by: Appendix G, §2, §2.
  14. [14] B. Gao, F. Song, Z. Yang, Z. Cai, Y. Miao, Q. Dong, L. Li, C. Ma, L. Chen, R. Xu, et al. (2025) Omni-MATH: a universal olympiad level mathematic benchmark for large language models. In International Conference on Learning Representations, Cited by: §4.1.
  15. [15] D. Guo, D. Yang, H. Zhang, J. Song, P. Wang, Q. Zhu, R. Xu, R. Zhang, S. Ma, X. Bi, et al. (2025) DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature 645 (8081), pp. 633–638. Cited by: §1, §4.1.
  16. [16] J. He, J. Liu, C. Y. Liu, R. Yan, C. Wang, P. Cheng, X. Zhang, F. Zhang, J. Xu, W. Shen, et al. (2025) Skywork open reasoner 1 technical report. arXiv preprint arXiv:2505.22312. Cited by: §4.1.
  17. [17] P. Hosseini, S. Nawathe, M. Salmani, M. Razaviyayn, and S. Feizi (2026) Early stopping for large reasoning models via confidence dynamics. arXiv preprint arXiv:2604.04930. Cited by: §1.
  18. [18] A. Jaech, A. Kalai, A. Lerer, A. Richardson, A. El-Kishky, A. Low, A. Helyar, A. Madry, A. Beutel, A. Carney, et al. (2024) OpenAI o1 system card. arXiv preprint arXiv:2412.16720. Cited by: §1.
  19. [19] X. Jiang, N. Liu, D. Wang, and L. Hu (2026) Beyond scalars: evaluating and understanding LLM reasoning via geometric progress and stability. In International Conference on Machine Learning, Cited by: §2.
  20. [20] R. M. Karp (1972) Reducibility among combinatorial problems. In Complexity of Computer Computations, pp. 85–103. Cited by: §B.3.
  21. [21] T. Kojima, S. S. Gu, M. Reid, Y. Matsuo, and Y. Iwasawa (2022) Large language models are zero-shot reasoners. Advances in Neural Information Processing Systems 35, pp. 22199–22213. Cited by: §1.
  22. [22] A. Kulesza and B. Taskar (2012) Determinantal point processes for machine learning. Foundations and Trends in Machine Learning 5 (2–3), pp. 123–286. Cited by: Appendix G.
  23. [23] W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. Gonzalez, H. Zhang, and I. Stoica (2023) Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, pp. 611–626. Cited by: §1.
  24. [24] H. Kydlíček (2025) Math-Verify: math verification library. Note: https://github.com/huggingface/Math-Verify Cited by: §4.1.Source
  25. [25] Z. Liang, B. Huang, Z. Wang, and M. Zhang (2026) Hidden states as early signals: step-level trace evaluation and pruning for efficient test-time scaling. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 26800–26813. Cited by: Appendix G, §2.
  26. [26] H. Lightman, V. Kosaraju, Y. Burda, H. Edwards, B. Baker, T. Lee, J. Leike, J. Schulman, I. Sutskever, and K. Cobbe (2024) Let’s verify step by step. In International Conference on Learning Representations, Cited by: §1.
  27. [27] J. Liu, S. An, S. Zhou, D. Ma, Y. Lin, X. Lv, X. Wang, X. Li, Z. Wang, X. Cao, and X. Cai (2026) AMO-Bench: large language models still struggle in high school math competitions. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 2120–2137. Cited by: §4.1.
  28. [28] X. Liu and L. Wang (2025) Answer convergence as a signal for early stopping in reasoning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 17896–17907. Cited by: §2.
  29. [29] H. Lu, M. Pan, R. Li, G. Nan, J. Zhuang, Z. Zhao, Z. Sun, K. Wang, and Y. Liu (2026) Streaming hallucination detection in long chain-of-thought reasoning. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 21157–21183. Cited by: §2.
  30. [30] R. Manvi, A. Singh, and S. Ermon (2024) Adaptive inference-time compute: LLMs can predict if they can do better, even mid-generation. arXiv preprint arXiv:2410.02725. Cited by: Appendix G, §1, §2.
  31. [31] I. Moshkov, D. Hanley, I. Sorokin, S. Toshniwal, C. Henkel, B. Schifferer, W. Du, and I. Gitman (2025) AIMO-2 winning solution: building state-of-the-art mathematical reasoning models with OpenMathReasoning dataset. arXiv preprint arXiv:2504.16891. Cited by: §4.1.
  32. [32] G. L. Nemhauser, L. A. Wolsey, and M. L. Fisher (1978) An analysis of approximations for maximizing submodular set functions. Mathematical Programming 14 (1), pp. 265–294. Cited by: §B.2.3, Appendix G, §3.2.
  33. [33] R. Pope, S. Douglas, A. Chowdhery, J. Devlin, J. Bradbury, J. Heek, K. Xiao, S. Agrawal, and J. Dean (2023) Efficiently scaling transformer inference. Proceedings of Machine Learning and Systems 5, pp. 606–624. Cited by: §1.
  34. [34] S. Sanner, S. Guo, T. Graepel, S. Kharazmi, and S. Karimi (2011) Diverse retrieval via greedy optimization of expected 1-call@k in a latent subtopic relevance model. In Proceedings of the 20th ACM International Conference on Information and Knowledge Management, Cited by: Appendix G, §2.
  35. [35] C. Snell, J. Lee, K. Xu, and A. Kumar (2025) Scaling LLM test-time compute optimally can be more effective than scaling parameters for reasoning. In International Conference on Learning Representations, Cited by: Appendix G, §1.
  36. [36] H. Sun, M. Haider, R. Zhang, H. Yang, J. Qiu, M. Yin, M. Wang, P. Bartlett, and A. Zanette (2024) Fast best-of-N decoding via speculative rejection. In Advances in Neural Information Processing Systems, Cited by: Appendix G, §1, §2.
  37. [37] H. Sun, Y. Min, Z. Chen, W. X. Zhao, and J. Wen (2026) Challenging the boundaries of reasoning: an olympiad-level math benchmark for large language models. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 17438–17457. Cited by: §4.1.
  38. [38] L. Sun, H. Dong, B. Qiao, Q. Lin, D. Zhang, and S. Rajmohan (2026) LLM reasoning as trajectories: step-specific representation geometry and correctness signals. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 26872–26887. Cited by: §2.
  39. [39] J. Tuyls, D. J. Foster, A. Krishnamurthy, and J. T. Ash (2026) Representation-based exploration for language models: from test-time to post-training. In International Conference on Learning Representations, Cited by: Appendix G, §1, item (ii), §2, §2, §4.2.
  40. [40] M. G. Vilas, S. Yousefi, B. Nushi, E. Horvitz, and V. Balachandran (2026) Tracing the traces: latent temporal signals for efficient and accurate reasoning. In International Conference on Learning Representations, Cited by: §2.
  41. [41] C. Walder and D. T. Karkhanis (2025) Pass@K policy optimization: solving harder reinforcement learning problems. In Advances in Neural Information Processing Systems, Vol. 38, pp. 152416–152445. Cited by: Appendix G, §2, §2.
  42. [42] S. L. Wang, P. Isola, and B. Cheung (2026) The truth lies somewhere in the middle (of the generated tokens). In International Conference on Machine Learning, Cited by: §2.
  43. [43] X. Wang, J. McInerney, L. Wang, and N. Kallus (2025) Entropy after </think> for reasoning model early exiting. arXiv preprint arXiv:2509.26522. Cited by: §1.
  44. [44] X. Wang, J. Wei, D. Schuurmans, Q. Le, E. Chi, S. Narang, A. Chowdhery, and D. Zhou (2023) Self-consistency improves chain of thought reasoning in language models. In International Conference on Learning Representations, Cited by: Appendix G, §1.
  45. [45] J. Wei, X. Wang, D. Schuurmans, M. Bosma, B. Ichter, F. Xia, E. Chi, Q. V. Le, and D. Zhou (2022) Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems 35, pp. 24824–24837. Cited by: §1.
  46. [46] J. T. Wilson, F. Hutter, and M. P. Deisenroth (2018) Maximizing acquisition functions for Bayesian optimization. In Advances in Neural Information Processing Systems, Cited by: §B.2, Appendix G, §2, §3.2.
  47. [47] X. Wu, L. Bai, H. Bansal, P. Kung, S. Li, H. Liu, N. Peng, and K. Chang (2026) Planned test-time scaling with coordinated reasoning paths. arXiv preprint arXiv:2609.27374. Cited by: Appendix G.
  48. [48] Y. Wu, Z. Sun, S. Li, S. Welleck, and Y. Yang (2025) Inference scaling laws: an empirical analysis of compute-optimal inference for LLM problem-solving. In International Conference on Learning Representations, Cited by: Appendix G, §1.
  49. [49] A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, et al. (2025) Qwen3 technical report. arXiv preprint arXiv:2505.09388. Cited by: §4.1, §4.1.
  50. [50] C. Yang, Q. Si, Y. Duan, Z. Zhu, C. Zhu, Q. Li, M. Chen, Z. Lin, and W. Wang (2026) Dynamic early exit in reasoning models. In International Conference on Learning Representations, Vol. 2026, pp. 88170–88210. Cited by: §1.
  51. [51] L. Yang, H. Luo, J. Zhao, T. Dao, and R. Netravali (2026) Thought-level beam search for reasoning. In Conference on Language Modeling, Cited by: Appendix G.
  52. [52] S. Yao, D. Yu, J. Zhao, I. Shafran, T. Griffiths, Y. Cao, and K. Narasimhan (2023) Tree of thoughts: deliberate problem solving with large language models. Advances in Neural Information Processing Systems 36, pp. 11809–11822. Cited by: §1.
  53. [53] Y. Yue, Z. Chen, R. Lu, A. Zhao, Z. Wang, Y. Yue, S. Song, and G. Huang (2025) Does reinforcement learning really incentivize reasoning capacity in LLMs beyond the base model?. In Advances in Neural Information Processing Systems, Cited by: §4.2.
  54. [54] A. Zhang, Y. Chen, J. Pan, C. Zhao, A. Panda, J. Li, and H. He (2025) Reasoning models know when they’re right: probing hidden states for self-verification. In Conference on Language Modeling, Cited by: Appendix G, §1, item (i), §2, §3.1.

Write Zi=qi+mi+hi⊤f\mathbf{Z}_{i}=q_{i}+\mathbf{m}_{i}+h_{i}^{\top}\mathbf{f}. Conditioned on f\mathbf{f}, the Zi\mathbf{Z}_{i} are independent of each other, so

Pr⁡[C1=c1,…,CN=cN∣f]=∏i=1NPr⁡[ciZi≥0∣f]\begin{aligned}\displaystyle\Pr\left[\mathbf{C}_{1}=c_{1},\ldots,\mathbf{C}_{N}=c_{N}\mid\mathbf{f}\right] & \displaystyle=\prod_{i=1}^{N}\Pr[c_{i}\mathbf{Z}_{i}\geq 0\mid\mathbf{f}]\end{aligned}
(15)
=∏i=1NPr⁡[ci(qi+mi+hi⊤f)≥0∣f]\begin{aligned} & \displaystyle=\prod_{i=1}^{N}\Pr[c_{i}(q_{i}+\mathbf{m}_{i}+h_{i}^{\top}\mathbf{f})\geq 0\mid\mathbf{f}]\end{aligned}
(16)
=∏i=1NPr⁡[cimi≥−ci(qi+hi⊤f)∣f].\begin{aligned} & \displaystyle=\prod_{i=1}^{N}\Pr[c_{i}\mathbf{m}_{i}\geq-c_{i}(q_{i}+h_{i}^{\top}\mathbf{f})\mid\mathbf{f}].\end{aligned}
(17)

Since the standard Gaussian is symmetric about 00, −cimi-c_{i}\mathbf{m}_{i} follows the same distribution as mi\mathbf{m}_{i}, and with Φ(x):=Pr⁡Z∼N(0,1)[Z≤x]\Phi(x):=\Pr_{Z\sim\mathcal{N}(0,1)}[Z\leq x] each factor equals Φ(ci(qi+hi⊤f))\Phi\bigl(c_{i}(q_{i}+h_{i}^{\top}\mathbf{f})\bigr). Taking the expectation with respect to f\mathbf{f} on both sides gives Eq. 5.

As in Corollary 1, let ΣS=∑i∈Sκihihi⊤\Sigma_{S}=\sum_{i\in S}\kappa_{i}h_{i}h_{i}^{\top} and bS=∑i∈Sλihib_{S}=\sum_{i\in S}\lambda_{i}h_{i}. Write ΩS=(Id+ΣS)−1\Omega_{S}=(I_{d}+\Sigma_{S})^{-1}, rj=hj⊤ΩShjr_{j}=h_{j}^{\top}\Omega_{S}h_{j} and uj=hj⊤ΩSbSu_{j}=h_{j}^{\top}\Omega_{S}b_{S}. Adding a candidate j∉Sj\notin S changes ΣS\Sigma_{S} by the rank-one matrix κjhjhj⊤\kappa_{j}h_{j}h_{j}^{\top}. The matrix determinant lemma gives

det⁡(Id+ΣS+κjhjhj⊤)=det⁡(Id+ΣS)(1+κjrj),\det(I_{d}+\Sigma_{S}+\kappa_{j}h_{j}h_{j}^{\top})=\det(I_{d}+\Sigma_{S})\bigl(1+\kappa_{j}r_{j}\bigr),
(18)

while Sherman–Morrison gives

(Id+ΣS+κjhjhj⊤)−1=ΩS−κjΩShjhj⊤ΩS1+κjrj.(I_{d}+\Sigma_{S}+\kappa_{j}h_{j}h_{j}^{\top})^{-1}=\Omega_{S}-\frac{\kappa_{j}\Omega_{S}h_{j}h_{j}^{\top}\Omega_{S}}{1+\kappa_{j}r_{j}}.
(19)

Substituting Eq. 18 and Eq. 19 into Eq. 11, and using bS∪{j}=bS+λjhjb_{S\cup\{j\}}=b_{S}+\lambda_{j}h_{j}, the corresponding change in the unhalved quadratic form is

2λjuj+λj2rj−κj(uj+λjrj)21+κjrj=2λjuj+λj2rj−κjuj21+κjrj.2\lambda_{j}u_{j}+\lambda_{j}^{2}r_{j}-\frac{\kappa_{j}(u_{j}+\lambda_{j}r_{j})^{2}}{1+\kappa_{j}r_{j}}=\frac{2\lambda_{j}u_{j}+\lambda_{j}^{2}r_{j}-\kappa_{j}u_{j}^{2}}{1+\kappa_{j}r_{j}}.
(20)

Half of this, together with the change −12log⁡(1+κjrj)-\tfrac{1}{2}\log(1+\kappa_{j}r_{j}) in the determinant term and the new quality term log⁡Φ(−qj)\log\Phi(-q_{j}), yields

Δj(S)=log⁡L~(S∪{j})−log⁡L~(S)=log⁡Φ(−qj)−12log⁡(1+κjrj)+2λjuj+λj2rj−κjuj22(1+κjrj).\Delta_{j}(S)=\log\widetilde{L}(S\cup\{j\})-\log\widetilde{L}(S)=\log\Phi(-q_{j})-\frac{1}{2}\log(1+\kappa_{j}r_{j})+\frac{2\lambda_{j}u_{j}+\lambda_{j}^{2}r_{j}-\kappa_{j}u_{j}^{2}}{2(1+\kappa_{j}r_{j})}.
(21)

The greedy step adds the candidate with the smallest Δj(S)\Delta_{j}(S). After selecting jj, the maintained state updates are

ΩS∪{j}=ΩS−κjΩShjhj⊤ΩS1+κjrj,bS∪{j}=bS+λjhj.\displaystyle\Omega_{S\cup\{j\}}=\Omega_{S}-\frac{\kappa_{j}\Omega_{S}h_{j}h_{j}^{\top}\Omega_{S}}{1+\kappa_{j}r_{j}},\qquad b_{S\cup\{j\}}=b_{S}+\lambda_{j}h_{j}.
(22)

The remaining scalars rℓr_{\ell} and uℓu_{\ell} can be updated recursively as well. If gℓ=hℓ⊤ΩShjg_{\ell}=h_{\ell}^{\top}\Omega_{S}h_{j}, then

rℓ←rℓ−κjgℓ21+κjrj,uℓ←uℓ+λj−κjuj1+κjrj gℓ.\displaystyle r_{\ell}\leftarrow r_{\ell}-\frac{\kappa_{j}g_{\ell}^{2}}{1+\kappa_{j}r_{j}},\qquad u_{\ell}\leftarrow u_{\ell}+\frac{\lambda_{j}-\kappa_{j}u_{j}}{1+\kappa_{j}r_{j}}\,g_{\ell}.
(23)

With all hih_{i} retained in memory, each greedy step costs O(Nd+d2)O(Nd+d^{2}), so one forward pass costs O(k(Nd+d2))O\bigl(k(Nd+d^{2})\bigr) time and O(Nd+d2)O(Nd+d^{2}) storage. A naive implementation that instead rebuilds and factorizes Id+ΣS+κjhjhj⊤I_{d}+\Sigma_{S}+\kappa_{j}h_{j}h_{j}^{\top} for every candidate costs O(d3)O(d^{3}) per candidate, hence O(kNd3)O(kNd^{3}) time, with the same O(Nd+d2)O(Nd+d^{2}) storage.

Suppose that every quality score equals a common value qq, so that λi=λ\lambda_{i}=\lambda and κi=κ\kappa_{i}=\kappa for every ii, and that the penalty term is dropped. Then Eq. 11 reduces to

log⁡L~(S)=∣S∣log⁡Φ(−q)−12log⁡det⁡(Id+ΣS),ΣS=κ∑i∈Shihi⊤.\log\widetilde{L}(S)=|S|\log\Phi(-q)-\frac{1}{2}\log\det(I_{d}+\Sigma_{S}),\qquad\Sigma_{S}=\kappa\sum_{i\in S}h_{i}h_{i}^{\top}.
(24)

Adding a candidate j∉Sj\notin S changes ΣS\Sigma_{S} by the rank-one matrix κhjhj⊤\kappa h_{j}h_{j}^{\top}. The matrix determinant lemma, det⁡(A+uv⊤)=det⁡(A)(1+v⊤A−1u)\det(A+uv^{\top})=\det(A)\bigl(1+v^{\top}A^{-1}u\bigr) for an invertible AA, applied with A=Id+ΣSA=I_{d}+\Sigma_{S} and u=v=κ hju=v=\sqrt{\kappa}\,h_{j}, gives

det⁡(Id+ΣS∪{j})=det⁡(Id+ΣS)(1+κ hj⊤(Id+ΣS)−1hj).\det(I_{d}+\Sigma_{S\cup\{j\}})=\det(I_{d}+\Sigma_{S})\bigl(1+\kappa\,h_{j}^{\top}(I_{d}+\Sigma_{S})^{-1}h_{j}\bigr).
(25)

Subtracting Eq. 24 at SS from Eq. 24 at S∪{j}S\cup\{j\} and using Eq. 25, the factor det⁡(Id+ΣS)\det(I_{d}+\Sigma_{S}) cancels and

Δj(S)=log⁡Φ(−q)−12(log⁡det⁡(Id+ΣS∪{j})−log⁡det⁡(Id+ΣS))\begin{aligned}\displaystyle\Delta_{j}(S) & \displaystyle=\log\Phi(-q)-\frac{1}{2}\Bigl(\log\det(I_{d}+\Sigma_{S\cup\{j\}})-\log\det(I_{d}+\Sigma_{S})\Bigr)\end{aligned}
(26)
=log⁡Φ(−q)−12log⁡(1+κ hj⊤(Id+ΣS)−1hj).\begin{aligned} & \displaystyle=\log\Phi(-q)-\frac{1}{2}\log\bigl(1+\kappa\,h_{j}^{\top}(I_{d}+\Sigma_{S})^{-1}h_{j}\bigr).\end{aligned}
(27)

The first term of Eq. 27 is the same for every candidate, and x↦log⁡(1+κx)x\mapsto\log(1+\kappa x) is increasing since κ>0\kappa>0, so the candidate with the smallest Δj(S)\Delta_{j}(S) is the one with the largest hj⊤(Id+ΣS)−1hjh_{j}^{\top}(I_{d}+\Sigma_{S})^{-1}h_{j}. Moreover, (Id+ΣS)−1=κ−1(κ−1Id+∑i∈Shihi⊤)−1(I_{d}+\Sigma_{S})^{-1}=\kappa^{-1}\bigl(\kappa^{-1}I_{d}+\sum_{i\in S}h_{i}h_{i}^{\top}\bigr)^{-1}, so this ranking is the RepExp rule of Section 2 with regularizer τ=1/κ\tau=1/\kappa.

Here Pr⁡[C=c∣H]\Pr[\mathbf{C}=c\mid H] is given by Eq. 5. Fix outcomes c∈{−1,1}Nc\in\{-1,1\}^{N}, and write λi\lambda_{i}, κi\kappa_{i}, Σ\Sigma and bb for λi(ci)\lambda_{i}(c_{i}), κi(ci)\kappa_{i}(c_{i}), Σ(c)\Sigma(c) and b(c)b(c). For each i∈[N]i\in[N] and a scalar perturbation xx, let ℓi(x):=log⁡Φ(ci(qi+x))\ell_{i}(x):=\log\Phi\bigl(c_{i}(q_{i}+x)\bigr), and let r(u):=ϕ(u)/Φ(u)r(u):=\phi(u)/\Phi(u), which satisfies r′(u)=−r(u)(u+r(u))r^{\prime}(u)=-r(u)\bigl(u+r(u)\bigr). Since ci2=1c_{i}^{2}=1 and ϕ\phi is even, r(ciqi)=λir(c_{i}q_{i})=\lambda_{i}, and

ℓi′(x)=ci r(ci(qi+x))  ⟹  ℓi′(0)=ciλi,ℓi′′(0)=r′(ciqi)=−λi(λi+ciqi)=−κi.\displaystyle\ell_{i}^{\prime}(x)=c_{i}\,r\bigl(c_{i}(q_{i}+x)\bigr)\implies\ell_{i}^{\prime}(0)=c_{i}\lambda_{i},\qquad\ell_{i}^{\prime\prime}(0)=r^{\prime}(c_{i}q_{i})=-\lambda_{i}(\lambda_{i}+c_{i}q_{i})=-\kappa_{i}.
(28)

To see that κi>0\kappa_{i}>0, let u=ciqiu=c_{i}q_{i}. For u≥0u\geq 0 this follows immediately from λi>0\lambda_{i}>0. For u<0u<0,

Φ(u)=∫∣u∣∞ϕ(t) dt<1∣u∣∫∣u∣∞tϕ(t) dt=ϕ(u)∣u∣,\Phi(u)=\int_{|u|}^{\infty}\phi(t)\,dt<\frac{1}{|u|}\int_{|u|}^{\infty}t\phi(t)\,dt=\frac{\phi(u)}{|u|},
(29)

and hence λi>∣u∣=−ciqi\lambda_{i}>|u|=-c_{i}q_{i}. Taylor expansion around x=0x=0 now gives

log⁡Φ(ci(qi+x))=log⁡Φ(ciqi)+ciλix−κi2x2+Ri(x),Ri(x)=O(∣x∣3).\log\Phi\bigl(c_{i}(q_{i}+x)\bigr)=\log\Phi(c_{i}q_{i})+c_{i}\lambda_{i}x-\frac{\kappa_{i}}{2}x^{2}+R_{i}(x),\qquad R_{i}(x)=O(|x|^{3}).
(30)

We now substitute x=hi⊤fx=h_{i}^{\top}\mathbf{f} and sum Eq. 30 over i∈[N]i\in[N]. Since f\mathbf{f} is common for all i∈[N]i\in[N], the only aggregate quantities that arise are Σ\Sigma and bb, and the term inside the expectation can be written as

∏i=1NΦ(ci(qi+hi⊤f))=(∏i=1NΦ(ciqi))exp⁡ ⁣(b⊤f−12f⊤Σf+∑i=1NRi(hi⊤f)).\displaystyle\prod_{i=1}^{N}\Phi\bigl(c_{i}(q_{i}+h_{i}^{\top}\mathbf{f})\bigr)=\left(\prod_{i=1}^{N}\Phi(c_{i}q_{i})\right)\exp\!\left(b^{\top}\mathbf{f}-\frac{1}{2}\mathbf{f}^{\top}\Sigma\mathbf{f}+\sum_{i=1}^{N}R_{i}(h_{i}^{\top}\mathbf{f})\right).
(31)

Dropping the accumulated remainder gives the quadratic approximation

Pr⁡~[C=c∣H]:=(∏i=1NΦ(ciqi))Efexp⁡ ⁣(b⊤f−12f⊤Σf).\widetilde{\Pr}[\mathbf{C}=c\mid H]:=\left(\prod_{i=1}^{N}\Phi(c_{i}q_{i})\right)\mathbb{E}_{\mathbf{f}}\exp\!\left(b^{\top}\mathbf{f}-\frac{1}{2}\mathbf{f}^{\top}\Sigma\mathbf{f}\right).
(32)

The expectation in Eq. 32 has a closed form. Combining its exponent with the standard Gaussian density gives

Efexp⁡ ⁣(b⊤f−12f⊤Σf)=(2π)−d/2∫Rdexp⁡ ⁣(−12f⊤(Id+Σ)f+b⊤f)df.\displaystyle\mathbb{E}_{\mathbf{f}}\exp\!\left(b^{\top}\mathbf{f}-\frac{1}{2}\mathbf{f}^{\top}\Sigma\mathbf{f}\right)=(2\pi)^{-d/2}\int_{\mathbb{R}^{d}}\exp\!\left(-\frac{1}{2}f^{\top}(I_{d}+\Sigma)f+b^{\top}f\right)df.
(33)

Because κi>0\kappa_{i}>0, Σ⪰0\Sigma\succeq 0 and the matrix Id+ΣI_{d}+\Sigma is positive definite. Completing the square,

−12f⊤(Id+Σ)f+b⊤f=−12(f−(Id+Σ)−1b)⊤(Id+Σ)(f−(Id+Σ)−1b)\begin{aligned}\displaystyle-\frac{1}{2}f^{\top}(I_{d}+\Sigma)f+b^{\top}f={} & \displaystyle-\frac{1}{2}\bigl(f-(I_{d}+\Sigma)^{-1}b\bigr)^{\top}(I_{d}+\Sigma)\bigl(f-(I_{d}+\Sigma)^{-1}b\bigr)\end{aligned}
(34)
+12b⊤(Id+Σ)−1b.\begin{aligned} & \displaystyle\quad+\frac{1}{2}b^{\top}(I_{d}+\Sigma)^{-1}b.\end{aligned}
(35)

After translating the integration variable, the remaining Gaussian integral contributes det⁡(Id+Σ)−1/2\det(I_{d}+\Sigma)^{-1/2}, which gives Eq. 9. □\square

Integrating out the outcomes of the rollouts outside SS in Eq. 5 leaves the same expression with the product over i∈Si\in S, so Theorem 1 applies to the rollouts in SS, with ΣS(c)\Sigma_{S}(c) and bS(c)b_{S}(c) the sums over i∈Si\in S. Take ci=−1c_{i}=-1 for every i∈Si\in S. Then λi(−1)=ϕ(qi)/Φ(−qi)\lambda_{i}(-1)=\phi(q_{i})/\Phi(-q_{i}), κi(−1)=λi(λi−qi)\kappa_{i}(-1)=\lambda_{i}(\lambda_{i}-q_{i}), and bS(c)=−∑i∈Sλihib_{S}(c)=-\sum_{i\in S}\lambda_{i}h_{i}, and throughout the appendix we write bS=∑i∈Sλihib_{S}=\sum_{i\in S}\lambda_{i}h_{i}. Since bSb_{S} enters Eq. 9 only through bS⊤(Id+ΣS)−1bSb_{S}^{\top}(I_{d}+\Sigma_{S})^{-1}b_{S}, the surrogate of L(S)L(S) is L~(S)\widetilde{L}(S), and since the logarithm is increasing, minimizing L~(S)\widetilde{L}(S) is equivalent to minimizing log⁡L~(S)\log\widetilde{L}(S). □\square

The submodularity of the exact pass probability is a standard property of the probability of a union of events [46], and we prove it here for completeness. The new result is that the surrogate keeps this property.

Definition 1 (Submodular function).

A set function G:2[N]→RG:2^{[N]}\to\mathbb{R} is submodular if, for every A⊆B⊆[N]A\subseteq B\subseteq[N] and every j∉Bj\notin B,

G(A∪{j})−G(A)≥G(B∪{j})−G(B).G(A\cup\{j\})-G(A)\geq G(B\cup\{j\})-G(B).
(36)
Definition 2 (Monotone function).

A set function G:2[N]→RG:2^{[N]}\to\mathbb{R} is monotone if G(A)≤G(B)G(A)\leq G(B) whenever A⊆B⊆[N]A\subseteq B\subseteq[N].

Definition 3 (Normalized function).

A set function G:2[N]→RG:2^{[N]}\to\mathbb{R} is normalized if G(∅)=0G(\varnothing)=0.

First, we show that the exact pass@k\mathrm{pass}@k probability is already a normalized monotone submodular set function. To see this, let Ci\mathcal{C}_{i} denote the event that response ii is correct. The exact pass probability can be written as

P(S):=Pr⁡(⋃i∈SCi).P(S):=\Pr\left(\bigcup_{i\in S}\mathcal{C}_{i}\right).
(37)

For any A⊆B⊆[N]A\subseteq B\subseteq[N] and j∉Bj\notin B, the marginal improvement from adding response jj is

P(A∪{j})−P(A)=Pr⁡(Cj∖⋃i∈ACi),\begin{aligned}\displaystyle P(A\cup\{j\})-P(A) & \displaystyle=\Pr\left(\mathcal{C}_{j}\setminus\bigcup_{i\in A}\mathcal{C}_{i}\right),\end{aligned}
(38)
P(B∪{j})−P(B)=Pr⁡(Cj∖⋃i∈BCi).\begin{aligned}\displaystyle P(B\cup\{j\})-P(B) & \displaystyle=\Pr\left(\mathcal{C}_{j}\setminus\bigcup_{i\in B}\mathcal{C}_{i}\right).\end{aligned}
(39)

Since A⊆BA\subseteq B,

(Cj∖⋃i∈BCi)⊆(Cj∖⋃i∈ACi).\Bigl(\mathcal{C}_{j}\setminus\bigcup_{i\in B}\mathcal{C}_{i}\Bigr)\subseteq\Bigl(\mathcal{C}_{j}\setminus\bigcup_{i\in A}\mathcal{C}_{i}\Bigr).
(40)

Taking probabilities therefore gives

P(A∪{j})−P(A)≥P(B∪{j})−P(B),P(A\cup\{j\})-P(A)\geq P(B\cup\{j\})-P(B),
(41)

which is precisely the submodular function property. Moreover, P(∅)=0P(\varnothing)=0, and P(A)≤P(B)P(A)\leq P(B) whenever A⊆BA\subseteq B. Hence the exact pass probability is normalized, monotone, and submodular. This conclusion holds for an arbitrary joint distribution of the correctness events and does not require any latent-variable model or conditional independence.

Now, we show that the approximation under the Gaussian latent model itself is a monotone submodular function. Note that, every approximation of a submodular function may not necessarily be submodular. Before, we proceed, let’s try to get an intuition on the fact that L~(S)\widetilde{L}(S) indeed represents some notion of a probability. Conditional on f\mathbf{f}, each term of the product in L~(S)\widetilde{L}(S) can be written as

gi(f):=Φ(−qi)exp⁡(−λihi⊤f−κi2(hi⊤f)2).\displaystyle g_{i}(\mathbf{f}):=\Phi(-q_{i})\exp\left(-\lambda_{i}h_{i}^{\top}\mathbf{f}-\frac{\kappa_{i}}{2}(h_{i}^{\top}\mathbf{f})^{2}\right).
(42)

Consequently,

L~(S)=Ef∼N(0,Id)∏i∈Sgi(f).\displaystyle\widetilde{L}(S)=\mathbb{E}_{\mathbf{f}\sim\mathcal{N}(0,I_{d})}\prod_{i\in S}g_{i}(\mathbf{f}).
(43)

Hence, for L~(S)\widetilde{L}(S) to be a definition of some kind of failure probability of selection of correct elements conditioned on f\mathbf{f}, it would suffice to prove that gi(f)<1g_{i}(\mathbf{f})<1. Towards this, for a scalar qq, write

λ(q):=ϕ(q)Φ(−q),κ(q):=λ(q)(λ(q)−q),\lambda(q):=\frac{\phi(q)}{\Phi(-q)},\qquad\kappa(q):=\lambda(q)(\lambda(q)-q),
(44)

and define

β(q):=Φ(−q)exp⁡ ⁣(λ(q)22κ(q))=Φ(−q)exp⁡ ⁣(λ(q)2(λ(q)−q)).\beta(q):=\Phi(-q)\exp\!\left(\frac{\lambda(q)^{2}}{2\kappa(q)}\right)=\Phi(-q)\exp\!\left(\frac{\lambda(q)}{2(\lambda(q)-q)}\right).
(45)
Lemma 1.

For every finite q∈Rq\in\mathbb{R}, one has 0<β(q)<10<\beta(q)<1. Moreover, β(q)\beta(q) is strictly decreasing in qq.

Proof.

Let Φ‾(q):=Φ(−q)=1−Φ(q)\overline{\Phi}(q):=\Phi(-q)=1-\Phi(q) and put

v(q):=λ(q)−q>0,r(q):=log⁡β(q)=log⁡Φ‾(q)+λ(q)2v(q).v(q):=\lambda(q)-q>0,\qquad r(q):=\log\beta(q)=\log\overline{\Phi}(q)+\frac{\lambda(q)}{2v(q)}.
(46)

Since Φ‾′(q)=−ϕ(q)\overline{\Phi}^{\prime}(q)=-\phi(q), we have

ddqlog⁡Φ‾(q)=−λ(q).\frac{d}{dq}\log\overline{\Phi}(q)=-\lambda(q).
(47)

Also, direct differentiation gives

λ′(q)=λ(q)(λ(q)−q)=λ(q)v(q),v′(q)=λ(q)v(q)−1.\lambda^{\prime}(q)=\lambda(q)(\lambda(q)-q)=\lambda(q)v(q),\qquad v^{\prime}(q)=\lambda(q)v(q)-1.
(48)

Consequently,

r′(q)=−λ(q)+λ′(q)v(q)−λ(q)v′(q)2v(q)2=λ(q)2v(q)2(1−qv(q)−2v(q)2).\begin{aligned}\displaystyle r^{\prime}(q) & \displaystyle=-\lambda(q)+\frac{\lambda^{\prime}(q)v(q)-\lambda(q)v^{\prime}(q)}{2v(q)^{2}}=\frac{\lambda(q)}{2v(q)^{2}}\left(1-qv(q)-2v(q)^{2}\right).\end{aligned}
(49)

It remains to show that the expression in parentheses is negative. For this, let X∼N(0,1)X\sim N(0,1). Using the fact that, E[X∣X>q]=λ(q)\mathbb{E}[X\mid X>q]=\lambda(q), and E[X2∣X>q]=1+qλ(q)\mathbb{E}[X^{2}\mid X>q]=1+q\lambda(q), we get

E[X−q ∣ X>q]=v(q),E[(X−q)2 ∣ X>q]=1−qv(q).\mathbb{E}\left[X-q\ \big|\ X>q\right]=v(q),\qquad\mathbb{E}\left[(X-q)^{2}\ \big|\ X>q\right]=1-qv(q).
(50)

Hence, it would suffice to prove that

12E[(X−q)2 ∣ X>q]≤(E[X−q ∣ X>q])2.\frac{1}{2}\mathbb{E}\left[(X-q)^{2}\ \big|\ X>q\right]\leq\left(\mathbb{E}\left[X-q\ \big|\ X>q\right]\right)^{2}.
(51)

To prove the above expression, consider

T(x):=Pr⁡(X−q>x∣X>q)=Φ‾(q+x)Φ‾(q),x≥0.T(x):=\Pr(X-q>x|X>q)=\frac{\overline{\Phi}(q+x)}{\overline{\Phi}(q)},\qquad x\geq 0.
(52)

Under the conditional law given X>qX>q, the random variable X−qX-q is nonnegative. Hence, by the tail-integral formula for second moments [12, Lemma 2.2.13],

12E[(X−q)2∣X>q]=E[∫0∞t 1{X−q>t} dt ∣ X>q]\begin{aligned}\displaystyle\frac{1}{2}\mathbb{E}\bigl[(X-q)^{2}\mid X>q\bigr] & \displaystyle=\mathbb{E}\left[\left.\int_{0}^{\infty}t\,\mathbf{1}_{\{X-q>t\}}\,dt\,\right|\,X>q\right]\end{aligned}
(53)
=∫0∞t Pr⁡(X−q>t∣X>q) dt=∫0∞tT(t) dt.\begin{aligned} & \displaystyle=\int_{0}^{\infty}t\,\Pr(X-q>t\mid X>q)\,dt=\int_{0}^{\infty}tT(t)\,dt.\end{aligned}
(54)

The interchange of expectation and integration is justified by Tonelli’s theorem [12, Theorem 1.7.2], since the integrand is nonnegative. Moreover, substituting t=x+yt=x+y in the inner integral and then exchanging the order of integration by Tonelli’s theorem again, we obtain

∫0∞∫0∞T(x+y) dx dy=∫0∞∫y∞T(t) dt dy=∫0∞∫0tT(t) dy dt=∫0∞tT(t) dt.\begin{aligned}\displaystyle\int_{0}^{\infty}\int_{0}^{\infty}T(x+y)\,dx\,dy & \displaystyle=\int_{0}^{\infty}\int_{y}^{\infty}T(t)\,dt\,dy=\int_{0}^{\infty}\int_{0}^{t}T(t)\,dy\,dt=\int_{0}^{\infty}tT(t)\,dt.\end{aligned}
(55)

Here the integration region is {(y,t):0≤y≤t<∞}\{(y,t):0\leq y\leq t<\infty\}, and nonnegativity of TT justifies the exchange. We know that λ\lambda is strictly increasing because λ′(q)=κ(q)>0\lambda^{\prime}(q)=\kappa(q)>0. Hence, for x,y>0x,y>0,

T(x+y)T(x)=exp⁡ ⁣(−∫xx+yλ(q+t) dt)<exp⁡ ⁣(−∫0yλ(q+t) dt)=T(y),\begin{aligned}\displaystyle\frac{T(x+y)}{T(x)} & \displaystyle=\exp\!\left(-\int_{x}^{x+y}\lambda(q+t)\,dt\right)<\exp\!\left(-\int_{0}^{y}\lambda(q+t)\,dt\right)=T(y),\end{aligned}
(56)

and therefore T(x+y)<T(x)T(y)T(x+y)<T(x)T(y). Thus, we get that

12E[(X−q)2 ∣ X>q]=∫0∞tT(t) dt=∫0∞ ⁣∫0∞T(x+y) dx dy\begin{aligned}\displaystyle\frac{1}{2}\mathbb{E}\left[(X-q)^{2}\ \big|\ X>q\right] & \displaystyle=\int_{0}^{\infty}tT(t)\,dt=\int_{0}^{\infty}\!\int_{0}^{\infty}T(x+y)\,dx\,dy\end{aligned}
(57)
<(∫0∞T(x) dx)2=(E[X−q ∣ X>q])2.\begin{aligned} & \displaystyle<\left(\int_{0}^{\infty}T(x)\,dx\right)^{2}=\left(\mathbb{E}\left[X-q\ \big|\ X>q\right]\right)^{2}.\end{aligned}
(58)

Combining Eq. 50 and Eq. 58 yields

1−qv(q)−2v(q)2<0.1-qv(q)-2v(q)^{2}<0.
(59)

By Eq. 49, r′(q)<0r^{\prime}(q)<0. Finally, as q→−∞q\to-\infty, Φ‾(q)→1\overline{\Phi}(q)\to 1, λ(q)→0\lambda(q)\to 0, and λ(q)/(2v(q))→0\lambda(q)/(2v(q))\to 0. Thus r(q)→0r(q)\to 0. Since rr is strictly decreasing, r(q)<0r(q)<0 for every finite qq. Equivalently, 0<β(q)<10<\beta(q)<1, and β\beta is strictly decreasing. ∎

Thus, coming back to gi(f)g_{i}(\mathbf{f}), completing the square in the scalar x=hi⊤fx=h_{i}^{\top}\mathbf{f} gives

gi(f)=Φ(−qi)exp⁡ ⁣(−κi2(x+λiκi)2+λi22κi)≤β(qi)<1\begin{aligned}\displaystyle g_{i}(\mathbf{f}) & \displaystyle=\Phi(-q_{i})\exp\!\left(-\frac{\kappa_{i}}{2}\left(x+\frac{\lambda_{i}}{\kappa_{i}}\right)^{2}+\frac{\lambda_{i}^{2}}{2\kappa_{i}}\right)\leq\beta(q_{i})<1\end{aligned}
(60)

by Lemma 1. Thus 0<gi(f)<10<g_{i}(\mathbf{f})<1 for every ii and every f\mathbf{f}. Hence, one can define the approximate pass@k\mathrm{pass}@k probability by

P~(S):=1−L~(S).\widetilde{P}(S):=1-\widetilde{L}(S).
(61)

It follows immediately from Eq. 43 that L~\widetilde{L} decreases under set inclusion, and hence P~=1−L~\widetilde{P}=1-\widetilde{L} is monotone. Also, P~(∅)=1−1=0\widetilde{P}(\varnothing)=1-1=0, so P~\widetilde{P} is normalized.

Now let A⊆BA\subseteq B and j∉Bj\notin B. The marginal improvement obtained by adding jj is

P~(A∪{j})−P~(A)=L~(A)−L~(A∪{j})=Ef[(1−gj(f))∏i∈Agi(f)].\begin{aligned}\displaystyle\widetilde{P}(A\cup\{j\})-\widetilde{P}(A) & \displaystyle=\widetilde{L}(A)-\widetilde{L}(A\cup\{j\})=\mathbb{E}_{\mathbf{f}}\left[(1-g_{j}(\mathbf{f}))\prod_{i\in A}g_{i}(\mathbf{f})\right].\end{aligned}
(62)

Because every gi(f)g_{i}(\mathbf{f}) lies in (0,1)(0,1),

(1−gj(f))∏i∈Agi(f)≥(1−gj(f))∏i∈Bgi(f)(1-g_{j}(\mathbf{f}))\prod_{i\in A}g_{i}(\mathbf{f})\geq(1-g_{j}(\mathbf{f}))\prod_{i\in B}g_{i}(\mathbf{f})
(63)

pointwise in f\mathbf{f}. Taking expectations proves that P~\widetilde{P} is submodular.

Since P~\widetilde{P} is normalized, monotone, and submodular (Section B.2.2), by Nemhauser et al. 32, the greedy solution satisfies the guarantee of Theorem 2. □\square

Proof.

We show that the problem is NP-hard even when all qiq_{i} equal the same integer and all hih_{i} have entries in {0,1}\{0,1\}. We reduce from the independent set problem, which asks whether a graph contains kk pairwise non-adjacent vertices and is NP-complete [20]. Let GG be a graph on the vertex set [N][N] with edge set EE, adjacency matrix AA and maximum degree Δ≥1\Delta\geq 1 (the case without edges is trivial). For S⊆[N]S\subseteq[N], let ASA_{S} be the adjacency matrix of the subgraph induced by SS and e(S)e(S) its number of edges. We construct an instance whose minimizers are independent sets of size kk whenever such a set exists.

Let d=∣E∣+NΔd=|E|+N\Delta. The first ∣E∣|E| coordinates of Rd\mathbb{R}^{d} are indexed by the edges of GG, and the remaining ones are split into NN blocks of Δ\Delta coordinates, one block per vertex. For each vertex ii, let hi∈{0,1}dh_{i}\in\{0,1\}^{d} have a one in the coordinate of every edge incident to ii and a one in Δ−deg⁡(i)\Delta-\deg(i) coordinates of its own block. Two distinct vertices share a nonzero coordinate only if they are adjacent, and then they share exactly one, so ∥hi∥22=Δ\|h_{i}\|_{2}^{2}=\Delta and hi⊤hj=Aijh_{i}^{\top}h_{j}=A_{ij} for i≠ji\neq j, and the Gram matrix of {hi}i∈S\{h_{i}\}_{i\in S} is ΔIk+AS\Delta I_{k}+A_{S}. We further set qi=qq_{i}=q for all ii, for an integer q≤−1q\leq-1 fixed below, so that λi=λ\lambda_{i}=\lambda and κi=κ\kappa_{i}=\kappa. Then ΣS=κ∑i∈Shihi⊤\Sigma_{S}=\kappa\sum_{i\in S}h_{i}h_{i}^{\top} and bS=λ∑i∈Shib_{S}=\lambda\sum_{i\in S}h_{i}, and Eq. 11 reads

log⁡L~(S)=klog⁡Φ(−q)−12D(S)+R(S),\log\widetilde{L}(S)=k\log\Phi(-q)-\frac{1}{2}D(S)+R(S),
(64)

where D(S)=log⁡det⁡(Id+ΣS)D(S)=\log\det(I_{d}+\Sigma_{S}) and R(S)=12bS⊤(Id+ΣS)−1bS≥0R(S)=\frac{1}{2}b_{S}^{\top}(I_{d}+\Sigma_{S})^{-1}b_{S}\geq 0. Since q≤−1q\leq-1, we have Φ(−q)≥12\Phi(-q)\geq\frac{1}{2}, hence λ≤2ϕ(q)<12\lambda\leq 2\phi(q)<\frac{1}{2} and λ∣q∣≤2∣q∣ϕ(q)≤2ϕ(1)<12\lambda|q|\leq 2|q|\phi(q)\leq 2\phi(1)<\frac{1}{2}, where we used that tϕ(t)t\phi(t) is decreasing for t≥1t\geq 1. Consequently,

λ∣q∣≤κ=λ2+λ∣q∣<1.\lambda|q|\leq\kappa=\lambda^{2}+\lambda|q|<1.
(65)

We first show that DD is maximized exactly by the independent sets, with an explicit margin. By Sylvester’s determinant identity and the form of the Gram matrix,

D(S)=log⁡det⁡((1+κΔ)Ik+κAS)=klog⁡(1+κΔ)+∑j=1klog⁡(1+xj),xj=κμj1+κΔ,D(S)=\log\det\bigl((1+\kappa\Delta)I_{k}+\kappa A_{S}\bigr)=k\log(1+\kappa\Delta)+\sum_{j=1}^{k}\log(1+x_{j}),\qquad x_{j}=\frac{\kappa\mu_{j}}{1+\kappa\Delta},
(66)

where μ1,…,μk\mu_{1},\ldots,\mu_{k} are the eigenvalues of ASA_{S}. They satisfy ∑jμj=tr⁡AS=0\sum_{j}\mu_{j}=\operatorname{tr}A_{S}=0, ∑jμj2=tr⁡AS2=2e(S)\sum_{j}\mu_{j}^{2}=\operatorname{tr}A_{S}^{2}=2e(S) and ∣μj∣≤Δ|\mu_{j}|\leq\Delta, hence ∑jxj=0\sum_{j}x_{j}=0 and ∣xj∣<1|x_{j}|<1. If SS is independent, then AS=0A_{S}=0 and D(S)=klog⁡(1+κΔ)D(S)=k\log(1+\kappa\Delta). Otherwise e(S)≥1e(S)\geq 1, and the inequality log⁡(1+x)≤x−x2/8\log(1+x)\leq x-x^{2}/8 for ∣x∣<1|x|<1, together with Eq. 65, gives

D(S)≤klog⁡(1+κΔ)−18∑j=1kxj2=klog⁡(1+κΔ)−κ2e(S)4(1+κΔ)2≤klog⁡(1+κΔ)−κ24(1+Δ)2.D(S)\leq k\log(1+\kappa\Delta)-\frac{1}{8}\sum_{j=1}^{k}x_{j}^{2}=k\log(1+\kappa\Delta)-\frac{\kappa^{2}e(S)}{4(1+\kappa\Delta)^{2}}\leq k\log(1+\kappa\Delta)-\frac{\kappa^{2}}{4(1+\Delta)^{2}}.
(67)

We next bound the penalty term uniformly over SS. Since (Id+ΣS)−1⪯Id(I_{d}+\Sigma_{S})^{-1}\preceq I_{d} and ∥∑i∈Shi∥22=kΔ+2e(S)≤k(Δ+k)\bigl\|\sum_{i\in S}h_{i}\bigr\|_{2}^{2}=k\Delta+2e(S)\leq k(\Delta+k), we have 0≤R(S)≤12∥bS∥22≤12λ2k(Δ+k)0\leq R(S)\leq\frac{1}{2}\|b_{S}\|_{2}^{2}\leq\frac{1}{2}\lambda^{2}k(\Delta+k).

Now suppose that GG contains an independent set S∘S^{\circ} of size kk, and let SS be a set of size kk with e(S)≥1e(S)\geq 1. Combining the two bounds with Eq. 65,

log⁡L~(S)−log⁡L~(S∘)≥12(D(S∘)−D(S))−R(S∘)≥κ28(1+Δ)2−λ22 k(Δ+k)\begin{aligned}\displaystyle\log\widetilde{L}(S)-\log\widetilde{L}(S^{\circ}) & \displaystyle\geq\frac{1}{2}\bigl(D(S^{\circ})-D(S)\bigr)-R(S^{\circ})\geq\frac{\kappa^{2}}{8(1+\Delta)^{2}}-\frac{\lambda^{2}}{2}\,k(\Delta+k)\end{aligned}
(68)
≥λ2(q28(1+Δ)2−k(Δ+k)2),\begin{aligned} & \displaystyle\geq\lambda^{2}\Bigl(\frac{q^{2}}{8(1+\Delta)^{2}}-\frac{k(\Delta+k)}{2}\Bigr),\end{aligned}
(69)

and the right-hand side is positive for q=−2(1+Δ)(Δ+k)q=-2(1+\Delta)(\Delta+k). With this choice, every minimizer of log⁡L~\log\widetilde{L} is an independent set whenever GG contains one of size kk, so GG contains an independent set of size kk if and only if a minimizer of log⁡L~\log\widetilde{L} is independent. The instance consists of NN binary vectors of dimension d=∣E∣+NΔd=|E|+N\Delta and a single integer qq of polynomial magnitude, so it is constructed in polynomial time, which proves the claim. ∎

This section proves Proposition 2, which describes the failure probability and its surrogate when the correlations between rollouts are weak. To weaken the correlations while keeping the quality scores fixed, we replace f\mathbf{f} by ρ f\rho\,\mathbf{f} for ρ>0\rho>0, so that

Zi=qi+ρ hi⊤f+mi,Cov⁡(Zi,Zj∣H)=ρ2hi⊤hj(i≠j),\mathbf{Z}_{i}=q_{i}+\rho\,h_{i}^{\top}\mathbf{f}+\mathbf{m}_{i},\qquad\operatorname{Cov}(\mathbf{Z}_{i},\mathbf{Z}_{j}\mid H)=\rho^{2}h_{i}^{\top}h_{j}\quad(i\neq j),
(70)

and ρ=1\rho=1 recovers the model of Section 3.1. The quality scores qi=Qθ(hi)q_{i}=Q_{\theta}(h_{i}) and the representations hih_{i} are held fixed. Since only the products ρ hi\rho\,h_{i} enter the model, this is equivalent to scaling the representations by ρ\rho with the qiq_{i} fixed, as in assumption (A2) of Appendix C. The failure probability of a set SS becomes

L(S)=Ef∏i∈SΦ(−qi−ρ hi⊤f),L(S)=\mathbb{E}_{\mathbf{f}}\prod_{i\in S}\Phi\bigl(-q_{i}-\rho\,h_{i}^{\top}\mathbf{f}\bigr),
(71)

and its surrogate is Eq. 11 with every hih_{i} replaced by ρ hi\rho\,h_{i}.

Proof of Proposition 2.

Let εi=ρ hi⊤f\varepsilon_{i}=\rho\,h_{i}^{\top}\mathbf{f} for i∈Si\in S, so that εS∼N(0,K)\varepsilon_{S}\sim\mathcal{N}(0,K) with Kij=ρ2hi⊤hjK_{ij}=\rho^{2}h_{i}^{\top}h_{j}, and let ui(x)=log⁡Φ(−qi−x)u_{i}(x)=\log\Phi(-q_{i}-x). Then ui′(0)=−λiu_{i}^{\prime}(0)=-\lambda_{i} and ui′′(0)=−κiu_{i}^{\prime\prime}(0)=-\kappa_{i}, and every derivative of log⁡Φ\log\Phi of order two or higher is bounded on R\mathbb{R}. By Taylor’s theorem, for all x∈Rx\in\mathbb{R},

ui(x)−ui(0)=−λix−12κix2+16ui′′′(0) x3+ri(x),∣ri(x)∣≤Cx4,u_{i}(x)-u_{i}(0)=-\lambda_{i}x-\frac{1}{2}\kappa_{i}x^{2}+\frac{1}{6}u_{i}^{\prime\prime\prime}(0)\,x^{3}+r_{i}(x),\qquad|r_{i}(x)|\leq Cx^{4},
(72)

where CC does not depend on ρ\rho. Let X=∑i∈S(ui(εi)−ui(0))X=\sum_{i\in S}\bigl(u_{i}(\varepsilon_{i})-u_{i}(0)\bigr), so that L(S)=∏i∈SΦ(−qi) E eXL(S)=\prod_{i\in S}\Phi(-q_{i})\,\mathbb{E}\,e^{X}. Since Φ≤1\Phi\leq 1, we have eX≤MS:=∏i∈SΦ(−qi)−1e^{X}\leq M_{S}:=\prod_{i\in S}\Phi(-q_{i})^{-1}, and Taylor’s theorem for the exponential gives ∣eX−1−X−12X2−16X3∣≤MS24X4\bigl|e^{X}-1-X-\frac{1}{2}X^{2}-\frac{1}{6}X^{3}\bigr|\leq\frac{M_{S}}{24}X^{4}. Moreover, ∣X∣≤C′(∥εS∥+∥εS∥2)|X|\leq C^{\prime}\bigl(\|\varepsilon_{S}\|+\|\varepsilon_{S}\|^{2}\bigr) for a constant C′C^{\prime}, so EX4=O(ρ4)\mathbb{E}X^{4}=O(\rho^{4}) and

E eX=1+EX+12EX2+16EX3+O(ρ4).\mathbb{E}\,e^{X}=1+\mathbb{E}X+\frac{1}{2}\mathbb{E}X^{2}+\frac{1}{6}\mathbb{E}X^{3}+O(\rho^{4}).
(73)

The odd moments of εS\varepsilon_{S} vanish, and its moments of order four are O(ρ4)O(\rho^{4}). Hence

EX=−12∑i∈SκiKii+O(ρ4),EX2=∑i,j∈SλiλjKij+O(ρ4),EX3=O(ρ4).\begin{aligned}\displaystyle\mathbb{E}X & \displaystyle=-\frac{1}{2}\sum_{i\in S}\kappa_{i}K_{ii}+O(\rho^{4}), & \displaystyle\mathbb{E}X^{2} & \displaystyle=\sum_{i,j\in S}\lambda_{i}\lambda_{j}K_{ij}+O(\rho^{4}), & \displaystyle\mathbb{E}X^{3} & \displaystyle=O(\rho^{4}).\end{aligned}
(74)

With a:=−12∑i∈SκiKii+12∑i,j∈SλiλjKij=O(ρ2)a:=-\frac{1}{2}\sum_{i\in S}\kappa_{i}K_{ii}+\frac{1}{2}\sum_{i,j\in S}\lambda_{i}\lambda_{j}K_{ij}=O(\rho^{2}), this gives E eX=1+a+O(ρ4)\mathbb{E}\,e^{X}=1+a+O(\rho^{4}), and therefore log⁡E eX=a+O(ρ4)\log\mathbb{E}\,e^{X}=a+O(\rho^{4}). Splitting the double sum into its diagonal and off-diagonal parts and using λi2−κi=λiqi\lambda_{i}^{2}-\kappa_{i}=\lambda_{i}q_{i} yields

a=ρ22∑i∈Sλiqi∥hi∥2+ρ2∑i<j∈Sλiλj hi⊤hj,a=\frac{\rho^{2}}{2}\sum_{i\in S}\lambda_{i}q_{i}\|h_{i}\|^{2}+\rho^{2}\sum_{i<j\in S}\lambda_{i}\lambda_{j}\,h_{i}^{\top}h_{j},
(75)

which proves the expansion of log⁡L(S)\log L(S).

For the surrogate, Eq. 11 with ρ hi\rho\,h_{i} in place of hih_{i} reads

log⁡L~(S)=∑i∈Slog⁡Φ(−qi)−12log⁡det⁡(Id+ρ2ΣS)+ρ22 bS⊤(Id+ρ2ΣS)−1bS.\log\widetilde{L}(S)=\sum_{i\in S}\log\Phi(-q_{i})-\frac{1}{2}\log\det(I_{d}+\rho^{2}\Sigma_{S})+\frac{\rho^{2}}{2}\,b_{S}^{\top}(I_{d}+\rho^{2}\Sigma_{S})^{-1}b_{S}.
(76)

Since log⁡det⁡(Id+ρ2ΣS)=ρ2tr⁡ΣS+O(ρ4)\log\det(I_{d}+\rho^{2}\Sigma_{S})=\rho^{2}\operatorname{tr}\Sigma_{S}+O(\rho^{4}) and (Id+ρ2ΣS)−1=Id+O(ρ2)(I_{d}+\rho^{2}\Sigma_{S})^{-1}=I_{d}+O(\rho^{2}),

log⁡L~(S)=∑i∈Slog⁡Φ(−qi)−ρ22∑i∈Sκi∥hi∥2+ρ22∥∑i∈Sλihi∥2+O(ρ4),\log\widetilde{L}(S)=\sum_{i\in S}\log\Phi(-q_{i})-\frac{\rho^{2}}{2}\sum_{i\in S}\kappa_{i}\|h_{i}\|^{2}+\frac{\rho^{2}}{2}\Bigl\|\sum_{i\in S}\lambda_{i}h_{i}\Bigr\|^{2}+O(\rho^{4}),
(77)

and expanding the square gives the same expansion as for log⁡L(S)\log L(S). ∎

Proposition 2 gives intuition for how PKTP moves from Linear Probe to RepExp as kk grows when the correlations are weak. This section makes the two ends of this behavior precise for a fixed correlation scale ρ\rho. PKTP starts from the empty set and repeatedly adds the candidate jj with the smallest log⁡L~(S∪{j})−log⁡L~(S)\log\widetilde{L}(S\cup\{j\})-\log\widetilde{L}(S), and we call this the surrogate greedy rule. At one end, the probe-style rule keeps the kk candidates with the largest qiq_{i}, as Linear Probe does. At the other end, RepExp is implicitly a greedy rule as well. After a random first pick, RepExp with regularizer τ\tau adds at each step the candidate that most increases log⁡det⁡(Id+τ−1GS)\log\det(I_{d}+\tau^{-1}G_{S}), where GS:=∑i∈Shihi⊤G_{S}:=\sum_{i\in S}h_{i}h_{i}^{\top} is the Gram matrix of the kept representations (Section A.3).

We keep the notation of Corollary 1, with λ(q):=ϕ(q)/Φ(−q)\lambda(q):=\phi(q)/\Phi(-q), κ(q):=λ(q)(λ(q)−q)\kappa(q):=\lambda(q)(\lambda(q)-q), λi=λ(qi)\lambda_{i}=\lambda(q_{i}) and κi=κ(qi)\kappa_{i}=\kappa(q_{i}). Then ΣS=∑i∈Sκihihi⊤\Sigma_{S}=\sum_{i\in S}\kappa_{i}h_{i}h_{i}^{\top}, bS=∑i∈Sλihib_{S}=\sum_{i\in S}\lambda_{i}h_{i}, and, as in Eq. 11,

log⁡L~(S)=∑i∈Slog⁡Φ(−qi)−12log⁡det⁡(Id+ΣS)+12bS⊤(Id+ΣS)−1bS.\log\widetilde{L}(S)=\sum_{i\in S}\log\Phi(-q_{i})-\frac{1}{2}\log\det(I_{d}+\Sigma_{S})+\frac{1}{2}b_{S}^{\top}(I_{d}+\Sigma_{S})^{-1}b_{S}.
(78)

We now give an overview of the results of Appendix C and the assumptions they rely on.

Section C.2 states the three assumptions that the results rely on. The first is that most candidates, the bulk, have qualities drawn independently from a fixed bounded distribution, while a few candidates, the spikes, have fixed qualities above every bulk quality. In other words, the pool contains a few spikes whose quality is higher than that of any other candidate, while the bulk consists of lower-quality candidates drawn from a common distribution. The second is that the representations are hi=ρvih_{i}=\rho v_{i} with ∥vi∥2≤1\|v_{i}\|_{2}\leq 1 for a fixed scale ρ\rho, and do not depend on the qualities. Thus ρ\rho caps how strongly two candidates can be correlated, since Cov⁡(Zi,Zj∣H)=hi⊤hj≤ρ2\operatorname{Cov}(\mathbf{Z}_{i},\mathbf{Z}_{j}\mid H)=h_{i}^{\top}h_{j}\leq\rho^{2}, as in Proposition 2, and the similarity between candidates carries no information about their qualities. The third is needed only for large budgets. There we minimize the objective over a family of size-kk sets, and we require these sets to be diverse, meaning that their representations point in all directions rather than being concentrated in a few.

Section C.3 shows that at small budgets the two rules agree when the gap between the kkth and (k+1)(k+1)th largest qualities, measured as log⁡Φ(−q(k+1))−log⁡Φ(−q(k))\log\Phi(-q_{(k+1)})-\log\Phi(-q_{(k)}), exceeds a constant multiple of kρ2k\rho^{2}, which bounds the correlation terms that kk picks can accumulate. The surrogate greedy rule then returns exactly the top-kk set of the probe-style rule, and if this condition holds at every budget up to kk, it also adds these candidates in the same order.

Section C.4 shows that at large budgets PKTP and RepExp optimize nearly the same objective. To see this, we average the objective of PKTP over the bulk qualities, for the diverse sets of the third assumption. Apart from a constant and an error that shrinks as kk grows, minimizing this average is the same as keeping the spikes and maximizing the RepExp objective. This is a statement about the objectives, and it does not mean that PKTP and RepExp pick the same set.

Section C.5 constructs an explicit model in which both results hold. It fixes one quality distribution and one correlation scale ρ\rho. In this model, the surrogate greedy rule follows the probe-style rule for every k≤3k\leq 3, while the large-budget result holds as kk grows.

We use kk for the selection budget, with 1≤k≤N1\leq k\leq N for a fixed candidate pool. The three assumptions below concern the quality scores and the representations of the candidates.

  1. (A1)

    Bulk and spikes. There is a fixed set O={o1,…,or}O=\{o_{1},\ldots,o_{r}\} of r≥1r\geq 1 candidates, the spikes. The qualities of all other candidates, the bulk, are drawn independently from a distribution Dq\mathcal{D}_{q} supported in a fixed interval [w0,w]⊆[−M,M][w_{0},w]\subseteq[-M,M] for a finite MM. The spike qualities are fixed, lie in [−M,M][-M,M], and satisfy

    qo1>qo2>⋯>qor>w,q_{o_{1}}>q_{o_{2}}>\cdots>q_{o_{r}}>w,
    (79)

    so every spike has a higher quality than every bulk candidate.

  2. (A2)

    Correlation scale. The representations are hi=ρvih_{i}=\rho v_{i} with ∥vi∥2≤1\|v_{i}\|_{2}\leq 1 and a fixed 0<ρ≤10<\rho\leq 1. They are deterministic, so they do not depend on the bulk qualities. A small ρ\rho means weak correlations between candidates, as in Proposition 2. The small-budget result needs ρ\rho to be small compared to a quality gap, while the large-budget results allow any fixed ρ>0\rho>0.

  3. (A3)

    Diverse representations. For large budgets, we let k→∞k\to\infty along a sequence of candidate pools of sizes Nk≥kN_{k}\geq k, while the dimension dd, the spikes and their qualities, the scale ρ\rho, and the distribution Dq\mathcal{D}_{q} stay fixed. The large-budget results minimize the objective over a family Ak\mathcal{A}_{k} of size-kk subsets of [Nk][N_{k}] with the following properties. It is deterministic and chosen independently of the bulk qualities. It is nonempty for every sufficiently large kk, and every S∈AkS\in\mathcal{A}_{k} satisfies

    c0kId⪯∑i∈Svivi⊤⪯C0kId,∥∑i∈S∖Ovi∥2≤B0,c_{0}kI_{d}\preceq\sum_{i\in S}v_{i}v_{i}^{\top}\preceq C_{0}kI_{d},\qquad\left\|\sum_{i\in S\setminus O}v_{i}\right\|_{2}\leq B_{0},
    (80)

    where c0,C0,B0>0c_{0},C_{0},B_{0}>0 do not depend on kk or SS. The first condition says that the representations in SS cover every direction, with a total weight that grows linearly in kk, and the second says that the representations of the bulk candidates nearly cancel out. Different sets in Ak\mathcal{A}_{k} may contain different spikes.

This subsection shows that when the gap between the kkth and (k+1)(k+1)th largest qualities is large compared to kρ2k\rho^{2}, PKTP keeps exactly the top-kk candidates, as the probe-style rule does. We write

Λ:=max⁡q∈[−M,M]λ(q)<∞\Lambda:=\max_{q\in[-M,M]}\lambda(q)<\infty
(81)

for the largest value of λ\lambda over the possible qualities, which bounds every λi\lambda_{i}. Order the realized qualities as q(1)≥⋯≥q(N)q_{(1)}\geq\cdots\geq q_{(N)}, and let SktopS_{k}^{\mathrm{top}} be the set of the kk candidates with the largest qualities. For 1≤k<N1\leq k<N, define

Γk:=log⁡Φ(−q(k+1))−log⁡Φ(−q(k)).\Gamma_{k}:=\log\Phi(-q_{(k+1)})-\log\Phi(-q_{(k)}).
(82)

Since ddqlog⁡Φ(−q)=−λ(q)<0\frac{d}{dq}\log\Phi(-q)=-\lambda(q)<0, we have Γk>0\Gamma_{k}>0 exactly when q(k)>q(k+1)q_{(k)}>q_{(k+1)}. This gap measures the quality loss from replacing the weakest member of SktopS_{k}^{\mathrm{top}} by the strongest candidate outside it. The next lemma says that adding a candidate jj to a set of tt candidates changes the objective by its own failure term log⁡Φ(−qj)\log\Phi(-q_{j}), up to an error that grows with tt and vanishes as ρ→0\rho\to 0.

Lemma 2.

Under (A1) and (A2), if ∣S∣=t|S|=t and j∉Sj\notin S, then

∣log⁡L~(S∪{j})−log⁡L~(S)−log⁡Φ(−qj)∣≤ρ22+Λ2(t+12)ρ2+Λ2t2ρ42.\left|\log\widetilde{L}(S\cup\{j\})-\log\widetilde{L}(S)-\log\Phi(-q_{j})\right|\leq\frac{\rho^{2}}{2}+\Lambda^{2}\left(t+\frac{1}{2}\right)\rho^{2}+\frac{\Lambda^{2}t^{2}\rho^{4}}{2}.
(83)
Proof.

We first record 0<κ(q)<10<\kappa(q)<1. Positivity is shown in Section B.1.1. For the upper bound, let Z∼N(0,1)Z\sim N(0,1) and recall that

E[Z∣Z>q]=λ(q),E[Z2∣Z>q]=1+qλ(q).\mathbb{E}[Z\mid Z>q]=\lambda(q),\qquad\mathbb{E}[Z^{2}\mid Z>q]=1+q\lambda(q).
(84)

Hence, the conditional variance is

0<Var⁡(Z∣Z>q)=1+qλ(q)−λ(q)2=1−κ(q).0<\operatorname{Var}(Z\mid Z>q)=1+q\lambda(q)-\lambda(q)^{2}=1-\kappa(q).
(85)

Let A=Id+ΣSA=I_{d}+\Sigma_{S}, aj=hj⊤A−1hja_{j}=h_{j}^{\top}A^{-1}h_{j}, and uj=hj⊤A−1bSu_{j}=h_{j}^{\top}A^{-1}b_{S}. The matrix determinant lemma and the Sherman–Morrison formula give

det⁡(A+κjhjhj⊤)=det⁡(A)(1+κjaj),\begin{aligned}\displaystyle\det(A+\kappa_{j}h_{j}h_{j}^{\top}) & \displaystyle=\det(A)(1+\kappa_{j}a_{j}),\end{aligned}
(86)
(A+κjhjhj⊤)−1=A−1−κjA−1hjhj⊤A−11+κjaj.\begin{aligned}\displaystyle(A+\kappa_{j}h_{j}h_{j}^{\top})^{-1} & \displaystyle=A^{-1}-\frac{\kappa_{j}A^{-1}h_{j}h_{j}^{\top}A^{-1}}{1+\kappa_{j}a_{j}}.\end{aligned}
(87)

Expanding the quadratic term with bS∪{j}=bS+λjhjb_{S\cup\{j\}}=b_{S}+\lambda_{j}h_{j} consequently yields

log⁡L~(S∪{j})−log⁡L~(S)=log⁡Φ(−qj)−12log⁡(1+κjaj)+λjuj+λj2aj/2−κjuj2/21+κjaj.\begin{aligned}\displaystyle\log\widetilde{L}(S\cup\{j\})-\log\widetilde{L}(S)={} & \displaystyle\log\Phi(-q_{j})-\frac{1}{2}\log(1+\kappa_{j}a_{j})+\frac{\lambda_{j}u_{j}+\lambda_{j}^{2}a_{j}/2-\kappa_{j}u_{j}^{2}/2}{1+\kappa_{j}a_{j}}.\end{aligned}
(88)

By (A2), ∥hj∥2≤ρ\|h_{j}\|_{2}\leq\rho, and by (A1), ∣qi∣≤M|q_{i}|\leq M, so λi≤Λ\lambda_{i}\leq\Lambda. Since A⪰IdA\succeq I_{d}, we have 0≤aj≤ρ20\leq a_{j}\leq\rho^{2} and

∣uj∣≤∥hj∥2∥A−1∥op∥bS∥2≤tΛρ2.|u_{j}|\leq\|h_{j}\|_{2}\|A^{-1}\|_{\mathrm{op}}\|b_{S}\|_{2}\leq t\Lambda\rho^{2}.
(89)

Using κj<1\kappa_{j}<1, and 1+κjaj≥11+\kappa_{j}a_{j}\geq 1 in Eq. 88, the absolute correction to log⁡Φ(−qj)\log\Phi(-q_{j}) is at most

ρ22+Λ(tΛρ2)+Λ2ρ22+t2Λ2ρ42,\frac{\rho^{2}}{2}+\Lambda(t\Lambda\rho^{2})+\frac{\Lambda^{2}\rho^{2}}{2}+\frac{t^{2}\Lambda^{2}\rho^{4}}{2},
(90)

which is the bound in Eq. 83. ∎

Theorem 3.

Under (A1) and (A2), if kρ2≤1k\rho^{2}\leq 1 and Γk>(1+3Λ2)kρ2\Gamma_{k}>(1+3\Lambda^{2})k\rho^{2}, then SktopS_{k}^{\mathrm{top}} is the unique size-kk minimizer of log⁡L~\log\widetilde{L}, and the surrogate greedy rule returns SktopS_{k}^{\mathrm{top}} after kk steps.

Proof.

First, note that if t≤k−1t\leq k-1 and kρ2≤1k\rho^{2}\leq 1, then twice the bound of Lemma 2 satisfies

ρ2+Λ2(2t+1)ρ2+Λ2t2ρ4≤kρ2+2Λ2kρ2+Λ2k2ρ4≤(1+3Λ2)kρ2<Γk.\rho^{2}+\Lambda^{2}(2t+1)\rho^{2}+\Lambda^{2}t^{2}\rho^{4}\leq k\rho^{2}+2\Lambda^{2}k\rho^{2}+\Lambda^{2}k^{2}\rho^{4}\leq(1+3\Lambda^{2})k\rho^{2}<\Gamma_{k}.
(91)

For any i∈Sktopi\in S_{k}^{\mathrm{top}}, j∉Sktopj\notin S_{k}^{\mathrm{top}}, and common current set SS excluding i,ji,j, Lemma 2 gives, when ∣S∣=t≤k−1|S|=t\leq k-1,

log⁡L~(S∪{i})−log⁡L~(S∪{j})≤log⁡Φ(−qi)−log⁡Φ(−qj)+(1+3Λ2)kρ2\begin{aligned}\displaystyle\log\widetilde{L}(S\cup\{i\})-\log\widetilde{L}(S\cup\{j\}) & \displaystyle\leq\log\Phi(-q_{i})-\log\Phi(-q_{j})+(1+3\Lambda^{2})k\rho^{2}\end{aligned}
(92)
≤−Γk+(1+3Λ2)kρ2<0.\begin{aligned} & \displaystyle\leq-\Gamma_{k}+(1+3\Lambda^{2})k\rho^{2}<0.\end{aligned}
(93)

If the current set of the surrogate greedy rule is contained in SktopS_{k}^{\mathrm{top}}, at least one member of SktopS_{k}^{\mathrm{top}} is still available until the kkth selection. By Eq. 93, every outside candidate is worse than an available inside candidate. Starting with the empty set and inducting therefore proves that the first kk selections form SktopS_{k}^{\mathrm{top}}.

For global optimality, take a size-kk set R≠SktopR\neq S_{k}^{\mathrm{top}}. There exist j∈R∖Sktopj\in R\setminus S_{k}^{\mathrm{top}} and i∈Sktop∖Ri\in S_{k}^{\mathrm{top}}\setminus R. Apply Eq. 93 with S=R∖{j}S=R\setminus\{j\}. Replacing jj by ii strictly decreases log⁡L~\log\widetilde{L}, so RR cannot be an optimizer. This proves uniqueness of the optimizing set, even if some qualities within SktopS_{k}^{\mathrm{top}} are tied. ∎

Applying Theorem 3 at every budget up to kk shows that the surrogate greedy rule also adds these candidates in the probe-style order, as long as every gap up to position kk is large enough. The spikes give such gaps, which leads to the following corollary.

Corollary 2.

Under (A1) and (A2), suppose 1≤r<N1\leq r<N and define

Γ∗:=min⁡({log⁡Φ(−qoj+1)−log⁡Φ(−qoj):1≤j<r}∪{log⁡Φ(−w)−log⁡Φ(−qor)})>0.\Gamma_{*}:=\min\left(\{\log\Phi(-q_{o_{j+1}})-\log\Phi(-q_{o_{j}}):1\leq j<r\}\cup\{\log\Phi(-w)-\log\Phi(-q_{o_{r}})\}\right)>0.
(94)

If rρ2≤1r\rho^{2}\leq 1 and (1+3Λ2)rρ2<Γ∗(1+3\Lambda^{2})r\rho^{2}<\Gamma_{*}, then, for every realization of the bulk qualities, the first rr selections of the surrogate greedy rule are o1,…,oro_{1},\ldots,o_{r} in the order selected by the probe-style rule.

Proof.

All bulk qualities are at most ww. Thus the top rr candidates are the ordered spikes, and each of the gaps Γ1,…,Γr\Gamma_{1},\ldots,\Gamma_{r} is at least Γ∗\Gamma_{*}. Apply Theorem 3 separately at each budget k≤rk\leq r. The nested top-kk sets identify the full greedy order. ∎

The spikes are what keep this result meaningful in large pools. With bulk qualities alone, the gap between the kkth and (k+1)(k+1)th largest qualities typically shrinks as the pool grows, so the condition of Theorem 3 eventually fails. The gaps around the spikes do not depend on the bulk, so Corollary 2 holds for every pool size, while the bulk qualities keep a fixed variance.

We now keep ρ>0\rho>0 fixed and let kk grow. Since GS=ρ2∑i∈Svivi⊤G_{S}=\rho^{2}\sum_{i\in S}v_{i}v_{i}^{\top}, (A3) gives GS⪰c0ρ2kIdG_{S}\succeq c_{0}\rho^{2}kI_{d}. The Gram matrix of a diverse set therefore still grows linearly in kk, and a small ρ\rho only slows this growth by the factor ρ2\rho^{2}. The constants below depend on ρ\rho and on the constants in (A1)–(A3), so the results of this section hold for each fixed ρ\rho as k→∞k\to\infty, but not necessarily when ρ\rho shrinks as kk grows. Define the constants

c‾:=Eq∼Dqlog⁡Φ(−q),λ‾:=Eq∼Dqλ(q),κ‾:=Eq∼Dqκ(q),vλ:=Var⁡q∼Dq(λ(q)).\overline{c}:=\mathbb{E}_{q\sim\mathcal{D}_{q}}\log\Phi(-q),\qquad\overline{\lambda}:=\mathbb{E}_{q\sim\mathcal{D}_{q}}\lambda(q),\qquad\overline{\kappa}:=\mathbb{E}_{q\sim\mathcal{D}_{q}}\kappa(q),\qquad v_{\lambda}:=\operatorname{Var}_{q\sim\mathcal{D}_{q}}(\lambda(q)).
(95)

These expectations are finite by bounded support, and κ‾>0\overline{\kappa}>0 since κ(q)>0\kappa(q)>0.

Theorem 4.

Under (A1)–(A3), uniformly over S∈AkS\in\mathcal{A}_{k},

Elog⁡L~(S)=kc‾+∑o∈S∩O(log⁡Φ(−qo)−c‾)+d vλ2κ‾−12log⁡det⁡(Id+κ‾GS)+O(k−1/2).\mathbb{E}\log\widetilde{L}(S)=k\overline{c}+\sum_{o\in S\cap O}\bigl(\log\Phi(-q_{o})-\overline{c}\bigr)+\frac{d\,v_{\lambda}}{2\overline{\kappa}}-\frac{1}{2}\log\det(I_{d}+\overline{\kappa}G_{S})+O(k^{-1/2}).
(96)

The expectation is over the bulk qualities, for the fixed set SS.

In words, after averaging over the bulk qualities, the objective of a diverse set depends on SS only through the spikes it keeps and through log⁡det⁡(Id+κ‾GS)\log\det(I_{d}+\overline{\kappa}G_{S}), while all other terms are constants. The theorem concerns this average, not log⁡L~(S)\log\widetilde{L}(S) for a single draw of the bulk qualities.

Proof.

Fix S∈AkS\in\mathcal{A}_{k}, and write J=S∩OJ=S\cap O and B=S∖OB=S\setminus O. The expectation of the scalar quality term is exactly

E∑i∈Slog⁡Φ(−qi)=kc‾+∑o∈J(log⁡Φ(−qo)−c‾).\mathbb{E}\sum_{i\in S}\log\Phi(-q_{i})=k\overline{c}+\sum_{o\in J}(\log\Phi(-q_{o})-\overline{c}).
(97)

We treat the determinant and quadratic terms separately. Define

GB=∑i∈Bhihi⊤,ΣJ=∑o∈Jκ(qo)hoho⊤,bJ=∑o∈Jλ(qo)ho,\begin{aligned}\displaystyle G_{B} & \displaystyle=\sum_{i\in B}h_{i}h_{i}^{\top}, & \displaystyle\Sigma_{J} & \displaystyle=\sum_{o\in J}\kappa(q_{o})h_{o}h_{o}^{\top}, & \displaystyle b_{J} & \displaystyle=\sum_{o\in J}\lambda(q_{o})h_{o},\end{aligned}
(98)
A0=Id+κ‾GB+ΣJ,Δ=∑i∈B(κ(qi)−κ‾)hihi⊤,A=Id+ΣS=A0+Δ.\begin{aligned}\displaystyle A_{0} & \displaystyle=I_{d}+\overline{\kappa}G_{B}+\Sigma_{J}, & \displaystyle\Delta & \displaystyle=\sum_{i\in B}(\kappa(q_{i})-\overline{\kappa})h_{i}h_{i}^{\top}, & \displaystyle A & \displaystyle=I_{d}+\Sigma_{S}=A_{0}+\Delta.\end{aligned}
(99)

There are at most rr spike contributions. Removing them from GSG_{S} changes its operator norm by at most rρ2r\rho^{2}, so GB⪰c1kIdG_{B}\succeq c_{1}kI_{d} for all sufficiently large kk, with c1>0c_{1}>0 depending on the fixed ρ\rho. Compactness of the quality interval gives a positive lower bound on every κ(qi)\kappa(q_{i}). Hence AA, A0A_{0}, and every matrix on their connecting line segment have smallest eigenvalue at least c2kc_{2}k.

Independence and centering eliminate the cross terms in the squared Frobenius norm, yielding

EΔ=0,E∥Δ∥F2=Var⁡q∼Dq(κ(q))∑i∈B∥hi∥24=O(k).\mathbb{E}\Delta=0,\qquad\mathbb{E}\|\Delta\|_{F}^{2}=\operatorname{Var}_{q\sim\mathcal{D}_{q}}(\kappa(q))\sum_{i\in B}\|h_{i}\|_{2}^{4}=O(k).
(100)

For At=A0+tΔA_{t}=A_{0}+t\Delta, differentiation gives

ddtlog⁡det⁡At=tr⁡(At−1Δ),d2dt2log⁡det⁡At=−tr⁡(At−1ΔAt−1Δ).\frac{d}{dt}\log\det A_{t}=\operatorname{tr}(A_{t}^{-1}\Delta),\qquad\frac{d^{2}}{dt^{2}}\log\det A_{t}=-\operatorname{tr}(A_{t}^{-1}\Delta A_{t}^{-1}\Delta).
(101)

The absolute second derivative is at most ∥At−1∥op2∥Δ∥F2≤Ck−2∥Δ∥F2\|A_{t}^{-1}\|_{\mathrm{op}}^{2}\|\Delta\|_{F}^{2}\leq Ck^{-2}\|\Delta\|_{F}^{2}. Taylor’s formula and Eq. 100 therefore imply

Elog⁡det⁡A=log⁡det⁡A0+O(k−1).\mathbb{E}\log\det A=\log\det A_{0}+O(k^{-1}).
(102)

Also, A0−(Id+κ‾GS)=∑o∈J(κ(qo)−κ‾)hoho⊤A_{0}-(I_{d}+\overline{\kappa}G_{S})=\sum_{o\in J}(\kappa(q_{o})-\overline{\kappa})h_{o}h_{o}^{\top} has bounded norm. The same line-segment derivative identity, with inverse norm O(k−1)O(k^{-1}), gives

log⁡det⁡A0=log⁡det⁡(Id+κ‾GS)+O(k−1).\log\det A_{0}=\log\det(I_{d}+\overline{\kappa}G_{S})+O(k^{-1}).
(103)

Decompose

bS=b‾+ζ,b‾=bJ+λ‾∑i∈Bhi,ζ=∑i∈B(λ(qi)−λ‾)hi.b_{S}=\overline{b}+\zeta,\qquad\overline{b}=b_{J}+\overline{\lambda}\sum_{i\in B}h_{i},\qquad\zeta=\sum_{i\in B}(\lambda(q_{i})-\overline{\lambda})h_{i}.
(104)

By balance and bounded spike contributions (Assumptions (A1) and (A3)), ∥b‾∥=O(1)\|\overline{b}\|=O(1). Independence gives Eζ=0\mathbb{E}\zeta=0 and Eζζ⊤=vλGB\mathbb{E}\zeta\zeta^{\top}=v_{\lambda}G_{B}. Consequently,

E[bS⊤A0−1bS]=b‾⊤A0−1b‾+vλtr⁡(A0−1GB)=d vλκ‾+O(k−1).\begin{aligned}\displaystyle\mathbb{E}[b_{S}^{\top}A_{0}^{-1}b_{S}] & \displaystyle=\overline{b}^{\top}A_{0}^{-1}\overline{b}+v_{\lambda}\operatorname{tr}(A_{0}^{-1}G_{B})=\frac{d\,v_{\lambda}}{\overline{\kappa}}+O(k^{-1}).\end{aligned}
(105)

For the last equality, the first term is O(k−1)O(k^{-1}) and

A0−1GB=1κ‾(Id−A0−1(Id+ΣJ)).A_{0}^{-1}G_{B}=\frac{1}{\overline{\kappa}}\bigl(I_{d}-A_{0}^{-1}(I_{d}+\Sigma_{J})\bigr).
(106)

It remains to replace A0−1A_{0}^{-1} by the correlated random inverse A−1A^{-1}. The resolvent identity yields A−1−A0−1=−A−1ΔA0−1A^{-1}-A_{0}^{-1}=-A^{-1}\Delta A_{0}^{-1}. Moreover, E∥bS∥24=O(k2)\mathbb{E}\|b_{S}\|_{2}^{4}=O(k^{2}). To justify this last estimate, write each coordinate of ζ\zeta as a sum of independent centered bounded variables XiX_{i}. Expanding its fourth power gives

E(∑iXi)4=∑iEXi4+6∑i<jEXi2EXj2=O(k2).\mathbb{E}\left(\sum_{i}X_{i}\right)^{4}=\sum_{i}\mathbb{E}X_{i}^{4}+6\sum_{i<j}\mathbb{E}X_{i}^{2}\mathbb{E}X_{j}^{2}=O(k^{2}).
(107)

There are only dd coordinates, and (∑a=1dza2)2≤d∑a=1dza4(\sum_{a=1}^{d}z_{a}^{2})^{2}\leq d\sum_{a=1}^{d}z_{a}^{4}, so the vector estimate follows; adding b‾=O(1)\overline{b}=O(1) does not change its order. Cauchy–Schwarz now gives

E∣bS⊤(A−1−A0−1)bS∣≤Ck2E[∥bS∥22∥Δ∥F]≤Ck2E∥bS∥24 E∥Δ∥F2=O(k−1/2).\mathbb{E}\left|b_{S}^{\top}(A^{-1}-A_{0}^{-1})b_{S}\right|\leq\frac{C}{k^{2}}\mathbb{E}[\|b_{S}\|_{2}^{2}\|\Delta\|_{F}]\leq\frac{C}{k^{2}}\sqrt{\mathbb{E}\|b_{S}\|_{2}^{4}\,\mathbb{E}\|\Delta\|_{F}^{2}}=O(k^{-1/2}).
(108)

Combining Eq. 97–Eq. 108 with Eq. 78 proves the theorem. Every bound used only the common constants in (A1)–(A3), so the error is uniform over Ak\mathcal{A}_{k}. ∎

The penalty term does not vanish, but on average it contributes the same constant d vλ/(2κ‾)d\,v_{\lambda}/(2\overline{\kappa}) to every diverse set. The spike term in Eq. 96, in contrast, depends on which spikes SS keeps, so it cannot be dropped while keeping a spike is still a choice.

Theorem 4 holds whichever spikes a set contains. To show that the best sets keep all the spikes, we need one more condition on Ak\mathcal{A}_{k}, namely that a missing spike can always be swapped in for a bulk candidate.

Definition 4 (Closure under insertion of a missing spike).

A family Ak\mathcal{A}_{k} of size-kk subsets has the required closure property if, whenever S∈AkS\in\mathcal{A}_{k} and o∈O∖So\in O\setminus S, there is a bulk candidate i∈S∖Oi\in S\setminus O such that

S′=(S∖{i})∪{o}∈Ak.S^{\prime}=(S\setminus\{i\})\cup\{o\}\in\mathcal{A}_{k}.
(109)

This condition only requires one permissible replacement for each missing spike. It is not automatic for a family defined only by the diversity conditions, and Section C.5 gives a concrete family for which it holds.

Lemma 3 (The averaged objective keeps the spikes).

Suppose r≥1r\geq 1, every spike has a fixed quality qo>wq_{o}>w, and Ak\mathcal{A}_{k} satisfies Definition 4. Under the assumptions of Theorem 4, every minimizer of Elog⁡L~(S)\mathbb{E}\log\widetilde{L}(S) over S∈AkS\in\mathcal{A}_{k} contains all of OO for all sufficiently large kk.

Proof.

We first bound the effect of one replacement on a log determinant. Suppose S′=(S∖{i})∪{o}S^{\prime}=(S\setminus\{i\})\cup\{o\}, where ii is a bulk candidate, and both S,S′∈AkS,S^{\prime}\in\mathcal{A}_{k}. Fix ν>0\nu>0 and set

A(t)=Id+ν((1−t)GS+tGS′),0≤t≤1.A(t)=I_{d}+\nu\bigl((1-t)G_{S}+tG_{S^{\prime}}\bigr),\qquad 0\leq t\leq 1.
(110)

The uniform covariance lower bound gives A(t)⪰(1+νck)IdA(t)\succeq(1+\nu ck)I_{d} for some fixed c>0c>0. Also GS′−GS=hoho⊤−hihi⊤G_{S^{\prime}}-G_{S}=h_{o}h_{o}^{\top}-h_{i}h_{i}^{\top}, so

∣ddtlog⁡det⁡A(t)∣=ν∣ho⊤A(t)−1ho−hi⊤A(t)−1hi∣≤ν(∥ho∥22+∥hi∥22)1+νck≤2νρ21+νck.\begin{aligned}\displaystyle\left|\frac{d}{dt}\log\det A(t)\right| & \displaystyle=\nu\left|h_{o}^{\top}A(t)^{-1}h_{o}-h_{i}^{\top}A(t)^{-1}h_{i}\right|\leq\frac{\nu(\|h_{o}\|_{2}^{2}+\|h_{i}\|_{2}^{2})}{1+\nu ck}\leq\frac{2\nu\rho^{2}}{1+\nu ck}.\end{aligned}
(111)

Integrating over t∈[0,1]t\in[0,1] shows, uniformly in the permissible replacement,

∣log⁡det⁡(Id+νGS′)−log⁡det⁡(Id+νGS)∣=O(k−1).\left|\log\det(I_{d}+\nu G_{S^{\prime}})-\log\det(I_{d}+\nu G_{S})\right|=O(k^{-1}).
(112)

Recall that c‾=Eq∼Dqlog⁡Φ(−q)\overline{c}=\mathbb{E}_{q\sim\mathcal{D}_{q}}\log\Phi(-q). Since q≤w<qoq\leq w<q_{o} almost surely under q∼Dqq\sim\mathcal{D}_{q} and q↦log⁡Φ(−q)q\mapsto\log\Phi(-q) is strictly decreasing,

η:=min⁡o∈O(c‾−log⁡Φ(−qo))>0.\eta:=\min_{o\in O}\bigl(\overline{c}-\log\Phi(-q_{o})\bigr)>0.
(113)

The set OO is finite, so this minimum is a fixed positive number. If SS misses spike oo, choose the replacement supplied by the closure condition. The expansion in Theorem 4 and Eq. 112, with ν=κ‾\nu=\overline{\kappa}, give

Elog⁡L~(S′)−Elog⁡L~(S)=log⁡Φ(−qo)−c‾−12[log⁡det⁡(Id+κ‾GS′)−log⁡det⁡(Id+κ‾GS)]+O(k−1/2)\begin{aligned}\displaystyle\mathbb{E}\log\widetilde{L}(S^{\prime})-\mathbb{E}\log\widetilde{L}(S) & \displaystyle=\log\Phi(-q_{o})-\overline{c}-\frac{1}{2}\left[\log\det(I_{d}+\overline{\kappa}G_{S^{\prime}})-\log\det(I_{d}+\overline{\kappa}G_{S})\right]+O(k^{-1/2})\end{aligned}
(114)
≤−η+O(k−1/2)<0\begin{aligned} & \displaystyle\leq-\eta+O(k^{-1/2})<0\end{aligned}
(115)

for all sufficiently large kk. The threshold is uniform over the family. Therefore no minimizer can omit a spike. ∎

Once all spikes are kept, the spike term is the same for every remaining set, so minimizing the average comes down to maximizing the log-determinant. The next corollary makes this precise.

Corollary 3.

Let AkO={S∈Ak:O⊆S}\mathcal{A}_{k}^{O}=\{S\in\mathcal{A}_{k}:O\subseteq S\}, and for ν>0\nu>0 let

Dν(S)=log⁡det⁡(Id+νGS),Skdet⁡(ν)∈arg max⁡S∈AkODν(S).D_{\nu}(S)=\log\det(I_{d}+\nu G_{S}),\qquad S_{k}^{\det}(\nu)\in\operatorname*{arg\,max}_{S\in\mathcal{A}_{k}^{O}}D_{\nu}(S).
(116)

Under the assumptions of Lemma 3, let S^klog⁡\widehat{S}_{k}^{\log} minimize Elog⁡L~(S)\mathbb{E}\log\widetilde{L}(S) over Ak\mathcal{A}_{k}. Then, for all sufficiently large kk,

0≤Dκ‾(Skdet⁡(κ‾))−Dκ‾(S^klog⁡)=O(k−1/2).0\leq D_{\overline{\kappa}}(S_{k}^{\det}(\overline{\kappa}))-D_{\overline{\kappa}}(\widehat{S}_{k}^{\log})=O(k^{-1/2}).
(117)
Proof.

Lemma 3 places each optimizer in AkO\mathcal{A}_{k}^{O} for all sufficiently large kk. On this family, Theorem 4 has the form

Elog⁡L~(S)=Ck−12Dκ‾(S)+ek(S),sup⁡S∈AkO∣ek(S)∣≤Ck−1/2,\mathbb{E}\log\widetilde{L}(S)=C_{k}-\tfrac{1}{2}D_{\overline{\kappa}}(S)+e_{k}(S),\qquad\sup_{S\in\mathcal{A}_{k}^{O}}|e_{k}(S)|\leq Ck^{-1/2},
(118)

where CkC_{k} is independent of SS. Optimality of S^klog⁡\widehat{S}_{k}^{\log}, compared with Skdet⁡(κ‾)S_{k}^{\det}(\overline{\kappa}), implies

12[Dκ‾(Skdet⁡(κ‾))−Dκ‾(S^klog⁡)]≤ek(Skdet⁡(κ‾))−ek(S^klog⁡)≤2Ck−1/2.\tfrac{1}{2}\bigl[D_{\overline{\kappa}}(S_{k}^{\det}(\overline{\kappa}))-D_{\overline{\kappa}}(\widehat{S}_{k}^{\log})\bigr]\leq e_{k}(S_{k}^{\det}(\overline{\kappa}))-e_{k}(\widehat{S}_{k}^{\log})\leq 2Ck^{-1/2}.
(119)

This proves Eq. 117. ∎

Since Dκ‾D_{\overline{\kappa}} is the RepExp objective with τ=1/κ‾\tau=1/\overline{\kappa} (Section A.3), the minimizer of the averaged objective nearly maximizes the RepExp objective among the diverse sets that keep all the spikes.

This subsection constructs an explicit model in which the assumptions of Section C.3 and Section C.4 hold at the same time, for one fixed quality distribution and one fixed ρ\rho. Let NN denote the total candidate-pool size, and consider a nested sequence of pools as N→∞N\to\infty. Each pool contains the same three spikes O={o1,o2,o3}O=\{o_{1},o_{2},o_{3}\}, identified with the indices {1,2,3}\{1,2,3\}, and a bulk set BN=[N]∖O\mathcal{B}_{N}=[N]\setminus O of size N−3N-3. The pools may be coupled by taking one infinite sequence of bulk candidates and letting BN\mathcal{B}_{N} contain its first N−3N-3 members. Throughout the construction, the dimension dd is fixed. For the large-budget regime, fix any exponent α∈(0,1)\alpha\in(0,1) and define the integer-valued budget schedule

k(N):=⌊Nα⌋.k(N):=\left\lfloor N^{\alpha}\right\rfloor.
(120)

Then k(N)→∞k(N)\to\infty and k(N)/N→0k(N)/N\to 0 as N→∞N\to\infty, while 3≤k(N)≤N−33\leq k(N)\leq N-3 for all sufficiently large NN. In the small-budget part of this construction, k∈{1,2,3}k\in\{1,2,3\} denotes a fixed selection budget, whereas k(N)k(N) is the budget used in the large-budget regime. We first choose the quality distribution, then fix the common scale ρ\rho, and finally construct the growing pools and their families Ak\mathcal{A}_{k}.

For the quality model in (A1), draw the bulk qualities independently from Dq=Unif⁡[−γ,γ]\mathcal{D}_{q}=\operatorname{Unif}[-\gamma,\gamma], once for the nested sequence of pools, and let the three spike qualities be

qo1=4γ,qo2=3γ,qo3=2γ.q_{o_{1}}=4\gamma,\qquad q_{o_{2}}=3\gamma,\qquad q_{o_{3}}=2\gamma.
(121)

Here γ>0\gamma>0 is a fixed constant. Thus we may take w0=−γw_{0}=-\gamma, w=γw=\gamma, and M=4γM=4\gamma. Every spike has quality strictly above the entire bulk quality distribution, and

Var⁡q∼Dq(q)=γ23>0.\operatorname{Var}_{q\sim\mathcal{D}_{q}}(q)=\frac{\gamma^{2}}{3}>0.
(122)

In particular, the bulk qualities retain a fixed, nonzero variance as NN grows.

Next, consider the small-budget quality gaps. Since q↦log⁡Φ(−q)q\mapsto\log\Phi(-q) is strictly decreasing, the quantity

Γ∗=min⁡{log⁡Φ(−3γ)−log⁡Φ(−4γ), log⁡Φ(−2γ)−log⁡Φ(−3γ), log⁡Φ(−γ)−log⁡Φ(−2γ)}\displaystyle\Gamma_{*}=\min\bigl\{\log\Phi(-3\gamma)-\log\Phi(-4\gamma),\,\log\Phi(-2\gamma)-\log\Phi(-3\gamma),\,\log\Phi(-\gamma)-\log\Phi(-2\gamma)\bigr\}
(123)

is strictly positive. These gaps do not depend on the number of bulk candidates, since no bulk candidate has a quality above γ\gamma. More explicitly, since ddqlog⁡Φ(−q)=−λ(q)\frac{d}{dq}\log\Phi(-q)=-\lambda(q) and λ′(q)=κ(q)>0\lambda^{\prime}(q)=\kappa(q)>0, each difference in this minimum is the integral of λ\lambda over an interval of length γ\gamma contained in [γ,4γ][\gamma,4\gamma]. Consequently,

Γ∗≥γλ(γ)>0.\Gamma_{*}\geq\gamma\lambda(\gamma)>0.
(124)

Let Λ=max⁡q∈[−4γ,4γ]λ(q)\Lambda=\max_{q\in[-4\gamma,4\gamma]}\lambda(q), and choose the fixed scale ρ>0\rho>0 so that

0<ρ2<min⁡{13, Γ∗3(1+3Λ2)}.0<\rho^{2}<\min\left\{\frac{1}{3},\,\frac{\Gamma_{*}}{3(1+3\Lambda^{2})}\right\}.
(125)

Take deterministic vectors viv_{i} with ∥vi∥2≤1\|v_{i}\|_{2}\leq 1, and set hi=ρvih_{i}=\rho v_{i}, as required by (A2). This choice gives

3ρ2≤1,3(1+3Λ2)ρ2<Γ∗.3\rho^{2}\leq 1,\qquad 3(1+3\Lambda^{2})\rho^{2}<\Gamma_{*}.
(126)

For every N>3N>3 and every realization of the bulk qualities, Corollary 2 therefore applies, so the first three greedy selections are o1,o2,o3o_{1},o_{2},o_{3} in that order. For each fixed k∈{1,2,3}k\in\{1,2,3\}, Theorem 3 also shows that the set {o1,…,ok}\{o_{1},\ldots,o_{k}\} is the unique size-kk minimizer of log⁡L~\log\widetilde{L}. Thus the small-budget conclusion holds uniformly as the pool size NN grows.

For the large-budget part, we first describe a general way to obtain families with the closure property of Definition 4. Let Ck\mathcal{C}_{k} be any nonempty deterministic family of bulk-only size-kk sets such that, for fixed constants Bcore,ccore,Ccore>0B_{\mathrm{core}},c_{\mathrm{core}},C_{\mathrm{core}}>0 independent of kk,

∥∑i∈Uvi∥2≤Bcore,ccorekId⪯∑i∈Uvivi⊤⪯CcorekId,U∈Ck.\begin{aligned}\displaystyle\left\|\sum_{i\in U}v_{i}\right\|_{2} & \displaystyle\leq B_{\mathrm{core}}, & \displaystyle c_{\mathrm{core}}kI_{d}\preceq\sum_{i\in U}v_{i}v_{i}^{\top} & \displaystyle\preceq C_{\mathrm{core}}kI_{d},\qquad U\in\mathcal{C}_{k}.\end{aligned}
(127)

As before, hi=ρvih_{i}=\rho v_{i} with ∥vi∥2≤1\|v_{i}\|_{2}\leq 1, and ρ>0\rho>0 is fixed. Define

Ak={(U∖R)∪J:U∈Ck, J⊆O, R⊆U, ∣R∣=∣J∣}.\mathcal{A}_{k}=\left\{(U\setminus R)\cup J:U\in\mathcal{C}_{k},\ J\subseteq O,\ R\subseteq U,\ |R|=|J|\right\}.
(128)

If S=(U∖R)∪JS=(U\setminus R)\cup J misses a spike oo, replacing any i∈U∖Ri\in U\setminus R by oo gives the same representation with R∪{i}R\cup\{i\} and J∪{o}J\cup\{o\}. Thus this family is closed in the sense of Definition 4, for k≥rk\geq r. Moreover, since at most rr vectors are removed or inserted,

∥∑i∈S∖Ohi∥2≤ρ(Bcore+r),\begin{aligned}\displaystyle\left\|\sum_{i\in S\setminus O}h_{i}\right\|_{2} & \displaystyle\leq\rho(B_{\mathrm{core}}+r),\end{aligned}
(129)
ρ2(ccorek−r)Id⪯GS⪯ρ2(Ccorek+r)Id.\begin{aligned}\displaystyle\rho^{2}(c_{\mathrm{core}}k-r)I_{d}\preceq G_{S} & \displaystyle\preceq\rho^{2}(C_{\mathrm{core}}k+r)I_{d}.\end{aligned}
(130)

For the matrix bounds, use 0⪯vivi⊤⪯Id0\preceq v_{i}v_{i}^{\top}\preceq I_{d} for each removed or inserted vector. For all sufficiently large kk, these imply (A3), for example with B0=Bcore+rB_{0}=B_{\mathrm{core}}+r, c0=ccore/2c_{0}=c_{\mathrm{core}}/2, and C0=Ccore+1C_{0}=C_{\mathrm{core}}+1.

We now build such a core family from antipodal pairs. Let the bulk directions belong to {±e1,…,±ed}\{\pm e_{1},\ldots,\pm e_{d}\}, where e1,…,ede_{1},\ldots,e_{d} are the standard basis vectors. An antipodal pair consists of two distinct candidates with directions eje_{j} and −ej-e_{j}. Its contributions to the vector sum and Gram matrix are, respectively,

ej+(−ej)=0,ejej⊤+(−ej)(−ej)⊤=2ejej⊤.e_{j}+(-e_{j})=0,\qquad e_{j}e_{j}^{\top}+(-e_{j})(-e_{j})^{\top}=2e_{j}e_{j}^{\top}.
(131)

Thus pairing cancels the vector sum while preserving covariance in direction eje_{j}.

Write bℓ:=3+ℓb_{\ell}:=3+\ell for the ℓ\ellth candidate in the infinite bulk sequence, and assign the directions of b1,b2,…b_{1},b_{2},\ldots in the repeating order

e1,−e1,e2,−e2,…,ed,−ed,e1,−e1,….e_{1},-e_{1},e_{2},-e_{2},\ldots,e_{d},-e_{d},e_{1},-e_{1},\ldots.
(132)

Thus BN={b1,…,bN−3}\mathcal{B}_{N}=\{b_{1},\ldots,b_{N-3}\}. The directions are deterministic and independent of the random quality realizations, and the spike directions may be arbitrary deterministic vectors of norm at most one. For all sufficiently large NN, define the bulk-only core and its singleton family by

UN:={b1,…,bk(N)},CN:={UN}.U_{N}:=\{b_{1},\ldots,b_{k(N)}\},\qquad\mathcal{C}_{N}:=\{U_{N}\}.
(133)

Then ∣UN∣=k(N)|U_{N}|=k(N). Let nN,jn_{N,j} denote the number of complete antipodal pairs on axis jj among the first 2⌊k(N)/2⌋2\lfloor k(N)/2\rfloor members of UNU_{N}. If k(N)k(N) is even, UNU_{N} consists entirely of these pairs, and the cyclic construction gives

2∑j=1dnN,j=k(N),nN,j≥k(N)4dfor every j2\sum_{j=1}^{d}n_{N,j}=k(N),\qquad n_{N,j}\geq\frac{k(N)}{4d}\quad\text{for every }j
(134)

for all sufficiently large NN. The lower bound means that at least a fraction 1/(2d)1/(2d) of the selected vectors lies on each axis. In this case,

∑i∈UNvi=0,k(N)2dId⪯∑i∈UNvivi⊤=2diag⁡(nN,1,…,nN,d)⪯k(N)Id.\sum_{i\in U_{N}}v_{i}=0,\qquad\frac{k(N)}{2d}I_{d}\preceq\sum_{i\in U_{N}}v_{i}v_{i}^{\top}=2\operatorname{diag}(n_{N,1},\ldots,n_{N,d})\preceq k(N)I_{d}.
(135)

If k(N)k(N) is odd, its first k(N)−1k(N)-1 members form the complete pairs counted by nN,jn_{N,j}, and these counts satisfy

2∑j=1dnN,j=k(N)−1,nN,j≥k(N)−14d2\sum_{j=1}^{d}n_{N,j}=k(N)-1,\qquad n_{N,j}\geq\frac{k(N)-1}{4d}
(136)

for all sufficiently large NN. The remaining member has direction ejNe_{j_{N}} for an axis jN∈{1,…,d}j_{N}\in\{1,\ldots,d\} determined by the cyclic ordering. Thus

∥∑i∈UNvi∥2=1,k(N)−12dId⪯∑i∈UNvivi⊤⪯k(N)Id.\left\|\sum_{i\in U_{N}}v_{i}\right\|_{2}=1,\qquad\frac{k(N)-1}{2d}I_{d}\preceq\sum_{i\in U_{N}}v_{i}v_{i}^{\top}\preceq k(N)I_{d}.
(137)

Consequently, for both parities and all sufficiently large NN, the core-family bounds hold with the fixed constants

Bcore=1,ccore=14d,Ccore=1.B_{\mathrm{core}}=1,\qquad c_{\mathrm{core}}=\frac{1}{4d},\qquad C_{\mathrm{core}}=1.
(138)

Enlarging this core family as in Eq. 128, with r=3r=3, gives a family ANcon\mathcal{A}_{N}^{\mathrm{con}} of size-k(N)k(N) subsets of [N][N] that is closed under insertion of a missing spike. By Eqs. 129 and 130, it satisfies (A3) for all sufficiently large NN, with B0=4B_{0}=4, c0=1/(8d)c_{0}=1/(8d) and C0=2C_{0}=2. When applying the general large-budget results to this construction, their budget parameter kk is instantiated as k(N)k(N). To recover the generic budget-indexed notation, set

Nk:=⌈k1/α⌉,Ak:=ANkcon.N_{k}:=\left\lceil k^{1/\alpha}\right\rceil,\qquad\mathcal{A}_{k}:=\mathcal{A}_{N_{k}}^{\mathrm{con}}.
(139)

For 0<α<10<\alpha<1, this choice satisfies ⌊Nkα⌋=k\lfloor N_{k}^{\alpha}\rfloor=k and Nk≥k+3N_{k}\geq k+3 for all sufficiently large kk.

Consequently, Lemma 3 applies, so for all sufficiently large NN every minimizer of Elog⁡L~(S)\mathbb{E}\log\widetilde{L}(S) over ANcon\mathcal{A}_{N}^{\mathrm{con}} contains all three spikes, and Corollary 3 holds.

In summary, one fixed quality distribution and one fixed ρ\rho give both regimes. For every k≤3k\leq 3, the correlation terms, of order (1+3Λ2)kρ2(1+3\Lambda^{2})k\rho^{2}, stay below the fixed gap Γ∗\Gamma_{*}, so the surrogate greedy rule follows the probe-style rule for every pool size. As k(N)→∞k(N)\to\infty, the Gram matrix of every set in ANcon\mathcal{A}_{N}^{\mathrm{con}} grows like k(N)ρ2k(N)\rho^{2}, and the results of Section C.4 apply, while the kept fraction k(N)/Nk(N)/N of the pool vanishes.

This section reports the numbers behind Fig. 3. Table 1 gives, for every model, the pass@k\mathrm{pass}@k of each pruning policy pooled over all test problems, and Tables 2 to 9 break these results down by benchmark, one table per model. All tables use the setting of Section 4.1, with a pool of N=128N=128 rollouts, a cutoff of T=4000T=4000 tokens and eight-fold cross-validation repeated 2020 times. Each entry is the average pass@k\mathrm{pass}@k over the repetitions, in percent, and the value in parentheses is its standard error over those repetitions.

Table 1
Table 1: Pass@kk (%), pooled over problems.
Table 2
Table 2: Per-benchmark pass@kk (%), Qwen3-0.6B.
Table 3
Table 3: Per-benchmark pass@kk (%), Qwen3-1.7B.
Table 4
Table 4: Per-benchmark pass@kk (%), OpenMath-Nemotron-1.5B.
Table 5
Table 5: Per-benchmark pass@kk (%), DeepSeek-R1-Distill-Qwen-1.5B.
Table 6
Table 6: Per-benchmark pass@kk (%), Qwen3-8B.
Table 7
Table 7: Per-benchmark pass@kk (%), OpenMath-Nemotron-7B.
Table 8
Table 8: Per-benchmark pass@kk (%), DeepSeek-R1-Distill-Qwen-7B.
Table 9
Table 9: Per-benchmark pass@kk (%), Skywork-OR1-Math-7B.

This section repeats Fig. 3 for the other pool sizes, N∈{32,48,64,80,96,112}N\in\{32,48,64,80,96,112\}, where the pool of each problem is drawn from its 128128 generated rollouts and the cutoff is T=4000T=4000 as in the main setting.

Figure 8
Figure 8: Gain in pass@k\mathrm{pass}@k over random pruning with N=32N=32. As in Fig. 3, with a pool of N=32N=32 rollouts drawn from the 128128 generated for each problem and T=4000T=4000.
Figure 9
Figure 9: Gain in pass@k\mathrm{pass}@k over random pruning with N=48N=48. As in Fig. 3, with a pool of N=48N=48 rollouts drawn from the 128128 generated for each problem and T=4000T=4000.
Figure 10
Figure 10: Gain in pass@k\mathrm{pass}@k over random pruning with N=64N=64. As in Fig. 3, with a pool of N=64N=64 rollouts drawn from the 128128 generated for each problem and T=4000T=4000.
Figure 11
Figure 11: Gain in pass@k\mathrm{pass}@k over random pruning with N=80N=80. As in Fig. 3, with a pool of N=80N=80 rollouts drawn from the 128128 generated for each problem and T=4000T=4000.
Figure 12
Figure 12: Gain in pass@k\mathrm{pass}@k over random pruning with N=96N=96. As in Fig. 3, with a pool of N=96N=96 rollouts drawn from the 128128 generated for each problem and T=4000T=4000.
Figure 13
Figure 13: Gain in pass@k\mathrm{pass}@k over random pruning with N=112N=112. As in Fig. 3, with a pool of N=112N=112 rollouts drawn from the 128128 generated for each problem and T=4000T=4000.

For each rollout, let xt∈Rdx_{t}\in\mathbb{R}^{d} be the hidden state of the last transformer block of the model at the tt-th generated token, where dd is the hidden size of the model, which is 10241024 for Qwen3-0.6B, 20482048 for Qwen3-1.7B, 40964096 for Qwen3-8B, 15361536 for OpenMath-Nemotron-1.5B and DeepSeek-R1-Distill-Qwen-1.5B, and 35843584 for OpenMath-Nemotron-7B, DeepSeek-R1-Distill-Qwen-7B and Skywork-OR1-Math-7B. The EMA follows et=(1−α) et−1+α xte_{t}=(1-\alpha)\,e_{t-1}+\alpha\,x_{t} with α=10−3\alpha=10^{-3}, and hih_{i} is the normalized value of ete_{t} after the first TT generated tokens, or after all of them for a rollout that ends before the cutoff.

Test-time scaling generates many rollouts per problem and aggregates them [44, 3, 35, 48], and a growing line of work saves compute by stopping unpromising rollouts early. One family uses the model’s own confidence, such as token-level confidence or its self-estimate of success, to decide which rollouts to continue [30, 13]. Another scores partial rollouts with a reward model [36] or with a probe on the hidden states [54, 1, 25]. Yang et al. 51 concurrently use such a probe for a beam search over partial rollouts, pruning weak rollouts and branching new rollouts from the best prefixes. All of these score each rollout on its own and keep the highest-scoring ones, which is the pure exploitation extreme of Section 2. At the other extreme, RepExp [39] selects rollouts whose representations are least explained by those already chosen, without using their quality. PKTP sits between the two, since it models how the outcomes of the rollouts depend on each other and chooses the set with the highest predicted pass@k\mathrm{pass}@k.

Pass@kk is a standard evaluation metric for reasoning and code generation, and several works optimize it during training. Walder and Karkhanis 41 derive low-variance policy-gradient estimators for pass@k\mathrm{pass}@k, Chen et al. 8 use pass@k\mathrm{pass}@k as the reward to balance exploration and exploitation, and Chow et al. 10 fine-tune a model for best-of-NN inference. Chen et al. 7 reward a group of responses for both quality and diversity, measuring diversity by the determinant of their similarity matrix. These are post-training methods, while PKTP leaves the model unchanged and optimizes pass@k\mathrm{pass}@k at inference time by choosing which partial rollouts to continue. Concurrently, Wu et al. 47 also leave the reasoning model unchanged, but use pass@k\mathrm{pass}@k as the reward to train a planner that writes a different outline for each rollout before it is generated. They thus change how the rollouts are sampled, while PKTP takes NN independently sampled partial rollouts as given and chooses which kk of them to continue.

The same objective appears in information retrieval as the expected 1-call@kk, the probability that at least one of the top kk documents is relevant. Chen and Karger 6 optimize it greedily, and Sanner et al. 34 show that greedy optimization under a latent subtopic model of relevance leads to diverse rankings, in the same way that our latent factor leads to diverse kept sets. In Bayesian optimization, the batch probability of improvement is the probability that at least one point of a batch improves on the incumbent, and it is monotone and submodular, so it can be maximized greedily [46, 32]. Other methods balance quality and diversity with a hand-set trade-off, such as maximal marginal relevance [5] and determinantal point processes [22]. In contrast to these works, PKTP applies to partial reasoning rollouts, learns the joint distribution of their outcomes from their representations, and optimizes a closed-form surrogate that keeps the submodularity of the exact objective.

Direct Pass@k Optimization for Thought Pruning: Balancing Quality and Diversity in Test-Time Reasoning · Reading + AI