Introduction
Large Language Models (LLMs) have demonstrated remarkable capabilities in complex reasoning, showcasing a strong aptitude for solving complex problems that require multi-step logic [15 , 18 , 21 , 45 , 52 ] . 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 [3 , 35 , 44 , 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 [23 , 33 ] . Beyond generation, there is also the cost of evaluating the finished rollouts in best-of-N N N 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 N N N rollouts in best-of-N N N methods, necessitates test-time pruning of partial rollouts before they reach a final answer and terminate. In other words, we generate all N N N rollouts only up to a cutoff of T T T tokens, keep the k k k most promising of them and run those to the full token budget B B B , as illustrated in Figure 1 .
Figure 1. Test-time pruning. Only k k k of the N N N rollouts (ringed) continue past the cutoff T T T , up to the budget B B B .
One family of methods examines the confidence dynamics of the model during generation, utilizing metrics such as logit entropy or confidence [17 , 30 , 43 , 50 ] . 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 [1 , 54 ] . 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.
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 (Figure 2 a). 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 (Figure 2 b). These limitations motivate selecting the rollouts by the metric we actually want to optimize, choosing the set S S S of k k k rollouts that maximizes pass@k k k , that is, max ∣ S ∣ = k pass @ k ( S ) \max_{|S|=k}\operatorname{pass}@k(S) max ∣ S ∣ = k 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 (Figure 2 c).
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 = 3 k = 3 k = 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 k k directly over the kept subset, balancing quality and diversity, and retains the correct rollout.
To this end, we propose PKTP (Pass@k Thought Pruning ), a pruning framework that chooses the kept rollouts by maximizing pass@k k 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 k 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 k 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 k k k . An important aspect of the proposed framework is that the latent model is trained only once and does not depend on k k k , and a single greedy pass yields a nested sequence of subsets, so the budget k k k can be chosen online at inference time without retraining.
Contributions. First, we cast pruning as maximizing the pass@k k k of the kept set, and we model how similar rollouts fail together. Second, we derive a closed-form, submodular approximation of pass@k k 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 k k k .
Problem Formulation and Related Work
Setup. Given a question q q q , we draw N N N candidate reasoning rollouts y ( i ) ∼ π ( ⋅ ∣ q ) y^{(i)} \sim\pi(\cdot\mid q) y ( i ) ∼ π ( ⋅ ∣ q ) from a model π \pi π . Each rollout is observed only through its first T T T tokens, the prefix y 1 : T ( i ) y^{(i)}_{1:T} y 1 : T ( i ) . We encode this prefix as a representation vector h i = h ( y 1 : T ( i ) ) h_i = h(y^{(i)}_{1:T}) h i = h ( y 1 : T ( i ) ) , a hidden-state embedding of the reasoning up to token T T T . Pruning then keeps k ≤ N k \le N k ≤ N rollouts, runs them to the full token budget B B B , and discards the rest. A completed rollout y 1 : B y_{1:B} y 1 : B is either correct or not, recorded by the sign C ( y 1 : B ) ∈ { − 1 , + 1 } C(y_{1:B}) \in\{-1,+1\} C ( y 1 : B ) ∈ { − 1 , + 1 } ,
C ( y 1 : B ) = { + 1 , if Verify ( y 1 : B ) , − 1 , otherwise. (1) C(y_{1:B}) =
\begin{cases}
+1, & \text{if Verify}(y_{1:B}),\\
-1, & \text{otherwise.}
\end{cases} \tag*{(1)} C ( y 1 : B ) = { + 1 , − 1 , if Verify ( y 1 : B ) , otherwise. (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)}) C ( y ( i ) ) for the outcome of the i i i -th rollout once it is run to the budget B B B .
Representations. 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 , 19 , 28 , 38 , 40 ] . A second line of work instead keeps the hidden states of the transformer and pools them into a single vector [29 , 39 , 42 ] , and this is the class we use. In particular, we take h i h_i h 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 § 13 gives the details of the representation we use.
Objective. At pruning time the outcomes C ( y ( i ) ) 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 \subset\{1,\ldots,N\} S ⊂ { 1 , … , N } of ∣ S ∣ = k |S| = k ∣ S ∣ = k rollouts to keep? Two extreme choices are as follows.
(i) (Pure exploitation ) Keep in S S S the rollouts { i } \{i\} { i } with the highest predicted success P ( C ( y ( i ) ) = + 1 ∣ q , y 1 : T ( i ) ) \mathbb{P}(C(y^{(i)}) = +1 \mid\mathbf{q}, y_{1:T}^{(i)}) P ( C ( y ( i ) ) = + 1 ∣ q , y 1 : T ( i ) ) , estimated by a linear probe trained on the representations h i h_i h i [54 ] , that is, the k k k rollouts with the largest scores w ⊤ h i w^\top h_i w ⊤ h i for a learned weight vector w w w . We refer to this pruning policy as Linear Probe .
(ii) (Pure exploration ) Build a diverse S S S , starting from a random rollout and greedily adding to S S S the rollout i ⋆ i^\star i ⋆ by solving
i ⋆ = arg max i ∉ S h i ⊤ ( τ I + ∑ j ∈ S h j h j ⊤ ) − 1 h i , (2) i^\star= \underset{i\notin S}{\arg\max}\ h_i^\top\left(\tau I + \sum_{j\in S} h_j h_j^\top\right)^{-1}h_i, \tag*{(2)} i ⋆ = i ∈ / S arg max h i ⊤ τ I + j ∈ S ∑ h j h j ⊤ − 1 h i , (2)
that is, we add, the rollout whose representation is least explained by those already chosen, where τ > 0 \tau> 0 τ > 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 k k k rollouts with the best pass@k k k . Mathematically, we seek the set S S S most likely to contain a correct rollout,
Pass@k k k Pruning Objective
max S ⊂ { 1 , … , N } P ( ∑ i ∈ S 1 { C ( y ( i ) ) = + 1 } ≥ 1 | q , y 1 : T ( 1 ) , … , y 1 : T ( N ) ) s.t. ∣ S ∣ = k . (3) \underset{S\subset\{1,\ldots,N\}}{\max}\ \mathbb{P}\left(\sum_{i\in S}1\{C(y^{(i)})=+1\}\ge1 \,\middle|\, \mathbf{q}, y_{1:T}^{(1)},\ldots,y_{1:T}^{(N)}\right)
\quad\text{s.t.}\quad|S|=k. \tag*{(3)} S ⊂ { 1 , … , N } max P ( i ∈ S ∑ 1 { C ( y ( i ) ) = + 1 } ≥ 1 q , y 1 : T ( 1 ) , … , y 1 : T ( N ) ) s.t. ∣ S ∣ = k . (3)
Here, 1 { ⋅ } 1\{\cdot\} 1 { ⋅ } is the indicator function, i.e., 1 { T r u e } = 1 1\{True\}=1 1 { T r u e } = 1 and 1 { F a l s e } = 0 1\{False\}=0 1 { F a l se } = 0 . The objective in Eq. (3) is exactly pass@k k k of the kept pool, the probability that at least one surviving rollout, once run to the budget B B B , 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@k k k objective [41 ] .
Related work. Existing pruning methods score each rollout on its own, using the model’s confidence [13 , 30 ] , a reward model [36 ] , or a probe on its hidden states [25 , 54 ] , or they select a diverse set, as RepExp does [39 ] . Pass@k has also been used as a training objective for reasoning models [8 , 41 ] , 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.
Method
There are some challenges in solving Eq. (3) : First, we need to obtain the 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 of any set can be estimated. Second, even with such an estimate, finding the subset of k k k rollouts with the highest estimated pass@k is a mixed-integer program. We can therefore view our framework as two components, learning the joint distribution of the outcomes (§ 3.1 ), and solving this mixed-integer program at selection time (§ 3.2 ).
Probabilistic model
Let H = [ h 1 , … , h N ] ∈ R d × N H = [h_1, \ldots, h_N] \in\mathbb{R}^{d \times N} H = [ h 1 , … , h N ] ∈ R d × N collect the representations of the N N N generated partial rollouts, Q θ : R d → R Q_\theta: \mathbb{R}^{d} \to\mathbb{R} Q θ : R d → R be a learnable mapping predicting the rollout quality, and define Q θ ( H ) = [ q 1 , … , q N ] ⊤ Q_\theta(H) = [q_1, \ldots, q_N]^\top Q θ ( H ) = [ q 1 , … , q N ] ⊤ with q i : = Q θ ( h i ) q_i := Q_\theta(h_i) q i := Q θ ( h i ) . We model the latent scores of the rollouts as
Z = Q θ ( H ) ⏟ Rollout Quality + H ⊤ f ⏟ Rollouts Correlation + m ⏟ Outcome Noise , m ∼ N ( 0 , I N ) , f ∼ N ( 0 , I d ) , (4) \mathbf{Z} = \underbrace{Q_\theta(H)}_{\text{Rollout Quality}} + \underbrace{H^\top\mathbf{f}}_{\text{Rollouts Correlation}} + \underbrace{\mathbf{m}}_{\text{Outcome Noise}}, \qquad\mathbf{m} \sim\mathcal{N}(0, I_N), \quad\mathbf{f} \sim\mathcal{N}(0, I_d), \tag*{(4)} Z = Rollout Quality Q θ ( H ) + Rollouts Correlation H ⊤ f + Outcome Noise m , m ∼ N ( 0 , I N ) , f ∼ N ( 0 , I d ) , (4)
where m \mathbf{m} m and f \mathbf{f} f are independent. Intuitively, Z i Z_i Z i is a score of how promising rollout i i i is, so the higher its quality q i q_i q i , the higher its score. On top of q i q_i q i , the term h i ⊤ f h_i^\top\mathbf{f} h i ⊤ f is a random effect shared by rollouts with similar representations, which makes them succeed or fail together. Indeed, for distinct rollouts, Cov ( Z i , Z j ∣ H ) = h i ⊤ h j \operatorname{Cov}(Z_i, Z_j \mid H) = h_i^\top h_j Cov ( Z i , Z j ∣ H ) = h i ⊤ h j , so rollouts with aligned h i h_i h i have positively correlated outcomes. Finally, m i m_i m i is noise specific to rollout i i i .
The correctness C ( y ( i ) ) C(y^{(i)}) C ( y ( i ) ) of rollout i i i is then modeled by thresholding its score at zero. More specifically, we define the random variable C i = 2 × 1 { Z i ≥ 0 } − 1 C_i = 2 \times\mathbf{1}\{Z_i \ge0\} - 1 C i = 2 × 1 { Z i ≥ 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} f , the likelihood of an observed correctness pattern c ∈ { − 1 , 1 } N \mathbf{c} \in\{-1,1\}^{N} c ∈ { − 1 , 1 } N is
Pr [ C = c ∣ H ] = E f [ ∏ i = 1 N Φ ( c i ( q i + h i ⊤ f ) ) ] , (5) \Pr[\mathbf{C} = \mathbf{c} \mid H] = \mathbb{E}_{\mathbf{f}}\left[\prod_{i=1}^{N}\Phi\left(c_i(q_i + h_i^\top\mathbf{f})\right)\right], \tag*{(5)} Pr [ C = c ∣ H ] = E f [ i = 1 ∏ N Φ ( c i ( q i + h i ⊤ f ) ) ] , (5)
where Φ \Phi Φ is the standard Gaussian CDF, and the derivation can be found in Appendix § 8 .§ 1 .
Suppose we have M M M training questions, where question m m m consists of the representations H ( m ) H^{(m)} H ( m ) of a pool and its observed outcomes c ( m ) ∈ { − 1 , 1 } N \mathbf{c}^{(m)} \in\{-1,1\}^{N} c ( m ) ∈ { − 1 , 1 } N . The mapping Q θ Q_\theta Q θ is trained by maximizing their likelihood under Eq. (5) , that is, by solving
max θ 1 M ∑ m = 1 M log Pr θ [ C = c ( m ) ∣ H ( m ) ] , (6) \max_{\theta}\ \frac{1}{M}\sum_{m=1}^{M}\log\Pr_{\theta}\left[\mathbf{C} = \mathbf{c}^{(m)} \mid H^{(m)}\right], \tag*{(6)} θ max M 1 m = 1 ∑ M log θ Pr [ C = c ( m ) ∣ H ( m ) ] , (6)
where Pr θ \Pr_{\theta} Pr θ is the likelihood of Eq. (5) with H = H ( m ) = [ h 1 ( m ) , … , h N ( m ) ] H = H^{(m)} = [h_1^{(m)}, \ldots, h_N^{(m)}] H = H ( m ) = [ h 1 ( m ) , … , h N ( m ) ] and q i = Q θ ( h i ( m ) ) q_i = Q_\theta(h_i^{(m)}) q i = Q θ ( h i ( m ) ) . Solving Eq. (6) directly is hard, since the expectation over f \mathbf{f} f in Eq. (5) has no closed form. We therefore expand each log-factor to second order in h i ⊤ f h_i^\top\mathbf{f} h i ⊤ 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 } N \mathbf{c} \in\{-1,1\}^{N} c ∈ { − 1 , 1 } N , let ϕ \phi ϕ be the standard Gaussian density, λ i ( c i ) = ϕ ( q i ) / Φ ( c i q i ) \lambda_i(c_i)=\phi(q_i)/\Phi(c_iq_i) λ i ( c i ) = ϕ ( q i ) /Φ ( c i q i ) , κ i ( c i ) = λ i ( c i ) ( λ i ( c i ) + c i q i ) \kappa_i(c_i)=\lambda_i(c_i)(\lambda_i(c_i)+c_iq_i) κ i ( c i ) = λ i ( c i ) ( λ i ( c i ) + c i q i ) ,
Σ ( c ) = ∑ i = 1 N κ i ( c i ) h i h i ⊤ , b ( c ) = ∑ i = 1 N c i λ i ( c i ) h i . (7) \Sigma(\mathbf{c})=\sum_{i=1}^{N}\kappa_i(c_i)h_i h_i^\top,\qquad b(\mathbf{c})=\sum_{i=1}^{N}c_i\lambda_i(c_i)h_i. \tag*{(7)} Σ ( c ) = i = 1 ∑ N κ i ( c i ) h i h i ⊤ , b ( c ) = i = 1 ∑ N c i λ i ( c i ) h i . (7) Then, as ε → 0 \varepsilon\to0 ε → 0 ,
log Φ ( c i ( q i + ε ) ) = log Φ ( c i q i ) + c i λ i ( c i ) ε − κ i ( c i ) 2 ε 2 + O ( ∣ ε ∣ 3 ) , (8) \log\Phi(c_i(q_i+\varepsilon))=\log\Phi(c_iq_i)+c_i\lambda_i(c_i)\varepsilon-\frac{\kappa_i(c_i)}{2}\varepsilon^2+O(|\varepsilon|^3), \tag*{(8)} log Φ ( c i ( q i + ε )) = log Φ ( c i q i ) + c i λ i ( c i ) ε − 2 κ i ( c i ) ε 2 + O ( ∣ ε ∣ 3 ) , (8) and replacing each log-factor of Pr [ C = c ∣ H ] \Pr[\mathbf{C}=\mathbf{c}\mid H] Pr [ C = c ∣ H ] in Eq. (5) by this expansion at ε = h i ⊤ f \varepsilon=h_i^\top\mathbf{f} ε = h i ⊤ f gives
Pr ~ [ C = c ∣ H ] = ( ∏ i = 1 N Φ ( c i q i ) ) det ( I d + Σ ( c ) ) − 1 / 2 exp ( 1 2 b ( c ) ⊤ ( I d + Σ ( c ) ) − 1 b ( c ) ) . (9) \widetilde{\Pr}[\mathbf{C}=\mathbf{c}\mid H]=\left(\prod_{i=1}^{N}\Phi(c_iq_i)\right)\det(I_d+\Sigma(\mathbf{c}))^{-1/2}\exp\left(\frac{1}{2}b(\mathbf{c})^\top(I_d+\Sigma(\mathbf{c}))^{-1}b(\mathbf{c})\right). \tag*{(9)} Pr [ C = c ∣ H ] = ( i = 1 ∏ N Φ ( c i q i ) ) det ( I d + Σ ( c ) ) − 1/2 exp ( 2 1 b ( c ) ⊤ ( I d + Σ ( c ) ) − 1 b ( c ) ) . (9)
The proof is in Appendix 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 Pr θ in Eq. (6) by Pr ~ θ \widetilde{\Pr}_\theta Pr θ .
Instead of using h i h_i h i directly in the correlation term, one could learn an encoder E ψ E_\psi E ψ of the representations and use E ψ ( h i ) E_\psi(h_i) E ψ ( h i ) in its place, but its helpfulness depends on the amount of data. Since our data is limited, we keep h i h_i h i fixed, so that Q θ Q_\theta Q θ is the only learned component, and for the same reason we use a simple linear model Q θ ( h ) = θ ⊤ h + θ 0 Q_\theta(h)=\theta^\top h+\theta_0 Q θ ( h ) = θ ⊤ h + θ 0 for Q θ Q_\theta Q θ , as in the Linear Probe [54 ] . Unlike the Linear Probe, which is trained on the correctness of each rollout separately, Q θ Q_\theta Q θ 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.
Subset selection
Maximizing pass@k k 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 H H H , the failure probability of a set S S S of kept rollouts is
L ( S ) = Pr [ C i = − 1 ∀ i ∈ S ] = E f ∼ N ( 0 , I d ) [ ∏ i ∈ S Φ ( − ( q i + h i ⊤ f ) ) ] , (10) L(S)=\Pr[C_i=-1\ \forall i\in S]=\mathbb{E}_{\mathbf{f}\sim\mathcal{N}(0,I_d)}\left[\prod_{i\in S}\Phi\left(-(q_i+h_i^\top\mathbf{f})\right)\right], \tag*{(10)} L ( S ) = Pr [ C i = − 1 ∀ i ∈ S ] = E f ∼ N ( 0 , I d ) [ i ∈ S ∏ Φ ( − ( q i + h i ⊤ f ) ) ] , (10)
and we seek the set of k k k rollouts that minimizes it. Since L ( S ) 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\} S ⊆ [ N ] := { 1 , … , N } , let λ i = ϕ ( q i ) / Φ ( − q i ) \lambda_i=\phi(q_i)/\Phi(-q_i) λ i = ϕ ( q i ) /Φ ( − q i ) , κ i = λ i ( λ i − q i ) \kappa_i=\lambda_i(\lambda_i-q_i) κ i = λ i ( λ i − q i ) , Σ S = ∑ i ∈ S κ i h i h i ⊤ \Sigma_S=\sum_{i\in S}\kappa_i h_i h_i^\top Σ S = ∑ i ∈ S κ i h i h i ⊤ and b S = ∑ i ∈ S λ i h i b_S=\sum_{i\in S}\lambda_i h_i b S = ∑ i ∈ S λ i h i . Applying Theorem 1 to the rollouts in S S S with c i = − 1 c_i=-1 c i = − 1 for every $i\in S gives a surrogate L ~ ( S ) \widetilde{L}(S) L ( S ) of L ( S ) L(S) L ( S ) with
log L ~ ( S ) = ∑ i ∈ S log Φ ( − q i ) ⏟ Rollout Quality + ( − 1 2 log det ( I d + Σ S ) + 1 2 b S ⊤ ( I d + Σ S ) − 1 b S ) ⏟ Rollouts Correlation . (11) \log\widetilde{L}(S)=\underbrace{\sum_{i\in S}\log\Phi(-q_i)}_{\text{Rollout Quality}}+\underbrace{\left(-\frac{1}{2}\log\det(I_d+\Sigma_S)+\frac{1}{2}b_S^\top(I_d+\Sigma_S)^{-1}b_S\right)}_{\text{Rollouts Correlation}}. \tag*{(11)} log L ( S ) = Rollout Quality i ∈ S ∑ log Φ ( − q i ) + Rollouts Correlation ( − 2 1 log det ( I d + Σ S ) + 2 1 b S ⊤ ( I d + Σ S ) − 1 b S ) . (11)
The proof is in Appendix § 9 .1.2. We therefore minimize log L ~ ( S ) \log\widetilde{L}(S) log L ( S ) over ∣ S ∣ = k |S| = k ∣ S ∣ = k . Each term of Eq. (11) has a direct interpretation. The first term favors large q i q_i q i , because the baseline failure factor Φ ( − q i ) \Phi(-q_i) Φ ( − q i ) decreases with q i q_i q i . The negative log-determinant rewards a collection of h i h_i h i ’s that covers several directions instead of repeatedly selecting the same direction. The last term is nonnegative and penalizes sets whose weighted vectors λ i h i \lambda_i h_i λ i h i add up in the same direction, which the determinant alone cannot detect since it treats h i h_i h i and − h i -h_i − h i identically. For example, two rollouts of the same quality fail together more often with h 2 = h 1 h_2 = h_1 h 2 = h 1 than with h 2 = − h 1 h_2 = -h_1 h 2 = − h 1 , yet both cases give the same Σ S \Sigma_S Σ S and hence the same determinant, while b S b_S b S is 2 λ 1 h 1 2\lambda_1 h_1 2 λ 1 h 1 in the first case and 0 0 0 in the second. However, minimizing log L ~ ( S ) \log\widetilde{L}(S) log L ( S ) exactly is hard.
Proposition 1 (Hardness of exact selection). Minimizing log L ~ ( S ) \log\widetilde{L}(S) log L ( S ) over all S ⊆ [ N ] S \subseteq[N] S ⊆ [ N ] with ∣ S ∣ = k |S| = k ∣ S ∣ = k is NP-hard.
The proof is in Appendix § 9 .§ 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}) ( 1 − e − 1 ) fraction of the optimal value [32 ] . The exact pass probability P ( S ) : = 1 − L ( S ) 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) P ( S ) := 1 − 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} P is normalized (P ~ ( ∅ ) = 0 \widetilde{P}(\varnothing) = 0 P ( ∅ ) = 0 ), monotone (P ~ ( A ) ≤ P ~ ( B ) \widetilde{P}(A) \le\widetilde{P}(B) P ( A ) ≤ P ( B ) whenever A ⊆ B A \subseteq B A ⊆ B ), and submodular , that is, for all A ⊆ B ⊆ [ N ] A \subseteq B \subseteq[N] A ⊆ B ⊆ [ N ] and j ∉ B j \notin B j ∈ / B ,
P ~ ( A ∪ { j } ) − P ~ ( A ) ≥ P ~ ( B ∪ { j } ) − P ~ ( B ) . (12) \widetilde{P}(A \cup\{j\}) - \widetilde{P}(A) \ge\widetilde{P}(B \cup\{j\}) - \widetilde{P}(B). \tag*{(12)} P ( A ∪ { j }) − P ( A ) ≥ P ( B ∪ { j }) − P ( B ) . (12) Consequently, the set S k g r e e d y S_k^{\mathrm{greedy}} S k greedy obtained by adding, k k k times, the candidate that most increases P ~ \widetilde{P} P satisfies
P ~ ( S k g r e e d y ) ≥ ( 1 − e − 1 ) max ∣ S ∣ ≤ k P ~ ( S ) . (13) \widetilde{P}(S_k^{\mathrm{greedy}}) \ge(1 - e^{-1}) \max_{|S|\le k} \widetilde{P}(S). \tag*{(13)} P ( S k greedy ) ≥ ( 1 − e − 1 ) ∣ S ∣ ≤ k max P ( S ) . (13)
The proof is in Appendix § 9 .§ 2 .
Greedy optimization. The greedy optimizer starts from the empty set and, at each step, adds the candidate j ∉ S j \notin S j ∈ / 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) Δ j ( S ) = log L ( S ∪ { j }) − log L ( S ) . Since adding a candidate changes Σ S \Sigma_S Σ S by a rank-one matrix, this change has a closed form that can be updated cheaply without rebuilding the determinant and the inverse (Appendix § 8 .§ 2 ). With these rank-one updates, the greedy optimizer costs O ( k ( N d + d 2 ) ) O(k(Nd + d^2)) O ( k ( N d + d 2 )) time and O ( N d + d 2 ) O(Nd + d^2) O ( N d + d 2 ) memory. By comparison, a naive implementation that rebuilds and factorizes I d + Σ S ∪ { j } I_d + \Sigma_{S \cup\{j\}} I d + Σ S ∪ { j } for every candidate costs O ( d 3 ) O(d^3) O ( d 3 ) per candidate, that is, O ( k N d 3 ) O(kNd^3) O ( k N d 3 ) time, with the same O ( N d + d 2 ) O(Nd + d^2) O ( N d + d 2 ) memory.
Relation to Linear Probe and RepExp
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 ∈ S log Φ ( − q i ) \log\widetilde{L}(S) = \sum_{i \in S} \log\Phi(-q_i) log L ( S ) = ∑ i ∈ S log Φ ( − q i ) , so minimizing it keeps the k k k largest quality scores and recovers a quality-only, probe-style ranking; it coincides with Linear Probe when Q 0 Q_0 Q 0 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 κ i equals a common value κ \kappa κ , so Σ S = κ ∑ i ∈ S h i h i T \Sigma_S = \kappa\sum_{i \in S} h_i h_i^{\mathsf{T}} Σ S = κ ∑ i ∈ S h i h i T and the relevant set-dependent term is − 1 2 log det ( I d + Σ S ) -\frac{1}{2}\log\det(I_d+\Sigma_S) − 2 1 log det ( I d + Σ S ) . By the matrix determinant lemma, its greedy marginal ranks a candidate j j j by h j ⊤ ( I d + Σ S ) − 1 h j h_j^\top(I_d+\Sigma_S)^{-1}h_j h j ⊤ ( I d + Σ S ) − 1 h j , the residual-variance criterion used by RepExp on the same representations (see Appendix § 8 .§ 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 k k k grows. To see this, we expand log L ( S ) \log L(S) log L ( S ) and its surrogate when the correlations are weak.
Proposition 2 (Weak correlations). Fix S S S , q i q_i q i and h i h_i h i , and replace f f f by ρ f \rho f ρ f . As ρ → 0 \rho\to0 ρ → 0 ,
log L ( S ) = ∑ i ∈ S [ log Φ ( − q i ) + ρ 2 2 λ i q i ∥ h i ∥ 2 ] + ρ 2 ∑ i < j ∈ S λ i λ j h i ⊤ h j + O ( ρ 4 ) , (14) \log L(S) = \sum_{i\in S}\left[\log\Phi(-q_i) + \frac{\rho^2}{2}\lambda_iq_i\lVert h_i\rVert^2\right] + \rho^2\sum_{i<j\in S}\lambda_i\lambda_j h_i^\top h_j + O(\rho^4), \tag*{(14)} log L ( S ) = i ∈ S ∑ [ log Φ ( − q i ) + 2 ρ 2 λ i q i ∥ h i ∥ 2 ] + ρ 2 i < j ∈ S ∑ λ i λ j h i ⊤ h j + O ( ρ 4 ) , (14) and log L ~ ( S ) \log\widetilde{L}(S) log 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 ρ = 0 the rollouts are independent, the expansion reduces to ∑ i ∈ S log Φ ( − q i ) \sum_{i\in S}\log\Phi(-q_i) ∑ i ∈ S log Φ ( − q i ) , and PKTP ranks the rollouts by quality, as Linear Probe does. For ρ > 0 \rho> 0 ρ > 0 , every pair of kept rollouts adds a penalty ρ 2 λ i λ j h i ⊤ h j \rho^2\lambda_i\lambda_jh_i^\top h_j ρ 2 λ i λ j h i ⊤ h j , which is large when their representations are similar. A rollout added to a set of t t t rollouts pays t t t 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 k k k grows.
Appendix § 10 makes the two ends of this behavior precise for a fixed ρ \rho ρ . At small k k k , if the gap between the k k k th and ( k + 1 ) (k+1) ( k + 1 ) th largest qualities exceeds a constant multiple of k ρ 2 k\rho^2 k ρ 2 , PKTP keeps exactly the k k k candidates with the largest q i q_i q i , as Linear Probe does, and in the same order when this holds at every budget up to k k k . At large k k k , 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 k k k , while its averaged objective reduces to the RepExp objective as k k k grows.
Experiments
Setup
Models. 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.8, top-p p p of 0.95, and a full token budget of B = 32,768 B = 32{,}768 B = 32 , 768 tokens.
Datasets. 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 ] , OlympMATH (Easy) [37 ] and Omni-MATH levels 7 and 8 [14 ] , while the large tier replaces these by AMO-Bench [27 ] , OlympMATH (Hard) and Omni-MATH levels 8 and 9. This gives around 600 problems per model. For each model we then remove the problems on which it generates all correct or all wrong solutions in 128 trials.
Verification. 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.
Evaluation. 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 20 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 20 repetitions, and its standard error is computed across them. For RepExp we set the regularizer to τ = 1 \tau= 1 τ = 1 . For all methods, the representation h i h_i h i of a partial rollout is the EMA of its hidden states with rate 10 − 3 10^{-3} 1 0 − 3 .
Experimental Evaluation and Comparison
Figure 3 reports our main setting, in which each method selects k ∈ { 1 , 2 , 4 , 8 , 16 } k \in\{1, 2, 4, 8, 16\} k ∈ { 1 , 2 , 4 , 8 , 16 } of the N = 128 N = 128 N = 128 rollouts of a problem from their prefixes, and we set the cutoff threshold to T = 4000 T = 4000 T = 4000 tokens. For every model it shows the pass@k k k of each pruning policy minus that of Random (Pass@k k k ), pooled over all test problems. Random keeps k k k rollouts chosen uniformly at random, which is equivalent to sampling k k k 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 § 11 .
Figure 3. Gain in pass@k over random pruning. For every model, the pooled pass@k of each pruning policy minus that of Random (Pass@k), in percentage points, as a function of the number k k k 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 § 11 .
Table 1. Pass@k k k (%), pooled over problems.
As evident in Figure 3 , the Linear Probe performs strongly at k = 1 k = 1 k = 1 , but as k k k 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 k k k . 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 k k k but are outperformed by them at large k k k [53 ] .
As an example, Figure 4 shows the 128 rollouts of one problem (Qwen3-8B, AMO-Bench), projected on the first two principal components of their representations. The 16 rollouts ranked highest by the probe are all close to each other and all wrong, while 16 random picks include 7 correct ones.
Figure 4. Linear Probe keeps a cluster of rollouts that fail together. The 128 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 16 rollouts ranked highest by the Linear Probe (blue rings) lie close together and are all wrong, while 16 random picks (gray rings) include 7 correct rollouts.
Figure 3 also shows that RepExp behaves in the opposite way to the Linear Probe. At k = 1 k = 1 k = 1 it shows, as expected, a performance similar to Random, since its first pick is random. As k k k increases, the general trend is that RepExp gets better and better than Random, especially at k = 16 k = 16 k = 16 (e.g., the DeepSeek-R1-Distill models). Interestingly, however, for moderate k k k 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 k k k , 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, Figure 5 shows the 128 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 4 of its picks are wrong, while 4 random picks include 1 correct one.
Figure 5. RepExp keeps outliers that are unlikely to be correct. The 128 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 4 of its picks are wrong, while 4 random picks (gray rings) include 1 correct rollout.
Finally, Figure 3 shows that PKTP outperforms both the Linear Probe and RepExp, and its advantage is clearest at moderate k k k , where each baseline suffers from its own bias. On DeepSeek-R1-Distill-Qwen-1.5B at k = 4 k = 4 k = 4 , for example, PKTP is 3.0 points above the Linear Probe and 3.2 points above RepExp. On Qwen3-0.6B it leads both baselines by more than 2 points at every k ≥ 2 k \ge2 k ≥ 2 , and on DeepSeek-R1-Distill-Qwen-7B it is 3.3 points above the Linear Probe at k = 4 k = 4 k = 4 . Unlike the two baselines, PKTP also stays above Random on every model for k ≥ 2 k \ge2 k ≥ 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 k k k , 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\} N ∈ { 32 , 48 , 64 , 80 , 96 , 112 } with the same cutoff T = 4000 T = 4000 T = 4000 , are given in Appendix § 12 .
Effect of the cutoff threshold
An important aspect of pruning is the cutoff threshold T T T , and how the algorithm behaves as the cutoff grows. Figure 6 varies T T T on Qwen3-1.7B and DeepSeek-R1-Distill-Qwen-7B. For every T ≥ 4000 T \ge4000 T ≥ 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@4 rises from 63.5% at T = 2000 T = 2000 T = 2000 to 65.9% at T = 8000 T = 8000 T = 8000 , and on DeepSeek-R1-Distill-Qwen-7B from 57.4% to 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% to 62.3% and ends below Random. One reason can be the representation we use. Since the EMA with rate 10 − 3 10^{-3} 1 0 − 3 effectively averages over the last 1000 tokens, it may lose the signal in the earlier tokens.
Figure 6. A later cutoff improves PKTP. Pass@4 on Qwen3-1.7B and DeepSeek-R1-Distill-Qwen-7B as the cutoff T T T grows from 2000 to 8000 tokens, with N = 128 N = 128 N = 128 . PKTP is the best method for every T ≥ 4000 T \ge4000 T ≥ 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.
Effect of the pool size
Another important aspect of pruning is the size N N N of the pool the k k k rollouts are chosen from. Figure 7 varies N N N on Qwen3-1.7B and DeepSeek-R1-Distill-Qwen-7B. PKTP outperforms all other methods for every N N N on Qwen3-1.7B, and on DeepSeek-R1-Distill-Qwen-7B once the pool reaches N = 80 N = 80 N = 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% at N = 32 N = 32 N = 32 to 63.9% at N = 128 N = 128 N = 128 as the pool becomes more diverse and the Linear Probe from 62.1% to 63.1%. Interestingly, however, the same does not hold on DeepSeek-R1-Distill-Qwen-7B, where the Linear Probe falls from 58.1% to 56.4% and stays below Random for every N N N , and RepExp falls from 59.5% at N = 48 N = 48 N = 48 to 58.6%, while PKTP rises from 58.8% to 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 k k k such as k = 4 k = 4 k = 4 .
Figure 7. PKTP leads once the pool is large enough. Pass@4 on Qwen3-1.7B and DeepSeek-R1-Distill-Qwen-7B as the pool size N N N grows from 32 to 128, with T = 4000 T = 4000 T = 4000 . PKTP is the best method for every N N N on Qwen3-1.7B and from N = 80 N = 80 N = 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.
Conclusion
We introduced PKTP, a pruning framework that chooses which partial rollouts to keep by directly optimizing pass@k k 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 k k k , 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.
Acknowledgments
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.
AI use statement
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.
Derivations
The likelihood
Write Z i = q i + m i + h i T f Z_i = q_i + \mathbf{m}_i + h_i^{\mathsf{T}}\mathbf{f} Z i = q i + m i + h i T f . Conditioned on f \mathbf{f} f , the Z i Z_i Z i are independent of each other, so
Pr [ C 1 = c 1 , … , C N = c N ∣ f ] = ∏ i = 1 N Pr [ c i Z i ≥ 0 ∣ f ] (15) \Pr[\mathbf{C}_1 = c_1,\ldots,\mathbf{C}_N = c_N \mid\mathbf{f}] = \prod_{i=1}^{N}\Pr[c_i Z_i \ge0 \mid\mathbf{f}] \tag*{(15)} Pr [ C 1 = c 1 , … , C N = c N ∣ f ] = i = 1 ∏ N Pr [ c i Z i ≥ 0 ∣ f ] (15)
= ∏ i = 1 N Pr [ c i ( q i + m i + h i T f ) ≥ 0 ∣ f ] (16) = \prod_{i=1}^{N}\Pr[c_i(q_i + \mathbf{m}_i + h_i^{\mathsf{T}}\mathbf{f}) \ge0 \mid\mathbf{f}] \tag*{(16)} = i = 1 ∏ N Pr [ c i ( q i + m i + h i T f ) ≥ 0 ∣ f ] (16)
= ∏ i = 1 N Pr [ c i m i ≥ − c i ( q i + h i T f ) ∣ f ] . (17) = \prod_{i=1}^{N}\Pr[c_i\mathbf{m}_i \ge-c_i(q_i + h_i^{\mathsf{T}}\mathbf{f}) \mid\mathbf{f}]. \tag*{(17)} = i = 1 ∏ N Pr [ c i m i ≥ − c i ( q i + h i T f ) ∣ f ] . (17)
Since the standard Gaussian is symmetric about 0, − c i m i -c_i\mathbf{m}_i − c i m i follows the same distribution as m i \mathbf{m}_i m i , and with Φ ( x ) : = Pr Z ∼ N ( 0 , 1 ) [ Z ≤ x ] \Phi(x) := \Pr_{Z\sim\mathcal{N}(0,1)}[Z \le x] Φ ( x ) := Pr Z ∼ N ( 0 , 1 ) [ Z ≤ x ] each factor equals Φ ( c i ( q i + h i T f ) ) \Phi(c_i(q_i + h_i^{\mathsf{T}}\mathbf{f})) Φ ( c i ( q i + h i T f )) . Taking the expectation with respect to f \mathbf{f} f on both sides gives Eq. (5) .
Rank-one greedy updates
As in Corollary 1, let Σ S = ∑ i ∈ S κ i h i h i T \Sigma_S = \sum_{i\in S}\kappa_i h_i h_i^{\mathsf{T}} Σ S = ∑ i ∈ S κ i h i h i T and b S = ∑ i ∈ S λ i h i \mathbf{b}_S = \sum_{i\in S}\lambda_i h_i b S = ∑ i ∈ S λ i h i . Write Ω S = ( I d + Σ S ) − 1 \Omega_S = (I_d+\Sigma_S)^{-1} Ω S = ( I d + Σ S ) − 1 , r j = h j T Ω S h j r_j = h_j^{\mathsf{T}}\Omega_S h_j r j = h j T Ω S h j and u j = h j T Ω S b S u_j = h_j^{\mathsf{T}}\Omega_S\mathbf{b}_S u j = h j T Ω S b S . Adding a candidate j ∉ S j \notin S j ∈ / S changes Σ S \Sigma_S Σ S by the rank-one matrix κ j h j h j T \kappa_j h_j h_j^{\mathsf{T}} κ j h j h j T . The matrix determinant lemma gives
det ( I d + Σ S + κ j h j h j T ) = det ( I d + Σ S ) ( 1 + κ j r j ) , (18) \det(I_d+\Sigma_S+\kappa_j h_j h_j^{\mathsf{T}})=\det(I_d+\Sigma_S)(1+\kappa_j r_j), \tag*{(18)} det ( I d + Σ S + κ j h j h j T ) = det ( I d + Σ S ) ( 1 + κ j r j ) , (18)
while Sherman–Morrison gives
( I d + Σ S + κ j h j h j T ) − 1 = Ω S − κ j Ω S h j h j T Ω S 1 + κ j r j . (19) (I_d+\Sigma_S+\kappa_j h_j h_j^{\mathsf{T}})^{-1}=\Omega_S-\frac{\kappa_j\Omega_S h_j h_j^{\mathsf{T}}\Omega_S}{1+\kappa_j r_j}. \tag*{(19)} ( I d + Σ S + κ j h j h j T ) − 1 = Ω S − 1 + κ j r j κ j Ω S h j h j T Ω S . (19)
Substituting Eq. (18) and Eq. (19) into Eq. (11) , and using b S ∪ { j } = b S + λ j h j \mathbf{b}_{S\cup\{j\}}=\mathbf{b}_S+\lambda_j h_j b S ∪ { j } = b S + λ j h j , the corresponding change in the unhalved quadratic form is
2 λ j u j + λ j 2 r j − κ j ( u j + λ j r j ) 2 1 + κ j r j = 2 λ j u j + λ j 2 r j − κ j u j 2 1 + κ j r j . (20) 2\lambda_j u_j+\lambda_j^2r_j-\frac{\kappa_j(u_j+\lambda_jr_j)^2}{1+\kappa_jr_j}=\frac{2\lambda_j u_j+\lambda_j^2r_j-\kappa_j u_j^2}{1+\kappa_jr_j}. \tag*{(20)} 2 λ j u j + λ j 2 r j − 1 + κ j r j κ j ( u j + λ j r j ) 2 = 1 + κ j r j 2 λ j u j + λ j 2 r j − κ j u j 2 . (20)
Half of this, together with the change − 1 2 log ( 1 + κ j r j ) -\frac{1}{2}\log(1+\kappa_jr_j) − 2 1 log ( 1 + κ j r j ) in the determinant term and the new quality term log Φ ( − q j ) \log\Phi(-q_j) log Φ ( − q j ) , yields
Δ j ( S ) = log L ~ ( S ∪ { j } ) − log L ~ ( S ) = log Φ ( − q j ) − 1 2 log ( 1 + κ j r j ) + 2 λ j u j + λ j 2 r j − κ j u j 2 2 ( 1 + κ j r j ) . (21) \Delta_j(S)=\log\widetilde{L}(S\cup\{j\})-\log\widetilde{L}(S)=\log\Phi(-q_j)-\frac{1}{2}\log(1+\kappa_jr_j)+\frac{2\lambda_j u_j+\lambda_j^2r_j-\kappa_j u_j^2}{2(1+\kappa_jr_j)}. \tag*{(21)} Δ j ( S ) = log L ( S ∪ { j }) − log L ( S ) = log Φ ( − q j ) − 2 1 log ( 1 + κ j r j ) + 2 ( 1 + κ j r j ) 2 λ j u j + λ j 2 r j − κ j u j 2 . (21)
The greedy step adds the candidate with the smallest Δ j ( S ) \Delta_j(S) Δ j ( S ) . After selecting j j j , the maintained state updates are
Ω S ∪ { j } = Ω S − κ j Ω S h j h j T Ω S 1 + κ j r j , b S ∪ { j } = b S + λ j h j . (22) \Omega_{S\cup\{j\}}=\Omega_S-\frac{\kappa_j\Omega_S h_jh_j^{\mathsf{T}}\Omega_S}{1+\kappa_jr_j},\qquad\mathbf{b}_{S\cup\{j\}}=\mathbf{b}_S+\lambda_jh_j. \tag*{(22)} Ω S ∪ { j } = Ω S − 1 + κ j r j κ j Ω S h j h j T Ω S , b S ∪ { j } = b S + λ j h j . (22)
The remaining scalars r ℓ r_\ell r ℓ and u ℓ u_\ell u ℓ can be updated recursively as well. If g ℓ = h ℓ T Ω S h j g_\ell=h_\ell^{\mathsf T}\Omega_S h_j g ℓ = h ℓ T Ω S h j , then
r ℓ ← r ℓ − κ j g ℓ 2 1 + κ j r j , u ℓ ← u ℓ + λ j − κ j u j 1 + κ j r j g ℓ . (23) 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. \tag*{(23)} r ℓ ← r ℓ − 1 + κ j r j κ j g ℓ 2 , u ℓ ← u ℓ + 1 + κ j r j λ j − κ j u j g ℓ . (23)
With all h i h_i h i retained in memory, each greedy step costs O ( N d + d 2 ) O(Nd+d^2) O ( N d + d 2 ) , so one forward pass costs O ( k ( N d + d 2 ) ) O(k(Nd+d^2)) O ( k ( N d + d 2 )) time and O ( N d + d 2 ) O(Nd+d^2) O ( N d + d 2 ) storage. A naive implementation that instead rebuilds and factorizes I d + Σ S + κ j h j h j T I_d+\Sigma_S+\kappa_j h_jh_j^{\mathsf T} I d + Σ S + κ j h j h j T for every candidate costs O ( d 3 ) O(d^3) O ( d 3 ) per candidate, hence O ( k N d 3 ) O(kNd^3) O ( k N d 3 ) time, with the same O ( N d + d 2 ) O(Nd+d^2) O ( N d + d 2 ) storage.
Greedy marginal in the equal-quality limit
Suppose that every quality score equals a common value q q q , so that λ i = λ \lambda_i=\lambda λ i = λ and κ i = κ \kappa_i=\kappa κ i = κ for every i i i , and that the penalty term is dropped. Then Eq. (11) reduces to
log L ~ ( S ) = ∣ S ∣ log Φ ( − q ) − 1 2 log det ( I d + Σ S ) , Σ S = κ ∑ i ∈ S h i h i T . (24) \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^{\mathsf T}. \tag*{(24)} log L ( S ) = ∣ S ∣ log Φ ( − q ) − 2 1 log det ( I d + Σ S ) , Σ S = κ i ∈ S ∑ h i h i T . (24)
Adding a candidate j ∉ S j\notin S j ∈ / S changes Σ S \Sigma_S Σ S by the rank-one matrix κ h j h j T \kappa h_jh_j^{\mathsf T} κ h j h j T . The matrix determinant lemma, det ( A + u v T ) = det ( A ) ( 1 + v T A − 1 u ) \det(A+uv^{\mathsf T})=\det(A)(1+v^{\mathsf T}A^{-1}u) det ( A + u v T ) = det ( A ) ( 1 + v T A − 1 u ) for an invertible A A A , applied with A = I d + Σ S A=I_d+\Sigma_S A = I d + Σ S and u = v = κ h j u=v=\sqrt{\kappa}h_j u = v = κ h j , gives
det ( I d + Σ S ∪ { j } ) = det ( I d + Σ S ) ( 1 + κ h j T ( I d + Σ S ) − 1 h j ) . (25) \det(I_d+\Sigma_{S\cup\{j\}})=\det(I_d+\Sigma_S)\left(1+\kappa h_j^{\mathsf T}(I_d+\Sigma_S)^{-1}h_j\right). \tag*{(25)} det ( I d + Σ S ∪ { j } ) = det ( I d + Σ S ) ( 1 + κ h j T ( I d + Σ S ) − 1 h j ) . (25)
Subtracting Eq. (24) at S S S from Eq. (24) at S ∪ { j } S\cup\{j\} S ∪ { j } and using Eq. (25) , the factor det ( I d + Σ S ) \det(I_d+\Sigma_S) det ( I d + Σ S ) cancels and
Δ j ( S ) = log Φ ( − q ) − 1 2 ( log det ( I d + Σ S ∪ { j } ) − log det ( I d + Σ S ) ) (26) \Delta_j(S)=\log\Phi(-q)-\frac{1}{2}\left(\log\det(I_d+\Sigma_{S\cup\{j\}})-\log\det(I_d+\Sigma_S)\right) \tag*{(26)} Δ j ( S ) = log Φ ( − q ) − 2 1 ( log det ( I d + Σ S ∪ { j } ) − log det ( I d + Σ S ) ) (26)
= log Φ ( − q ) − 1 2 log ( 1 + κ h j T ( I d + Σ S ) − 1 h j ) . (27) =\log\Phi(-q)-\frac{1}{2}\log\left(1+\kappa h_j^{\mathsf T}(I_d+\Sigma_S)^{-1}h_j\right). \tag*{(27)} = log Φ ( − q ) − 2 1 log ( 1 + κ h j T ( I d + Σ S ) − 1 h j ) . (27)
The first term of Eq. (27) is the same for every candidate, and x ↦ log ( 1 + κ x ) x\mapsto\log(1+\kappa x) x ↦ log ( 1 + κ x ) is increasing since κ > 0 \kappa>0 κ > 0 , so the candidate with the smallest Δ j ( S ) \Delta_j(S) Δ j ( S ) is the one with the largest h j T ( I d + Σ S ) − 1 h j h_j^{\mathsf T}(I_d+\Sigma_S)^{-1}h_j h j T ( I d + Σ S ) − 1 h j . Moreover, ( I d + Σ S ) − 1 = κ − 1 ( κ − 1 I d + ∑ i ∈ S h i h i T ) − 1 (I_d+\Sigma_S)^{-1}=\kappa^{-1}\left(\kappa^{-1}I_d+\sum_{i\in S}h_i h_i^{\mathsf T}\right)^{-1} ( I d + Σ S ) − 1 = κ − 1 ( κ − 1 I d + ∑ i ∈ S h i h i T ) − 1 , so this ranking is the RepExp rule of Section 2 with regularizer τ = 1 / κ \tau=1/\kappa τ = 1/ κ .
Proofs
Proofs of Theorem 1 and Corollary 1
Proof of Theorem 1
Here Pr [ C = c ∣ H ] \Pr[\mathbf{C}=c\mid H] Pr [ C = c ∣ H ] is given by Eq. (5) . Fix outcomes c ∈ { − 1 , 1 } N c\in\{-1,1\}^{N} c ∈ { − 1 , 1 } N , and write λ i \lambda_i λ i , κ i \kappa_i κ i , Σ \Sigma Σ and b b b for λ i ( c i ) \lambda_i(c_i) λ i ( c i ) , κ i ( c i ) \kappa_i(c_i) κ i ( c i ) , Σ ( c ) \Sigma(c) Σ ( c ) and b ( c ) b(c) b ( c ) . For each i ∈ [ N ] i\in[N] i ∈ [ N ] and a scalar perturbation x x x , let ℓ i ( x ) : = log Φ ( c i ( q i + x ) ) \ell_i(x):=\log\Phi(c_i(q_i+x)) ℓ i ( x ) := log Φ ( c i ( q i + x )) , and let r ( u ) : = ϕ ( u ) / Φ ( u ) r(u):=\phi(u)/\Phi(u) r ( u ) := ϕ ( u ) /Φ ( u ) , which satisfies r ′ ( u ) = − r ( u ) ( u + r ( u ) ) r'(u)=-r(u)(u+r(u)) r ′ ( u ) = − r ( u ) ( u + r ( u )) . Since c i 2 = 1 c_i^2=1 c i 2 = 1 and ϕ \phi ϕ is even, r ( c i q i ) = λ i r(c_iq_i)=\lambda_i r ( c i q i ) = λ i , and
ℓ i ′ ( x ) = c i r ( c i ( q i + x ) ) ⟹ ℓ i ′ ( 0 ) = c i λ i , ℓ i ′ ′ ( 0 ) = r ′ ( c i q i ) = − λ i ( λ i + c i q i ) = − κ i . (28) \ell_i'(x)=c_i r(c_i(q_i+x))\quad\Longrightarrow\quad\ell_i'(0)=c_i\lambda_i,\qquad\ell_i''(0)=r'(c_iq_i)=-\lambda_i(\lambda_i+c_iq_i)=-\kappa_i. \tag*{(28)} ℓ i ′ ( x ) = c i r ( c i ( q i + x )) ⟹ ℓ i ′ ( 0 ) = c i λ i , ℓ i ′′ ( 0 ) = r ′ ( c i q i ) = − λ i ( λ i + c i q i ) = − κ i . (28)
To see that κ i > 0 \kappa_i>0 κ i > 0 , let u = c i q i u=c_iq_i u = c i q i . For u ≥ 0 u\ge0 u ≥ 0 this follows immediately from λ i > 0 \lambda_i>0 λ i > 0 . For u < 0 u<0 u < 0 ,
Φ ( u ) = ∫ ∣ u ∣ ∞ ϕ ( t ) d t < 1 ∣ u ∣ ∫ ∣ u ∣ ∞ t ϕ ( t ) d t = ϕ ( u ) ∣ u ∣ , (29) \Phi(u)=\int_{\lvert u\rvert}^{\infty}\phi(t)\,\mathrm{d}t<\frac{1}{\lvert u\rvert}\int_{\lvert u\rvert}^{\infty}t\phi(t)\,\mathrm{d}t=\frac{\phi(u)}{\lvert u\rvert}, \tag*{(29)} Φ ( u ) = ∫ ∣ u ∣ ∞ ϕ ( t ) d t < ∣ u ∣ 1 ∫ ∣ u ∣ ∞ tϕ ( t ) d t = ∣ u ∣ ϕ ( u ) , (29)
and hence λ i > ∣ u ∣ = − c i q i \lambda_i>\lvert u\rvert=-c_iq_i λ i > ∣ u ∣ = − c i q i . Taylor expansion around x = 0 x=0 x = 0 now gives
log Φ ( c i ( q i + x ) ) = log Φ ( c i q i ) + c i λ i x − κ i 2 x 2 + R i ( x ) , R i ( x ) = O ( ∣ x ∣ 3 ) . (30) \log\Phi(c_i(q_i+x))=\log\Phi(c_iq_i)+c_i\lambda_i x-\frac{\kappa_i}{2}x^2+R_i(x),\qquad R_i(x)=O(\lvert x\rvert^3). \tag*{(30)} log Φ ( c i ( q i + x )) = log Φ ( c i q i ) + c i λ i x − 2 κ i x 2 + R i ( x ) , R i ( x ) = O (∣ x ∣ 3 ) . (30)
We now substitute x = h i T f x=h_i^{\mathsf{T}}f x = h i T f and sum Eq. (30) over i ∈ [ N ] i\in[N] i ∈ [ N ] . Since f f f is common for all i ∈ [ N ] i\in[N] i ∈ [ N ] , the only aggregate quantities that arise are Σ \Sigma Σ and b b b , and the term inside the expectation can be written as
∏ i = 1 N Φ ( c i ( q i + h i T f ) ) = ( ∏ i = 1 N Φ ( c i q i ) ) exp ( b T f − 1 2 f T Σ f + ∑ i = 1 N R i ( h i T f ) ) . (31) \prod_{i=1}^{N}\Phi(c_i(q_i+h_i^{\mathsf{T}}f))=\left(\prod_{i=1}^{N}\Phi(c_iq_i)\right)\exp\left(b^{\mathsf{T}}f-\frac{1}{2}f^{\mathsf{T}}\Sigma f+\sum_{i=1}^{N}R_i(h_i^{\mathsf{T}}f)\right). \tag*{(31)} i = 1 ∏ N Φ ( c i ( q i + h i T f )) = ( i = 1 ∏ N Φ ( c i q i ) ) exp ( b T f − 2 1 f T Σ f + i = 1 ∑ N R i ( h i T f ) ) . (31)
Dropping the accumulated remainder gives the quadratic approximation
Pr ~ [ C = c ∣ H ] : = ( ∏ i = 1 N Φ ( c i q i ) ) E f exp ( b T f − 1 2 f T Σ f ) . (32) \widetilde{\Pr}[\mathbf{C}=c\mid H]:=\left(\prod_{i=1}^{N}\Phi(c_iq_i)\right)\mathbb{E}_f\exp\left(b^{\mathsf{T}}f-\frac{1}{2}f^{\mathsf{T}}\Sigma f\right). \tag*{(32)} Pr [ C = c ∣ H ] := ( i = 1 ∏ N Φ ( c i q i ) ) E f exp ( b T f − 2 1 f T Σ f ) . (32)
The expectation in Eq. (32) has a closed form. Combining its exponent with the standard Gaussian density gives
E f exp ( b T f − 1 2 f T Σ f ) = ( 2 π ) − d / 2 ∫ R d exp ( − 1 2 f T ( I d + Σ ) f + b T f ) d f . (33) \mathbb{E}_f\exp\left(b^{\mathsf{T}}f-\frac{1}{2}f^{\mathsf{T}}\Sigma f\right)=(2\pi)^{-d/2}\int_{\mathbb{R}^{d}}\exp\left(-\frac{1}{2}f^{\mathsf{T}}(I_d+\Sigma)f+b^{\mathsf{T}}f\right)\,\mathrm{d}f. \tag*{(33)} E f exp ( b T f − 2 1 f T Σ f ) = ( 2 π ) − d /2 ∫ R d exp ( − 2 1 f T ( I d + Σ ) f + b T f ) d f . (33)
Because κ i > 0 \kappa_i>0 κ i > 0 , Σ ⪰ 0 \Sigma\succeq0 Σ ⪰ 0 and the matrix I d + Σ I_d+\Sigma I d + Σ is positive definite. Completing the square,
− 1 2 f T ( I d + Σ ) f + b T f = − 1 2 ( f − ( I d + Σ ) − 1 b ) T ( I d + Σ ) ( f − ( I d + Σ ) − 1 b ) (34) -\frac{1}{2}f^{\mathsf{T}}(I_d+\Sigma)f+b^{\mathsf{T}}f=-\frac{1}{2}\left(f-(I_d+\Sigma)^{-1}b\right)^{\mathsf{T}}(I_d+\Sigma)\left(f-(I_d+\Sigma)^{-1}b\right) \tag*{(34)} − 2 1 f T ( I d + Σ ) f + b T f = − 2 1 ( f − ( I d + Σ ) − 1 b ) T ( I d + Σ ) ( f − ( I d + Σ ) − 1 b ) (34)
+ 1 2 b T ( I d + Σ ) − 1 b . (35) +\frac{1}{2}b^{\mathsf{T}}(I_d+\Sigma)^{-1}b. \tag*{(35)} + 2 1 b T ( I d + Σ ) − 1 b . (35)
After translating the integration variable, the remaining Gaussian integral contributes det ( I d + Σ ) − 1 / 2 \det(I_d+\Sigma)^{-1/2} det ( I d + Σ ) − 1/2 , which gives Eq. (9) . □
Proof of Corollary 1
Integrating out the outcomes of the rollouts outside S S S in Eq. (5) leaves the same expression with the product over i ∈ S i \in S i ∈ S , so Theorem 1 applies to the rollouts in S S S , with Σ S ( c ) \Sigma_S(c) Σ S ( c ) and b S ( c ) b_S(c) b S ( c ) the sums over i ∈ S i \in S i ∈ S . Take c i = − 1 c_i=-1 c i = − 1 for every i ∈ S i \in S i ∈ S . Then λ i ( − 1 ) = ϕ ( q i ) / Φ ( − q i ) \lambda_i(-1)=\phi(q_i)/\Phi(-q_i) λ i ( − 1 ) = ϕ ( q i ) /Φ ( − q i ) , κ i ( − 1 ) = λ i ( λ i − q i ) \kappa_i(-1)=\lambda_i(\lambda_i-q_i) κ i ( − 1 ) = λ i ( λ i − q i ) , and b S ( c ) = − ∑ i ∈ S λ i h i b_S(c)=-\sum_{i\in S}\lambda_i h_i b S ( c ) = − ∑ i ∈ S λ i h i , and throughout the appendix we write b S = ∑ i ∈ S λ i h i b_S=\sum_{i\in S}\lambda_i h_i b S = ∑ i ∈ S λ i h i . Since b S b_S b S enters Eq. (9) only through b S T ( I d + Σ S ) − 1 b S b_S^{\mathsf T}(I_d+\Sigma_S)^{-1}b_S b S T ( I d + Σ S ) − 1 b S , the surrogate of L ( S ) L(S) L ( S ) is L ~ ( S ) \widetilde{L}(S) L ( S ) , and since the logarithm is increasing, minimizing L ~ ( S ) \widetilde{L}(S) L ( S ) is equivalent to minimizing log L ~ ( S ) \log\widetilde{L}(S) log L ( S ) . □ \square □
Proof of Theorem 2
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 ] → R G:2^{[N]}\to\mathbb{R} G : 2 [ N ] → R is submodular if, for every A ⊆ B ⊆ [ N ] A\subseteq B\subseteq[N] A ⊆ B ⊆ [ N ] and every j ∉ B j\notin B j ∈ / B ,
G ( A ∪ { j } ) − G ( A ) ≥ G ( B ∪ { j } ) − G ( B ) . (36) G(A\cup\{j\})-G(A)\ge G(B\cup\{j\})-G(B). \tag*{(36)} G ( A ∪ { j }) − G ( A ) ≥ G ( B ∪ { j }) − G ( B ) . (36)
Definition 2 (Monotone function). A set function G : 2 [ N ] → R G:2^{[N]}\to\mathbb{R} G : 2 [ N ] → R is monotone if G ( A ) ≤ G ( B ) G(A)\le G(B) G ( A ) ≤ G ( B ) whenever A ⊆ B ⊆ [ N ] A\subseteq B\subseteq[N] A ⊆ B ⊆ [ N ] .
Definition 3 (Normalized function). A set function G : 2 [ N ] → R G:2^{[N]}\to\mathbb{R} G : 2 [ N ] → R is normalized if G ( ∅ ) = 0 G(\varnothing)=0 G ( ∅ ) = 0 .
Submodularity of Exact pass@k Probability
First, we show that the exact pass@k probability is already a normalized monotone submodular set function. To see this, let C i C_i C i denote the event that response i i i is correct. The exact pass probability can be written as
P ( S ) : = Pr ( ⋃ i ∈ S C i ) . (37) P(S):=\Pr\left(\bigcup_{i\in S}C_i\right). \tag*{(37)} P ( S ) := Pr ( i ∈ S ⋃ C i ) . (37)
For any A ⊆ B ⊆ [ N ] A\subseteq B\subseteq[N] A ⊆ B ⊆ [ N ] and j ∉ B j\notin B j ∈ / B , the marginal improvement from adding response j j j is
P ( A ∪ { j } ) − P ( A ) = Pr ( C j ∖ ⋃ i ∈ A C i ) , (38) P(A\cup\{j\})-P(A)=\Pr\left(C_j\setminus\bigcup_{i\in A}C_i\right), \tag*{(38)} P ( A ∪ { j }) − P ( A ) = Pr ( C j ∖ i ∈ A ⋃ C i ) , (38)
P ( B ∪ { j } ) − P ( B ) = Pr ( C j ∖ ⋃ i ∈ B C i ) . (39) P(B\cup\{j\})-P(B)=\Pr\left(C_j\setminus\bigcup_{i\in B}C_i\right). \tag*{(39)} P ( B ∪ { j }) − P ( B ) = Pr ( C j ∖ i ∈ B ⋃ C i ) . (39)
Since A ⊆ B A\subseteq B A ⊆ B ,
( C j ∖ ⋃ i ∈ B C i ) ⊆ ( C j ∖ ⋃ i ∈ A C i ) . (40) \left(C_j\setminus\bigcup_{i\in B}C_i\right)\subseteq\left(C_j\setminus\bigcup_{i\in A}C_i\right). \tag*{(40)} ( C j ∖ i ∈ B ⋃ C i ) ⊆ ( C j ∖ i ∈ A ⋃ C i ) . (40)
Taking probabilities therefore gives
P ( A ∪ { j } ) − P ( A ) ≥ P ( B ∪ { j } ) − P ( B ) , (41) P(A\cup\{j\})-P(A)\ge P(B\cup\{j\})-P(B), \tag*{(41)} P ( A ∪ { j }) − P ( A ) ≥ P ( B ∪ { j }) − P ( B ) , (41)
which is precisely the submodular function property. Moreover, P ( ∅ ) = 0 P(\varnothing)=0 P ( ∅ ) = 0 , and P ( A ) ≤ P ( B ) P(A)\le P(B) P ( A ) ≤ P ( B ) whenever A ⊆ B A\subseteq B A ⊆ 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.
Submodularity of the Approximate Pass Probability
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) L ( S ) indeed represents some notion of a probability. Conditional on f \mathbf{f} f , each term of the product in L ~ ( S ) \widetilde{L}(S) L ( S ) can be written as
g i ( f ) : = Φ ( − q i ) exp ( − λ i h i ⊤ f − κ i 2 ( h i ⊤ f ) 2 ) . (42) 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). \tag*{(42)} g i ( f ) := Φ ( − q i ) exp ( − λ i h i ⊤ f − 2 κ i ( h i ⊤ f ) 2 ) . (42)
Consequently,
L ~ ( S ) = E f ∼ N ( 0 , I d ) ∏ i ∈ S g i ( f ) . (43) \widetilde{L}(S) = \mathbb{E}_{\mathbf{f}\sim\mathcal{N}(0,I_d)}\prod_{i\in S}g_i(\mathbf{f}). \tag*{(43)} L ( S ) = E f ∼ N ( 0 , I d ) i ∈ S ∏ g i ( f ) . (43)
Hence, for L ~ ( S ) \widetilde{L}(S) L ( S ) to be a definition of some kind of failure probability of selection of correct elements conditioned on f \mathbf{f} f , it would suffice to prove that g i ( f ) < 1 g_i(\mathbf{f}) < 1 g i ( f ) < 1 . Towards this, for a scalar q q q , write
λ ( q ) : = ϕ ( q ) Φ ( − q ) , κ ( q ) : = λ ( q ) ( λ ( q ) − q ) , (44) \lambda(q) := \frac{\phi(q)}{\Phi(-q)}, \qquad\kappa(q) := \lambda(q)(\lambda(q)-q), \tag*{(44)} λ ( q ) := Φ ( − q ) ϕ ( q ) , κ ( q ) := λ ( q ) ( λ ( q ) − q ) , (44)
and define
β ( q ) : = Φ ( − q ) exp ( λ ( q ) 2 2 κ ( q ) ) = Φ ( − q ) exp ( λ ( q ) 2 ( λ ( q ) − q ) ) . (45) \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). \tag*{(45)} β ( q ) := Φ ( − q ) exp ( 2 κ ( q ) λ ( q ) 2 ) = Φ ( − q ) exp ( 2 ( λ ( q ) − q ) λ ( q ) ) . (45)
Lemma 1. For every finite q ∈ R q \in\mathbb{R} q ∈ R , one has 0 < β ( q ) < 1 0 < \beta(q) < 1 0 < β ( q ) < 1 . Moreover, β ( q ) \beta(q) β ( q ) is strictly decreasing in q q q .
Proof. Let Φ ‾ ( q ) : = Φ ( − q ) = 1 − Φ ( q ) \overline{\Phi}(q) := \Phi(-q) = 1-\Phi(q) Φ ( q ) := Φ ( − q ) = 1 − Φ ( q ) and put
v ( q ) : = λ ( q ) − q > 0 , r ( q ) : = log β ( q ) = log Φ ‾ ( q ) + λ ( q ) 2 v ( q ) . (46) v(q) := \lambda(q)-q > 0, \qquad r(q) := \log\beta(q) = \log\overline{\Phi}(q) + \frac{\lambda(q)}{2v(q)}. \tag*{(46)} v ( q ) := λ ( q ) − q > 0 , r ( q ) := log β ( q ) = log Φ ( q ) + 2 v ( q ) λ ( q ) . (46)
Since Φ ‾ ′ ( q ) = − ϕ ( q ) \overline{\Phi}'(q)=-\phi(q) Φ ′ ( q ) = − ϕ ( q ) , we have
d d q log Φ ‾ ( q ) = − λ ( q ) . (47) \frac{d}{dq}\log\overline{\Phi}(q)=-\lambda(q). \tag*{(47)} d q d log Φ ( q ) = − λ ( q ) . (47)
Also, direct differentiation gives
λ ′ ( q ) = λ ( q ) ( λ ( q ) − q ) = λ ( q ) v ( q ) , v ′ ( q ) = λ ( q ) v ( q ) − 1. (48) \lambda'(q)=\lambda(q)(\lambda(q)-q)=\lambda(q)v(q), \qquad v'(q)=\lambda(q)v(q)-1. \tag*{(48)} λ ′ ( q ) = λ ( q ) ( λ ( q ) − q ) = λ ( q ) v ( q ) , v ′ ( q ) = λ ( q ) v ( q ) − 1. (48)
Consequently,
r ′ ( q ) = − λ ( q ) + λ ′ ( q ) v ( q ) − λ ( q ) v ′ ( q ) 2 v ( q ) 2 = λ ( q ) 2 v ( q ) 2 ( 1 − q v ( q ) − 2 v ( q ) 2 ) . (49) r'(q)=-\lambda(q)+\frac{\lambda'(q)v(q)-\lambda(q)v'(q)}{2v(q)^2}=\frac{\lambda(q)}{2v(q)^2}\left(1-qv(q)-2v(q)^2\right). \tag*{(49)} r ′ ( q ) = − λ ( q ) + 2 v ( q ) 2 λ ′ ( q ) v ( q ) − λ ( q ) v ′ ( q ) = 2 v ( q ) 2 λ ( q ) ( 1 − q v ( q ) − 2 v ( q ) 2 ) . (49)
It remains to show that the expression in parentheses is negative. For this, let X ∼ N ( 0 , 1 ) X\sim N(0,1) X ∼ N ( 0 , 1 ) . Using the fact that, E [ X ∣ X > q ] = λ ( q ) \mathbb{E}[X\mid X>q]=\lambda(q) E [ X ∣ X > q ] = λ ( q ) , and E [ X 2 ∣ X > q ] = 1 + q λ ( q ) \mathbb{E}[X^2\mid X>q]=1+q\lambda(q) E [ X 2 ∣ X > q ] = 1 + q λ ( q ) , we get
E [ X − q ∣ X > q ] = v ( q ) , E [ ( X − q ) 2 ∣ X > q ] = 1 − q v ( q ) . (50) \mathbb{E}[X-q\mid X>q]=v(q), \qquad\mathbb{E}[(X-q)^2\mid X>q]=1-qv(q). \tag*{(50)} E [ X − q ∣ X > q ] = v ( q ) , E [( X − q ) 2 ∣ X > q ] = 1 − q v ( q ) . (50)
Hence, it would suffice to prove that
1 2 E [ ( X − q ) 2 ∣ X > q ] ≤ ( E [ X − q ∣ X > q ] ) 2 . (51) \frac{1}{2}\mathbb{E}[(X-q)^2\mid X>q]\leq\left(\mathbb{E}[X-q\mid X>q]\right)^2. \tag*{(51)} 2 1 E [( X − q ) 2 ∣ X > q ] ≤ ( E [ X − q ∣ X > q ] ) 2 . (51)
To prove the above expression, consider
T ( x ) : = Pr ( X − q > x ∣ X > q ) = Φ ‾ ( q + x ) Φ ‾ ( q ) , x ≥ 0. (52) T(x) := \Pr(X-q>x\mid X>q)=\frac{\overline{\Phi}(q+x)}{\overline{\Phi}(q)},\qquad x\ge0. \tag*{(52)} T ( x ) := Pr ( X − q > x ∣ X > q ) = Φ ( q ) Φ ( q + x ) , x ≥ 0. (52)
Under the conditional law given X > q X>q X > q , the random variable X − q X-q X − q is nonnegative. Hence, by the tail-integral formula for second moments [12 Lemma 2.2.13] ,
1 2 E [ ( X − q ) 2 ∣ X > q ] = E [ ∫ 0 ∞ t 1 { X − q > t } d t ∣ X > q ] (53) \frac{1}{2}\mathbb{E}\left[(X-q)^2\mid X>q\right]=\mathbb{E}\left[\left.\int_0^\infty t\mathbf{1}_{\{X-q>t\}}\,\mathrm{d}t\right|X>q\right] \tag*{(53)} 2 1 E [ ( X − q ) 2 ∣ X > q ] = E [ ∫ 0 ∞ t 1 { X − q > t } d t X > q ] (53)
= ∫ 0 ∞ t Pr ( X − q > t ∣ X > q ) d t = ∫ 0 ∞ t T ( t ) d t . (54) =\int_0^\infty t\Pr(X-q>t\mid X>q)\,\mathrm{d}t=\int_0^\infty tT(t)\,\mathrm{d}t. \tag*{(54)} = ∫ 0 ∞ t Pr ( X − q > t ∣ X > q ) d t = ∫ 0 ∞ tT ( t ) d t . (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 + y t=x+y t = 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 ) d x d y = ∫ 0 ∞ ∫ y ∞ T ( t ) d t d y = ∫ 0 ∞ ∫ 0 t T ( t ) d y d t = ∫ 0 ∞ t T ( t ) d t . (55) \int_0^\infty\int_0^\infty T(x+y)\,\mathrm{d}x\,\mathrm{d}y=\int_0^\infty\int_y^\infty T(t)\,\mathrm{d}t\,\mathrm{d}y=\int_0^\infty\int_0^t T(t)\,\mathrm{d}y\,\mathrm{d}t=\int_0^\infty tT(t)\,\mathrm{d}t. \tag*{(55)} ∫ 0 ∞ ∫ 0 ∞ T ( x + y ) d x d y = ∫ 0 ∞ ∫ y ∞ T ( t ) d t d y = ∫ 0 ∞ ∫ 0 t T ( t ) d y d t = ∫ 0 ∞ tT ( t ) d t . (55)
Here the integration region is { ( y , t ) : 0 ≤ y ≤ t < ∞ } \{(y,t):0\le y\le t<\infty\} {( y , t ) : 0 ≤ y ≤ t < ∞ } , and nonnegativity of T T T justifies the exchange. We know that λ \lambda λ is strictly increasing because λ ′ ( q ) = κ ( q ) > 0 \lambda'(q)=\kappa(q)>0 λ ′ ( q ) = κ ( q ) > 0 . Hence, for x , y > 0 x,y>0 x , y > 0 ,
T ( x + y ) T ( x ) = exp ( − ∫ x x + y λ ( q + t ) d t ) < exp ( − ∫ 0 y λ ( q + t ) d t ) = T ( y ) , (56) \frac{T(x+y)}{T(x)}=\exp\left(-\int_x^{x+y}\lambda(q+t)\,\mathrm{d}t\right)<\exp\left(-\int_0^y\lambda(q+t)\,\mathrm{d}t\right)=T(y), \tag*{(56)} T ( x ) T ( x + y ) = exp ( − ∫ x x + y λ ( q + t ) d t ) < exp ( − ∫ 0 y λ ( q + t ) d t ) = T ( y ) , (56)
and therefore T ( x + y ) < T ( x ) T ( y ) T(x+y)<T(x)T(y) T ( x + y ) < T ( x ) T ( y ) . Thus, we get that
1 2 E [ ( X − q ) 2 ∣ X > q ] = ∫ 0 ∞ t T ( t ) d t = ∫ 0 ∞ ∫ 0 ∞ T ( x + y ) d x d y (57) \frac{1}{2}\mathbb{E}\left[(X-q)^2\mid X>q\right]=\int_0^\infty tT(t)\,\mathrm{d}t=\int_0^\infty\int_0^\infty T(x+y)\,\mathrm{d}x\,\mathrm{d}y \tag*{(57)} 2 1 E [ ( X − q ) 2 ∣ X > q ] = ∫ 0 ∞ tT ( t ) d t = ∫ 0 ∞ ∫ 0 ∞ T ( x + y ) d x d y (57)
< ( ∫ 0 ∞ T ( x ) d x ) 2 = ( E [ X − q ∣ X > q ] ) 2 . (58) <\left(\int_0^\infty T(x)\,\mathrm{d}x\right)^2=\left(\mathbb{E}\left[X-q\mid X>q\right]\right)^2. \tag*{(58)} < ( ∫ 0 ∞ T ( x ) d x ) 2 = ( E [ X − q ∣ X > q ] ) 2 . (58)
Combining Eq. (50) and Eq. (58) yields
1 − q v ( q ) − 2 v ( q ) 2 < 0. (59) 1-qv(q)-2v(q)^2<0. \tag*{(59)} 1 − q v ( q ) − 2 v ( q ) 2 < 0. (59)
By Eq. (49) , r ′ ( q ) < 0 r'(q)<0 r ′ ( q ) < 0 . Finally, as q → − ∞ q\to-\infty q → − ∞ , Φ ‾ ( q ) → 1 \overline{\Phi}(q)\to1 Φ ( q ) → 1 , λ ( q ) → 0 \lambda(q)\to0 λ ( q ) → 0 , and λ ( q ) / ( 2 v ( q ) ) → 0 \lambda(q)/(2v(q))\to0 λ ( q ) / ( 2 v ( q )) → 0 . Thus r ( q ) → 0 r(q)\to0 r ( q ) → 0 . Since r r r is strictly decreasing, r ( q ) < 0 r(q)<0 r ( q ) < 0 for every finite q q q . Equivalently, 0 < β ( q ) < 1 0<\beta(q)<1 0 < β ( q ) < 1 , and β \beta β is strictly decreasing.
Thus, coming back to g i ( f ) g_i(\mathbf{f}) g i ( f ) , completing the square in the scalar x = h i T f x=h_i^{\mathsf{T}}\mathbf{f} x = h i T f gives
g i ( f ) = Φ ( − q i ) exp ( − κ i 2 ( x + λ i κ i ) 2 + λ i 2 2 κ i ) ≤ β ( q i ) < 1 (60) g_i(\mathbf{f})=\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)\le\beta(q_i)<1 \tag*{(60)} g i ( f ) = Φ ( − q i ) exp ( − 2 κ i ( x + κ i λ i ) 2 + 2 κ i λ i 2 ) ≤ β ( q i ) < 1 (60)
by Lemma 1. Thus 0 < g i ( f ) < 1 0<g_i(\mathbf{f})<1 0 < g i ( f ) < 1 for every i i i and every f \mathbf{f} f . Hence, one can define the approximate pass@k k k probability by
P ~ ( S ) : = 1 − L ~ ( S ) . (61) \widetilde{P}(S):=1-\widetilde{L}(S). \tag*{(61)} P ( S ) := 1 − L ( S ) . (61)
It follows immediately from Eq. (43) that L ~ \widetilde{L} L decreases under set inclusion, and hence P ~ = 1 − L ~ \widetilde{P}=1-\widetilde{L} P = 1 − L is monotone. Also, P ~ ( ∅ ) = 1 − 1 = 0 \widetilde{P}(\varnothing)=1-1=0 P ( ∅ ) = 1 − 1 = 0 , so P ~ \widetilde{P} P is normalized.
Now let A ⊆ B A \subseteq B A ⊆ B and j ∉ B j \notin B j ∈ / B . The marginal improvement obtained by adding j j j is
P ~ ( A ∪ { j } ) − P ~ ( A ) = L ~ ( A ) − L ~ ( A ∪ { j } ) = E f [ ( 1 − g j ( f ) ) ∏ i ∈ A g i ( f ) ] . (62) \widetilde{P}(A \cup\{j\}) - \widetilde{P}(A) = \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]. \tag*{(62)} P ( A ∪ { j }) − P ( A ) = L ( A ) − L ( A ∪ { j }) = E f [ ( 1 − g j ( f )) i ∈ A ∏ g i ( f ) ] . (62)
Because every g i ( f ) g_i(\mathbf{f}) g i ( f ) lies in ( 0 , 1 ) (0,1) ( 0 , 1 ) ,
( 1 − g j ( f ) ) ∏ i ∈ A g i ( f ) ≥ ( 1 − g j ( f ) ) ∏ i ∈ B g i ( f ) (63) (1-g_j(\mathbf{f}))\prod_{i\in A}g_i(\mathbf{f}) \ge(1-g_j(\mathbf{f}))\prod_{i\in B}g_i(\mathbf{f}) \tag*{(63)} ( 1 − g j ( f )) i ∈ A ∏ g i ( f ) ≥ ( 1 − g j ( f )) i ∈ B ∏ g i ( f ) (63)
pointwise in f \mathbf{f} f . Taking expectations proves that P ~ \widetilde{P} P is submodular.
Greedy Guarantee
Since P ~ \widetilde{P} P is normalized, monotone, and submodular (Appendix § 9 .2.2), by Nemhauser et al. [32 ] , the greedy solution satisfies the guarantee of Theorem 2. □
Proof of Proposition 1
Proof. We show that the problem is NP-hard even when all q i q_i q i equal the same integer and all h i h_i h i have entries in { 0 , 1 } \{0,1\} { 0 , 1 } . We reduce from the independent set problem, which asks whether a graph contains k k k pairwise non-adjacent vertices and is NP-complete [20 ] . Let G G G be a graph on the vertex set [ N ] [N] [ N ] with edge set E E E , adjacency matrix A A A and maximum degree Δ ≥ 1 \Delta\ge1 Δ ≥ 1 (the case without edges is trivial). For S ⊆ [ N ] S \subseteq[N] S ⊆ [ N ] , let A S A_S A S be the adjacency matrix of the subgraph induced by S S S and e ( S ) e(S) e ( S ) its number of edges. We construct an instance whose minimizers are independent sets of size k k k whenever such a set exists.
Let d = ∣ E ∣ + N Δ d=|E|+N\Delta d = ∣ E ∣ + N Δ . The first ∣ E ∣ |E| ∣ E ∣ coordinates of R d \mathbb{R}^d R d are indexed by the edges of G G G , and the remaining ones are split into N N N blocks of Δ \Delta Δ coordinates, one block per vertex. For each vertex i i i , let h i ∈ { 0 , 1 } d h_i\in\{0,1\}^d h i ∈ { 0 , 1 } d have a one in the coordinate of every edge incident to i i i and a one in Δ − deg ( i ) \Delta-\deg(i) Δ − 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 ∥ h i ∥ 2 = Δ \lVert h_i\rVert^2=\Delta ∥ h i ∥ 2 = Δ and h i T h j = A i j h_i^\mathsf{T}h_j=A_{ij} h i T h j = A ij for i ≠ j i\ne j i = j , and the Gram matrix of { h i } i ∈ S \{h_i\}_{i\in S} { h i } i ∈ S is Δ I k + A S \Delta I_k+A_S Δ I k + A S . We further set q i = q q_i=q q i = q for all i i i , for an integer q ≤ − 1 q\le-1 q ≤ − 1 fixed below, so that λ i = λ \lambda_i=\lambda λ i = λ and κ i = κ \kappa_i=\kappa κ i = κ . Then Σ S = κ ∑ i ∈ S h i h i T \Sigma_S=\kappa\sum_{i\in S}h_i h_i^\mathsf{T} Σ S = κ ∑ i ∈ S h i h i T and b S = λ ∑ i ∈ S h i b_S=\lambda\sum_{i\in S}h_i b S = λ ∑ i ∈ S h i , and Eq. (11) reads
log L ~ ( S ) = k log Φ ( − q ) − 1 2 D ( S ) + R ( S ) , (64) \log\widetilde{L}(S)=k\log\Phi(-q)-\frac{1}{2}D(S)+R(S), \tag*{(64)} log L ( S ) = k log Φ ( − q ) − 2 1 D ( S ) + R ( S ) , (64)
where D ( S ) = log det ( I d + Σ S ) D(S)=\log\det(I_d+\Sigma_S) D ( S ) = log det ( I d + Σ S ) and R ( S ) = 1 2 b S T ( I d + Σ S ) − 1 b S ≥ 0 R(S)=\frac{1}{2}b_S^\mathsf{T}(I_d+\Sigma_S)^{-1}b_S\ge0 R ( S ) = 2 1 b S T ( I d + Σ S ) − 1 b S ≥ 0 . Since q ≤ − 1 q\le-1 q ≤ − 1 , we have Φ ( − q ) ≥ 1 2 \Phi(-q)\ge\frac{1}{2} Φ ( − q ) ≥ 2 1 , hence λ ≤ 2 ϕ ( q ) < 1 2 \lambda\le2\phi(q)<\frac{1}{2} λ ≤ 2 ϕ ( q ) < 2 1 and λ ∣ q ∣ ≤ 2 ∣ q ∣ ϕ ( q ) ≤ 2 ϕ ( 1 ) < 1 2 \lambda|q|\le2|q|\phi(q)\le2\phi(1)<\frac{1}{2} λ ∣ q ∣ ≤ 2∣ q ∣ ϕ ( q ) ≤ 2 ϕ ( 1 ) < 2 1 , where we used that t ϕ ( t ) t\phi(t) tϕ ( t ) is decreasing for t ≥ 1 t\ge1 t ≥ 1 . Consequently,
λ ∣ q ∣ ≤ κ = λ 2 + λ ∣ q ∣ < 1. (65) \lambda|q|\le\kappa=\lambda^2+\lambda|q|<1. \tag*{(65)} λ ∣ q ∣ ≤ κ = λ 2 + λ ∣ q ∣ < 1. (65)
We first show that D D D 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 + κ Δ ) I k + κ A S ) = k log ( 1 + κ Δ ) + ∑ j = 1 k log ( 1 + x j ) , x j = κ μ j 1 + κ Δ , (66) 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}, \tag*{(66)} D ( S ) = log det ( ( 1 + κ Δ ) I k + κ A S ) = k log ( 1 + κ Δ ) + j = 1 ∑ k log ( 1 + x j ) , x j = 1 + κ Δ κ μ j , (66)
where μ 1 , … , μ k \mu_1,\ldots,\mu_k μ 1 , … , μ k are the eigenvalues of A S A_S A S . They satisfy ∑ j μ j = tr A S = 0 \sum_j\mu_j=\operatorname{tr}A_S=0 ∑ j μ j = tr A S = 0 , ∑ j μ j 2 = tr A S 2 = 2 e ( S ) \sum_j\mu_j^2=\operatorname{tr}A_S^2=2e(S) ∑ j μ j 2 = tr A S 2 = 2 e ( S ) and ∣ μ j ∣ ≤ Δ |\mu_j|\le\Delta ∣ μ j ∣ ≤ Δ , hence ∑ j x j = 0 \sum_jx_j=0 ∑ j x j = 0 and ∣ x j ∣ < 1 |x_j|<1 ∣ x j ∣ < 1 . If S S S is independent, then A S = 0 A_S=0 A S = 0 and D ( S ) = k log ( 1 + κ Δ ) D(S)=k\log(1+\kappa\Delta) D ( S ) = k log ( 1 + κ Δ ) . Otherwise e ( S ) ≥ 1 e(S)\ge1 e ( S ) ≥ 1 , and the inequality log ( 1 + x ) ≤ x − x 2 / 8 \log(1+x)\le x-x^2/8 log ( 1 + x ) ≤ x − x 2 /8 for ∣ x ∣ < 1 |x|<1 ∣ x ∣ < 1 , together with Eq. (65) , gives
D ( S ) ≤ k log ( 1 + κ Δ ) − 1 8 ∑ j = 1 k x j 2 = k log ( 1 + κ Δ ) − κ 2 e ( S ) 4 ( 1 + κ Δ ) 2 ≤ k log ( 1 + κ Δ ) − κ 2 4 ( 1 + Δ ) 2 . (67) D(S)\le k\log(1+\kappa\Delta)-\frac{1}{8}\sum_{j=1}^{k}x_j^2
=k\log(1+\kappa\Delta)-\frac{\kappa^2e(S)}{4(1+\kappa\Delta)^2}
\le k\log(1+\kappa\Delta)-\frac{\kappa^2}{4(1+\Delta)^2}. \tag*{(67)} D ( S ) ≤ k log ( 1 + κ Δ ) − 8 1 j = 1 ∑ k x j 2 = k log ( 1 + κ Δ ) − 4 ( 1 + κ Δ ) 2 κ 2 e ( S ) ≤ k log ( 1 + κ Δ ) − 4 ( 1 + Δ ) 2 κ 2 . (67)
We next bound the penalty term uniformly over S S S . Since ( I d + Σ S ) − 1 ⪯ I d (I_d+\Sigma_S)^{-1}\preceq I_d ( I d + Σ S ) − 1 ⪯ I d and ∥ ∑ i ∈ S h i ∥ 2 2 = k Δ + 2 e ( S ) ≤ k ( Δ + k ) \left\lVert\sum_{i\in S}h_i\right\rVert_2^2=k\Delta+2e(S)\le k(\Delta+k) ∑ i ∈ S h i 2 2 = k Δ + 2 e ( S ) ≤ k ( Δ + k ) , we have 0 ≤ R ( S ) ≤ 1 2 ∥ b S ∥ 2 2 ≤ 1 2 λ 2 k ( Δ + k ) 0\le R(S)\le\frac{1}{2}\lVert b_S\rVert_2^2\le\frac{1}{2}\lambda^2k(\Delta+k) 0 ≤ R ( S ) ≤ 2 1 ∥ b S ∥ 2 2 ≤ 2 1 λ 2 k ( Δ + k ) . Now suppose that G G G contains an independent set S ∘ S^\circ S ∘ of size k k k , and let S S S be a set of size k k k with e ( S ) ≥ 1 e(S)\ge1 e ( S ) ≥ 1 . Combining the two bounds with Eq. (65) ,
log L ~ ( S ) − log L ~ ( S ∘ ) ≥ 1 2 ( D ( S ∘ ) − D ( S ) ) − R ( S ∘ ) ≥ κ 2 8 ( 1 + Δ ) 2 − λ 2 2 k ( Δ + k ) (68) \log\widetilde{L}(S)-\log\widetilde{L}(S^\circ)\ge\frac{1}{2}\bigl(D(S^\circ)-D(S)\bigr)-R(S^\circ)\ge\frac{\kappa^2}{8(1+\Delta)^2}-\frac{\lambda^2}{2}k(\Delta+k) \tag*{(68)} log L ( S ) − log L ( S ∘ ) ≥ 2 1 ( D ( S ∘ ) − D ( S ) ) − R ( S ∘ ) ≥ 8 ( 1 + Δ ) 2 κ 2 − 2 λ 2 k ( Δ + k ) (68)
≥ λ 2 ( q 2 8 ( 1 + Δ ) 2 − k ( Δ + k ) 2 ) . (69) \ge\lambda^2\left(\frac{q^2}{8(1+\Delta)^2}-\frac{k(\Delta+k)}{2}\right). \tag*{(69)} ≥ λ 2 ( 8 ( 1 + Δ ) 2 q 2 − 2 k ( Δ + k ) ) . (69)
and the right-hand side is positive for q = − 2 ( 1 + Δ ) ( Δ + k ) q=-2(1+\Delta)(\Delta+k) q = − 2 ( 1 + Δ ) ( Δ + k ) . With this choice, every minimizer of log L ~ \log\tilde{L} log L ~ is an independent set whenever G G G contains one of size k k k , so G G G contains an independent set of size k k k if and only if a minimizer of log L ~ \log\tilde{L} log L ~ is independent. The instance consists of N N N binary vectors of dimension d = ∣ E ∣ + N Δ d=|E|+N\Delta d = ∣ E ∣ + N Δ and a single integer q q q of polynomial magnitude, so it is constructed in polynomial time, which proves the claim.
Proof of Proposition 2
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} f by ρ f \rho\mathbf{f} ρ f for ρ > 0 \rho>0 ρ > 0 , so that
Z i = q i + ρ h i T f + m i , Cov ( Z i , Z j ∣ H ) = ρ 2 h i T h j ( i ≠ j ) , (70) \mathbf{Z}_i=q_i+\rho h_i^{\mathsf{T}}\mathbf{f}+\mathbf{m}_i,\qquad\operatorname{Cov}(\mathbf{Z}_i,\mathbf{Z}_j\mid H)=\rho^2h_i^{\mathsf{T}}h_j\quad(i\ne j), \tag*{(70)} Z i = q i + ρ h i T f + m i , Cov ( Z i , Z j ∣ H ) = ρ 2 h i T h j ( i = j ) , (70)
and ρ = 1 \rho=1 ρ = 1 recovers the model of § 3.1 . The quality scores q i = Q θ ( h i ) q_i=Q_\theta(h_i) q i = Q θ ( h i ) and the representations h i h_i h i are held fixed. Since only the products ρ h i \rho h_i ρ h i enter the model, this is equivalent to scaling the representations by ρ \rho ρ with the q i q_i q i fixed, as in assumption (A2) of Appendix § 10 . The failure probability of a set S S S becomes
L ( S ) = E f ∏ i ∈ S Φ ( − q i − ρ h i T f ) , (71) L(S)=\mathbb{E}_{\mathbf{f}}\prod_{i\in S}\Phi(-q_i-\rho h_i^{\mathsf{T}}\mathbf{f}), \tag*{(71)} L ( S ) = E f i ∈ S ∏ Φ ( − q i − ρ h i T f ) , (71)
and its surrogate is Eq. (11) with every h i h_i h i replaced by ρ h i \rho h_i ρ h i .
Proof of Proposition 2. Let ϵ i = ρ h i T f \epsilon_i=\rho h_i^{\mathsf{T}}\mathbf{f} ϵ i = ρ h i T f for i ∈ S i\in S i ∈ S , so that ϵ S ∼ N ( 0 , K ) \epsilon_S\sim\mathcal{N}(0,K) ϵ S ∼ N ( 0 , K ) with K i j = ρ 2 h i T h j K_{ij}=\rho^2h_i^{\mathsf{T}}h_j K ij = ρ 2 h i T h j , and let u i ( x ) = log Φ ( − q i − x ) u_i(x)=\log\Phi(-q_i-x) u i ( x ) = log Φ ( − q i − x ) . Then u i ′ ( 0 ) = − λ i u_i'(0)=-\lambda_i u i ′ ( 0 ) = − λ i and u i ′ ′ ( 0 ) = − κ i u_i''(0)=-\kappa_i u i ′′ ( 0 ) = − κ i , and every derivative of log Φ \log\Phi log Φ of order two or higher is bounded on R \mathbb{R} R . By Taylor’s theorem, for all x ∈ R x\in\mathbb{R} x ∈ R ,
u i ( x ) − u i ( 0 ) = − λ i x − 1 2 κ i x 2 + 1 6 u i ′ ′ ′ ( 0 ) x 3 + r i ( x ) , ∣ r i ( x ) ∣ ≤ C x 4 , (72) u_i(x)-u_i(0)=-\lambda_i x-\frac{1}{2}\kappa_i x^2+\frac{1}{6}u_i'''(0)x^3+r_i(x),\qquad|r_i(x)|\le Cx^4, \tag*{(72)} u i ( x ) − u i ( 0 ) = − λ i x − 2 1 κ i x 2 + 6 1 u i ′′′ ( 0 ) x 3 + r i ( x ) , ∣ r i ( x ) ∣ ≤ C x 4 , (72)
where C C C does not depend on ρ \rho ρ . Let X = ∑ i ∈ S ( u i ( ϵ i ) − u i ( 0 ) ) X=\sum_{i\in S}(u_i(\epsilon_i)-u_i(0)) X = ∑ i ∈ S ( u i ( ϵ i ) − u i ( 0 )) , so that L ( S ) = ∏ i ∈ S Φ ( − q i ) E e X L(S)=\prod_{i\in S}\Phi(-q_i)\mathbb{E}e^X L ( S ) = ∏ i ∈ S Φ ( − q i ) E e X . Since Φ ≤ 1 \Phi\le1 Φ ≤ 1 , we have e X ≤ M S : = ∏ i ∈ S Φ ( − q i ) − 1 e^X\le M_S:=\prod_{i\in S}\Phi(-q_i)^{-1} e X ≤ M S := ∏ i ∈ S Φ ( − q i ) − 1 , and Taylor’s theorem for the exponential gives
∣ e X − 1 − X − 1 2 X 2 − 1 6 X 3 ∣ ≤ M S 24 X 4 . |e^X-1-X-\frac{1}{2}X^2-\frac{1}{6}X^3|\le\frac{M_S}{24}X^4. ∣ e X − 1 − X − 2 1 X 2 − 6 1 X 3 ∣ ≤ 24 M S X 4 .
Moreover, ∣ X ∣ ≤ C ′ ( ∥ ϵ S ∥ + ∥ ϵ S ∥ 2 ) |X|\le C'(\|\epsilon_S\|+\|\epsilon_S\|^2) ∣ X ∣ ≤ C ′ ( ∥ ϵ S ∥ + ∥ ϵ S ∥ 2 ) for a constant C ′ C' C ′ , so E X 4 = O ( ρ 4 ) \mathbb{E}X^4=O(\rho^4) E X 4 = O ( ρ 4 ) and
E e X = 1 + E X + 1 2 E X 2 + 1 6 E X 3 + O ( ρ 4 ) . (73) \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). \tag*{(73)} E e X = 1 + E X + 2 1 E X 2 + 6 1 E X 3 + O ( ρ 4 ) . (73)
The odd moments of ϵ S \epsilon_S ϵ S vanish, and its moments of order four are O ( ρ 4 ) O(\rho^4) O ( ρ 4 ) . Hence
E X = − 1 2 ∑ i ∈ S κ i K i i + O ( ρ 4 ) , E X 2 = ∑ i , j ∈ S λ i λ j K i j + O ( ρ 4 ) , E X 3 = O ( ρ 4 ) . (74) \mathbb{E}X=-\frac{1}{2}\sum_{i\in S}\kappa_iK_{ii}+O(\rho^4),\qquad\mathbb{E}X^2=\sum_{i,j\in S}\lambda_i\lambda_jK_{ij}+O(\rho^4),\qquad\mathbb{E}X^3=O(\rho^4). \tag*{(74)} E X = − 2 1 i ∈ S ∑ κ i K ii + O ( ρ 4 ) , E X 2 = i , j ∈ S ∑ λ i λ j K ij + O ( ρ 4 ) , E X 3 = O ( ρ 4 ) . (74)
With a : = − 1 2 ∑ i ∈ S κ i K i i + 1 2 ∑ i , j ∈ S λ i λ j K i j = O ( ρ 2 ) a:=-\frac{1}{2}\sum_{i\in S}\kappa_iK_{ii}+\frac{1}{2}\sum_{i,j\in S}\lambda_i\lambda_jK_{ij}=O(\rho^2) a := − 2 1 ∑ i ∈ S κ i K ii + 2 1 ∑ i , j ∈ S λ i λ j K ij = O ( ρ 2 ) , this gives E e X = 1 + a + O ( ρ 4 ) \mathbb{E}e^X=1+a+O(\rho^4) E e X = 1 + a + O ( ρ 4 ) , and therefore log E e X = a + O ( ρ 4 ) \log\mathbb{E}e^X=a+O(\rho^4) log E e X = a + O ( ρ 4 ) . Splitting the double sum into its diagonal and off-diagonal parts and using λ i 2 − κ i = λ i q i \lambda_i^2-\kappa_i=\lambda_iq_i λ i 2 − κ i = λ i q i yields
a = ρ 2 2 ∑ i ∈ S λ i q i ∥ h i ∥ 2 + ρ 2 ∑ i < j ∈ S λ i λ j h i T h j , (75) a=\frac{\rho^2}{2}\sum_{i\in S}\lambda_iq_i\lVert h_i\rVert^2+\rho^2\sum_{i<j\in S}\lambda_i\lambda_j h_i^{\mathsf{T}}h_j, \tag*{(75)} a = 2 ρ 2 i ∈ S ∑ λ i q i ∥ h i ∥ 2 + ρ 2 i < j ∈ S ∑ λ i λ j h i T h j , (75)
which proves the expansion of log L ( S ) \log L(S) log L ( S ) .
For the surrogate, Eq. (11) with ρ h i \rho h_i ρ h i in place of h i h_i h i reads
log L ~ ( S ) = ∑ i ∈ S log Φ ( − q i ) − 1 2 log det ( I d + ρ 2 Σ S ) + ρ 2 2 b S T ( I d + ρ 2 Σ S ) − 1 b S . (76) \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^{\mathsf{T}}(I_d+\rho^2\Sigma_S)^{-1}b_S. \tag*{(76)} log L ( S ) = i ∈ S ∑ log Φ ( − q i ) − 2 1 log det ( I d + ρ 2 Σ S ) + 2 ρ 2 b S T ( I d + ρ 2 Σ S ) − 1 b S . (76)
Since log det ( I d + ρ 2 Σ S ) = ρ 2 tr Σ S + O ( ρ 4 ) \log\det(I_d+\rho^2\Sigma_S)=\rho^2\operatorname{tr}\Sigma_S+O(\rho^4) log det ( I d + ρ 2 Σ S ) = ρ 2 tr Σ S + O ( ρ 4 ) and ( I d + ρ 2 Σ S ) − 1 = I d + O ( ρ 2 ) (I_d+\rho^2\Sigma_S)^{-1}=I_d+O(\rho^2) ( I d + ρ 2 Σ S ) − 1 = I d + O ( ρ 2 ) ,
log L ~ ( S ) = ∑ i ∈ S log Φ ( − q i ) − ρ 2 2 ∑ i ∈ S κ i ∥ h i ∥ 2 + ρ 2 2 ∥ ∑ i ∈ S λ i h i ∥ 2 + O ( ρ 4 ) , (77) \log\widetilde{L}(S)=\sum_{i\in S}\log\Phi(-q_i)-\frac{\rho^2}{2}\sum_{i\in S}\kappa_i\lVert h_i\rVert^2+\frac{\rho^2}{2}\left\lVert\sum_{i\in S}\lambda_i h_i\right\rVert^2+O(\rho^4), \tag*{(77)} log L ( S ) = i ∈ S ∑ log Φ ( − q i ) − 2 ρ 2 i ∈ S ∑ κ i ∥ h i ∥ 2 + 2 ρ 2 i ∈ S ∑ λ i h i 2 + O ( ρ 4 ) , (77)
and expanding the square gives the same expansion as for log L ( S ) \log L(S) log L ( S ) .
Selection Behavior Across Budgets
Proposition 2 gives intuition for how PKTP moves from Linear Probe to RepExp as k k k 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 j j j with the smallest log L ~ ( S ∪ { j } ) − log L ~ ( S ) \log\widetilde{L}(S \cup\{j\})-\log\widetilde{L}(S) log L ( S ∪ { j }) − log L ( S ) , and we call this the surrogate greedy rule . At one end, the probe-style rule keeps the k k k candidates with the largest q i q_i q 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 ( I d + τ − 1 G S ) \log\det(I_d+\tau^{-1}G_S) log det ( I d + τ − 1 G S ) , where G S : = ∑ i ∈ S h i h i T G_S := \sum_{i\in S} h_i h_i^{\mathsf T} G S := ∑ i ∈ S h i h i T is the Gram matrix of the kept representations (Appendix § 8 .§ 3 ).
We keep the notation of Corollary 1, with λ ( q ) : = ϕ ( q ) / Φ ( − q ) \lambda(q) := \phi(q)/\Phi(-q) λ ( q ) := ϕ ( q ) /Φ ( − q ) , κ ( q ) : = λ ( q ) ( λ ( q ) − q ) \kappa(q) := \lambda(q)(\lambda(q)-q) κ ( q ) := λ ( q ) ( λ ( q ) − q ) , λ i = λ ( q i ) \lambda_i = \lambda(q_i) λ i = λ ( q i ) and κ i = κ ( q i ) \kappa_i = \kappa(q_i) κ i = κ ( q i ) . Then Σ S = ∑ i ∈ S κ i h i h i T \Sigma_S = \sum_{i\in S}\kappa_i h_i h_i^{\mathsf T} Σ S = ∑ i ∈ S κ i h i h i T , b S = ∑ i ∈ S λ i h i b_S = \sum_{i\in S}\lambda_i h_i b S = ∑ i ∈ S λ i h i , and, as in Eq. (11) ,
log L ~ ( S ) = ∑ i ∈ S log Φ ( − q i ) − 1 2 log det ( I d + Σ S ) + 1 2 b S T ( I d + Σ S ) − 1 b S . (78) \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^{\mathsf T}(I_d+\Sigma_S)^{-1}b_S. \tag*{(78)} log L ( S ) = i ∈ S ∑ log Φ ( − q i ) − 2 1 log det ( I d + Σ S ) + 2 1 b S T ( I d + Σ S ) − 1 b S . (78)
We now give an overview of the results of Appendix C and the assumptions they rely on.
Overview of Appendix C
Appendix 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 h i = ρ v i h_i = \rho v_i h i = ρ v i with ∥ v i ∥ 2 ≤ 1 \lVert v_i\rVert_2 \le1 ∥ v i ∥ 2 ≤ 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 ( Z i , Z j ∣ H ) = h i T h j ≤ ρ 2 \operatorname{Cov}(Z_i,Z_j \mid H) = h_i^{\mathsf T}h_j \le\rho^2 Cov ( Z i , Z j ∣ H ) = h i T h j ≤ ρ 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-k k k sets, and we require these sets to be diverse, meaning that their representations point in all directions rather than being concentrated in a few.
Appendix C.3 shows that at small budgets the two rules agree when the gap between the k k k th and ( k + 1 ) (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)}) log Φ ( − q ( k + 1 ) ) − log Φ ( − q ( k ) ) , exceeds a constant multiple of k ρ 2 k\rho^2 k ρ 2 , which bounds the correlation terms that k k k picks can accumulate. The surrogate greedy rule then returns exactly the top-k k k set of the probe-style rule, and if this condition holds at every budget up to k k k , it also adds these candidates in the same order.
Appendix 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 k k k 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.
Appendix 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 ≤ 3 k \le3 k ≤ 3 , while the large-budget result holds as k k k grows.
Assumptions
We use k k k for the selection budget, with 1 ≤ k ≤ N 1 \le k \le N 1 ≤ k ≤ N for a fixed candidate pool. The three assumptions below concern the quality scores and the representations of the candidates.
(A1) Bulk and spikes. There is a fixed set O = { o 1 , … , o r } O = \{o_1,\ldots,o_r\} O = { o 1 , … , o r } of r ≥ 1 r \ge1 r ≥ 1 candidates, the spikes. The qualities of all other candidates, the bulk, are drawn independently from a distribution D q D_q D q supported in a fixed interval [ w 0 , w ] ⊆ [ − M , M ] [w_0,w] \subseteq[-M,M] [ w 0 , w ] ⊆ [ − M , M ] for a finite M M M . The spike qualities are fixed, lie in [ − M , M ] [-M,M] [ − M , M ] , and satisfy
q o 1 > q o 2 > ⋯ > q o r > w , (79) q_{o_1} > q_{o_2} > \cdots> q_{o_r} > w, \tag*{(79)} q o 1 > q o 2 > ⋯ > q o r > w , (79)
so every spike has a higher quality than every bulk candidate.
(A2) Correlation scale. The representations are h i = ρ v i h_i = \rho v_i h i = ρ v i with ∥ v i ∥ 2 ≤ 1 \lVert v_i\rVert_2 \le1 ∥ v i ∥ 2 ≤ 1 and a fixed 0 < ρ ≤ 1 0 < \rho\le1 0 < ρ ≤ 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 ρ > 0 .
(A3) Diverse representations. For large budgets, we let k → ∞ k \to\infty k → ∞ along a sequence of candidate pools of sizes N k ≥ k N_k \ge k N k ≥ k , while the dimension d d d , the spikes and their qualities, the scale ρ \rho ρ , and the distribution D q D_q D q stay fixed. The large-budget results minimize the objective over a family A k \mathcal{A}_k A k of size-k k k subsets of [ N k ] [N_k] [ N k ] with the following properties. It is deterministic and chosen independently of the bulk qualities. It is nonempty for every sufficiently large k k k , and every S ∈ A k S \in\mathcal{A}_k S ∈ A k satisfies
c 0 k I d ⪯ ∑ i ∈ S v i v i T ⪯ C 0 k I d , ∥ ∑ i ∈ S ∖ O v i ∥ 2 ≤ B 0 , (80) c_0 k I_d \preceq\sum_{i \in S} v_i v_i^\mathsf{T} \preceq C_0 k I_d,\qquad\left\lVert\sum_{i \in S\setminus O} v_i \right\rVert_2 \le B_0, \tag*{(80)} c 0 k I d ⪯ i ∈ S ∑ v i v i T ⪯ C 0 k I d , i ∈ S ∖ O ∑ v i 2 ≤ B 0 , (80)
where c 0 , C 0 , B 0 > 0 c_0, C_0, B_0 > 0 c 0 , C 0 , B 0 > 0 do not depend on k k k or S S S . The first condition says that the representations in S S S cover every direction, with a total weight that grows linearly in k k k , and the second says that the representations of the bulk candidates nearly cancel out. Different sets in A k \mathcal{A}_k A k may contain different spikes.
Small budget k k k : a quality gap yields the probe-style rule
This subsection shows that when the gap between the k k k th and ( k + 1 ) (k+1) ( k + 1 ) th largest qualities is large compared to k ρ 2 k\rho^2 k ρ 2 , PKTP keeps exactly the top-k k k candidates, as the probe-style rule does. We write
Λ : = max q ∈ [ − M , M ] λ ( q ) < ∞ (81) \Lambda:= \max_{q \in[-M,M]} \lambda(q) < \infty \tag*{(81)} Λ := q ∈ [ − M , M ] max λ ( q ) < ∞ (81)
for the largest value of λ \lambda λ over the possible qualities, which bounds every λ i \lambda_i λ i . Order the realized qualities as q ( 1 ) ≥ ⋯ ≥ q ( N ) q_{(1)} \ge\cdots\ge q_{(N)} q ( 1 ) ≥ ⋯ ≥ q ( N ) , and let S k t o p S_k^{\mathrm{top}} S k top be the set of the k k k candidates with the largest qualities. For 1 ≤ k < N 1 \le k < N 1 ≤ k < N , define
Γ k : = log Φ ( − q ( k + 1 ) ) − log Φ ( − q ( k ) ) . (82) \Gamma_k := \log\Phi(-q_{(k+1)}) - \log\Phi(-q_{(k)}). \tag*{(82)} Γ k := log Φ ( − q ( k + 1 ) ) − log Φ ( − q ( k ) ) . (82)
Since d d q log Φ ( − q ) = − λ ( q ) < 0 \frac{d}{dq}\log\Phi(-q) = -\lambda(q) < 0 d q d log Φ ( − q ) = − λ ( q ) < 0 , we have Γ k > 0 \Gamma_k > 0 Γ k > 0 exactly when q ( k ) > q ( k + 1 ) q_{(k)} > q_{(k+1)} q ( k ) > q ( k + 1 ) . This gap measures the quality loss from replacing the weakest member of S k t o p S_k^{\mathrm{top}} S k top by the strongest candidate outside it. The next lemma says that adding a candidate j j j to a set of t t t candidates changes the objective by its own failure term log Φ ( − q j ) \log\Phi(-q_j) log Φ ( − q j ) , up to an error that grows with t t t and vanishes as ρ → 0 \rho\to0 ρ → 0 .
Lemma 2. Under (A1) and (A2), if ∣ S ∣ = t |S| = t ∣ S ∣ = t and j ∉ S j \notin S j ∈ / S , then
∣ log L ~ ( S ∪ { j } ) − log L ~ ( S ) − log Φ ( − q j ) ∣ ≤ ρ 2 2 + Λ 2 ( t + 1 2 ) ρ 2 + Λ 2 t 2 ρ 4 2 . (83) \left|\log\widetilde{L}(S \cup\{j\}) - \log\widetilde{L}(S) - \log\Phi(-q_j)\right| \le\frac{\rho^2}{2} + \Lambda^2\left(t+\frac{1}{2}\right)\rho^2 + \frac{\Lambda^2 t^2 \rho^4}{2}. \tag*{(83)} log L ( S ∪ { j }) − log L ( S ) − log Φ ( − q j ) ≤ 2 ρ 2 + Λ 2 ( t + 2 1 ) ρ 2 + 2 Λ 2 t 2 ρ 4 . (83)
Proof. We first record 0 < κ ( q ) < 1 0 < \kappa(q) < 1 0 < κ ( q ) < 1 . Positivity is shown in Appendix § 9 .1.1. For the upper bound, let Z ∼ N ( 0 , 1 ) Z \sim N(0,1) Z ∼ N ( 0 , 1 ) and recall that
E [ Z ∣ Z > q ] = λ ( q ) , E [ Z 2 ∣ Z > q ] = 1 + q λ ( q ) . (84) \mathbb{E}[Z \mid Z > q] = \lambda(q), \qquad\mathbb{E}[Z^2 \mid Z > q] = 1 + q\lambda(q). \tag*{(84)} E [ Z ∣ Z > q ] = λ ( q ) , E [ Z 2 ∣ Z > q ] = 1 + q λ ( q ) . (84)
Hence, the conditional variance is
0 < Var ( Z ∣ Z > q ) = 1 + q λ ( q ) − λ ( q ) 2 = 1 − κ ( q ) . (85) 0 < \operatorname{Var}(Z \mid Z > q) = 1 + q\lambda(q) - \lambda(q)^2 = 1 - \kappa(q). \tag*{(85)} 0 < Var ( Z ∣ Z > q ) = 1 + q λ ( q ) − λ ( q ) 2 = 1 − κ ( q ) . (85)
Let A = I d + Σ S A = I_d + \Sigma_S A = I d + Σ S , a j = h j T A − 1 h j a_j = h_j^{\mathsf T} A^{-1}h_j a j = h j T A − 1 h j , and u j = h j T A − 1 b S u_j = h_j^{\mathsf T} A^{-1}b_S u j = h j T A − 1 b S . The matrix determinant lemma and the Sherman–Morrison formula give
det ( A + κ j h j h j T ) = det ( A ) ( 1 + κ j a j ) , (86) \det(A + \kappa_j h_j h_j^{\mathsf T}) = \det(A)(1 + \kappa_j a_j), \tag*{(86)} det ( A + κ j h j h j T ) = det ( A ) ( 1 + κ j a j ) , (86)
( A + κ j h j h j T ) − 1 = A − 1 − κ j A − 1 h j h j T A − 1 1 + κ j a j . (87) (A + \kappa_j h_j h_j^{\mathsf T})^{-1} = A^{-1} - \frac{\kappa_j A^{-1}h_j h_j^{\mathsf T} A^{-1}}{1 + \kappa_j a_j}. \tag*{(87)} ( A + κ j h j h j T ) − 1 = A − 1 − 1 + κ j a j κ j A − 1 h j h j T A − 1 . (87)
Expanding the quadratic term with b S ∪ { j } = b S + λ j h j b_{S \cup\{j\}} = b_S + \lambda_j h_j b S ∪ { j } = b S + λ j h j consequently yields
log L ~ ( S ∪ { j } ) − log L ~ ( S ) = log Φ ( − q j ) − 1 2 log ( 1 + κ j a j ) + λ j u j + λ j 2 a j / 2 − κ j u j 2 / 2 1 + κ j a j . (88) \log\widetilde{L}(S \cup\{j\}) - \log\widetilde{L}(S) = \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}. \tag*{(88)} log L ( S ∪ { j }) − log L ( S ) = log Φ ( − q j ) − 2 1 log ( 1 + κ j a j ) + 1 + κ j a j λ j u j + λ j 2 a j /2 − κ j u j 2 /2 . (88)
By (A2), ∥ h j ∥ 2 ≤ ρ \lVert h_j\rVert_2 \le\rho ∥ h j ∥ 2 ≤ ρ , and by (A1), ∣ q i ∣ ≤ M |q_i| \le M ∣ q i ∣ ≤ M , so λ i ≤ Λ \lambda_i \le\Lambda λ i ≤ Λ . Since A ⪰ I d A \succeq I_d A ⪰ I d , we have 0 ≤ a j ≤ ρ 2 0 \le a_j \le\rho^2 0 ≤ a j ≤ ρ 2 and
∣ u j ∣ ≤ ∥ h j ∥ 2 ∥ A − 1 ∥ o p ∥ b S ∥ 2 ≤ t Λ ρ 2 . (89) |u_j| \le\lVert h_j\rVert_2 \lVert A^{-1}\rVert_{\mathrm{op}}\lVert b_S\rVert_2 \le t\Lambda\rho^2. \tag*{(89)} ∣ u j ∣ ≤ ∥ h j ∥ 2 ∥ A − 1 ∥ op ∥ b S ∥ 2 ≤ t Λ ρ 2 . (89)
Using κ j < 1 \kappa_j < 1 κ j < 1 , and 1 + κ j a j ≥ 1 1 + \kappa_j a_j \ge1 1 + κ j a j ≥ 1 in Eq. (88) , the absolute correction to log Φ ( − q j ) \log\Phi(-q_j) log Φ ( − q j ) is at most
ρ 2 2 + Λ ( t Λ ρ 2 ) + Λ 2 ρ 2 2 + t 2 Λ 2 ρ 4 2 , (90) \frac{\rho^2}{2} + \Lambda(t\Lambda\rho^2) + \frac{\Lambda^2\rho^2}{2} + \frac{t^2\Lambda^2\rho^4}{2}, \tag*{(90)} 2 ρ 2 + Λ ( t Λ ρ 2 ) + 2 Λ 2 ρ 2 + 2 t 2 Λ 2 ρ 4 , (90)
which is the bound in Eq. (83) .
Theorem 3. Under ( A 1 ) (A1) ( A 1 ) and ( A 2 ) (A2) ( A 2 ) , if k ρ 2 ≤ 1 k\rho^2 \le1 k ρ 2 ≤ 1 and Γ k > ( 1 + 3 Λ 2 ) k ρ 2 \Gamma_k > (1 + 3\Lambda^2)k\rho^2 Γ k > ( 1 + 3 Λ 2 ) k ρ 2 , then S k t o p S_k^{\mathrm{top}} S k top is the unique size-k k k minimizer of log L ~ \log\widetilde{L} log L , and the surrogate greedy rule returns S k t o p S_k^{\mathrm{top}} S k top after k k k steps.
Proof. First, note that if t ≤ k − 1 t \le k - 1 t ≤ k − 1 and k ρ 2 ≤ 1 k\rho^2 \le1 k ρ 2 ≤ 1 , then twice the bound of Lemma 2 satisfies
ρ 2 + Λ 2 ( 2 t + 1 ) ρ 2 + Λ 2 t 2 ρ 4 ≤ k ρ 2 + 2 Λ 2 k ρ 2 + Λ 2 k 2 ρ 4 ≤ ( 1 + 3 Λ 2 ) k ρ 2 < Γ k . (91) \rho^2 + \Lambda^2(2t + 1)\rho^2 + \Lambda^2t^2\rho^4 \le k\rho^2 + 2\Lambda^2k\rho^2 + \Lambda^2k^2\rho^4 \le(1 + 3\Lambda^2)k\rho^2 < \Gamma_k. \tag*{(91)} ρ 2 + Λ 2 ( 2 t + 1 ) ρ 2 + Λ 2 t 2 ρ 4 ≤ k ρ 2 + 2 Λ 2 k ρ 2 + Λ 2 k 2 ρ 4 ≤ ( 1 + 3 Λ 2 ) k ρ 2 < Γ k . (91)
For any i ∈ S k t o p i \in S_k^{\mathrm{top}} i ∈ S k top , j ∉ S k t o p j \notin S_k^{\mathrm{top}} j ∈ / S k top , and common current set S S S excluding i , j i,j i , j , Lemma 2 gives, when ∣ S ∣ = t ≤ k − 1 |S| = t \le k - 1 ∣ S ∣ = t ≤ k − 1 ,
log L ~ ( S ∪ { i } ) − log L ~ ( S ∪ { j } ) ≤ log Φ ( − q i ) − log Φ ( − q j ) + ( 1 + 3 Λ 2 ) k ρ 2 (92) \log\widetilde{L}(S \cup\{i\}) - \log\widetilde{L}(S \cup\{j\}) \le\log\Phi(-q_i) - \log\Phi(-q_j) + (1 + 3\Lambda^2)k\rho^2 \tag*{(92)} log L ( S ∪ { i }) − log L ( S ∪ { j }) ≤ log Φ ( − q i ) − log Φ ( − q j ) + ( 1 + 3 Λ 2 ) k ρ 2 (92)
≤ − Γ k + ( 1 + 3 Λ 2 ) k ρ 2 < 0. (93) \le-\Gamma_k + (1 + 3\Lambda^2)k\rho^2 < 0. \tag*{(93)} ≤ − Γ k + ( 1 + 3 Λ 2 ) k ρ 2 < 0. (93)
If the current set of the surrogate greedy rule is contained in S k t o p S_k^{\mathrm{top}} S k top , at least one member of S k t o p S_k^{\mathrm{top}} S k top is still available until the k k k th 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 k k k selections form S k t o p S_k^{\mathrm{top}} S k top .
For global optimality, take a size-k k k set R ≠ S k t o p R \ne S_k^{\mathrm{top}} R = S k top . There exist j ∈ R ∖ S k t o p j \in R \setminus S_k^{\mathrm{top}} j ∈ R ∖ S k top and i ∈ S k t o p ∖ R i \in S_k^{\mathrm{top}} \setminus R i ∈ S k top ∖ R . Apply Eq. (93) with S = R ∖ { j } S = R \setminus\{j\} S = R ∖ { j } . Replacing j j j by i i i strictly decreases log L ~ \log\widetilde{L} log L , so R R R cannot be an optimizer. This proves uniqueness of the optimizing set, even if some qualities within S k t o p S_k^{\mathrm{top}} S k top are tied.
Applying Theorem 3 at every budget up to k k k shows that the surrogate greedy rule also adds these candidates in the probe-style order, as long as every gap up to position k k k is large enough. The spikes give such gaps, which leads to the following corollary.
Corollary 2. Under (A1) and (A2), suppose 1 ≤ r < N 1 \le r < N 1 ≤ r < N and define
Γ ∗ : = min ( { log Φ ( − q o j + 1 ) − log Φ ( − q o j ) : 1 ≤ j < r } ∪ { log Φ ( − w ) − log Φ ( − q o r ) } ) > 0. (94) \Gamma_* := \min\left(\{\log\Phi(-q_{o_{j+1}}) - \log\Phi(-q_{o_j}) : 1 \le j < r\} \cup\{\log\Phi(-w) - \log\Phi(-q_{o_r})\}\right) > 0. \tag*{(94)} Γ ∗ := min ( { log Φ ( − q o j + 1 ) − log Φ ( − q o j ) : 1 ≤ j < r } ∪ { log Φ ( − w ) − log Φ ( − q o r )} ) > 0. (94) If r ρ 2 ≤ 1 r\rho^2 \le1 r ρ 2 ≤ 1 and ( 1 + 3 Λ 2 ) r ρ 2 < Γ ∗ (1+3\Lambda^2)r\rho^2 < \Gamma_* ( 1 + 3 Λ 2 ) r ρ 2 < Γ ∗ , then, for every realization of the bulk qualities, the first r r r selections of the surrogate greedy rule are o 1 , … , o r o_1,\ldots,o_r o 1 , … , o r in the order selected by the probe-style rule.
Proof. All bulk qualities are at most w w w . Thus the top r r r candidates are the ordered spikes, and each of the gaps Γ 1 , … , Γ r \Gamma_1,\ldots,\Gamma_r Γ 1 , … , Γ r is at least Γ ∗ \Gamma_* Γ ∗ . Apply Theorem 3 separately at each budget k ≤ r k \le r k ≤ r . The nested top-k k k 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 k k k th and ( k + 1 ) (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.
Large budget k k k : the expected objective reduces to the RepExp objective
We now keep ρ > 0 \rho> 0 ρ > 0 fixed and let k k k grow. Since
G S = ρ 2 ∑ i ∈ S v i v i ⊤ , G_S = \rho^2 \sum_{i \in S} v_i v_i^\top, G S = ρ 2 i ∈ S ∑ v i v i ⊤ ,
(A3) gives G S ⪰ c 0 ρ 2 k I d G_S \succeq c_0\rho^2 k I_d G S ⪰ c 0 ρ 2 k I d . The Gram matrix of a diverse set therefore still grows linearly in k k k , and a small ρ \rho ρ only slows this growth by the factor ρ 2 \rho^2 ρ 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 k → ∞ , but not necessarily when ρ \rho ρ shrinks as k k k grows. Define the constants
c ˉ : = E q ∼ D q log Φ ( − q ) , λ ˉ : = E q ∼ D q λ ( q ) , κ ˉ : = E q ∼ D q κ ( q ) , v λ : = Var q ∼ D q ( λ ( q ) ) . (95) \bar{c} := \mathbb{E}_{q\sim D_q}\log\Phi(-q), \qquad
\bar{\lambda} := \mathbb{E}_{q\sim D_q}\lambda(q), \qquad
\bar{\kappa} := \mathbb{E}_{q\sim D_q}\kappa(q), \qquad
v_\lambda:= \operatorname{Var}_{q\sim D_q}(\lambda(q)). \tag*{(95)} c ˉ := E q ∼ D q log Φ ( − q ) , λ ˉ := E q ∼ D q λ ( q ) , κ ˉ := E q ∼ D q κ ( q ) , v λ := Var q ∼ D q ( λ ( q )) . (95)
These expectations are finite by bounded support, and κ ˉ > 0 \bar{\kappa} > 0 κ ˉ > 0 since κ ( q ) > 0 \kappa(q) > 0 κ ( q ) > 0 .
Theorem 4. Under (A1)–(A3), uniformly over S ∈ A k S \in\mathcal{A}_k S ∈ A k ,
E log L ~ ( S ) = k c ˉ + ∑ o ∈ S ∩ O ( log Φ ( − q o ) − c ˉ ) + d v λ 2 κ ˉ − 1 2 log det ( I d + κ ˉ G S ) + O ( k − 1 / 2 ) . (96) \mathbb{E}\log\widetilde{L}(S) = k\bar{c} + \sum_{o\in S\cap O}\left(\log\Phi(-q_o)-\bar{c}\right) + \frac{d v_\lambda}{2\bar{\kappa}} - \frac{1}{2}\log\det(I_d+\bar{\kappa}G_S) + O(k^{-1/2}). \tag*{(96)} E log L ( S ) = k c ˉ + o ∈ S ∩ O ∑ ( log Φ ( − q o ) − c ˉ ) + 2 κ ˉ d v λ − 2 1 log det ( I d + κ ˉ G S ) + O ( k − 1/2 ) . (96) The expectation is over the bulk qualities, for the fixed set S S S .
In words, after averaging over the bulk qualities, the objective of a diverse set depends on S S S only through the spikes it keeps and through log det ( I d + κ ˉ G S ) \log\det(I_d+\bar{\kappa}G_S) log det ( I d + κ ˉ G S ) , while all other terms are constants. The theorem concerns this average, not log L ~ ( S ) \log\widetilde{L}(S) log L ( S ) for a single draw of the bulk qualities.
Proof. Fix S ∈ A k S \in\mathcal{A}_k S ∈ A k , and write J = S ∩ O J = S \cap O J = S ∩ O and B = S ∖ O B = S \setminus O B = S ∖ O . The expectation of the scalar quality term is exactly
E ∑ i ∈ S log Φ ( − q i ) = k c ˉ + ∑ o ∈ J ( log Φ ( − q o ) − c ˉ ) . (97) \mathbb{E}\sum_{i\in S}\log\Phi(-q_i) = k\bar{c} + \sum_{o\in J}\left(\log\Phi(-q_o)-\bar{c}\right). \tag*{(97)} E i ∈ S ∑ log Φ ( − q i ) = k c ˉ + o ∈ J ∑ ( log Φ ( − q o ) − c ˉ ) . (97)
We treat the determinant and quadratic terms separately. Define
G B = ∑ i ∈ B h i h i ⊤ , Σ J = ∑ o ∈ J κ ( q o ) h o h o ⊤ , b J = ∑ o ∈ J λ ( q o ) h o , (98) G_B = \sum_{i\in B} h_i h_i^\top,\qquad
\Sigma_J = \sum_{o\in J}\kappa(q_o)h_o h_o^\top,\qquad
b_J = \sum_{o\in J}\lambda(q_o)h_o, \tag*{(98)} G B = i ∈ B ∑ h i h i ⊤ , Σ J = o ∈ J ∑ κ ( q o ) h o h o ⊤ , b J = o ∈ J ∑ λ ( q o ) h o , (98)
A 0 = I d + κ ˉ G B + Σ J , Δ = ∑ i ∈ B ( κ ( q i ) − κ ˉ ) h i h i ⊤ , A = I d + Σ S = A 0 + Δ . (99) A_0 = I_d + \bar{\kappa}G_B + \Sigma_J,\qquad
\Delta= \sum_{i\in B}\left(\kappa(q_i)-\bar{\kappa}\right)h_i h_i^\top,\qquad
A = I_d+\Sigma_S=A_0+\Delta. \tag*{(99)} A 0 = I d + κ ˉ G B + Σ J , Δ = i ∈ B ∑ ( κ ( q i ) − κ ˉ ) h i h i ⊤ , A = I d + Σ S = A 0 + Δ. (99)
There are at most r r r spike contributions. Removing them from G S G_S G S changes its operator norm by at most r ρ 2 r\rho^2 r ρ 2 , so G B ⪰ c 1 k I d G_B \succeq c_1 k I_d G B ⪰ c 1 k I d for all sufficiently large k k k , with c 1 > 0 c_1 > 0 c 1 > 0 depending on the fixed ρ \rho ρ . Compactness of the quality interval gives a positive lower bound on every κ ( q i ) \kappa(q_i) κ ( q i ) . Hence A A A , A 0 A_0 A 0 , and every matrix on their connecting line segment have smallest eigenvalue at least c 2 k c_2 k c 2 k .
The determinant term. Independence and centering eliminate the cross terms in the squared Frobenius norm, yielding
E Δ = 0 , E ∥ Δ ∥ F 2 = Var q ∼ D q ( κ ( q ) ) ∑ i ∈ B ∥ h i ∥ 2 4 = O ( k ) . (100) \mathbb{E}\Delta= 0,\qquad\mathbb{E}\lVert\Delta\rVert_F^2 = \operatorname{Var}_{q\sim D_q}(\kappa(q))\sum_{i\in B}\lVert h_i\rVert_2^4 = O(k). \tag*{(100)} E Δ = 0 , E ∥ Δ ∥ F 2 = Var q ∼ D q ( κ ( q )) i ∈ B ∑ ∥ h i ∥ 2 4 = O ( k ) . (100)
For A t = A 0 + t Δ A_t = A_0 + t\Delta A t = A 0 + t Δ , differentiation gives
d d t log det A t = tr ( A t − 1 Δ ) , d 2 d t 2 log det A t = − tr ( A t − 1 Δ A t − 1 Δ ) . (101) \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). \tag*{(101)} d t d log det A t = tr ( A t − 1 Δ ) , d t 2 d 2 log det A t = − tr ( A t − 1 Δ A t − 1 Δ ) . (101)
The absolute second derivative is at most ∥ A t − 1 ∥ o p 2 ∥ Δ ∥ F 2 ≤ C k − 2 ∥ Δ ∥ F 2 \lVert A_t^{-1}\rVert_{\mathrm{op}}^2\lVert\Delta\rVert_F^2 \le Ck^{-2}\lVert\Delta\rVert_F^2 ∥ A t − 1 ∥ op 2 ∥ Δ ∥ F 2 ≤ C k − 2 ∥ Δ ∥ F 2 . Taylor’s formula and Eq. (100) therefore imply
E log det A = log det A 0 + O ( k − 1 ) . (102) \mathbb{E}\log\det A = \log\det A_0 + O(k^{-1}). \tag*{(102)} E log det A = log det A 0 + O ( k − 1 ) . (102)
Also, A 0 − ( I d + κ ˉ G S ) = ∑ o ∈ J ( κ ( q o ) − κ ˉ ) h o h o ⊤ A_0 - (I_d + \bar{\kappa}G_S) = \sum_{o\in J}(\kappa(q_o)-\bar{\kappa})h_oh_o^\top A 0 − ( I d + κ ˉ G S ) = ∑ o ∈ J ( κ ( q o ) − κ ˉ ) h o h o ⊤ has bounded norm. The same line-segment derivative identity, with inverse norm O ( k − 1 ) O(k^{-1}) O ( k − 1 ) , gives
log det A 0 = log det ( I d + κ ˉ G S ) + O ( k − 1 ) . (103) \log\det A_0 = \log\det(I_d + \bar{\kappa}G_S) + O(k^{-1}). \tag*{(103)} log det A 0 = log det ( I d + κ ˉ G S ) + O ( k − 1 ) . (103)
The quadratic term. Decompose
b S = b ˉ + ζ , b ˉ = b J + λ ˉ ∑ i ∈ B h i , ζ = ∑ i ∈ B ( λ ( q i ) − λ ˉ ) h i . (104) b_S = \bar{b} + \zeta,\qquad\bar{b} = b_J + \bar{\lambda}\sum_{i\in B}h_i,\qquad\zeta= \sum_{i\in B}(\lambda(q_i)-\bar{\lambda})h_i. \tag*{(104)} b S = b ˉ + ζ , b ˉ = b J + λ ˉ i ∈ B ∑ h i , ζ = i ∈ B ∑ ( λ ( q i ) − λ ˉ ) h i . (104)
By balance and bounded spike contributions (Assumptions (A1) and (A3)), ∥ b ˉ ∥ = O ( 1 ) \lVert\bar{b}\rVert= O(1) ∥ b ˉ ∥ = O ( 1 ) . Independence gives E ζ = 0 \mathbb{E}\zeta= 0 E ζ = 0 and E ζ ζ ⊤ = v λ G B \mathbb{E}\zeta\zeta^\top= v_\lambda G_B E ζ ζ ⊤ = v λ G B . Consequently,
E [ b S ⊤ A 0 − 1 b S ] = b ˉ ⊤ A 0 − 1 b ˉ + v λ tr ( A 0 − 1 G B ) = d v λ κ ˉ + O ( k − 1 ) . (105) \mathbb{E}[b_S^\top A_0^{-1}b_S] = \bar{b}^\top A_0^{-1}\bar{b} + v_\lambda\operatorname{tr}(A_0^{-1}G_B) = \frac{d v_\lambda}{\bar{\kappa}} + O(k^{-1}). \tag*{(105)} E [ b S ⊤ A 0 − 1 b S ] = b ˉ ⊤ A 0 − 1 b ˉ + v λ tr ( A 0 − 1 G B ) = κ ˉ d v λ + O ( k − 1 ) . (105)
For the last equality, the first term is O ( k − 1 ) O(k^{-1}) O ( k − 1 ) and
A 0 − 1 G B = 1 κ ˉ ( I d − A 0 − 1 ( I d + Σ J ) ) . (106) A_0^{-1}G_B = \frac{1}{\bar{\kappa}}\left(I_d - A_0^{-1}(I_d + \Sigma_J)\right). \tag*{(106)} A 0 − 1 G B = κ ˉ 1 ( I d − A 0 − 1 ( I d + Σ J ) ) . (106)
It remains to replace A 0 − 1 A_0^{-1} A 0 − 1 by the correlated random inverse A − 1 A^{-1} A − 1 . The resolvent identity yields A − 1 − A 0 − 1 = − A − 1 Δ A 0 − 1 A^{-1} - A_0^{-1} = -A^{-1}\Delta A_0^{-1} A − 1 − A 0 − 1 = − A − 1 Δ A 0 − 1 . Moreover, E ∥ b S ∥ 2 4 = O ( k 2 ) \mathbb{E}\lVert b_S\rVert_2^4 = O(k^2) 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 X i X_i X i . Expanding its fourth power gives
E ( ∑ i X i ) 4 = ∑ i E X i 4 + 6 ∑ i < j E X i 2 E X j 2 = O ( k 2 ) . (107) \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). \tag*{(107)} E ( i ∑ X i ) 4 = i ∑ E X i 4 + 6 i < j ∑ E X i 2 E X j 2 = O ( k 2 ) . (107)
There are only d d d coordinates, and ( ∑ a = 1 d z a 2 ) 2 ≤ d ∑ a = 1 d z a 4 \left(\sum_{a=1}^d z_a^2\right)^2 \le d\sum_{a=1}^d z_a^4 ( ∑ a = 1 d z a 2 ) 2 ≤ d ∑ a = 1 d z a 4 , so the vector estimate follows; adding b ˉ = O ( 1 ) \bar{b} = O(1) b ˉ = O ( 1 ) does not change its order. Cauchy–Schwarz now gives
E ∣ b S ⊤ ( A − 1 − A 0 − 1 ) b S ∣ ≤ C k 2 E [ ∥ b S ∥ 2 2 ∥ Δ ∥ F ] ≤ C k 2 E ∥ b S ∥ 2 4 E ∥ Δ ∥ F 2 = O ( k − 1 / 2 ) . (108) \mathbb{E}\left|b_S^\top(A^{-1}-A_0^{-1})b_S\right| \le\frac{C}{k^2}\mathbb{E}\left[\lVert b_S\rVert_2^2\lVert\Delta\rVert_F\right] \le\frac{C}{k^2}\sqrt{\mathbb{E}\lVert b_S\rVert_2^4\mathbb{E}\lVert\Delta\rVert_F^2} = O(k^{-1/2}). \tag*{(108)} E b S ⊤ ( A − 1 − A 0 − 1 ) b S ≤ k 2 C E [ ∥ b S ∥ 2 2 ∥ Δ ∥ F ] ≤ k 2 C E ∥ b S ∥ 2 4 E ∥ Δ ∥ 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 A k \mathcal{A}_k A k .
The penalty term does not vanish, but on average it contributes the same constant d ν λ / ( 2 κ ˉ ) d\nu\lambda/(2\bar{\kappa}) d ν λ / ( 2 κ ˉ ) to every diverse set. The spike term in Eq. (96) , in contrast, depends on which spikes S S S keeps, so it cannot be dropped while keeping a spike is still a choice.
When the large-budget optimizer includes the spikes. Theorem 4 holds whichever spikes a set contains. To show that the best sets keep all the spikes, we need one more condition on A k A_k 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 A k A_k A k of size-k k k subsets has the required closure property if, whenever S ∈ A k S \in A_k S ∈ A k and o ∈ O ∖ S o \in O \setminus S o ∈ O ∖ S , there is a bulk candidate i ∈ S ∖ O i \in S \setminus O i ∈ S ∖ O such that
S ′ = ( S ∖ { i } ) ∪ { o } ∈ A k . (109) S' = (S \setminus\{i\}) \cup\{o\} \in A_k. \tag*{(109)} S ′ = ( S ∖ { i }) ∪ { o } ∈ 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 Appendix C.5 gives a concrete family for which it holds.
Lemma 3 (The averaged objective keeps the spikes). Suppose r ≥ 1 r \ge1 r ≥ 1 , every spike has a fixed quality q o > w q_o > w q o > w , and A k A_k A k *satisfies Definition 4. Under the assumptions of Theorem 4, every minimizer of E log L ~ ( S ) \mathbb{E}\log\widetilde{L}(S) E log L ( S ) over S ∈ A k S \in A_k S ∈ A k contains all of O O O for all sufficiently large k k k .
Proof. We first bound the effect of one replacement on a log determinant. Suppose S ′ = ( S ∖ { i } ) ∪ { o } S' = (S \setminus\{i\}) \cup\{o\} S ′ = ( S ∖ { i }) ∪ { o } , where i i i is a bulk candidate, and both S , S ′ ∈ A k S, S' \in A_k S , S ′ ∈ A k . Fix ν > 0 \nu> 0 ν > 0 and set
A ( t ) = I d + ν ( ( 1 − t ) G S + t G S ′ ) , 0 ≤ t ≤ 1. (110) A(t) = I_d + \nu\left((1-t)G_S + tG_{S'}\right), \qquad0 \le t \le1. \tag*{(110)} A ( t ) = I d + ν ( ( 1 − t ) G S + t G S ′ ) , 0 ≤ t ≤ 1. (110) The uniform covariance lower bound gives A ( t ) ⪰ ( 1 + ν c k ) I d A(t) \succeq(1+\nu c k)I_d A ( t ) ⪰ ( 1 + ν c k ) I d for some fixed c > 0 c>0 c > 0 . Also G S ′ − G S = h o h o T − h i h i T G_{S'}-G_S=h_oh_o^{\mathsf T}-h_ih_i^{\mathsf T} G S ′ − G S = h o h o T − h i h i T , so
∣ d d t log det A ( t ) ∣ = ν ∣ h o T A ( t ) − 1 h o − h i T A ( t ) − 1 h i ∣ ≤ ν ( ∥ h o ∥ 2 2 + ∥ h i ∥ 2 2 ) 1 + ν c k ≤ 2 ν ρ 2 1 + ν c k . (111) \left|\frac{d}{dt}\log\det A(t)\right|
=\nu\left|h_o^{\mathsf T}A(t)^{-1}h_o-h_i^{\mathsf T}A(t)^{-1}h_i\right|
\le\frac{\nu(\lVert h_o\rVert_2^2+\lVert h_i\rVert_2^2)}{1+\nu c k}
\le\frac{2\nu\rho^2}{1+\nu c k}. \tag*{(111)} d t d log det A ( t ) = ν h o T A ( t ) − 1 h o − h i T A ( t ) − 1 h i ≤ 1 + ν c k ν (∥ h o ∥ 2 2 + ∥ h i ∥ 2 2 ) ≤ 1 + ν c k 2 ν ρ 2 . (111) Integrating over t ∈ [ 0 , 1 ] t \in[0,1] t ∈ [ 0 , 1 ] shows, uniformly in the permissible replacement,
∣ log det ( I d + ν G S ′ ) − log det ( I d + ν G S ) ∣ = O ( k − 1 ) . (112) \left|\log\det(I_d+\nu G_{S'})-\log\det(I_d+\nu G_S)\right|=O(k^{-1}). \tag*{(112)} ∣ log det ( I d + ν G S ′ ) − log det ( I d + ν G S ) ∣ = O ( k − 1 ) . (112) Recall that c ˉ = E q ∼ D q log Φ ( − q ) \bar{c}=\mathbb{E}_{q\sim D_q}\log\Phi(-q) c ˉ = E q ∼ D q log Φ ( − q ) . Since q ≤ w < q o q\le w<q_o q ≤ w < q o almost surely under q ∼ D q q\sim D_q q ∼ D q and q ↦ log Φ ( − q ) q\mapsto\log\Phi(-q) q ↦ log Φ ( − q ) is strictly decreasing,
η : = min o ∈ O ( c ˉ − log Φ ( − q o ) ) > 0. (113) \eta:=\min_{o\in O}\left(\bar{c}-\log\Phi(-q_o)\right)>0. \tag*{(113)} η := o ∈ O min ( c ˉ − log Φ ( − q o ) ) > 0. (113) The set O O O is finite, so this minimum is a fixed positive number. If S S S misses spike o o o , choose the replacement supplied by the closure condition. The expansion in Theorem 4 and Eq. (112) , with ν = κ ˉ \nu=\bar{\kappa} ν = κ ˉ , give
E log L ~ ( S ′ ) − E log L ~ ( S ) = log Φ ( − q o ) − c ˉ − 1 2 [ log det ( I d + κ ˉ G S ′ ) − log det ( I d + κ ˉ G S ) ] + O ( k − 1 / 2 ) (114) \mathbb{E}\log\widetilde{L}(S')-\mathbb{E}\log\widetilde{L}(S)
=\log\Phi(-q_o)-\bar{c}
-\frac{1}{2}\left[\log\det(I_d+\bar{\kappa}G_{S'})-\log\det(I_d+\bar{\kappa}G_S)\right]
+O(k^{-1/2}) \tag*{(114)} E log L ( S ′ ) − E log L ( S ) = log Φ ( − q o ) − c ˉ − 2 1 [ log det ( I d + κ ˉ G S ′ ) − log det ( I d + κ ˉ G S ) ] + O ( k − 1/2 ) (114) ≤ − η + O ( k − 1 / 2 ) < 0 (115) \le-\eta+O(k^{-1/2})<0 \tag*{(115)} ≤ − η + O ( k − 1/2 ) < 0 (115) for all sufficiently large k k k . 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 A k O = { S ∈ A k : O ⊆ S } A_k^O = \{S \in A_k : O \subseteq S\} A k O = { S ∈ A k : O ⊆ S } , and for ν > 0 \nu> 0 ν > 0 let
D ν ( S ) = log det ( I d + ν G S ) , S k det ( ν ) ∈ arg max S ∈ A k O D ν ( S ) . (116) D_\nu(S) = \log\det(I_d + \nu G_S), \qquad S_k^{\det}(\nu) \in\arg\max_{S \in A_k^O} D_\nu(S). \tag*{(116)} D ν ( S ) = log det ( I d + ν G S ) , S k d e t ( ν ) ∈ arg S ∈ A k O max D ν ( S ) . (116) Under the assumptions of Lemma 3, let S ^ k log \widehat{S}_k^{\log} S k l o g minimize E log L ~ ( S ) \mathbb{E}\log\widetilde{L}(S) E log L ( S ) over A k A_k A k . Then, for all sufficiently large k k k ,
0 ≤ D κ ˉ ( S k det ( κ ˉ ) ) − D κ ˉ ( S ^ k log ) = O ( k − 1 / 2 ) . (117) 0 \le D_{\bar{\kappa}}\left(S_k^{\det}(\bar{\kappa})\right) - D_{\bar{\kappa}}\left(\widehat{S}_k^{\log}\right) = O\left(k^{-1/2}\right). \tag*{(117)} 0 ≤ D κ ˉ ( S k d e t ( κ ˉ ) ) − D κ ˉ ( S k l o g ) = O ( k − 1/2 ) . (117) Proof. Lemma 3 places each optimizer in A k O A_k^O A k O for all sufficiently large k k k . On this family, Theorem 4 has the form
E log L ~ ( S ) = C k − 1 2 D κ ˉ ( S ) + e k ( S ) , sup S ∈ A k O ∣ e k ( S ) ∣ ≤ C k − 1 / 2 , (118) \mathbb{E}\log\widetilde{L}(S) = C_k - \frac{1}{2}D_{\bar{\kappa}}(S) + e_k(S), \qquad\sup_{S \in A_k^O} \lvert e_k(S)\rvert\le C k^{-1/2}, \tag*{(118)} E log L ( S ) = C k − 2 1 D κ ˉ ( S ) + e k ( S ) , S ∈ A k O sup ∣ e k ( S )∣ ≤ C k − 1/2 , (118) where C k C_k C k is independent of S S S . Optimality of S ^ k log \widehat{S}_k^{\log} S k l o g , compared with S k det ( κ ˉ ) S_k^{\det}(\bar{\kappa}) S k d e t ( κ ˉ ) , implies
1 2 [ D κ ˉ ( S k det ( κ ˉ ) ) − D κ ˉ ( S ^ k log ) ] ≤ e k ( S k det ( κ ˉ ) ) − e k ( S ^ k log ) ≤ 2 C k − 1 / 2 . (119) \frac{1}{2}\left[D_{\bar{\kappa}}\left(S_k^{\det}(\bar{\kappa})\right) - D_{\bar{\kappa}}\left(\widehat{S}_k^{\log}\right)\right] \le e_k\left(S_k^{\det}(\bar{\kappa})\right) - e_k\left(\widehat{S}_k^{\log}\right) \le2Ck^{-1/2}. \tag*{(119)} 2 1 [ D κ ˉ ( S k d e t ( κ ˉ ) ) − D κ ˉ ( S k l o g ) ] ≤ e k ( S k d e t ( κ ˉ ) ) − e k ( S k l o g ) ≤ 2 C k − 1/2 . (119) This proves Eq. 117.
Since D κ ˉ D_{\bar{\kappa}} D κ ˉ is the RepExp objective with τ = 1 / κ ˉ \tau= 1/\bar{\kappa} τ = 1/ κ ˉ (Appendix § 8 .§ 3 ), the minimizer of the averaged objective nearly maximizes the RepExp objective among the diverse sets that keep all the spikes.
An explicit model with both regimes
This subsection constructs an explicit model in which the assumptions of Appendix § 10 .§ 3 and Appendix § 10 .§ 4 hold at the same time, for one fixed quality distribution and one fixed ρ \rho ρ . Let N N N denote the total candidate-pool size, and consider a nested sequence of pools as N → ∞ N \to\infty N → ∞ . Each pool contains the same three spikes O = { o 1 , o 2 , o 3 } O = \{o_1, o_2, o_3\} O = { o 1 , o 2 , o 3 } , identified with the indices { 1 , 2 , 3 } \{1, 2, 3\} { 1 , 2 , 3 } , and a bulk set B N = [ N ] ∖ O B_N = [N] \setminus O B N = [ N ] ∖ O of size N − 3 N - 3 N − 3 . The pools may be coupled by taking one infinite sequence of bulk candidates and letting B N B_N B N contain its first N − 3 N - 3 N − 3 members. Throughout the construction, the dimension d d d is fixed. For the large-budget regime, fix any exponent α ∈ ( 0 , 1 ) \alpha\in(0, 1) α ∈ ( 0 , 1 ) and define the integer-valued budget schedule
k ( N ) : = ⌊ N α ⌋ . (120) k(N) := \left\lfloor N^\alpha\right\rfloor. \tag*{(120)} k ( N ) := ⌊ N α ⌋ . (120)
Then k ( N ) → ∞ k(N) \to\infty k ( N ) → ∞ and k ( N ) / N → 0 k(N)/N \to0 k ( N ) / N → 0 as N → ∞ N \to\infty N → ∞ , while 3 ≤ k ( N ) ≤ N − 3 3 \le k(N) \le N - 3 3 ≤ k ( N ) ≤ N − 3 for all sufficiently large N N N . In the small-budget part of this construction, k ∈ { 1 , 2 , 3 } k \in\{1, 2, 3\} k ∈ { 1 , 2 , 3 } denotes a fixed selection budget, whereas k ( N ) 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 A k A_k A k .
For the quality model in (A1), draw the bulk qualities independently from D q = Unif [ − γ , γ ] D_q = \operatorname{Unif}[-\gamma, \gamma] D q = Unif [ − γ , γ ] , once for the nested sequence of pools, and let the three spike qualities be
q o 1 = 4 γ , q o 2 = 3 γ , q o 3 = 2 γ . (121) q_{o_1} = 4\gamma, \qquad q_{o_2} = 3\gamma, \qquad q_{o_3} = 2\gamma. \tag*{(121)} q o 1 = 4 γ , q o 2 = 3 γ , q o 3 = 2 γ . (121)
Here γ > 0 \gamma> 0 γ > 0 is a fixed constant. Thus we may take w 0 = − γ w_0 = -\gamma w 0 = − γ , w = γ w = \gamma w = γ , and M = 4 γ M = 4\gamma M = 4 γ . Every spike has quality strictly above the entire bulk quality distribution, and
Var q ∼ D q ( q ) = γ 2 3 > 0. (122) \operatorname{Var}_{q \sim D_q}(q) = \frac{\gamma^2}{3} > 0. \tag*{(122)} Var q ∼ D q ( q ) = 3 γ 2 > 0. (122)
In particular, the bulk qualities retain a fixed, nonzero variance as N N N grows.
Next, consider the small-budget quality gaps. Since q ↦ log Φ ( − q ) q \mapsto\log\Phi(-q) q ↦ log Φ ( − q ) is strictly decreasing, the quantity
Γ ∗ = min { log Φ ( − 3 γ ) − log Φ ( − 4 γ ) , log Φ ( − 2 γ ) − log Φ ( − 3 γ ) , log Φ ( − γ ) − log Φ ( − 2 γ ) } (123) \Gamma_* = \min\{\log\Phi(-3\gamma) - \log\Phi(-4\gamma),\ \log\Phi(-2\gamma) - \log\Phi(-3\gamma),\ \log\Phi(-\gamma) - \log\Phi(-2\gamma)\} \tag*{(123)} Γ ∗ = min { log Φ ( − 3 γ ) − log Φ ( − 4 γ ) , log Φ ( − 2 γ ) − log Φ ( − 3 γ ) , log Φ ( − γ ) − log Φ ( − 2 γ )} (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 d d q log Φ ( − q ) = − λ ( q ) \frac{d}{dq}\log\Phi(-q)=-\lambda(q) d q d log Φ ( − q ) = − λ ( q ) and λ ′ ( q ) = κ ( q ) > 0 \lambda'(q)=\kappa(q)>0 λ ′ ( q ) = κ ( q ) > 0 , each difference in this minimum is the integral of λ \lambda λ over an interval of length γ \gamma γ contained in [ γ , 4 γ ] [\gamma,4\gamma] [ γ , 4 γ ] . Consequently,
Γ ∗ ≥ γ λ ( γ ) > 0. (124) \Gamma_* \ge\gamma\lambda(\gamma)>0. \tag*{(124)} Γ ∗ ≥ γ λ ( γ ) > 0. (124)
Let Λ = max q ∈ [ − 4 γ , 4 γ ] λ ( q ) \Lambda=\max_{q\in[-4\gamma,4\gamma]}\lambda(q) Λ = max q ∈ [ − 4 γ , 4 γ ] λ ( q ) , and choose the fixed scale ρ > 0 \rho>0 ρ > 0 so that
0 < ρ 2 < min { 1 3 , Γ ∗ 3 ( 1 + 3 Λ 2 ) } . (125) 0<\rho^2<\min\left\{\frac{1}{3},\frac{\Gamma_*}{3(1+3\Lambda^2)}\right\}. \tag*{(125)} 0 < ρ 2 < min { 3 1 , 3 ( 1 + 3 Λ 2 ) Γ ∗ } . (125)
Take deterministic vectors v i v_i v i with ∥ v i ∥ 2 ≤ 1 \lVert v_i\rVert_2\le1 ∥ v i ∥ 2 ≤ 1 , and set h i = ρ v i h_i=\rho v_i h i = ρ v i , as required by (A2). This choice gives
3 ρ 2 ≤ 1 , 3 ( 1 + 3 Λ 2 ) ρ 2 < Γ ∗ . (126) 3\rho^2\le1,\qquad3(1+3\Lambda^2)\rho^2<\Gamma_*. \tag*{(126)} 3 ρ 2 ≤ 1 , 3 ( 1 + 3 Λ 2 ) ρ 2 < Γ ∗ . (126)
For every N > 3 N>3 N > 3 and every realization of the bulk qualities, Corollary 2 therefore applies, so the first three greedy selections are o 1 , o 2 , o 3 o_1,o_2,o_3 o 1 , o 2 , o 3 in that order. For each fixed k ∈ { 1 , 2 , 3 } k\in\{1,2,3\} k ∈ { 1 , 2 , 3 } , Theorem 3 also shows that the set { o 1 , … , o k } \{o_1,\ldots,o_k\} { o 1 , … , o k } is the unique size-k k k minimizer of log L ˉ \log\bar{L} log L ˉ . Thus the small-budget conclusion holds uniformly as the pool size N N N grows.
For the large-budget part, we first describe a general way to obtain families with the closure property of Definition 4. Let C k \mathcal{C}_k C k be any nonempty deterministic family of bulk-only size-k k k sets such that, for fixed constants B c o r e , c c o r e , C c o r e > 0 B_{\mathrm{core}},c_{\mathrm{core}},C_{\mathrm{core}}>0 B core , c core , C core > 0 independent of k k k ,
∥ ∑ i ∈ U v i ∥ 2 ≤ B c o r e , c c o r e k I d ⪯ ∑ i ∈ U v i v i ⊤ ⪯ C c o r e k I d , U ∈ C k . (127) \left\lVert\sum_{i\in U}v_i\right\rVert_2\le B_{\mathrm{core}},\qquad
c_{\mathrm{core}}kI_d\preceq\sum_{i\in U}v_iv_i^\top\preceq C_{\mathrm{core}}kI_d,\qquad U\in\mathcal{C}_k. \tag*{(127)} i ∈ U ∑ v i 2 ≤ B core , c core k I d ⪯ i ∈ U ∑ v i v i ⊤ ⪯ C core k I d , U ∈ C k . (127)
As before, h i = ρ v i h_i=\rho v_i h i = ρ v i with ∥ v i ∥ 2 ≤ 1 \lVert v_i\rVert_2\le1 ∥ v i ∥ 2 ≤ 1 , and ρ > 0 \rho>0 ρ > 0 is fixed. Define
A k = { ( U ∖ R ) ∪ J : U ∈ C k , J ⊆ O , R ⊆ U , ∣ R ∣ = ∣ J ∣ } . (128) \mathcal{A}_k=\{(U\setminus R)\cup J:U\in\mathcal{C}_k,\ J\subseteq O,\ R\subseteq U,\ |R|=|J|\}. \tag*{(128)} A k = {( U ∖ R ) ∪ J : U ∈ C k , J ⊆ O , R ⊆ U , ∣ R ∣ = ∣ J ∣ } . (128)
If S = ( U ∖ R ) ∪ J S=(U\setminus R)\cup J S = ( U ∖ R ) ∪ J misses a spike o o o , replacing any i ∈ U ∖ R i\in U\setminus R i ∈ U ∖ R by o o o gives the same representation with R ∪ { i } R\cup\{i\} R ∪ { i } and J ∪ { o } J\cup\{o\} J ∪ { o } . Thus this family is closed in the sense of Definition 4, for k ≥ r k\ge r k ≥ r . Moreover, since at most r r r vectors are removed or inserted,
∥ ∑ i ∈ S ∖ O h i ∥ 2 ≤ ρ ( B c o r e + r ) , (129) \left\lVert\sum_{i\in S\setminus O}h_i\right\rVert_2\le\rho(B_{\mathrm{core}}+r), \tag*{(129)} i ∈ S ∖ O ∑ h i 2 ≤ ρ ( B core + r ) , (129)
ρ 2 ( c c o r e k − r ) I d ⪯ G S ⪯ ρ 2 ( C c o r e k + r ) I d . (130) \rho^2(c_{\mathrm{core}}k-r)I_d\preceq G_S\preceq\rho^2(C_{\mathrm{core}}k+r)I_d. \tag*{(130)} ρ 2 ( c core k − r ) I d ⪯ G S ⪯ ρ 2 ( C core k + r ) I d . (130)
For the matrix bounds, use 0 ⪯ v i v i ⊤ ⪯ I d 0\preceq v_iv_i^\top\preceq I_d 0 ⪯ v i v i ⊤ ⪯ I d for each removed or inserted vector. For all sufficiently large k k k , these imply (A3), for example with B 0 = B c o r e + r B_0=B_{\mathrm{core}}+r B 0 = B core + r , c 0 = c c o r e / 2 c_0=c_{\mathrm{core}}/2 c 0 = c core /2 , and C 0 = C c o r e + 1 C_0=C_{\mathrm{core}}+1 C 0 = C core + 1 .
We now build such a core family from antipodal pairs. Let the bulk directions belong to { ± e 1 , … , ± e d } \{\pm e_1,\ldots,\pm e_d\} { ± e 1 , … , ± e d } , where e 1 , … , e d e_1,\ldots,e_d e 1 , … , e d are the standard basis vectors. An antipodal pair consists of two distinct candidates with directions e j e_j e j and − e j -e_j − e j . Its contributions to the vector sum and Gram matrix are, respectively,
e j + ( − e j ) = 0 , e j e j ⊤ + ( − e j ) ( − e j ) ⊤ = 2 e j e j ⊤ . (131) e_j+(-e_j)=0,\qquad e_je_j^\top+(-e_j)(-e_j)^\top=2e_je_j^\top. \tag*{(131)} e j + ( − e j ) = 0 , e j e j ⊤ + ( − e j ) ( − e j ) ⊤ = 2 e j e j ⊤ . (131)
Thus pairing cancels the vector sum while preserving covariance in direction e j e_j e j .
Write b ℓ : = 3 + ℓ b_\ell:= 3+\ell b ℓ := 3 + ℓ for the ℓ \ell ℓ th candidate in the infinite bulk sequence, and assign the directions of b 1 , b 2 , … b_1,b_2,\ldots b 1 , b 2 , … in the repeating order
e 1 , − e 1 , e 2 , − e 2 , … , e d , − e d , e 1 , − e 1 , … (132) e_1,-e_1,e_2,-e_2,\ldots,e_d,-e_d,e_1,-e_1,\ldots \tag*{(132)} e 1 , − e 1 , e 2 , − e 2 , … , e d , − e d , e 1 , − e 1 , … (132)
Thus B N = { b 1 , … , b N − 3 } B_N=\{b_1,\ldots,b_{N-3}\} B N = { b 1 , … , 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 N N N , define the bulk-only core and its singleton family by
U N : = { b 1 , … , b k ( N ) } , C N : = { U N } . (133) U_N:=\{b_1,\ldots,b_{k(N)}\},\qquad C_N:=\{U_N\}. \tag*{(133)} U N := { b 1 , … , b k ( N ) } , C N := { U N } . (133)
Then ∣ U N ∣ = k ( N ) |U_N|=k(N) ∣ U N ∣ = k ( N ) . Let n N , j n_{N,j} n N , j denote the number of complete antipodal pairs on axis j j j among the first 2 ⌊ k ( N ) / 2 ⌋ 2\lfloor k(N)/2\rfloor 2 ⌊ k ( N ) /2 ⌋ members of U N U_N U N . If k ( N ) k(N) k ( N ) is even, U N U_N U N consists entirely of these pairs, and the cyclic construction gives
2 ∑ j = 1 d n N , j = k ( N ) , n N , j ≥ k ( N ) 4 d for every j (134) 2\sum_{j=1}^{d}n_{N,j}=k(N),\qquad n_{N,j}\ge\frac{k(N)}{4d}\quad\text{for every }j \tag*{(134)} 2 j = 1 ∑ d n N , j = k ( N ) , n N , j ≥ 4 d k ( N ) for every j (134)
for all sufficiently large N N N . The lower bound means that at least a fraction 1 / ( 2 d ) 1/(2d) 1/ ( 2 d ) of the selected vectors lies on each axis. In this case,
∑ i ∈ U N v i = 0 , k ( N ) 2 d I d ⪯ ∑ i ∈ U N v i v i T = 2 diag ( n N , 1 , … , n N , d ) ⪯ k ( N ) I d . (135) \sum_{i\in U_N}v_i=0,\qquad\frac{k(N)}{2d}I_d\preceq\sum_{i\in U_N}v_iv_i^{\mathsf T}=2\operatorname{diag}(n_{N,1},\ldots,n_{N,d})\preceq k(N)I_d. \tag*{(135)} i ∈ U N ∑ v i = 0 , 2 d k ( N ) I d ⪯ i ∈ U N ∑ v i v i T = 2 diag ( n N , 1 , … , n N , d ) ⪯ k ( N ) I d . (135)
If k ( N ) k(N) k ( N ) is odd, its first k ( N ) − 1 k(N)-1 k ( N ) − 1 members form the complete pairs counted by n N , j n_{N,j} n N , j , and these counts satisfy
2 ∑ j = 1 d n N , j = k ( N ) − 1 , n N , j ≥ k ( N ) − 1 4 d (136) 2\sum_{j=1}^{d}n_{N,j}=k(N)-1,\qquad n_{N,j}\ge\frac{k(N)-1}{4d} \tag*{(136)} 2 j = 1 ∑ d n N , j = k ( N ) − 1 , n N , j ≥ 4 d k ( N ) − 1 (136)
for all sufficiently large N N N . The remaining member has direction e j N e_{j_N} e j N for an axis j N ∈ { 1 , … , d } j_N\in\{1,\ldots,d\} j N ∈ { 1 , … , d } determined by the cyclic ordering. Thus
∥ ∑ i ∈ U N v i ∥ 2 = 1 , k ( N ) − 1 2 d I d ⪯ ∑ i ∈ U N v i v i T ⪯ k ( N ) I d . (137) \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_iv_i^{\mathsf T}\preceq k(N)I_d. \tag*{(137)} i ∈ U N ∑ v i 2 = 1 , 2 d k ( N ) − 1 I d ⪯ i ∈ U N ∑ v i v i T ⪯ k ( N ) I d . (137)
Consequently, for both parities and all sufficiently large N N N , the core-family bounds hold with the fixed constants
B c o r e = 1 , c c o r e = 1 4 d , C c o r e = 1. (138) B_{\mathrm{core}}=1,\qquad c_{\mathrm{core}}=\frac{1}{4d},\qquad C_{\mathrm{core}}=1. \tag*{(138)} B core = 1 , c core = 4 d 1 , C core = 1. (138)
Enlarging this core family as in Eq. 128, with r = 3 r=3 r = 3 , gives a family A N c o n A_N^{\mathrm{con}} A N con of size-k ( N ) k(N) k ( N ) subsets of [N] that is closed under insertion of a missing spike. By Eqs. 129 and 130, it satisfies (A3) for all sufficiently large N N N , with B 0 = 4 B_0=4 B 0 = 4 , c 0 = 1 / ( 8 d ) c_0=1/(8d) c 0 = 1/ ( 8 d ) and C 0 = 2 C_0=2 C 0 = 2 . When applying the general large-budget results to this construction, their budget parameter k k k is instantiated as k ( N ) k(N) k ( N ) . To recover the generic budget-indexed notation, set
N k : = ⌊ k 1 / α ⌋ , A k : = A N k c o n . (139) N_k:=\left\lfloor k^{1/\alpha}\right\rfloor,\qquad A_k:=A_{N_k}^{\mathrm{con}}. \tag*{(139)} N k := ⌊ k 1/ α ⌋ , A k := A N k con . (139)
For 0 < α < 1 0<\alpha<1 0 < α < 1 , this choice satisfies ⌊ N k α ⌋ = k \lfloor N_k^\alpha\rfloor=k ⌊ N k α ⌋ = k and N k ≥ k + 3 N_k\ge k+3 N k ≥ k + 3 for all sufficiently large k k k . Consequently, Lemma 3 applies, so for all sufficiently large N N N every minimizer of E log L ~ ( S ) \mathbb{E}\log\widetilde{L}(S) E log L ( S ) over A N c o n A_N^{\mathrm{con}} A N 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 ≤ 3 k \le3 k ≤ 3 , the correlation terms, of order ( 1 + 3 Λ 2 ) k ρ 2 (1 + 3\Lambda^2)k\rho^2 ( 1 + 3 Λ 2 ) k ρ 2 , stay below the fixed gap Γ ⋆ \Gamma_\star Γ ⋆ , so the surrogate greedy rule follows the probe-style rule for every pool size. As k ( N ) → ∞ k(N) \to\infty k ( N ) → ∞ , the Gram matrix of every set in A N c o n \mathcal{A}^{\mathrm{con}}_N A N con grows like k ( N ) ρ 2 k(N)\rho^2 k ( N ) ρ 2 , and the results of Appendix C.4 apply, while the kept fraction k ( N ) / N k(N)/N k ( N ) / N of the pool vanishes.
Benchmark-Stratified Results from Section 4.2
This section reports the numbers behind Figure 3 . Table 1 gives, for every model, the pass@k k k of each pruning policy pooled over all test problems, and Table 2 to Table 9 break these results down by benchmark, one table per model. All tables use the setting of § 4.1 , with a pool of N = 128 N = 128 N = 128 rollouts, a cutoff of T = 4000 T = 4000 T = 4000 tokens and eight-fold cross-validation repeated 20 times. Each entry is the average pass@k k k over the repetitions, in percent, and the value in parentheses is its standard error over those repetitions.
Table 2. Per-benchmark pass@k (%), Qwen3-0.6B.
Table 9. Per-benchmark pass@k (%), Skywork-OR1-Math-7B.
Table 3. Per-benchmark pass@k (%), Qwen3-1.7B.
Table 4. Per-benchmark pass@k (%), OpenMath-Nemotron-1.5B.
Table 5. Per-benchmark pass@k (%), DeepSeek-R1-Distill-Qwen-1.5B.
Table 6. Per-benchmark pass@k k k (%), Qwen3-8B.
Table 7. Per-benchmark pass@k k k (%), OpenMath-Nemotron-7B.
Table 8. Per-benchmark pass@k (%), DeepSeek-R1-Distill-Qwen-7B.
Results on different pool sizes
This section repeats Figure 3 for the other pool sizes, N ∈ { 32 , 48 , 64 , 80 , 96 , 112 } N \in\{32, 48, 64, 80, 96, 112\} N ∈ { 32 , 48 , 64 , 80 , 96 , 112 } , where the pool of each problem is drawn from its 128 generated rollouts and the cutoff is T = 4000 T = 4000 T = 4000 as in the main setting.
Figure 8. Gain in pass@k over random pruning with N = 32 N = 32 N = 32 . As in Figure 3 , with a pool of N = 32 N = 32 N = 32 rollouts drawn from the 128 generated for each problem and T = 4000 T = 4000 T = 4000 .
Figure 9. Gain in pass@k over random pruning with N = 48 N = 48 N = 48 . As in Figure 3 , with a pool of N = 48 N = 48 N = 48 rollouts drawn from the 128 generated for each problem and T = 4000 T = 4000 T = 4000 .
Figure 10. Gain in pass@k over random pruning with N = 64 N = 64 N = 64 . As in Figure 3 , with a pool of N = 64 N = 64 N = 64 rollouts drawn from the 128 generated for each problem and T = 4000 T = 4000 T = 4000 .
Figure 11. Gain in pass@k over random pruning with N = 80 N = 80 N = 80 . As in Figure 3 , with a pool of N = 80 N = 80 N = 80 rollouts drawn from the 128 generated for each problem and T = 4000 T = 4000 T = 4000 .
Figure 12. Gain in pass@k over random pruning with N = 96 N = 96 N = 96 . As in Figure 3 , with a pool of N = 96 N = 96 N = 96 rollouts drawn from the 128 generated for each problem and T = 4000 T = 4000 T = 4000 .
Figure 13. Gain in pass @ k \operatorname{pass}@k pass @ k over random pruning with N = 112 N = 112 N = 112 . As in Figure 3 , with a pool of N = 112 N = 112 N = 112 rollouts drawn from the 128 generated for each problem and T = 4000 T = 4000 T = 4000 .
Representation details
For each rollout, let x t ∈ R d x_t \in\mathbb{R}^d x t ∈ R d be the hidden state of the last transformer block of the model at the t t t -th generated token, where d d d is the hidden size of the model, which is 1024 for Qwen3-0.6B, 2048 for Qwen3-1.7B, 4096 for Qwen3-8B, 1536 for OpenMath-Nemotron-1.5B and DeepSeek-R1-Distill-Qwen-1.5B, and 3584 for OpenMath-Nemotron-7B, DeepSeek-R1-Distill-Qwen-7B and Skywork-OR1-Math-7B. The EMA follows e t = ( 1 − α ) e t − 1 + α x t e_t = (1-\alpha)e_{t-1} + \alpha x_t e t = ( 1 − α ) e t − 1 + α x t with α = 10 − 3 \alpha= 10^{-3} α = 1 0 − 3 , and h i h_i h i is the normalized value of e t e_t e t after the first T T T generated tokens, or after all of them for a rollout that ends before the cutoff.
Extended related work
Pruning rollouts at test time. Test-time scaling generates many rollouts per problem and aggregates them [3 , 35 , 44 , 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 [13 , 30 ] . Another scores partial rollouts with a reward model [36 ] or with a probe on the hidden states [1 , 25 , 54 ] . 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 § 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.
Pass@k as an objective. Pass@k 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, Chen et al. [8 ] use pass@k as the reward to balance exploration and exploitation, and Chow et al. [10 ] fine-tune a model for best-of-N N N 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 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 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 N N N independently sampled partial rollouts as given and chooses which k k k of them to continue.
Related objectives: maximizing at least one success. The same objective appears in information retrieval as the expected 1-call@k, the probability that at least one of the top k k k 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 [32 , 46 ] . 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.