Manuscript Offprint
arXiv:2610.18583Compare to Correct: Pairwise-Guided Logit Adjustment for LLM Test-Time Scaling
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Sampling-based test-time scaling enhances LLM reasoning by aggregating multiple reasoning paths for the same query. Existing methods use answer frequencies or path confidence to compute candidate scores, which do not explicitly characterize comparisons between competing answers. Inspired by the Condorcet principle in social choice theory, we introduce pairwise confidence comparisons between paths supporting different answers to capture answer-level comparative advantage. We combine this comparative evidence with voting support through a KL-regularized objective. Theoretically, we show that this comparative-advantage is equivalent to the adjustment to the traditional voting logits. In this way, our proposed Pairwise-Guided Logit Adjustment (PGLA) framework allows comparative evidence to compensate for weaker voting support and correct voting-based ranking errors. Experiments on 10 challenging benchmarks including mathematical reasoning, knowledge reasoning, and code generation with 7 models ranging from 1.7B to 32B parameters speak to the effectiveness of this plug-and-play term. Additional evaluations with external reward scores and online sampling further demonstrate its applicability.
Introduction
Large language models (LLMs) have demonstrated strong reasoning capabilities across mathematical, symbolic, and multi-step decision-making tasks (Wei et al., 2022; Lewkowycz et al., 2022; Yao et al., 2023). Beyond increasing model size, allocating additional computation at inference time can further improve reasoning performance, establishing test-time scaling as an important paradigm for LLM reasoning (Snell et al., 2025; Balachandran et al., 2025). Among its variants, sampling-based approaches generate multiple reasoning paths for the same query and aggregate evidence from these paths (e.g., answer frequencies and path confidence scores) into a collective decision (Cobbe et al., 2021; Wang et al., 2023). In this direction, the central challenge becomes how to aggregate path-level evidence into reliable answer-level scores. Representative approaches include best-of-N selection that chooses the answer from the path with the highest confidence score (Cobbe et al., 2021), majority voting based on answer frequencies (Wang et al., 2023), and confidence-based voting that combines answer frequencies with path confidence scores by weighting or filtering path contributions (Kang et al., 2025; Fu et al., 2026).
Although these methods achieve substantial improvements, we observe that their aggregation rules could overlook some crucial information hidden among sampled paths. To illustrate this, we turn to social choice theory, which studies how individual preferences among available options can be combined into a
(a) Social choice theory

Voting game
Complete Preference
| Voters | Preference P | ||||
|---|---|---|---|---|---|
| 3 | A | > | B | > | C |
| 2 | B | > | C | > | A |
| 2 | C | > | B | > | A |
Plurality voting selects A
Preference-vote comparisons

Condorcet winner: B
(b) Reasoning-path aggregation

Sampling reasoning paths
Sampled Answers and Confidence
| Paths | Answer | Confidence |
|---|---|---|
| 3 | A | 0.5, 0.5, 0.6 |
| 2 | B | 0.7, 0.8 |
| 2 | C | 0.2, 0.3 |
Majority voting selects A
Pairwise confidence comparisons
Higher --> Lower confidence

Pairwise-Guided winner: B
Figure 1: From voting support to pairwise comparative evidence. (a) Plurality voting selects A, whereas pairwise preference comparisons identify B as the Condorcet winner. (b) Sampled reasoning paths provide answers and confidence scores. Pairwise confidence comparisons complement voting support, enabling the proposed aggregation method to select B.
collective decision (Zwicker, 2016). The well-known Condorcet principle highlights that the most frequently selected option does not necessarily rank higher than competing options in direct comparisons (Young, 1988; Fishburn, 1977). As shown in Figure 1(a), options A, B, and C receive 3, 2, and 2 first-choice selections, respectively, so majority voting selects A. Under the preference P, however, four of seven rankings place B above A, and five place B above C, so B is selected through pairwise comparisons. Similarly, this principle highlights why prior sampling-based approaches are insufficient: an answer can be assigned the highest score even when its reasoning paths remain at a disadvantage in comparisons with those supporting a competing answer. As shown in Figure 1(b), answer A is selected by majority voting because it appears most frequently, although every path producing answer B has a higher confidence score than those producing A. This motivates us to incorporate pairwise information between candidate answers on top of existing voting-based aggregation.
Ideally, we could apply the Condorcet principle to the reasoning paths if the ranking of candidate answers were available for each path. However, in practice, we only observe each path's first-choice answer and its confidence score, leaving the ordering among the remaining answers unknown. To estimate such missing ordering, we use pairwise confidence comparisons between paths producing different answers, as illustrated in Figure 1(b). These comparisons yield an answer-level comparative advantage, which we combine with voting evidence through a KL-regularized objective. In this way, the objective can balance this advantage against deviations from the base voting distribution, as an alternative to the naive Condorcet approach. Furthermore, we show that its solution is essentially a logit adjustment to the base voting distribution, yielding a simple yet effective Pairwise-Guided Logit Adjustment (PGLA) approach. This plug-and-play adjustment allows comparative evidence to compensate for weaker evidence from existing voting-based aggregation.
Finally, we conduct extensive experiments on mathematical reasoning, knowledge reasoning, and code generation using both reasoning and non-reasoning models from the Qwen, DeepSeek, and InternLM families, with model sizes ranging from 1.7B to 32B parameters. With internal confidence scores, PGLA achieves an average accuracy gain of approximately over the corresponding voting baselines across 33 model-benchmark settings. Additional experiments show gains with external reward scores. On six
| Path | A | B | C | Incomplete Preference |
|---|---|---|---|---|
| — | — | |||
| — | — | |||
| — | — | |||
| — | — | |||
| — | max | — | ||
| — | — | |||
| — | — |
| Best-of-N | |||
|---|---|---|---|
| Majority-Voting | 3 | 2 | 2 |
| Confidence-based Voting |
Only use block-diagonal evidence to compute

Figure 2: Path-answer evidence and its aggregation. The three methods use each block's maximum confidence, size, or confidence-based contributions.
| Shared first-choice support | Preference | Preference |
|---|---|---|
| 3 | ||
| 2 | ||
| 2 |
Select A
Pairwise comparison matrices
Select B
Select A
Figure 3: Identical majority-voting scores can correspond to different pairwise comparison matrices and different winners.
mathematical reasoning settings, its online extension also achieves higher mean accuracy with fewer sampled paths than Online SC under the same stopping rule.
Problem Formulation and Representative Aggregators
Problem Formulation
Given an input query, a language model generates reasoning paths . Each path produces an answer and receives a confidence score from the model or an external verifier. Together, they form the path-level evidence pool . Let be the set of different answers produced by these paths, which may be predefined for multiple-choice questions or dynamically formed from sampled answers in open-ended mathematical reasoning and code generation.
Based on , we construct a path-answer matrix , with one row per path and one column per candidate answer. Each row records in the column for its output answer and the entries for other answers remain unobserved. Grouping paths by their output answers produces the block-diagonal pattern shown in Fig. 2. Each block contains the confidence scores of paths sharing the same answer.
The aggregation task is to convert the path-level evidence into an answer-level score for each candidate, followed by selecting the candidate with the highest score. Formally, an aggregation method assigns candidate the score based on :
is the final predicted answer selected from the candidates with the highest score. Representative methods use different information from the path-answer matrix to compute .
Best-of-N selection. Best-of-N uses the highest confidence among the paths sharing answer (Cobbe et al., 2021). This corresponds to taking the largest value within the block for in matrix :
The confidence may be perplexity (Adiwardana et al., 2020), self-certainty (Kang et al., 2025), DeepConf confidence (Fu et al., 2026), or an external verifier's reward (Lightman et al., 2024).
Majority voting. Self-consistency (SC) treats each path as one vote for its output answer and selects the most frequently generated answer (Wang et al., 2023).
The answer-level score is therefore its total vote count:
where is the indicator function. In , this corresponds to the size of the diagonal block for answer , measured by its number of observed entries. Every supporting path contributes equally, regardless of its confidence.
Confidence-based voting. Confidence-based voting methods adjust path contributions through weighting or filtering (Kang et al., 2025; Fu et al., 2026). Let be the weighting or filtering coefficient for path , with for filtered paths. The resulting answer-level score is
This method aggregates confidence-based contributions within each diagonal block in P.
Despite these differences, these methods aggregate only the observed evidence in the diagonal blocks of P. They do not explicitly model the unobserved preferences among alternative answers. In the next section, we use social choice theory to explain why these preferences matter for answer aggregation.
This selects the answer that wins every direct comparison, whenever one exists. Otherwise, all scores are zero, and an additional selection rule is needed. Following this rule, we select B under P in Fig. 3 because it defeats A by 4:3 and C by 5:2. Under , A defeats both B and C by 5:2 and is selected. Thus, we arrive at the following proposition.
Proposition 2.1. There exist two complete preference profiles P and such that:
(i) Under P, the most frequently selected option is still less preferred than another option in direct pairwise comparisons.
(ii) P has the same majority-voting scores as , but different pairwise comparison matrices and different winners.
Connection to the Sampling-based LLM reasoning. In sampling-based LLM reasoning, we only observe each path's first-choice answer and its confidence score , leaving the complete preference among the remaining answers unknown. To approximate the missing ordering, we construct a proxy pairwise matrix Y by comparing path confidence scores across answer groups. A similar disagreement highlighted in Thm. 2.1 also occurs in this setting: an answer with the highest aggregation score may still lose to another answer in pairwise comparisons. To examine this phenomenon empirically, we consider SC errors with the following disagreement. An incorrect answer w receives at least as many votes as a correct answer c, i.e., , yet paths supporting c tend to have higher confidence scores than those supporting w in pairwise comparisons. The formal definition is provided in Sec. C.

(a) illustrative example

