When a language model searches over many attempts at a hard math or coding problem, the extra attempts help only if they fail in different ways. Current methods that try to diversify those attempts measure "different" with a text embedding, a vector summarizing what a passage says. Two solutions that use the same flawed idea in different words then count as diverse, and two genuinely different methods that happen to share vocabulary count as redundant. We propose to learn the notion of similarity directly from outcomes. Two partial solutions count as similar to the degree that they tend to die together, meaning neither leads to a correct answer. We then plug this learned similarity into a determinantal point process, a probabilistic model for choosing subsets that rewards each item's quality and penalizes overlap between items. The search uses it to decide which partial solutions to expand under a fixed compute budget.
The opportunity comes from a measurable failure. On problems where small base models fail even after 1,024 samples, standard reinforcement-learning post-training recovers only 5–10% of them, so it mostly "sharpens" existing solutions rather than finding new ones (MATH-Beyond). Independent resampling plateaus as budget grows (Wider or Deeper?). If redundancy among attempts is what wastes the budget, then the right measure of redundancy is shared failure, not shared wording. That measure can be learned and tested.
Core Claim
Choosing which partial reasoning traces to expand is a coverage problem: we want the set most likely to contain at least one success. For two candidates $i,j$ with success probabilities $p_i,p_j$, the probability that both fail is $(1-p_i)(1-p_j) + \mathrm{Cov}(F_i,F_j)$, where $F_i$ indicates that candidate $i$ fails. At fixed individual quality, coverage therefore depends exactly on how correlated the failures are, and on nothing about surface wording. This suggests the quality-diversity factorization of Learning Determinantal Point Processes, with a learned similarity:
$$L_{ij} = q_i\, C_{ij}\, q_j, \qquad \det(L_Y) = \Big(\prod_{i\in Y} q_i^2\Big)\det(C_Y),$$
Here $q_i$ is a verifier's estimate of how promising candidate $i$ is. $C_{ij} = \langle \phi_i, \phi_j\rangle$ is a learned, normalized "co-failure" similarity built from features $\phi$ of each partial trace. $Y$ is the set of candidates chosen for expansion. We claim that selecting $Y$ by approximately maximizing $\det(L_Y)$ with this learned $C$ solves more hard problems per unit of compute than four alternatives: quality-only selection, embedding-based diversity, clustering-based deduplication, and independent sampling. We also claim the gain concentrates on problems the base model cannot otherwise reach.
The pairwise identity motivates the objective but does not guarantee it. The determinant penalizes pairwise overlap in a way that matches coverage only approximately for larger sets. Whether it beats simpler set-coverage heuristics is an empirical question we test directly.
Relation to Prior Work
Several papers motivate the gap. Enhancing Diversity in LLMs via DPPs (DQO) adds a regularized determinant over sentence-embedding kernels of full responses to an RL objective and reports better pass@n on GSM8K. DRA-GRPO reweights GRPO rewards by submodular mutual information over embeddings and reaches 58.2% average accuracy across five math benchmarks for a 1.5B model. Determinantal Beam Search maximizes subdeterminants during translation decoding with a string-subsequence kernel. All three fix the similarity kernel in advance, in surface or embedding space. Our proposal keeps their selection machinery and replaces the kernel with one learned from outcomes. It also works at inference over intermediate steps rather than over finished answers.
One line of work constrains the design. Evaluating Intermediate Reasoning of Code-Assisted LLMs shows that on MATH500, sound and unsound program logic reach nearly identical execution accuracy. Outcomes alone therefore cannot fully separate good reasoning from lucky reasoning. This bounds what any outcome-trained kernel can learn, and we report it as a limitation rather than hide it. The DPP survey (Determinantal Point Processes for Machine Learning) explicitly lists kernel specification as the bottleneck, and we target exactly that.
Two papers seem to argue against diversity on math. Balancing Act finds that removing divergent ensemble members improves MATH accuracy by 1.12%. Scaling Test-Time Compute Without Verification or RL is Suboptimal shows that diverse expert traces hurt supervised imitation. Both results concern settings without a verifier, where answers are aggregated by vote or by imitation. The second paper also shows that with a verifier, methods profit from rare "lucky" traces. Our setting has a verifier selecting among candidates, so diversity should help there. A co-failure kernel also gives no credit to divergence that does not change outcomes, so we expect it to behave like consensus on easy problems and like exploration on hard ones. We test this prediction by splitting results by difficulty.
The method borrows two components. Quality estimates $q_i$ come from rollout-inferred values in the style of ReST-MCTS*. Its value model reaches only 39.0% verification accuracy on MATH500, which is exactly why errors in $q$ are correlated and a similarity term matters. The adaptive wide-versus-deep loop comes from AB-MCTS, whose "go wider" step samples new candidates independently. That independent step is where we intervene.
Research Program
The work has three stages: training the kernel, plugging it into search, and analysis.
To train the kernel, we use training problems from DAPO-Math and DeepScaleR-style sources, disjoint from all evaluation sets. For each problem, the policy proposes many partial traces, truncated after the first one to three reasoning steps. We estimate each trace's rollout success rate $r_i$ from a fixed number of continuations, and we call a trace "dead" when $r_i = 0$. For pairs of traces from the same problem, the label is whether both are dead, compared against the rate expected if deaths were independent given their quality estimates.
A small projection head maps the policy's hidden states at the end of each partial trace to unit-norm features $\phi_i$. We train it so that $\langle\phi_i,\phi_j\rangle$ predicts this excess co-death. Unit normalization keeps $C$ positive semi-definite with ones on the diagonal, as the factorization requires. The quality estimate $q_i$ comes from a separately trained value head, so quality and similarity remain decoupled. An embedding structure of DPP argues that this decoupling keeps optimization stable.
At test time, we insert the kernel into search. At each expansion, we sample a candidate pool of 64–256 partial traces and greedily choose $k$ of them (8–32) to maximize $\log\det(L_Y)$. We add a small identity term, as in DQO, for numerical stability. This selection costs $O(k^3)$ per expansion on matrices of at most a few hundred rows, which is negligible next to LLM decoding. The concern about per-token cost raised for Determinantal Beam Search does not apply, because we select at step boundaries rather than at every token. The selected set then feeds the same continuation and verification loop as AB-MCTS.
The analysis asks three questions. First, does learned $C$ agree with embedding similarity, and where do they diverge? We inspect pairs that look alike in embedding space but have low co-failure, and the reverse. Second, does $C$ trained on math transfer to code? For code we also build an AST-feature kernel from the logic taxonomy of the code-assisted math study as an interpretable alternative. Third, how does the benefit vary with problem difficulty?
Baselines
The naive reference is independent repeated sampling with outcome verification (Best-of-N / pass@k) at matched token budget. On MATH-Beyond this reference is zero by construction: the base model fails every problem at pass@1024. Any problem our method solves within a budget of 1,024 or fewer samples' worth of tokens is therefore genuine test-time expansion. For context, the file reports training-time expansion rates of 5.22% for DeepScaleR-1.5B, 9.57% for Nemotron-v2, and 21.2% for Skywork-OR1-7B with adaptive entropy control (MATH-Beyond). These come from trained models, not from search, so we report them as reference points rather than as head-to-head competitors.
The strongest existing search method on this question is AB-MCTS (Wider or Deeper?), because it already decides adaptively when to branch wider, and branching wider is exactly where redundancy costs compute. No reported result found on Lacuna for AB-MCTS on MATH-500 or MATH-Beyond, and the file gives no exact numbers for its LiveCodeBench results. We will therefore rerun it ourselves on the same policy, same verifier, same token budget, and same evaluation sets. Our method replaces only its independent GEN sampling with determinant-based selection from a pool. Beating it means solving more problems at the same budget on MATH-Beyond and AIME24, with confidence intervals from repeated runs that do not overlap.
The closest kernel baseline is the identical selection procedure using a fixed sentence-embedding kernel, which transplants DQO and DRA-GRPO-style similarity into search. We also run an AST-structure kernel for code-assisted math. For trained-policy context, we report DRA-GRPO's 58.2% five-benchmark average for DeepSeek-R1-Distill-Qwen-1.5B (DRA-GRPO). We will apply our search on top of that same base model to show that the gains stack.
Two ablations isolate the key ingredient. The first is quality-only selection: top-$k$ by $q_i$ with the same value head. The second is similarity-only selection, which maximizes $\det(C_Y)$ while ignoring quality. If learned-$C$ selection does not beat the embedding kernel at matched settings, the central claim fails. All methods share one hyperparameter-tuning budget on a held-out development split.
Why not just…?
Why not just raise the sampling temperature? DQO reports that temperature mainly perturbs tokens and degrades arithmetic and syntax without producing different strategies. Control the Temperature likewise finds a poor quality-diversity trade-off. We nonetheless include temperature-swept repeated sampling, tuned on the development split, as part of the naive reference, so this is measured rather than assumed.
Why not just cluster candidates and keep the best per cluster? This is the most serious threat. Clustering by embedding or AST with one representative per cluster captures much of what a determinant does, at lower cost. We run it with the same pool, the learned features $\phi$, and the same $k$. If clustering over learned co-failure features matches determinant selection, the contribution is the learned similarity rather than the DPP, and we will report it that way. We still run clustering over plain embeddings to test whether the learned similarity matters at all.
Why not just prompt the model to "try a different approach"? Explicit prompting for diversity costs nothing and might produce different strategies. CodeStepsEval (Beyond Code) suggests models plan poorly on their own: self-guided planning lowered Pass@1. Still, this is cheap to test, so we include sequential "different method" prompting at matched budget. We also allow it as a pool generator under our selector, since the two approaches combine naturally.
Why not just train diversity into the policy with RL, as DRA-GRPO does? Training-time diversity and test-time selection are complementary, not competing. Training-time diversity still relies on outcome rewards and gives no credit to novel-but-wrong exploration. We test the complement directly by applying our selector to the DRA-GRPO base model. If search adds nothing on top of a diversity-trained policy, that is a negative result worth reporting.
Proposed Experiments
The main evaluation sets are MATH-Beyond's union and intersection splits (181 and 41 problems), AIME24, AMC23, and MATH-500. Policies are DeepSeek-R1-Distill-Qwen-1.5B and a 7B open model. The primary metric is the fraction of problems solved versus total generated tokens, giving a full compute curve rather than a single point. Secondary metrics are the realized co-failure rate within selected sets, and logic-class composition of solutions under the AST taxonomy, to check whether the solved problems use sound reasoning or lucky shortcuts.
The decisive check is MATH-Beyond. The method must solve a nonzero fraction of intersection-split problems within the pass@1024 token budget, and it must solve more than embedding-kernel selection and AB-MCTS at the same budget. A second check concerns calibration. The learned $C$ should predict held-out co-death better than embedding cosine similarity. If it does not, there is no basis for the method and we stop there.
A third check tests the reconciliation prediction. On ConsisEval-style easy problems and GSM8K, the method should match quality-only selection, because diversity should not hurt when the answer is easy. On hard problems it should beat quality-only selection. A fourth check probes transfer to LiveCodeBench, using execution feedback as the verifier. There we compare the math-trained kernel, a code-retrained kernel, and the AST kernel.
References
- MATH-Beyond: A Benchmark for RL to Expand Beyond the Base Model
- Wider or Deeper? Scaling LLM Inference-Time Compute with Adaptive Branching Tree Search
- Learning Determinantal Point Processes
- Enhancing Diversity in Large Language Models via Determinantal Point Processes
- DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
- Determinantal Beam Search
- Evaluating Intermediate Reasoning of Code-Assisted Large Language Models for Mathematics
- Determinantal Point Processes for Machine Learning
- Balancing Act: Diversity and Consistency in Large Language Model Ensembles
- Scaling Test-Time Compute Without Verification or RL is Suboptimal
- ReST-MCTS*: LLM Self-Training via Process Reward Guided Tree Search
- An embedding structure of determinantal point process
- Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputs
- Beyond Code: Evaluate Thought Steps for Complex Code Generation