(b) percentage of SC error
Figure 4: Disagreement between voting and pairwise confidence comparisons: (a) an illustrative example; (b) percentage of recoverable SC errors.
Using PPL confidence, 69.87%–91.62% of recoverable SC errors (i.e., candidate pools containing at least one correct answer) satisfy this condition across three models and three mathematical benchmarks as shown in Fig. 4(b).
These observations motivate enhancing existing voting-based aggregation by incorporating explicit comparisons between answer. We will discuss our solution in the next section.
Pairwise-Guided Path Aggregation
In this section, we propose Pairwise-Guided Logit Adjustment (PGLA) for Path Aggregation. This method aims to construct answer-level comparative evidence through pairwise confidence comparisons and combine it with the voting distribution, as an alternative to the Condorcet approach.
Pairwise Confidence Comparisons
Sampled reasoning paths provide answers and confidence scores rather than complete preference rankings. We therefore use confidence comparisons between paths supporting different answers to construct a proxy for answer-level preference comparisons. For each answer , let denote the indices of its supporting paths. For two different answers , we define the corresponding entry of the confidence-based comparison matrix as
Each comparison contributes +1, 0, or -1 when the path supporting u has a higher, equal, or lower confidence score. A positive means that paths supporting u have higher confidence more often than paths supporting v in these comparisons than the reverse.
We next summarize Y as an answer-level comparative advantage. For a voting aggregator is the base voting support for the answer defined in Eqs. (3) and (4). We give greater weight to comparisons against answers with stronger voting support. Accordingly, the comparative advantage of answer is
is a weighted average of comparison scores. Alternative rules include uniform averaging of pairwise scores; Copeland, which counts pairwise wins minus losses (Zwicker, 2016); and Maximin, which takes the minimum pairwise score (Fischer et al., 2016). We use Eq. (7) by default. Definitions and matched comparisons of the alternatives appear in Sec. G.11.
Regardless of the aggregation rule, summarizes confidence comparisons rather than the preference votes used by the Condorcet principle in Eq. (5). Since this score does not directly consider answer 's own voting support, we therefore explore to combine this comparative advantage with the voting information provided by any voting-based aggregation strategy .
Combining with Voting Information
Our goal is to refine the answer-level scores with two complementary objectives: (G1) favoring answers with stronger comparative advantages and (G2) exploiting the voting support provided by the aggregator . We formulate this refinement over answer distributions, using the normalized base scores to obtain the reference distribution , with . We then seek an adjusted distribution through the following regularized objective:
Here, is the optimization variable, with and ; and are fixed by the observed candidate pool.
The first term rewards favorable answer comparisons, allowing pairwise confidence evidence to guide answer selection (G1). The KL term penalizes departures from the voting distribution, using the original voting support to constrain this adjustment (G2). The resulting distribution balances comparative evidence with voting support. Intuitively, reversing a strong voting preference requires a larger difference in comparative scores, whereas pairwise evidence can more readily influence selection when answers have similar voting support. This formulation extends the pairwise-comparison perspective of the Condorcet principle to confidence-based path aggregation.
At first glance, Eq. (8) makes the property of the solution unclear. Fortunately, the following proposition can alleviate this issue, with proof in Sec. E.
Proposition 3.1. If for every , the objective in Eq. (8) is strictly concave and has the unique solution
Since , the optimal distribution in Eq. (9) can be obtained by normalizing the score . Taking logarithms gives the equivalent formulation in the logit space:
The highest-scoring answer is selected as in Eq. (1).
Remark 3.1 (Test-time logit adjustment). Thus, we find that the proposed PGLA can be viewed as a form of Pairwise-guided logit adjustment, operating on answer-logit in the observed sampling pool. This additive form connects PGLA to the classical strategy of Logit Adjustment (LA) (Menon et al., 2021). In long-tailed classification, post-hoc LA uses offsets based on class priors to reduce the preference for frequent classes. Here, this adjustment allows pairwise confidence comparison evidence to compensate for weaker voting support. What's more, as confidence scores better distinguish correct from incorrect
Table 1: Performance of reasoning models at different scales on three mathematical reasoning benchmarks, GPQA, and three open-ended code-generation benchmarks, using sampled responses per problem. Each voting-based baseline is followed by its PGLA-enhanced variant, denoted by +Ours. The enhanced HumanEval+ and MBPP+ tests for the same sampled pools are reported in Tab. 6.
| Method | AIME24 | AIME25 | HMMT25 | GPQA-D | HE | MBPP | LCB |
| Qwen3-1.7B Reasoning mode | |||||||
|---|---|---|---|---|---|---|---|
| PPL Best-of-N | |||||||
| DeepConf Best-of-N | |||||||
| Self-Certainty Best-of-N | |||||||
| SC | |||||||
| + Ours (DeepConf) | |||||||
| + Ours (Self-Certainty) | |||||||
| DeepConf-Weighted SC | |||||||
| + Ours | |||||||
| Self-Certainty-Weighted SC | |||||||
| + Ours | |||||||
| Self-Certainty Borda | |||||||
| + Ours | |||||||
| DeepConf-Filter (90%) | |||||||
| + Ours | |||||||
| Qwen3-4B Reasoning mode | |||||||
| PPL Best-of-N | |||||||
| DeepConf Best-of-N | |||||||
| Self-Certainty Best-of-N | |||||||
| SC | |||||||
| + Ours (DeepConf) | |||||||
| + Ours (Self-Certainty) | |||||||
| DeepConf-Weighted SC | |||||||
| + Ours | |||||||
| Self-Certainty-Weighted SC | |||||||
| + Ours | |||||||
| Self-Certainty Borda | |||||||
| + Ours | |||||||
| DeepConf-Filter (90%) | |||||||
| + Ours | |||||||
| Qwen3-8B Reasoning mode | |||||||
| PPL Best-of-N | |||||||
| DeepConf Best-of-N | |||||||
| Self-Certainty Best-of-N | |||||||
| SC | |||||||
| + Ours (DeepConf) | |||||||
| + Ours (Self-Certainty) | |||||||
| DeepConf-Weighted SC | |||||||
| + Ours | |||||||
| Self-Certainty-Weighted SC | |||||||
| + Ours | |||||||
| Self-Certainty Borda | |||||||
| + Ours | |||||||
| DeepConf-Filter (90%) | |||||||
| + Ours | |||||||
paths, PGLA can make more reliable pairwise comparisons and further improve aggregation performance. In Sec. 4.4, we test how the reliability of these confidence scores affects PGLA accuracy.
Experiments
In this section, we conduct extensive experiments to evaluate the effectiveness of PGLA. More experimental details and results are provided in Sec. F and Sec. G.
Experimental Setup
Competitors. We compare against 11 representative sampling-based aggregation baselines using the same pool of sampled reasoning paths. The max-based baselines follow the Best-of-N paradigm, using path perplexity confidence (PPL) (Chen et al., 1998), DeepConf (Fu et al., 2026), and Self-Certainty (Kang et al., 2025) to score each path. The voting-based baselines include self-consistency (SC), three confidence-weighted SC variants based on the above scores, the Self-Certainty Borda rule (Kang et al., 2025), DeepConf's offline top-90% filtered weighted voting (Fu et al., 2026), adaptive self-consistency (Aggarwal
Table 2: Performance comparison of different mathematics-specialized models in terms of accuracy and expected calibration error (ECE). Following the RPC setting, perplexity-based confidence (PPL) is used by default. Each voting-based baseline is followed by its PGLA-enhanced variant, denoted by +Ours.
| Method | MATH | MathOdyssey | AIME | Average | ||||
|---|---|---|---|---|---|---|---|---|
| Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | |
| InternLM2-Math-Plus-1.8B | ||||||||
| PPL | 17.17 | 77.02 | ||||||
| SC | 17.90 | 14.00 | ||||||
| + Ours | 20.47 | 11.70 | ||||||
| Weighted SC | 18.11 | 13.74 | ||||||
| + Ours | 20.61 | 11.45 | ||||||
| Adaptive SC | 17.85 | 17.52 | ||||||
| + Ours | 19.92 | 14.92 | ||||||
| RPC | 19.19 | 13.01 | ||||||
| + Ours | 21.38 | 10.32 | ||||||
| InternLM2-Math-Plus-7B | ||||||||
| PPL | 26.82 | 68.50 | ||||||
| SC | 29.42 | 11.08 | ||||||
| + Ours | 33.08 | 9.90 | ||||||
| Weighted SC | 29.69 | 10.80 | ||||||
| + Ours | 33.22 | 9.79 | ||||||
| Adaptive SC | 29.37 | 15.53 | ||||||
| + Ours | 31.87 | 13.40 | ||||||
| RPC | 31.13 | 10.20 | ||||||
| + Ours | 33.47 | 9.31 | ||||||
| Deepseek-Math-RL-7B | ||||||||
| PPL | 22.74 | 73.69 | ||||||
| SC | 33.11 | 9.32 | ||||||
| + Ours | 33.80 | 9.02 | ||||||
| Weighted SC | 33.16 | 9.36 | ||||||
| + Ours | 33.82 | 9.07 | ||||||
| Adaptive SC | 32.98 | 12.71 | ||||||
| + Ours | 33.21 | 11.91 | ||||||
| RPC | 33.33 | 9.32 | ||||||
| + Ours | 33.88 | 8.73 | ||||||
et al., 2023), and RPC (Zhou et al., 2025). Beyond internal confidence scores, we evaluate three baselines based on scores from an external process reward model (PRM): PRM Best-of-N, PRM-Weighted SC, and PRM-RPC. We use Qwen2.5-Math-PRM-7B as the external scorer (Lightman et al., 2024; Zhang et al., 2025). PRM-Weighted SC assigns each path a voting weight equal to the product of its step-level PRM scores and sums these weights within each answer group. We also apply the same PGLA adjustment to all voting-based aggregators.
LLM Backbones. To test generality across model families and scales, we run our pipeline with Qwen3-1.7B, Qwen3-4B, Qwen3-8B, and Qwen3-32B (Qwen, 2025), all in reasoning mode. We also include three open math-specialized LLM backbones: DeepSeek-Math-RL-7B (Shao et al., 2024), InternLM2-Math-Plus-1.8B, and InternLM2-Math-Plus-7B (Ying et al., 2024).
Datasets. We evaluate on ten challenging datasets, AIME 2024 (AI-MO, 2024), AIME 2025 (OpenCompass, 2025), HMMT 2025 (Balunović et al., 2025), AIME (Zamil & Rabby, 2024), MATH (Hendrycks et al., 2021), MathOdyssey (Fang et al., 2025), and GPQA-Diamond (GPQA-D), together with the code benchmarks HumanEval (Chen et al., 2021), MBPP (Austin et al., 2021), and LiveCodeBench V6 (Jain et al., 2025). The first four are high-difficulty mathematical competition problems, while GPQA comprises graduate-level STEM reasoning tasks. Most of benchmarks are widely adopted in recent evaluations of top reasoning LLMs. Additionally, we also report HumanEval+ and MBPP+ using the strengthened EvalPlus tests (Liu et al., 2023).
Overall performance
Performance using Advanced Models. Tab. 1 compares the overall performance of different aggregation methods on Qwen3 reasoning models at three scales. We observe that our method matches or improves upon the corresponding voting baselines across the evaluated reasoning and code-generation tasks. In
Table 3: Accuracy (%) using Qwen2.5-Math-PRM-7B scores at sampling budgets and ( for MATH; 128 otherwise). + Ours denotes the PGLA-enhanced voting rule.
| Method | MATH | MathOdyssey | AIME | Average | ||||
|---|---|---|---|---|---|---|---|---|
| K/2 ↑ | K ↑ | K/2 ↑ | K ↑ | K/2 ↑ | K ↑ | K/2 ↑ | K ↑ | |
| InternLM2-Math-Plus-7B | ||||||||
| PRM-Weighted SC | 57.56±0.31 | 58.67±0.10 | 33.57±1.13 | 34.34±0.58 | 15.49±0.36 | 16.23±0.48 | 35.54 | 36.42 |
| + Ours | 58.86±0.29 | 60.40±0.24 | 37.63±1.18 | 38.79±0.62 | 15.55±0.42 | 16.57±0.35 | 37.35 | 38.59 |
| PRM-RPC | 57.74±0.28 | 58.90±0.13 | 34.83±1.18 | 35.48±0.40 | 15.57±0.42 | 16.31±0.44 | 36.05 | 36.90 |
| + Ours | 58.88±0.24 | 60.41±0.25 | 37.63±1.24 | 38.87±0.60 | 15.53±0.37 | 16.50±0.28 | 37.35 | 38.59 |
| DeepSeek-Math-RL-7B | ||||||||
| PRM-Weighted SC | 60.76±0.25 | 62.04±0.20 | 39.69±0.59 | 40.28±0.53 | 15.77±0.27 | 16.93±0.43 | 38.74 | 39.75 |
| + Ours | 61.17±0.24 | 62.41±0.20 | 40.18±0.64 | 40.69±0.53 | 16.13±0.48 | 17.49±0.57 | 39.16 | 40.20 |
| PRM-RPC | 60.91±0.27 | 62.26±0.22 | 40.05±0.83 | 40.67±0.51 | 15.85±0.32 | 17.05±0.36 | 38.94 | 39.99 |
| + Ours | 61.19±0.23 | 62.55±0.19 | 39.85±0.75 | 40.69±0.42 | 16.14±0.51 | 17.52±0.66 | 39.06 | 40.26 |

(a) AIME24, 1.7B

(b) AIME24, 8B

(c) AIME25, 1.7B

(d) AIME25, 8B
Figure 5: Tradeoff between Case I and Case II on AIME24 and AIME25 using Qwen3-1.7B and Qwen3-8B. DWSC denotes the DeepConf-Weighted SC method.
particular, averaged over the six corresponding voting baselines on Qwen3-8B, PGLA improves accuracy by 4.61%, 1.78%, and 2.63% on AIME24, AIME25, and HMMT25, respectively. The gains also extend to the larger Qwen3-32B model on mathematical reasoning tasks shown in Tab. 22. These consistent gains demonstrate that PGLA generalizes well across model scales and task domains.
Performance with the Reliability of Confidence Estimation. Tab. 2 compares the aggregation methods under internal confidence estimates from three mathematics-specialized backbones. We observe that our method consistently improves accuracy while reducing ECE across the four voting baselines, achieving an average accuracy improvement of 1.96% and an average ECE reduction of 1.42%. This demonstrates the robustness of our method to confidence estimates of varying reliability.
Performance with the External Reward Setting. Tab. 3 and Tab. 9 compares the methods using product-aggregated rewards from an external process reward model. We observe that our method improves PRM-Weighted SC and PRM-RPC in most settings. To be specific, at the full budget, PGLA raises their average accuracy from 33.98 to 35.51 and from 34.30 to 35.55, respectively. This further demonstrates that our method can effectively use externally provided reward signals.
Case analysis
We examine two cases that highlight different weaknesses of answer aggregation. In Case I, an incorrect answer has higher maximum path confidence, while a correct answer has stronger voting support. In Case II, an incorrect answer receives equal or stronger voting support, while pairwise confidence comparisons favor a correct answer. Best-of-N often fails in Case I, while voting-based methods typically struggle in Case II. As shown in Fig. 5 and Fig. 10, PGLA better balances the two cases by combining voting support with pairwise comparisons. See Sec. C for detailed definitions and examples.

(a) MATH

(b) MathOdyssey
Figure 6: Scaling behavior under varying numbers of sampled reasoning paths K on MATH and MathOdy. using InternLM2-Math-Plus-7B.

(a) DeepSeek

(b) InternLM2
Figure 7: Effect of confidence reliability in pairwise comparisons on accuracy, averaged over three math datasets.
Fine-grained Analysis
Effect of Confidence Reliability. Larger indicates more reliable PRM scores for pairwise comparisons. As shown in Fig. 7, more reliable scores lead to higher PGLA accuracy on both models. Base denotes the PRM-Weighted SC baseline. Experimental details are provided in Sec. G.5.
Scaling with Varying Values We examine how the number of sampled reasoning paths affects aggregation performance on MATH and MathOdyssey using InternLM2-Math-Plus-7B. Fig. 6 varies over . Increasing generally improves performance by providing richer candidate sets, and PGLA remains consistently strong across most of the sampling range.
Performance using High Sampling Temperatures. To further examine robustness under more diverse sampled reasoning paths, we conduct additional experiments on MathOdyssey and AIME using InternLM2-Math-Plus-1.8B, InternLM2-Math-Plus-7B, and DeepSeek-Math-RL-7B. At higher sampling temperatures and , PGLA generally outperforms the comparison methods as shown in Tab. 16. This supports its robustness to more diverse reasoning paths.
Effect of Various Comparative Advantage Functions. We compare the default voting-weighted rule with uniform averaging, Copeland, and Maximin in Sec. G.11. These rules generally improve accuracy over the voting baselines, with the default achieving strong overall performance. This shows that PGLA benefits from pairwise evidence under different comparative advantage rules.
Performance in the Online Setting. As shown in Tab. 4, Online SC+PGLA improves accuracy over full-budget SC by 0.28–3.63% while reducing the sampling cost by 50.8%–73.1% on InternLM2-Math-Plus-1.8B. Full comparisons with Adaptive SC and Online SC, along with results on InternLM2-Math-Plus-7B, are provided in Sec. G.9.
Table 4: Online setting on InternLM2-1.8B.
| Dataset | Method | Acc. | Saving | |
|---|---|---|---|---|
| MATH | SC (Full Budget) | 64.0 | - | |
| Online SC+PGLA | 31.5 | 50.8% | ||
| MathOdyssey | SC (Full Budget) | 128.0 | - | |
| Online SC+PGLA | 34.5 | 73.1% | ||
| AIME | SC (Full Budget) | 128.0 | - | |
| Online SC+PGLA | 38.3 | 70.1% |
Conclusion
Inspired by social choice theory and the Condorcet principle, we propose Pairwise-Guided Logit Adjustment (PGLA), a plug-and-play framework for sampling-based LLM reasoning. Through pairwise confidence comparisons between sampled reasoning paths, PGLA estimates the implicit preference structure among candidate answers and captures their comparative advantages. A KL-regularized objective combines this comparative evidence with voting support, yielding a simple adjustment to the base voting logits. The framework accommodates different voting methods, confidence sources, and comparative advantage rules. Experiments on mathematical reasoning, knowledge reasoning, and code generation demonstrate overall gains over voting baselines, while the online extension improves sampling efficiency.
References
Daniel Adiwardana, Minh-Thang Luong, David R. So, Jamie Hall, Noah Fiedel, Romal Thoppilan, Zi Yang, Apoorv Kulshreshtha, Gaurav Nemade, Yifeng Lu, and Quoc V. Le. Towards a human-like open-domain chatbot. CoRR, abs/2001.09977, 2020.
Pranjal Aggarwal, Aman Madaan, Yiming Yang, and Mausam. Let's sample step by step: Adaptive-consistency for efficient reasoning and coding with LLMs. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, pp. 12375–12396, 2023.
AI-MO. AIME 2024, 2024. URL https://huggingface.co/datasets/AI-MO/aimo-validation-aime.
Jacob Austin, Augustus Odena, Maxwell I. Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie J. Cai, Michael Terry, Quoc V. Le, and Charles Sutton. Program synthesis with large language models. CoRR, abs/2108.07732, 2021.
Vidhisha Balachandran, Jingya Chen, Lingjiao Chen, Shivam Garg, Neel Joshi, Yash Lara, John Langford, Besmira Nushi, Vibhav Vineet, Yue Wu, and Safoora Yousefi. Inference-time scaling for complex tasks: Where we stand and what lies ahead. CoRR, abs/2504.00294, 2025.
Mislav Balunović, Jasper Dekoninck, Ivo Petrov, Nikola Jovanović, and Martin T. Vechev. MathArena: Evaluating LLMs on uncontaminated math competitions. In Advances in Neural Information Processing Systems, 2025.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Pondé de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Joshua Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. CoRR, abs/2107.03374, 2021.
Stanley F. Chen, Douglas Beeferman, and Ronald Rosenfeld. Evaluation metrics for language models. In Proceedings of the DARPA Broadcast News Transcription and Understanding Workshop, pp. 275–280, 1998.
Wenbo Chen, Puheng Li, Mengyang Liu, Weijie Su, and Tianpei Xie. MARS: Margin-adversarial risk-controlled stopping for parallel LLM test-time scaling. CoRR, abs/2606.12935, 2026.
Xinyun Chen, Renat Aksitov, Uri Alon, Jie Ren, Kefan Xiao, Pengcheng Yin, Sushant Prakash, Charles Sutton, Xuezhi Wang, and Denny Zhou. Universal self-consistency for large language model generation. CoRR, abs/2311.17311, 2023.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. CoRR, abs/2110.14168, 2021.
Meng Fang, Xiangpeng Wan, Fei Lu, Fei Xing, and Kai Zou. MathOdyssey: Benchmarking mathematical problem-solving skills in large language models using odyssey math data. Scientific Data, 12(1):1392, 2025.
Austin Feng, Marius Alonso, Ambroise Odonnat, Vasilii Feofanov, and Ievgen Redko. Optimal self-consistency for efficient reasoning with large language models. In International Conference on Machine Learning, 2026.
Felix A. Fischer, Olivier Hudry, and Rolf Niedermeier. Weighted tournament solutions. In Felix Brandt, Vincent Conitzer, Ulle Endriss, Jérôme Lang, and Ariel D. Procaccia (eds.), Handbook of Computational Social Choice, pp. 85–102. Cambridge University Press, 2016.
Peter C. Fishburn. Condorcet social choice functions. SIAM Journal on Applied Mathematics, 33(3):469–489, 1977.
Yichao Fu, Xuewei Wang, Hao Zhang, Yuandong Tian, and Jiawei Zhao. Deep think with confidence. In International Conference on Learning Representations, pp. 94355–94377, 2026.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, 2021.
Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Livecodebench: Holistic and contamination free evaluation of large language models for code. In International Conference on Learning Representations, 2025.
Zhewei Kang, Xuandong Zhao, and Dawn Song. Scalable best-of-N selection for large language models via self-certainty. In Advances in Neural Information Processing Systems, pp. 19720–19745, 2025.
Junseok Kim, Nakyeong Yang, Kyungmin Min, and Kyomin Jung. Reliability-aware adaptive self-consistency for efficient sampling in LLM reasoning. In Findings of the Association for Computational Linguistics, pp. 21575–21590, 2026.
Joshua Ong Jun Leang, Zheng Zhao, Aryo Pradipta Gema, Sohee Yang, Wai-Chung Kwan, Xuanli He, Wenda Li, Pasquale Minervini, Eleonora Giunchiglia, and Shay B. Cohen. PiCSAR: Probabilistic confidence selection and ranking for reasoning chains. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 31511–31544, 2026.
Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay V. Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, Yuhuai Wu, Behnam Neyshabur, Guy Gur-Ari, and Vedant Misra. Solving quantitative reasoning problems with language models. In Advances in Neural Information Processing Systems, pp. 3843–3857, 2022.
Yiwei Li, Peiwen Yuan, Shaoxiong Feng, Boyuan Pan, Xinglin Wang, Bin Sun, Heda Wang, and Kan Li. Escape sky-high cost: Early-stopping self-consistency for multi-step reasoning. In International Conference on Learning Representations, 2024.
Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In International Conference on Learning Representations, 2024.
Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. Is your code generated by ChatGPT really correct? rigorous evaluation of large language models for code generation. In Advances in Neural Information Processing Systems, pp. 21558–21572, 2023.
Maria Marina, Daniil Moskovskiy, Sergey Pletenev, Mikhail Salnikov, Alexander Panchenko, and Viktor Moskvoretskii. Boosting self-consistency with ranking. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, pp. 1017–1032, 2026.
Aditya Krishna Menon, Sadeep Jayasumana, Ankit Singh Rawat, Himanshu Jain, Andreas Veit, and Sanjiv Kumar. Long-tail learning via logit adjustment. In International Conference on Learning Representations, 2021.
Jungsuk Oh and Jay-Yoon Lee. Latent self-consistency for reliable majority-set selection in short- and long-answer reasoning. In Proceedings of the AAAI Conference on Artificial Intelligence, pp. 32591–32599, 2026.
OpenCompass. AIME 2025, 2025. URL https://huggingface.co/datasets/opencompass/AIME2025.
Qwen. Qwen3 technical report. CoRR, abs/2505.09388, 2025.
David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R. Bowman. GPQA: A graduate-level google-proof Q&A benchmark. In Conference on Language Modeling, 2024.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. CoRR, abs/2402.03300, 2024.
Charlie Victor Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling LLM test-time compute optimally can be more effective than scaling parameters for reasoning. In International Conference on Learning Representations, 2025.
Amir Taubenfeld, Tom Sheffer, Eran Ofek, Amir Feder, Ariel Goldstein, Zorik Gekhman, and Gal Yona. Confidence improves self-consistency in LLMs. In Findings of the Association for Computational Linguistics, pp. 20090–20111, 2025.
Han Wang, Archiki Prasad, Elias Stengel-Eskin, and Mohit Bansal. Soft self-consistency improves language models agents. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, pp. 287–301, 2024.
Weiqin Wang, Yile Wang, and Hui Huang. Ranked voting based self-consistency of large language models. In Findings of the Association for Computational Linguistics, pp. 14410–14426, 2025.
Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. In International Conference on Learning Representations, 2023.
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, pp. 24824–24837, 2022.
Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. Tree of thoughts: Deliberate problem solving with large language models. In Advances in Neural Information Processing Systems, pp. 11809–11822, 2023.
Huaiyuan Ying, Shuo Zhang, Linyang Li, Zhejian Zhou, Yunfan Shao, Zhaoye Fei, Yichuan Ma, Jiawei Hong, Kuikun Liu, Ziyi Wang, Yudong Wang, Zijian Wu, Shuaibin Li, Fengzhe Zhou, Hongwei Liu, Songyang Zhang, Wenwei Zhang, Hang Yan, Xipeng Qiu, Jiayu Wang, Kai Chen, and Dahua Lin. Internlm-math: Open math large language models toward verifiable reasoning. CoRR, abs/2402.06332, 2024.
H. P. Young. Condorcet's theory of voting. American Political Science Review, 82(4):1231–1244, 1988.
Parvez Zamil and Gollam Rabby. AIME problems 1983 to 2024, 2024. URL https://www.kaggle.com/datasets/tourist800/aime-problems-1983-to-2024.
Zhenru Zhang, Chujie Zheng, Yangzhen Wu, Beichen Zhang, Runji Lin, Bowen Yu, Dayiheng Liu, Jingren Zhou, and Junyang Lin. The lessons of developing process reward models in mathematical reasoning. In Findings of the Association for Computational Linguistics, pp. 10495–10516, 2025.
Zhi Zhou, Yuhao Tan, Zenan Li, Yuan Yao, Lan-Zhe Guo, Yu-Feng Li, and Xiaoxing Ma. A theoretical study on bridging internal probability and self-consistency for LLM reasoning. In Advances in Neural Information Processing Systems, pp. 87380–87413, 2025.
William S. Zwicker. Introduction to the theory of voting. In Felix Brandt, Vincent Conitzer, Ulle Endriss, Jérôme Lang, and Ariel D. Procaccia (eds.), Handbook of Computational Social Choice, pp. 23–56. Cambridge University Press, 2016.
Appendix Contents
A Related Work 16
B Representative Methods 17
B.1 Path-Confidence Measures and Selection 17
B.2 Answer-Level Voting 18
C Case Analysis 18
D Online PGLA Extension 19
E Proof for Proposition 3.1 20
F Additional Experimental Setup 21
F.1 Comparison Methods 21
F.2 LLM Backbones 22
F.3 Datasets 23
F.4 Implementation Details 23
G Additional Experimental Results 24
G.1 Enhanced Code Tests in Reasoning Mode 24
G.2 Comparison of Non-Thinking and Reasoning Modes 24
G.3 Performance with the External Reward Setting 27
G.4 Tradeoff between Case I and Case II 28
G.5 Effect of Ranking Quality by Dataset 29
G.6 Temperature Sensitivity 29
G.7 Efficiency Comparison 29
G.8 Complete Scaling Results with Varying K 32
G.9 Online Sampling Efficiency 35
G.10 Extension to 32B Models 36
G.11 Effect of Comparative Advantage Rules 37
G.12 Computational Overhead 39
G.13 Connection to Rank-Based Borda Aggregation 40
H Impact Statement 42
I AI Use Statement 42
Related Work
Sampling-based reasoning and confidence aggregation. Sampling-based test-time scaling improves LLM reasoning by generating multiple reasoning paths and selecting an answer from their collective evidence. Self-Consistency (SC) aggregates paths through majority voting over their final answers (Wang et al., 2023), whereas Best-of-N selects a single candidate using a quality score, such as a learned verifier or process reward model (Cobbe et al., 2021; Lightman et al., 2024). For outputs that cannot be grouped by exact answers, Universal Self-Consistency uses an LLM to assess consistency (Chen et al., 2023), while Latent Self-Consistency learns representations for semantic agreement (Oh & Lee, 2026).
Confidence-aware methods further exploit differences in path quality. Soft Self-Consistency scores candidate actions using model likelihoods in interactive tasks (Wang et al., 2024). RPC combines internal probability with answer consistency through Perplexity Consistency and Reasoning Pruning (Zhou et al., 2025). CISC weights votes by model confidence and shows that distinguishing correct from incorrect responses within the same question is more relevant to aggregation than cross-question calibration alone (Taubenfeld et al., 2025). Self-Certainty derives confidence from the token distribution (Kang et al., 2025), while DeepConf uses local confidence to filter traces and weight their votes (Fu et al., 2026). More recently, PiCSAR combines reasoning and answer likelihoods for candidate selection (Leang et al., 2026). Self-Certainty's Borda variant ranks sampled paths by confidence and accumulates rank-dependent votes for their answers (Kang et al., 2025). Ranked Voting SC instead elicits ordered candidate answers within each response and aggregates these lists using ranked voting rules (Wang et al., 2025). RISC learns an answer ranker from frequency, semantic, and reasoning-consistency features (Marina et al., 2026).
Our work studies preference reconstruction from ordinary single-answer samples. Each path provides one answer and a confidence score, leaving its ordering over alternatives unobserved. We seek to reconstruct an answer-level preference structure through pairwise confidence comparisons across answer groups, and reconcile this proxy for the missing preferences with voting support through KL-regularized aggregation.
Efficient and adaptive reasoning. The benefits of additional inference computation depend on how it is allocated across problems and reasoning paths (Snell et al., 2025). Adaptive-Consistency and Early-Stopping Self-Consistency reduce the number of completed samples by monitoring answer agreement and stopping when sufficient evidence has accumulated (Aggarwal et al., 2023; Li et al., 2024). DeepConf additionally monitors confidence during generation, terminates low-confidence traces, and uses answer consensus to stop further sampling (Fu et al., 2026).
Recent work refines both allocation and stopping. Blend-ASC analyzes SC through mode estimation and voting theory and dynamically distributes a sampling budget across questions (Feng et al., 2026). ReASC incorporates response-level confidence into its evidence accumulation and stopping decisions (Kim et al., 2026). MARS probes intermediate answers during parallel generation and stops when a conservative bound on future vote changes protects the current leader; its theoretical target is agreement with the full-budget vote (Chen et al., 2026). Our primary focus is the preference structure used for answer aggregation. The online extension updates this structure as paths arrive and stops when the resulting decision remains stable, allowing us to examine whether preference-aware aggregation also improves sample efficiency.
Representative Methods
We follow the notation and scoring rules in Sec. 2.1. The sampled paths produce answers and confidence scores , forming . For each candidate answer , an aggregation method computes ; the predicted answer is selected by Eq. (1). We first specify possible confidence scores and then apply the same selection and voting formulas.
Path-Confidence Measures and Selection
Let be the number of tokens in path , and let be its -th token. For a vocabulary token , denotes the model's predicted probability of at position , conditioned on the input query and preceding tokens of . The vocabulary is denoted by . The following superscripts distinguish alternative choices for the confidence in Sec. 2.1.
Perplexity confidence uses inverse perplexity so that higher values indicate higher confidence (Chen et al., 1998):
Here, is the perplexity of the sampled path. Its negative log-perplexity is ; exponentiation preserves its ordering and ties, so either scale gives the same Best-of-N selection and pairwise confidence comparisons. The positive scale above also supplies the original perplexity-derived voting contribution directly as in Eq. (4).
Self-Certainty (Kang et al., 2025) measures deviation from the uniform distribution over the vocabulary:
The notation denotes the vocabulary size. Unlike perplexity, this score uses the entire predicted token distribution at each position, rather than only the probability of the sampled token.
DeepConf (Fu et al., 2026) computes token confidences and aggregates them over local windows. Let be the number of highest-probability tokens used at each position, and let be that set of vocabulary tokens. Its bottom-10% variant is
(13)
Here, is the token confidence; indexes a local window; is its nonempty set of token positions; and is the average confidence in that window. The nonempty index set selects the lowest-10% window confidences, with at least one window retained. Vertical bars denote set size. Tail and minimum-window variants use the same local-confidence principle. We use , following DeepConf. This score averages negative log-probabilities over the top-k candidate tokens and differs from the negative log-likelihood of the sampled token. Larger values are treated as higher confidence. The resulting token scores and their window averages are nonnegative, allowing direct use as voting weights.
For any chosen confidence , Best-of-N uses exactly the answer-level score in Eq. (2):
The index condition restricts the maximum to paths producing answer a. Best-of-N is the conventional method name; its sampling budget here is the K paths defined in Sec. 2.1.

(a) Case I.

(b) Case II.

(c) MATH.

(d) MathOdyssey.
Figure 8: Complementary roles of voting support and pairwise confidence comparisons. In Case I, an incorrect answer contains the highest-confidence path despite weaker voting support. In Case II, an incorrect answer has stronger or tied voting support, while pairwise confidence comparisons favor a correct answer. The last two panels report the corresponding behavior on MATH and MathOdyssey.
Answer-Level Voting
Self-Consistency (SC) (Wang et al., 2023) assigns one vote to each sampled path, as in Eq. (3):
The indicator is one when its condition holds and zero otherwise. Thus counts paths supporting answer without using their confidence values.
Confidence-based voting uses the same coefficient as Eq. (4), with for a filtered path:
Unfiltered Weighted SC sets for every path. PPL-Weighted SC uses from Eq. (11); DeepConf-Weighted SC and Self-Certainty-Weighted SC use and , respectively. Confidence filtering instead sets for discarded paths and for retained paths.
RPC (Zhou et al., 2025) is another instance of this confidence-based voting rule. Perplexity Consistency aggregates probability-derived contributions from distinct path–confidence pairs, while Reasoning Pruning filters low-confidence paths under its original query-specific mixture rule. With , set for one representative of each retained distinct pair , and for pruned paths and repeated copies of the same pair. Its score is therefore
where the superscript RPC identifies this particular choice of confidence and filtering coefficients in the Conf-Vote family. Further baseline-specific rules, including rank-weighted voting, are described in Sec. F.1.
Case Analysis
We use the Best-of-N, SC, and confidence-based voting scores in Eqs. (2) to (4). Fix a voting method : its score is either or an instance of with specified confidence scores and coefficients . Thus, Best-of-N uses a confidence maximum, while voting sums the path contributions prescribed in Sec. 2.1.
Let be two distinct observed answers, with correct and incorrect. Each has at least one supporting path, so and are positive. In Case I, voting support favors , whereas Best-of-N favors
because an incorrect path has the higher confidence maximum:
To describe Case II, define the empirical confidence preference for over :
Here, and index observed paths supporting and , respectively. The denominator counts all such path pairs, so is the fraction favoring , with confidence ties counted as one half. Case II occurs when voting support favors or ties , while these pairwise comparisons favor :
The confidence-based comparison entry in Eq. (6) is the average signed comparison over the same path pairs; hence . The SC-error analysis in Fig. 4 takes , giving and .
Conditioning on recoverable SC errors. We call an SC error recoverable if its candidate pool contains at least one correct answer, and denote the set of such pools by . For each pool , let be its SC error weight, with fractional credit used for ties. We measure the prevalence of Case II among recoverable SC errors by
This conditioning excludes only pools with no correct candidate, for which reranking over the observed answers is impossible.
Tab. 5 reports both the share of NoCorrect pools among all SC errors and the Case-II share after excluding them. We use PPL confidence, with on MATH and on MathOdyssey and AIME.
Table 5: Breakdown of SC errors (%). NoCorrect is measured over all SC errors; recoverable Case II is measured after excluding NoCorrect pools. Results use PPL confidence.
| Model | MATH | MathOdyssey | AIME |
|---|---|---|---|
| NoCorrect / all SC errors | |||
| InternLM2-Math-Plus-1.8B | 50.16 | 46.94 | 75.83 |
| InternLM2-Math-Plus-7B | 48.58 | 53.10 | 63.70 |
| DeepSeek-Math-RL-7B | 51.83 | 59.42 | 62.18 |
| Case II / recoverable SC errors | |||
| InternLM2-Math-Plus-1.8B | 82.22 | 83.81 | 91.62 |
| InternLM2-Math-Plus-7B | 79.30 | 88.60 | 88.62 |
| DeepSeek-Math-RL-7B | 69.87 | 81.42 | 84.81 |
These cases reveal complementary weaknesses: Best-of-N is susceptible to Case I because it relies on a single confidence maximum, whereas voting-based methods are susceptible to Case II because they do not explicitly account for answer-level pairwise confidence comparisons. Pairwise-Guided Logit Adjustment (PGLA) combines the two sources of evidence, using voting support to temper isolated confidence outliers and comparative advantage to compensate for weaker voting support. This combination yields a better empirical tradeoff between the two error types, as shown in Figs. 5 and 10.
Online PGLA Extension
The full-budget formulation above applies PGLA after collecting all sampled paths. To examine whether its comparative evidence can reduce unnecessary inference-time sampling, we extend it to the online setting. As new paths become available, PGLA updates its answer prediction and stops sampling once the prediction becomes stable.
Let denote the number of observed paths at the -th update, and let be this prefix of the evidence pool. Its observed answers form , with supporting-path groups for . From this prefix, we update the voting support and comparative advantage using Eqs. (6) and (7), with all answer sums restricted to . We set when no other observed answer has positive voting support, including the single-answer case. The adjusted score is
For , this is equivalently , as in Eq. (10); the multiplicative form also applies to zero voting support without adding a smoothing term.
Let denote the unique highest-scoring answer in , with under a tie. Given a stability length , sampling stops at the first satisfying
A tie resets the stability count, and sampling continues to if the condition is never met. This label-free rule applies unchanged to a base aggregator and its PGLA-adjusted counterpart, enabling a matched online comparison.
Proof for Proposition 3.1
Proof. Consider an observed candidate pool with answer set and . The voting distribution and comparative advantages are determined by this pool and are constants with respect to the optimization variable . They may be computed from the same paths; no statistical independence between them is required. Under the proposition's positive-support assumption,
and each is finite. For , we take because there is no competing answer. The objective in Eq. (8) is
(25)
over the probability simplex . Terms with are defined by continuity, so and .
Existence and strict concavity. The function , with its continuous extension at zero, is strictly convex on . Thus the entropy term is strictly concave on the simplex, while the second term in Eq. (25) is linear in . Consequently, is strictly concave for . It is also continuous on the compact simplex, so a maximizer exists and is unique. For , the simplex contains only the distribution assigning probability one to its sole answer, and uniqueness is immediate.
Closed-form solution. Define the positive normalizing constant and a candidate distribution by
Since and is finite, , , and . Hence is feasible. Moreover,
. For every , including its boundary, substitution gives
(27)
The KL divergence is nonnegative and vanishes if and only if . Therefore , with equality uniquely at . This proves that and yields exactly Eq. (9).
Connection to the logit adjustment. Substituting Eq. (24) into the optimizer gives
(28)
Thus the adjusted distribution is obtained by normalizing the answer-level scores . For positive voting support, taking logarithms gives , exactly as in Eq. (10). If all comparative advantages are equal, their common exponential factor cancels and .
Additional Experimental Setup
Comparison Methods
Competitors. We compare 11 internal-confidence and voting baselines on the same sampled paths, together with three external-PRM baselines. We also include Online SC for the sampling-efficiency comparison; + Ours denotes the corresponding voting rule enhanced by PGLA.
PPL Best-of-N. This baseline selects the path with the highest mean token log-probability, equivalently the lowest perplexity (Chen et al., 1998). Its answer-level score is the maximum PPL confidence among paths supporting that answer.
DeepConf Best-of-N. DeepConf summarizes token confidence over local windows to identify low-confidence portions of a path (Fu et al., 2026). We use the average of the bottom-10% window confidences as the path score and select the highest-scoring path.
Self-Certainty Best-of-N. Self-Certainty measures the divergence of the model's next-token distribution from a uniform vocabulary distribution (Kang et al., 2025). This baseline selects the path with the highest average Self-Certainty score.
SC. Self-Consistency gives each sampled path one vote for its final answer (Wang et al., 2023). It selects the answer with the largest voting support, .
PPL-Weighted SC. This variant uses the inverse-perplexity confidence in Eq. (11) and sets in Eq. (4). It is denoted by Weighted SC in the PPL-based experiments.
DeepConf-Weighted SC. This variant sums the DeepConf path scores over each answer group (Fu et al., 2026). It uses all eligible paths, with no additional path-level confidence filter.
Self-Certainty-Weighted SC. This variant sums the Self-Certainty path scores over each answer group (Kang et al., 2025). It retains the numerical confidence values as voting weights.
Self-Certainty Borda. This rule ranks paths by decreasing Self-Certainty and assigns rank r the voting weight (Kang et al., 2025). We use and sum the rank-based weights for each answer.
DeepConf-Filter (90%). This offline rule retains paths at or above the tenth percentile of eligible path-confidence scores and sums their DeepConf weights for each answer (Fu et al., 2026). The top-90% path filter is separate from the bottom-10% window summary used to score each path; threshold ties are retained.
Adaptive SC. Adaptive Self-Consistency stops sampling according to the accumulated evidence for the leading answer (Aggarwal et al., 2023). We retain its original stopping criterion as a dynamic-budget baseline.
RPC. RPC combines Perplexity Consistency, which aggregates probability-derived support from distinct path–confidence pairs, with Reasoning Pruning, which filters low-confidence paths (Zhou et al., 2025). It provides a confidence-aware voting baseline without an external scorer.
PRM Best-of-N. This baseline uses Qwen2.5-Math-PRM-7B to score the reasoning steps of each sampled path (Zhang et al., 2025). It multiplies the step scores into a path score and selects the highest-scoring path.
PRM-Weighted SC. This variant sums the same product of step-level PRM scores over each answer group. It combines answer agreement with externally estimated path quality (Lightman et al., 2024; Zhang et al., 2025).
PRM-RPC. This variant substitutes the product of step-level PRM scores for the internal confidence weights in RPC. It retains RPC's path deduplication and pruning before aggregating the remaining voting support (Zhou et al., 2025; Zhang et al., 2025).
Online SC. This baseline updates the majority-vote prediction after every eight paths and stops after the unique winning answer remains unchanged for three consecutive updates. It uses the same stability rule as Online SC+PGLA, as detailed in Sec. G.9.
LLM Backbones
LLM Backbones. We use seven generators spanning the Qwen3, DeepSeekMath, and InternLM-Math families. Qwen3 models use reasoning mode unless a result is explicitly marked as non-thinking; the external PRM serves only as a scorer.
Qwen3-1.7B. This is the smallest Qwen3 generator in our experiments (Qwen, 2025). It provides a small-model setting for evaluating aggregation across mathematical reasoning and code generation.
Qwen3-4B. This Qwen3 model increases the parameter scale to 4B while retaining the family’s thinking and non-thinking modes (Qwen, 2025). We include it in the confidence-transfer comparisons and complementary non-thinking evaluations.
Qwen3-8B. This 8B Qwen3 model extends the reasoning-mode comparisons to a larger backbone (Qwen, 2025). Together with the 1.7B and 4B models, it supports comparisons across model scales within the same family.
Qwen3-32B. This is the largest Qwen3 generator evaluated in our study (Qwen, 2025). We report its reasoning-mode results on AIME 2024, AIME 2025, and HMMT 2025 in Sec. G.10.
DeepSeek-Math-RL-7B. This math-specialized 7B model is the reinforcement-learning variant of DeepSeek-Math (Shao et al., 2024). It tests aggregation on a generator trained specifically for mathematical reasoning.
InternLM2-Math-Plus-1.8B. This is the smallest math-specialized generator in our evaluation (Ying et al., 2024). It provides a lower-capacity counterpart for the mathematical-reasoning and online sampling experiments.
InternLM2-Math-Plus-7B. This 7B model belongs to the same math-specialized family as the 1.8B variant (Ying et al., 2024). It is included in the main mathematical-reasoning comparisons and the detailed aggregation analyses.
Qwen2.5-Math-PRM-7B. This process reward model assigns scores to individual reasoning steps (Zhang et al., 2025). We use it as an external scorer for the three PRM baselines and their applicable PGLA variants, separately from the seven generators above.
Datasets
Datasets. The ten benchmarks in the main experimental setup cover competition mathematics, graduate-level science, and code generation. HumanEval+ and MBPP+ provide additional evaluations with strengthened tests for the corresponding code benchmarks.
AIME 2024. This benchmark contains problems from the 2024 American Invitational Mathematics Examination (AI-MO, 2024). It evaluates short-answer mathematical reasoning and is reported separately from the historical AIME collection.
AIME 2025. This benchmark contains the 2025 AIME problems released by OpenCompass (OpenCompass, 2025). It provides a separate competition-year evaluation under the same short-answer format.
HMMT 2025. We use the February 2025 Harvard–MIT Mathematics Tournament problems provided by MathArena (Balunović et al., 2025). The benchmark covers challenging competition mathematics, including algebra, geometry, combinatorics, and number theory.
AIME. The historical AIME collection contains 993 problems from the American Invitational Mathematics Examination from 1983 to 2024 (Zamil & Rabby, 2024). This larger short-answer benchmark is used in the math-specialized-model experiments.
MATH. MATH contains challenging competition mathematics problems spanning algebra, geometry, number theory, counting, and combinatorics (Hendrycks et al., 2021). We use its 5,000-problem test split.
MathOdyssey. MathOdyssey contains 387 problems covering advanced high-school, university-level, and olympiad-level mathematics (Fang et al., 2025). It extends the evaluation beyond a single competition or curriculum level.
GPQA-Diamond (GPQA-D). GPQA comprises expert-written multiple-choice questions in biology, physics, and chemistry (Rein et al., 2024). We use its 198-question Diamond subset to evaluate graduate-level scientific reasoning.
HumanEval. HumanEval contains 164 Python programming tasks specified by function signatures and natural-language descriptions (Chen et al., 2021). We evaluate the selected programs using the original-test outcomes in our evaluation pipeline.
MBPP. Mostly Basic Programming Problems consists of short Python programming tasks with natural-language descriptions and tests (Austin et al., 2021). Our code-transfer evaluations use the cached 378-problem split.
LiveCodeBench V6. LiveCodeBench collects programming-contest problems from LeetCode, AtCoder, and Codeforces (Jain et al., 2025). We use the V6 code-generation benchmark to evaluate the correctness of selected programs by execution.
HumanEval+ and MBPP+. EvalPlus augments HumanEval and MBPP with additional tests that detect errors missed by the original suites (Liu et al., 2023). We retain the sampled programs and problem sets and report results under the strengthened tests separately from the original-test results.
Implementation Details
Sampling and consistency. For each query, all methods use matched K-path subsets of the same sampled pool, generated with common decoding parameters. The consistency function treats two paths as consistent in mathematical and knowledge reasoning when their normalized final answers match. For code generation, we follow RPC and define consistency through execution behavior (Zhou et al., 2025). For the math-specialized backbones, we set K = 64 on MATH and K = 128 on MathOdyssey and AIME. For Qwen3 comparisons in reasoning and non-thinking modes, we set K = 32 on AIME 2024, AIME 2025, HMMT 2025, GPQA-D, HumanEval, MBPP, and LiveCodeBench V6. We use a temperature of 1.0 and top-p of 0.95. The maximum generation length is 2,048 tokens for MATH, MathOdyssey, and AIME, and
16,384 tokens for the remaining datasets. Within each experimental setting, all methods are evaluated on the same problem set and sampled-path subsets. The same repetitions are used for each baseline and its PGLA-enhanced counterpart. We report the mean and standard deviation. All experiments are conducted on Linux servers equipped with NVIDIA A100 and RTX 3090 GPUs, except for the CPU-only aggregation microbenchmark in Sec. G.12.
Aggregation. For a voting rule denotes its answer-level voting support and denotes the voting-weighted comparative advantage in Eq. (7). The default adjustment is from Eq. (10). A illustrative example of the adjustment is given in Fig. 9.

Figure 9: Illustration of PGLA.
Additional Experimental Results
Enhanced Code Tests in Reasoning Mode
Tab. 6 reports the strengthened HumanEval+ and MBPP+ tests for the same sampled pools used in Tab. 1. A prediction must pass both the original and enhanced tests. PGLA generally improves accuracy under these strengthened tests, suggesting that its benefits persist under stricter verification.
Comparison of Non-Thinking and Reasoning Modes
Tabs. 7 and 8 compare non-thinking and reasoning modes of Qwen3-1.7B and Qwen3-4B on AIME 2024, AIME 2025, and HMMT 2025. Reasoning-mode results are reproduced from Tab. 1 for the methods shared by both modes. All columns use K = 32. Reasoning mode consistently achieves higher accuracy, and PGLA generally improves the voting baselines in both modes.
Table 6: Enhanced code-test accuracy (%) in reasoning mode (). Here + Ours denotes a PGLA-enhanced variant.
| Methods | Qwen3-1.7B Reasoning | Qwen3-4B Reasoning | ||
|---|---|---|---|---|
| HumanEval+ | MBPP+ | HumanEval+ | MBPP+ | |
| PPL Best-of-N | ||||
| DeepConf Best-of-N | ||||
| Self-Certainty Best-of-N | ||||
| SC | ||||
| SC + Ours (DeepConf) | ||||
| SC + Ours (Self-Certainty) | ||||
| DeepConf-Weighted SC | ||||
| DeepConf-Weighted SC + Ours | ||||
| Self-Certainty-Weighted SC | ||||
| Self-Certainty-Weighted SC + Ours | ||||
| Self-Certainty Borda | ||||
| Self-Certainty Borda + Ours | ||||
| DeepConf-Filter (90%) | ||||
| DeepConf-Filter (90%) + Ours | ||||
Table 7: Comparison of non-thinking and reasoning modes for Qwen3-1.7B on three mathematical reasoning benchmarks ().
| Methods | Qwen3-1.7B | Reasoning mode | ||||
|---|---|---|---|---|---|---|
| AIME 2024 | AIME 2025 | HMMT 2025 | AIME 2024 | AIME 2025 | HMMT 2025 | |
| PPL Best-of-N | ||||||
| DeepConf Best-of-N | ||||||
| Self-Certainty Best-of-N | ||||||
| SC | ||||||
| SC + Ours (DeepConf) | ||||||
| SC + Ours (Self-Certainty) | ||||||
| DeepConf-Weighted SC | ||||||
| DeepConf-Weighted SC + Ours | ||||||
| Self-Certainty-Weighted SC | ||||||
| Self-Certainty-Weighted SC + Ours | ||||||
Table 8: Comparison of non-thinking and reasoning modes for Qwen3-4B on three mathematical reasoning benchmarks (K = 32).
| Qwen3-4B | ||||||
|---|---|---|---|---|---|---|
| Methods | Non-thinking mode | Reasoning mode | ||||
| AIME 2024 | AIME 2025 | HMMT 2025 | AIME 2024 | AIME 2025 | HMMT 2025 | |
| PPL Best-of-N | ||||||
| DeepConf Best-of-N | ||||||
| Self-Certainty Best-of-N | ||||||
| SC | ||||||
| SC + Ours (DeepConf) | ||||||
| SC + Ours (Self-Certainty) | ||||||
| DeepConf-Weighted SC | ||||||
| DeepConf-Weighted SC + Ours | ||||||
| Self-Certainty-Weighted SC | ||||||
| Self-Certainty-Weighted SC + Ours | ||||||
Table 9: Accuracy comparison under the sampling budgets of and , using product-aggregated rewards from an external process reward model Qwen2.5-Math-PRM-7B (Lightman et al., 2024; Zhang et al., 2025). + Ours denotes the PGLA-enhanced variant of each voting baseline.
| Method | MATH | MathOdyssey | AIME | Average | ||||
|---|---|---|---|---|---|---|---|---|
| InternLM2-Math-Plus-1.8B | ||||||||
| PRM Best-of-N | ||||||||
| PRM-Weighted SC | ||||||||
| + Ours | ||||||||
| PRM-RPC | ||||||||
| + Ours | ||||||||
| InternLM2-Math-Plus-7B | ||||||||
| PRM Best-of-N | ||||||||
| PRM-Weighted SC | ||||||||
| + Ours | ||||||||
| PRM-RPC | ||||||||
| + Ours | ||||||||
| Deepseek-Math-RL-7B | ||||||||
| PRM Best-of-N | ||||||||
| PRM-Weighted SC | ||||||||
| + Ours | ||||||||
| PRM-RPC | ||||||||
| + Ours | ||||||||
Performance with the External Reward Setting
Tab. 9 compares the methods using product-aggregated rewards from an external process reward model. We observe that our method improves PRM-Weighted SC and PRM-RPC in most settings. To be specific, at the full budget, PGLA raises their average accuracy from 33.98 to 35.51 and from 34.30 to 35.55, respectively. This further demonstrates that our method can effectively use externally provided reward signals.
Tradeoff between Case I and Case II
Fig. 10 illustrates complementary failure modes: Best-of-N often fails in Case I, while voting-based methods tend to fail in Case II. By combining voting support with pairwise confidence comparisons, PGLA generally achieves a better balance between the two cases.

(a) AIME24, 1.7B

(b) AIME24, 4B

(c) AIME24, 8B

(d) AIME25, 1.7B

(e) AIME25, 4B

(f) AIME25, 8B

(g) HMMT25, 1.7B

(h) HMMT25, 4B

(i) HMMT25, 8B
Figure 10: Tradeoff between Case I and Case II on AIME24, AIME25, and HMMT25 using Qwen3-1.7B, Qwen3-4B, and Qwen3-8B. Ours denotes PGLA. DeepConf, PPL, and Self-Certainty denote DeepConf Best-of-N, PPL Best-of-N, and Self-Certainty Best-of-N, respectively. SWSC and DWSC denote Self-Certainty-Weighted SC and DeepConf-Weighted SC, respectively.
Effect of Ranking Quality by Dataset
We study how the ranking quality of path scores affects PGLA. Following Sec. 2.1, let and be the answer and confidence of path . Here is the product-aggregated reward from Qwen2.5-Math-PRM-7B, floored at . We keep the sampled paths, answers, and PRM-Weighted SC support fixed, where denotes PRM-Weighted SC. Only the scores used for pairwise comparisons are perturbed; the opponent weights and unit-strength PGLA update remain unchanged.
Controlled perturbation. The retention parameter controls how many path-score assignments are preserved. For each query, define
where round denotes nearest-integer rounding and is a random cyclic permutation on uniformly selected distinct path indices, extended by the identity on the remaining indices. If , is the identity everywhere. Thus, preserves the original ranking, while permutes all score assignments within the query. This procedure preserves the score multiset and uses no correctness labels. Because of rounding and score ties, is a nominal retention fraction, rather than the exact fraction of unchanged score values.
Ranking quality. We measure ranking quality by the empirical area under the ROC curve (AUC) for distinguishing correct from incorrect paths. Let index evaluated queries, and let be the perturbed confidence of path for query . Define and as the index sets of paths whose answers are correct and incorrect, respectively. For a query containing both kinds of paths, its AUC is
This uses the same tie convention as Eq. (6): a correct path outranking an incorrect path contributes one, and a tie contributes one half. Let contain the queries for which both and are nonempty. The dataset-level AUC is their equally weighted average,
Queries containing only correct or only incorrect paths are excluded from this AUC but remain in the accuracy evaluation. The tables abbreviate as ; the model-level curves in Fig. 7 further average the dataset metrics equally.
The gains from PGLA generally grow as ranking quality improves across datasets. In Fig. 7, increasing from 0.496 to 0.729 on InternLM2-Math-Plus-7B raises the absolute accuracy gain from -0.54% to +2.17%. A similar trend appears on DeepSeek-Math-RL-7B in Tabs. 11, 13 and 15, supporting the benefit of more reliable pairwise confidence comparisons.
Temperature Sensitivity
To further examine robustness under more diverse sampled reasoning paths, we conduct additional experiments on MathOdyssey and AIME using InternLM2-Math-Plus-1.8B, InternLM2-Math-Plus-7B, and DeepSeek-Math-RL-7B. Tab. 16 compares the methods under higher decoding temperatures with T = 1.1 and T = 1.3. Our method remains competitive and generally outperforms the comparison methods, indicating that the proposed aggregation mechanism is still effective when the sampled proposal pool becomes more diverse.
Efficiency Comparison
Tabs. 17 and 18 compare the sampling budgets of SC, SC + Ours, RPC, and RPC + Ours on MATH, MathOdyssey, and AIME, capped at 64 paths for MATH and 128 otherwise. For each model–dataset
Table 10: Controlled ranking on MATH with InternLM2-Math-Plus-7B ().
| PGLA Acc. | Acc | ||
|---|---|---|---|
| 0.0 | |||
| 0.2 | |||
| 0.4 | |||
| 0.6 | |||
| 0.8 | |||
| 1.0 |
Table 12: Controlled ranking on MathOdyssey with InternLM2-Math-Plus-7B ().
| PGLA Acc. | Acc | ||
|---|---|---|---|
| 0.0 | |||
| 0.2 | |||
| 0.4 | |||
| 0.6 | |||
| 0.8 | |||
| 1.0 |
Table 14: Controlled ranking on AIME with InternLM2-Math-Plus-7B ().
| PGLA Acc. | Acc | ||
|---|---|---|---|
| 0.0 | |||
| 0.2 | |||
| 0.4 | |||
| 0.6 | |||
| 0.8 | |||
| 1.0 |
Table 11: Controlled ranking on MATH with DeepSeek-Math-RL-7B ().
| Base Acc.: | |||
|---|---|---|---|
| PGLA Acc. | Acc | ||
| 0.0 | |||
| 0.2 | |||
| 0.4 | |||
| 0.6 | |||
| 0.8 | |||
| 1.0 | |||
Table 13: Controlled ranking on MathOdyssey with DeepSeek-Math-RL-7B ().
| Base Acc.: | |||
|---|---|---|---|
| PGLA Acc. | Acc | ||
| 0.0 | |||
| 0.2 | |||
| 0.4 | |||
| 0.6 | |||
| 0.8 | |||
| 1.0 | |||
Table 15: Controlled ranking on AIME with DeepSeek-Math-RL-7B ().
| Base Acc.: | |||
|---|---|---|---|
| PGLA Acc. | Acc | ||
| 0.0 | |||
| 0.2 | |||
| 0.4 | |||
| 0.6 | |||
| 0.8 | |||
| 1.0 | |||
Table 16: Temperature sensitivity under the same internal-confidence protocol as Tab. 2. We vary only the decoding temperature; + Ours denotes the PGLA-enhanced variant of each voting baseline.
| Method | MathOdyssey | AIME | ||||||
|---|---|---|---|---|---|---|---|---|
| Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | |
| InternLM2-Math-Plus-1.8B | ||||||||
| PPL | ||||||||
| SC | ||||||||
| SC + Ours | ||||||||
| Weighted SC | ||||||||
| Weighted SC + Ours | ||||||||
| Adaptive SC | ||||||||
| Adaptive SC + Ours | ||||||||
| RPC | ||||||||
| RPC + Ours | ||||||||
| InternLM2-Math-Plus-7B | ||||||||
|---|---|---|---|---|---|---|---|---|
| PPL | ||||||||
| SC | ||||||||
| SC + Ours | ||||||||
| Weighted SC | ||||||||
| Weighted SC + Ours | ||||||||
| Adaptive SC | ||||||||
| Adaptive SC + Ours | ||||||||
| RPC | ||||||||
| RPC + Ours | ||||||||
| Deepseek-Math-RL-7B | ||||||||
|---|---|---|---|---|---|---|---|---|
| PPL | ||||||||
| SC | ||||||||
| SC + Ours | ||||||||
| Weighted SC | ||||||||
| Weighted SC + Ours | ||||||||
| Adaptive SC | ||||||||
| Adaptive SC + Ours | ||||||||
| RPC | ||||||||
| RPC + Ours | ||||||||
Table 17: Post-hoc sampling-budget comparison for InternLM2-Math-Plus-1.8B. Best of SC gives its highest grid mean and smallest attaining . Alternatives use the minimum matching or exceeding this unrounded target. gives absolute accuracy change (%) and sample-count change (%) relative to SC.
| Method | MATH | MathOdyssey | AIME | |||
|---|---|---|---|---|---|---|
| Acc. | Acc. | Acc. | ||||
| Best of SC | ||||||
| SC + Ours | ||||||
| vs. SC | ||||||
| RPC | ||||||
| vs. SC | ||||||
| RPC + Ours | ||||||
| vs. SC | ||||||
Table 18: Post-hoc sampling-budget comparison for DeepSeek-Math-RL-7B. Best of SC gives its highest grid mean and smallest attaining . Alternatives use the minimum matching or exceeding this unrounded target. gives absolute accuracy change (%) and sample-count change (%) relative to SC.
| Method | MATH | MathOdyssey | AIME | |||
|---|---|---|---|---|---|---|
| Acc. | Acc. | Acc. | ||||
| Best of SC | ||||||
| SC + Ours | ||||||
| vs. SC | ||||||
| RPC | ||||||
| vs. SC | ||||||
| RPC + Ours | ||||||
| vs. SC | ||||||
setting, the target is the best mean accuracy attained by SC on the evaluated grid. We then find the smallest grid budget at which each other method matches or exceeds that target. The reported savings describe empirical accuracy–budget tradeoffs.
Tabs. 17 and 18 show that PGLA-enhanced SC and RPC generally reach SC’s best observed accuracy with fewer sampled paths. The savings are larger on InternLM2-Math-Plus-1.8B, while DeepSeek-Math-RL-7B also benefits on MathOdyssey and AIME. These results suggest that pairwise evidence improves the tradeoff between accuracy and sampling budget.
The computational cost of the additional aggregation step is analyzed separately in Sec. G.12.
Complete Scaling Results with Varying
Tabs. 19 and 20 report the complete current-method curves for InternLM2-Math-Plus-1.8B and InternLM2-Math-Plus-7B. We use , capped at 64 for MATH and 128 for MathOdyssey and AIME by the evaluation protocol. All methods use the same candidate subsets at each budgets. Here + Ours denotes PGLA with the voting-weighted comparative advantage in Eq. (7).
Tabs. 19 and 20 show that PGLA generally improves SC and RPC across sampling budgets. The gains become clearer at moderate and large , especially on MATH and MathOdyssey, indicating that pairwise evidence helps make better use of additional reasoning paths.
Table 19: Accuracy across sampling budgets for InternLM2-Math-Plus-1.8B on MATH, MathOdyssey, and AIME.
| MATH | |||||
|---|---|---|---|---|---|
| PPL | SC | SC + Ours | RPC | RPC + Ours | |
| 1 | |||||
| 2 | |||||
| 4 | |||||
| 8 | |||||
| 16 | |||||
| 32 | |||||
| 40 | |||||
| 48 | |||||
| 64 | |||||
| MathOdyssey | |||||
|---|---|---|---|---|---|
| PPL | SC | SC + Ours | RPC | RPC + Ours | |
| 1 | |||||
| 2 | |||||
| 4 | |||||
| 8 | |||||
| 16 | |||||
| 32 | |||||
| 40 | |||||
| 48 | |||||
| 64 | |||||
| 80 | |||||
| 96 | |||||
| 112 | |||||
| 128 | |||||
| AIME | |||||
|---|---|---|---|---|---|
| PPL | SC | SC + Ours | RPC | RPC + Ours | |
| 1 | |||||
| 2 | |||||
| 4 | |||||
| 8 | |||||
| 16 | |||||
| 32 | |||||
| 40 | |||||
| 48 | |||||
| 64 | |||||
| 80 | |||||
| 96 | |||||
| 112 | |||||
| 128 | |||||
Table 20: Accuracy across sampling budgets for InternLM2-Math-Plus-7B on MATH, MathOdyssey, and AIME.
| MATH | |||||
|---|---|---|---|---|---|
| PPL | SC | SC + Ours | RPC | RPC + Ours | |
| 1 | |||||
| 2 | |||||
| 4 | |||||
| 8 | |||||
| 16 | |||||
| 32 | |||||
| 40 | |||||
| 48 | |||||
| 64 | |||||
| MathOdyssey | |||||
|---|---|---|---|---|---|
| PPL | SC | SC + Ours | RPC | RPC + Ours | |
| 1 | |||||
| 2 | |||||
| 4 | |||||
| 8 | |||||
| 16 | |||||
| 32 | |||||
| 40 | |||||
| 48 | |||||
| 64 | |||||
| 80 | |||||
| 96 | |||||
| 112 | |||||
| 128 | |||||
| AIME | |||||
|---|---|---|---|---|---|
| PPL | SC | SC + Ours | RPC | RPC + Ours | |
| 1 | |||||
| 2 | |||||
| 4 | |||||
| 8 | |||||
| 16 | |||||
| 32 | |||||
| 40 | |||||
| 48 | |||||
| 64 | |||||
| 80 | |||||
| 96 | |||||
| 112 | |||||
| 128 | |||||
Table 21: Online aggregation across the two InternLM2-Math-Plus backbones. is the average number of sampled paths. Gain is the absolute accuracy change (%) against Online SC under the same stopping rule, and saving is relative to , which is 64 for MATH and 128 otherwise.
| Dataset | Method | Accuracy | Sampling Cost | ||
|---|---|---|---|---|---|
| Acc. | Gain over Online SC | Saving | |||
| InternLM2-Math-Plus-1.8B | |||||
| MATH | SC (Full Budget) | - | 64.0 | - | |
| Adaptive SC | - | 36.3 | 43.3% | ||
| Online SC | - | 33.4 | 47.7% | ||
| Online SC + PGLA | +2.95 | 31.5 | 50.8% | ||
| MathOdyssey | SC (Full Budget) | - | 128.0 | - | |
| Adaptive SC | - | 70.0 | 45.3% | ||
| Online SC | - | 37.4 | 70.8% | ||
| Online SC + PGLA | +3.73 | 34.5 | 73.1% | ||
| AIME | SC (Full Budget) | - | 128.0 | - | |
| Adaptive SC | - | 92.6 | 27.7% | ||
| Online SC | - | 45.4 | 64.5% | ||
| Online SC + PGLA | +0.39 | 38.3 | 70.1% | ||
| InternLM2-Math-Plus-7B | |||||
| MATH | SC (Full Budget) | - | 64.0 | - | |
| Adaptive SC | - | 27.2 | 57.5% | ||
| Online SC | - | 30.2 | 52.8% | ||
| Online SC + PGLA | +2.98 | 29.0 | 54.7% | ||
| MathOdyssey | SC (Full Budget) | - | 128.0 | - | |
| Adaptive SC | - | 58.8 | 54.1% | ||
| Online SC | - | 35.3 | 72.4% | ||
| Online SC + PGLA | +6.40 | 32.0 | 75.0% | ||
| AIME | SC (Full Budget) | - | 128.0 | - | |
| Adaptive SC | - | 81.6 | 36.3% | ||
| Online SC | - | 42.0 | 67.2% | ||
| Online SC + PGLA | +0.46 | 36.3 | 71.7% | ||
Online Sampling Efficiency
The full-budget results establish the aggregation benefit of PGLA. We next examine whether this benefit remains when the sampling budget is determined independently for each query. Following Sec. D, we apply the same stopping rule and hyperparameters to SC and SC+PGLA on identical nested path prefixes, with each rule tracking its own unique winner. Both methods update their predictions every eight paths and stop after the winner remains unchanged for three consecutive updates. We impose no additional warm-up threshold, making the earliest possible stopping point. To isolate the effect of PGLA, its online variant uses count-based SC support, i.e., . We fix this protocol across the evaluated datasets and include Adaptive SC with its original stopping criterion as a representative online baseline.
Performance in the Online Setting. As shown in Tab. 21, Online SC+PGLA consistently outperforms Online SC across the evaluated datasets, yielding gains of 0.39–6.40% under the same stopping rule. Meanwhile, it reduces the sampling cost by 50.8%–75.0% and uses fewer paths than Online SC in every setting. Despite this reduction, Online SC+PGLA remains 0.10–5.89% above full-budget SC. These results show that the comparative evidence introduced by PGLA improves both the accuracy and the sampling efficiency of online aggregation.
Extension to 32B Models
We further evaluate the aggregation methods in Tab. 1 using Qwen3-32B in reasoning mode on AIME24, AIME25, and HMMT25 (February). Each benchmark contains 30 problems with 64 sampled responses per problem. All methods use the same subsets.
Tab. 22 shows that PGLA matches or improves the corresponding voting baselines on Qwen3-32B, with the most gains on HMMT25. These results suggest that the benefits of pairwise confidence comparisons extend to larger reasoning models.
Table 22: Accuracy (%) of Qwen3-32B in reasoning mode at .
| Method | AIME24 | AIME25 | HMMT25 |
|---|---|---|---|
| Qwen3-32B Reasoning mode | |||
| PPL Best-of-N | |||
| DeepConf Best-of-N | |||
| Self-Certainty Best-of-N | |||
| SC | |||
| + Ours (DeepConf) | |||
| + Ours (Self-Certainty) | |||
| DeepConf-Weighted SC | |||
| + Ours | |||
| Self-Certainty-Weighted SC | |||
| + Ours | |||
| Self-Certainty Borda | |||
| + Ours | |||
| DeepConf-Filter (90%) | |||
| + Ours | |||
Effect of Comparative Advantage Rules
The comparative term in PGLA is modular: changing its aggregation rule leaves the voting distribution and KL-regularized update unchanged. For , we compare the default voting-weighted comparative advantage in Eq. (7) with three alternatives:
Uniform averaging takes the mean of signed pairwise scores; Copeland retains only their signs, with ties contributing zero (Zwicker, 2016); Maximin retains the smallest signed margin (Fischer et al., 2016). All four scores lie in and are set to zero for . The weighted score is also zero when its denominator vanishes. These rules aggregate confidence-based comparisons, and the default weights apply to opposing answers. Each alternative can replace in Eq. (9).
Matched protocol. We extend Tab. 2 using InternLM2-Math-Plus-1.8B, InternLM2-Math-Plus-7B, and DeepSeek-Math-RL-7B on MATH (), MathOdyssey (), and AIME (), using internal mean log-probability scores. We evaluate SC, Weighted SC, Adaptive SC, and RPC. Only the comparative rule changes.
Results. Tabs. 23 to 25 report the results by model. Voting-weighted comparisons attain higher mean accuracy than uniform averaging in most settings, with macro-average accuracy of versus , but uniform averaging yields lower macro-average ECE. Copeland can outperform voting-weighted comparisons and has slightly higher model-average accuracy on InternLM2-1.8B, but lower averages on the other models. Maximin is consistently less accurate. Overall, all four rules improve accuracy over their corresponding baselines in most evaluated settings, supporting the effectiveness of incorporating comparative advantage and demonstrating that our general framework accommodates diverse comparative advantage rules.
Table 23: Comparative-advantage functions on InternLM2-Math-Plus-1.8B. We expand Tab. 2 using the same coefficients (Sec. G.11). Voting denotes the default voting-weighted comparative advantage and + Ours denotes the scaled PGLA variants described in Sec. G.11.
| Method | MATH | MathOdyssey | AIME | Average | ||||
|---|---|---|---|---|---|---|---|---|
| Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | |
| InternLM2-Math-Plus-1.8B | ||||||||
| PPL | ||||||||
| SC | ||||||||
| + Ours (voting) | ||||||||
| + Ours (Uniform) | ||||||||
| + Ours (Copeland) | ||||||||
| + Ours (Maximin) | ||||||||
| Weighted SC | ||||||||
| + Ours (voting) | ||||||||
| + Ours (Uniform) | ||||||||
| + Ours (Copeland) | ||||||||
| + Ours (Maximin) | ||||||||
| Adaptive SC | ||||||||
| + Ours (voting) | ||||||||
| + Ours (Uniform) | ||||||||
| + Ours (Copeland) | ||||||||
| + Ours (Maximin) | ||||||||
| RPC | ||||||||
| + Ours (voting) | ||||||||
| + Ours (Uniform) | ||||||||
| + Ours (Copeland) | ||||||||
| + Ours (Maximin) | ||||||||
Table 24: Comparative-advantage functions on InternLM2-Math-Plus-7B. We expand Tab. 2 using the same coefficients (Sec. G.11). Voting denotes the default voting-weighted comparative advantage and + Ours denotes the scaled PGLA variants described in Sec. G.11.
| Method | MATH | MathOdyssey | AIME | Average | ||||
|---|---|---|---|---|---|---|---|---|
| Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | |
| InternLM2-Math-Plus-7B | ||||||||
| PPL | 47.00±0.20 | 48.98±0.20 | 27.51±1.18 | 67.54±1.18 | 5.96±0.48 | 88.98±0.49 | 26.82 | 68.50 |
| SC | 50.57±0.18 | 6.72±0.19 | 28.30±0.61 | 12.18±0.57 | 9.40±0.21 | 14.35±0.23 | 29.42 | 11.08 |
| + Ours (voting) | 53.99±0.18 | 6.10±0.20 | 35.30±0.55 | 9.69±1.02 | 9.95±0.24 | 13.90±0.23 | 33.08 | 9.90 |
| + Ours (Uniform) | 53.72±0.13 | 5.13±0.23 | 33.62±0.72 | 8.68±0.75 | 10.04±0.23 | 13.26±0.25 | 32.46 | 9.02 |
| + Ours (Copeland) | 52.98±0.23 | 6.54±0.25 | 34.37±0.80 | 8.52±1.18 | 10.21±0.28 | 13.67±0.30 | 32.52 | 9.58 |
| + Ours (Maximin) | 52.56±0.17 | 6.25±0.20 | 31.79±0.92 | 10.16±1.01 | 9.17±0.19 | 14.75±0.20 | 31.17 | 10.38 |
| Weighted SC | 50.81±0.20 | 6.56±0.21 | 28.82±0.67 | 11.57±0.68 | 9.45±0.23 | 14.27±0.25 | 29.69 | 10.80 |
| + Ours (voting) | 53.99±0.13 | 6.15±0.17 | 35.78±0.51 | 9.37±1.16 | 9.88±0.28 | 13.86±0.27 | 33.22 | 9.79 |
| + Ours (Uniform) | 53.82±0.15 | 5.08±0.29 | 34.06±0.81 | 8.46±0.99 | 10.01±0.24 | 13.21±0.24 | 32.63 | 8.92 |
| + Ours (Copeland) | 53.02±0.21 | 6.57±0.23 | 34.55±0.75 | 8.50±1.01 | 10.29±0.36 | 13.55±0.40 | 32.62 | 9.54 |
| + Ours (Maximin) | 52.67±0.17 | 6.20±0.19 | 32.11±0.72 | 10.01±0.98 | 9.22±0.18 | 14.64±0.20 | 31.33 | 10.28 |
| Adaptive SC | 50.54±0.22 | 11.02±0.23 | 28.20±0.68 | 18.17±1.02 | 9.38±0.23 | 17.39±0.41 | 29.37 | 15.53 |
| + Ours (voting) | 52.66±0.26 | 10.53±0.35 | 33.14±0.73 | 13.22±1.52 | 9.83±0.21 | 16.45±0.33 | 31.87 | 13.40 |
| + Ours (Uniform) | 52.62±0.28 | 9.60±0.39 | 31.93±0.46 | 13.31±0.98 | 9.87±0.19 | 15.90±0.34 | 31.47 | 12.94 |
| + Ours (Copeland) | 50.73±0.26 | 12.43±0.31 | 31.75±1.00 | 14.22±1.21 | 9.73±0.28 | 16.58±0.35 | 30.74 | 14.41 |
| + Ours (Maximin) | 50.66±0.35 | 11.71±0.36 | 30.73±0.64 | 14.99±1.19 | 8.57±0.27 | 17.83±0.22 | 29.99 | 14.85 |
| RPC | 51.94±0.14 | 6.41±0.16 | 31.70±0.71 | 9.88±0.80 | 9.74±0.23 | 14.31±0.21 | 31.13 | 10.20 |
| + Ours (voting) | 53.81±0.12 | 6.72±0.15 | 36.53±1.06 | 7.90±1.09 | 10.08±0.24 | 13.31±0.22 | 33.47 | 9.31 |
| + Ours (Uniform) | 53.80±0.10 | 5.74±0.26 | 35.19±0.59 | 8.22±0.93 | 10.14±0.32 | 12.98±0.33 | 33.04 | 8.98 |
| + Ours (Copeland) | 52.83±0.19 | 7.36±0.21 | 35.12±1.04 | 7.87±1.59 | 10.20±0.32 | 13.70±0.38 | 32.72 | 9.64 |
| + Ours (Maximin) | 52.79±0.22 | 6.97±0.23 | 33.73±0.79 | 9.72±1.34 | 9.68±0.21 | 14.45±0.23 | 32.07 | 10.38 |
Table 25: Comparative-advantage functions on DeepSeek-Math-RL-7B. We expand Tab. 2 using the same coefficients (Sec. G.11). Voting denotes the default voting-weighted comparative advantage and + Ours denotes the scaled PGLA variants described in Sec. G.11.
| Method | MATH | MathOdyssey | AIME | Average | ||||
|---|---|---|---|---|---|---|---|---|
| Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | |
| DeepSeek-Math-RL-7B | ||||||||
| PPL | 42.50±0.23 | 53.84±0.23 | 22.34±1.00 | 73.85±0.99 | 3.37±0.46 | 93.38±0.46 | 22.74 | 73.69 |
| SC | 53.33±0.08 | 6.43±0.11 | 36.57±0.56 | 9.40±1.21 | 9.42±0.23 | 12.12±0.26 | 33.11 | 9.32 |
| + Ours (voting) | 53.52±0.10 | 6.86±0.09 | 37.87±0.55 | 9.31±0.95 | 10.02±0.23 | 10.88±0.25 | 33.80 | 9.02 |
| + Ours (Uniform) | 53.49±0.11 | 6.57±0.09 | 37.51±0.64 | 9.24±0.76 | 9.99±0.22 | 10.78±0.20 | 33.66 | 8.87 |
| + Ours (Copeland) | 53.30±0.16 | 7.17±0.14 | 38.12±0.55 | 8.12±0.87 | 9.90±0.25 | 11.20±0.23 | 33.78 | 8.83 |
| + Ours (Maximin) | 53.38±0.15 | 6.56±0.15 | 37.10±0.48 | 9.29±1.27 | 9.26±0.25 | 11.99±0.27 | 33.25 | 9.28 |
| Weighted SC | 53.35±0.09 | 6.43±0.10 | 36.68±0.61 | 9.55±1.31 | 9.43±0.31 | 12.10±0.34 | 33.16 | 9.36 |
| + Ours (voting) | 53.53±0.10 | 6.84±0.09 | 37.94±0.58 | 9.53±0.79 | 10.00±0.24 | 10.84±0.25 | 33.83 | 9.07 |
| + Ours (Uniform) | 53.48±0.10 | 6.59±0.07 | 37.56±0.69 | 9.05±0.83 | 9.98±0.21 | 10.75±0.17 | 33.67 | 8.80 |
| + Ours (Copeland) | 53.30±0.18 | 7.17±0.17 | 38.20±0.60 | 8.14±0.92 | 9.92±0.30 | 11.15±0.28 | 33.81 | 8.82 |
| + Ours (Maximin) | 53.40±0.17 | 6.54±0.18 | 37.12±0.53 | 9.32±1.19 | 9.31±0.30 | 11.92±0.33 | 33.28 | 9.26 |
| Adaptive SC | 53.28±0.09 | 10.01±0.14 | 36.30±0.58 | 13.25±1.14 | 9.36±0.22 | 14.88±0.41 | 32.98 | 12.71 |
| + Ours (voting) | 53.44±0.16 | 10.10±0.15 | 36.27±0.80 | 12.33±0.87 | 9.92±0.23 | 13.31±0.49 | 33.21 | 11.91 |
| + Ours (Uniform) | 53.41±0.15 | 9.88±0.15 | 36.22±0.87 | 12.47±1.62 | 9.79±0.22 | 13.20±0.51 | 33.14 | 11.85 |
| + Ours (Copeland) | 53.09±0.17 | 10.45±0.25 | 33.57±1.11 | 14.89±1.22 | 9.54±0.25 | 13.93±0.44 | 32.07 | 13.09 |
| + Ours (Maximin) | 53.29±0.15 | 9.85±0.23 | 34.58±0.86 | 13.50±0.95 | 8.43±0.52 | 14.93±0.66 | 32.10 | 12.76 |
| RPC | 53.36±0.11 | 6.47±0.12 | 37.12±0.61 | 9.54±1.54 | 9.51±0.28 | 11.94±0.32 | 33.33 | 9.32 |
| + Ours (voting) | 53.52±0.11 | 6.85±0.10 | 38.10±0.61 | 8.89±0.76 | 10.01±0.26 | 10.44±0.29 | 33.88 | 8.73 |
| + Ours (Uniform) | 53.48±0.10 | 6.60±0.09 | 38.12±0.65 | 8.17±0.93 | 10.02±0.27 | 10.36±0.34 | 33.87 | 8.38 |
| + Ours (Copeland) | 53.31±0.18 | 7.16±0.17 | 38.07±0.68 | 7.62±0.81 | 9.99±0.36 | 10.90±0.34 | 33.79 | 8.56 |
| + Ours (Maximin) | 53.40±0.18 | 6.57±0.18 | 37.48±0.73 | 9.19±1.17 | 9.34±0.28 | 11.85±0.33 | 33.41 | 9.20 |
Computational Overhead
Complexity. Let be the number of sampled paths, the number of candidate answers, and . Given answer groups and confidence scores, accumulating voting support requires time. Directly evaluating the pairwise correction in Eqs. (6) and (7) takes time. The number of unordered cross-answer path pairs is . At our experimental budgets , this is at most 496, 2,016, and 8,128 scalar comparisons, respectively. The final score adjustment in Eq. (10) is computed in closed form in time, without iterative optimization.
Impact on inference time. Pairwise comparisons reuse the scalar confidence scores of the sampled paths; they require neither additional reasoning paths nor per-pair LLM or verifier calls. Even direct evaluation has a reported median aggregation latency below 0.109 ms per query on the real candidate pools in Tab. 26. For context, the Qwen3-4B/AIME 2024 pools contain approximately generated tokens per pool on average. Relative to this GPU-based autoregressive generation workload, sub-millisecond CPU post-processing is expected to have a negligible effect on total inference time. This assessment concerns aggregation given available scores; separate confidence-model inference is not included, and we do not infer a measured end-to-end latency percentage from these timings.
Exact acceleration. To further reduce aggregation latency as the candidate pool grows, we implement an exact sorting-and-prefix-sum evaluation of the default voting-weighted correction. Define
Within-answer signed comparisons cancel because all paths in the same group have the same comparison weight , yielding the exact identity above. We sort confidence scores once and collect equal scores into blocks. Prefix and suffix sums of block weights give the total weights below and above each block, hence every ; ties contribute zero. A final group-wise reduction computes the correction and adjusted scores. A zero denominator gives zero correction, as in Sec. D. This implementation takes time and working memory, avoiding a dense pairwise matrix while preserving the original aggregation rule.
Measured implementation cost. We compare two different implementations of PGLA with identical confidence-weighted voting support on the same device. Direct evaluation constructs a dense path-comparison array; the accelerated implementation uses Eq. (33). We use 300 cached Qwen3-4B/AIME 2024 pools with DeepConf () and 1,000 InternLM2-Math-Plus-1.8B pools each from MATH () and MathOdyssey (), with inverse-perplexity weights. At , sorting reduces the reported median aggregation time from 108.3 to 60.3 s, a speedup over direct evaluation. For and 64, the vectorized direct implementation remains faster because of its lower fixed cost. Thus sorting improves scalability and the measured latency at the largest experimental budget, while direct evaluation remains efficient for smaller pools.
Table 26: CPU aggregation latency of two exact PGLA implementations (s per query), measured on real cached candidate pools. Both use identical inputs and confidence-weighted voting support.
| Implementation | AIME 2024 | MATH | MathOdyssey |
|---|---|---|---|
| Direct pairwise evaluation | 29.7 | 48.9 | 108.3 |
| Exact sorting + prefix sums | 53.4 | 57.4 | 60.3 |
Connection to Rank-Based Borda Aggregation
Under SC, PGLA admits an exact rank representation. Let , let be the ascending confidence rank of path (averaged for ties), and define . Rank-based Borda assigns answer the score .
Proposition G.1 (Rank representation under SC). For the SC base and at least two observed answer groups, the correction in Eq. (7) satisfies
Consequently, SC-PGLA selects the answer maximizing .
Proof. Under SC, the correction averages all signed cross-group comparisons. Summing the rank identity over , canceling within-group terms by antisymmetry, and dividing by gives Eq. (34). The selection rule follows from Eq. (10).
Proposition G.1 makes the connection to rank-based voting precise. Under SC, both Borda and SC-PGLA use the same path-confidence ordering, but they aggregate it differently. With , Borda sums ranks as , whereas SC-PGLA selects by . The latter treats the ordering as a bounded cross-answer comparative correction while retaining voting support as a separate term. In particular, an answer with can overtake only if . Thus, reversing a larger vote margin requires stronger comparative evidence. The rank identity in Eq. (34). is specific to SC; Eq. (7) also combines pairwise comparisons with confidence-weighted and externally scored voting support. The KL solution provides the mechanism for this combination, while the aggregation rule is determined by how the comparative evidence is constructed and weighted.
To test whether PGLA can also enhance Borda itself, we use in Eqs. (7) and (10), including the opponent weights. Tabs. 27 and 28 compare SC and Borda with their PGLA-adjusted counterparts on the same sampled subsets.
Borda improves over SC on average, showing that confidence ordering can help correct voting-based selection errors. More importantly, applying PGLA directly to Borda raises macro-average accuracy from 59.17% to 61.21% on Qwen's AIME24 and HMMT25 comparisons, and from 25.89% to 27.76% across the six InternLM settings. These paired comparisons support explicit answer-level preference modeling as a way to further refine rank-based voting on the evaluated settings.
Table 27: Qwen3 reasoning-mode accuracy on AIME24 and HMMT25 (%; ).
| Method | Qwen3-1.7B | Qwen3-4B | Avg. results | ||
|---|---|---|---|---|---|
| AIME24 | HMMT25 | AIME24 | HMMT25 | ||
| DeepConf | |||||
| SC | |||||
| SC-PGLA | |||||
| Borda | |||||
| Borda+PGLA | |||||
| Self-Certainty | |||||
| SC | |||||
| SC-PGLA | |||||
| Borda | |||||
| Borda+PGLA | |||||
Table 28: InternLM2-Math-Plus accuracy (%; PPL ordering), with for MATH and otherwise.
| Method | InternLM2-Math-Plus-1.8B | InternLM2-Math-Plus-7B | Avg. results | ||||
|---|---|---|---|---|---|---|---|
| MATH | MathOdyssey | AIME | MATH | MathOdyssey | AIME | ||
| SC | |||||||
| SC-PGLA | |||||||
| Borda | |||||||
| Borda+PGLA | |||||||
Impact Statement
PGLA aims to make LLM reasoning more accurate and efficient by improving how sampled responses are aggregated. The observed gains in mathematical reasoning, knowledge reasoning, and code generation may benefit applications in problem solving and software development, while the online extension can reduce the number of sampled responses needed. These benefits do not eliminate errors or biases in the underlying models or confidence signals. In particular, agreement among sampled responses is not a guarantee of correctness, and stronger capabilities in reasoning and code generation may also facilitate misuse. Deployment should therefore include evaluation in the intended setting, appropriate safeguards, and human oversight for consequential decisions.
AI Use Statement
In this work, we used LLMs to generate the sampled responses evaluated in our test-time scaling experiments, and process reward models to score reasoning steps in the external-reward setting, as described in Sec. 4.1. Generative AI tools assisted with implementation and debugging, checks of mathematical notation and derivations, interpretation and presentation of experimental results, and manuscript drafting, language editing, and LATEX formatting. AI assistance was also used to create parts of the illustrations, including the voting-game illustration in Fig. 1. The authors reviewed and revised AI-assisted manuscript content and take responsibility for the final text, claims, experimental results, code, and figures.