Compare to Correct: Pairwise-Guided Logit Adjustment for LLM Test-Time Scaling

Cong Hua, Qianqian Xu, Zitai Wang, Zhiyong Yang, Shilong Bao, Linchao Zhang, Qingming HuangarXiv 2026

TL;DR

Pairwise-Guided Logit Adjustment (PGLA) is a new framework that improves LLM reasoning by borrowing a page from social choice theory. Instead of just counting votes or picking the most confident reasoning path, PGLA performs pairwise "tournaments" between competing answers to identify the most robust winner, leading to consistent accuracy gains across math, code, and logic benchmarks.

What Problem Does This Paper Address?

When we ask a Large Language Model (LLM) a complex reasoning question, we often use "test-time scaling"—generating multiple reasoning paths (sampling) and then aggregating them to find the best answer.

The two standard ways to do this have known flaws:

  1. Majority Voting (Self-Consistency): Simply picks the most frequent answer. This can fail if the model generates many "confidently wrong" paths that happen to arrive at the same incorrect result.
  2. Best-of-N Selection: Picks the answer from the single path with the highest confidence score. This is fragile because one "lucky" high-confidence outlier can lead the model astray.

The authors identify that these methods only look at "within-answer" evidence. They ignore how paths for Answer A compare directly to paths for Answer B. In the language of social choice theory, a "plurality winner" (most votes) isn't always the "Condorcet winner" (the one who beats every other candidate in a head-to-head matchup).

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.

Methods

The researchers introduce Pairwise-Guided Logit Adjustment (PGLA). The core idea is to treat the aggregation process like a round-robin tournament.

  1. Pairwise Comparisons: For every pair of unique answers (say, A and B), PGLA compares the confidence scores of all paths leading to A against all paths leading to B. It calculates a "comparative advantage" score based on how often paths for one answer outrank paths for the other.
  2. KL-Regularized Objective: They don't just throw away the original votes. Instead, they use a mathematical framework (KL-regularization) to balance this new "comparative advantage" against the original voting distribution.
  3. Logit Adjustment: Theoretically, they prove that the optimal solution to this balance is a simple, "plug-and-play" adjustment to the model's output logits: $$\text{Adjusted Logit} = \text{Original Logit} + \text{Comparative Advantage}$$

This allows the comparative evidence to "correct" the ranking when the voting support is weak or misleading.

Figure 2: Path-answer evidence and its aggregation. The three methods use each block’s maximum confidence, size, or confidence-based contributions.

Datasets

The authors evaluated PGLA across 10 diverse and challenging benchmarks:

  • Mathematics: AIME 2024, AIME 2025, HMMT 2025, MATH, and MathOdyssey.
  • Knowledge/Science: GPQA-Diamond (graduate-level STEM questions).
  • Code Generation: HumanEval, MBPP, and LiveCodeBench V6.
  • Strengthened Tests: HumanEval+ and MBPP+ for more rigorous code verification.

They tested these on 7 different models from the Qwen3, DeepSeek, and InternLM families, ranging from 1.7B to 32B parameters.

Key Insights and Ideas

  • The "Off-Diagonal" Matters: Traditional methods only look at the diagonal blocks of a path-answer matrix (evidence for an answer from its own paths). PGLA looks at the "off-diagonal" entries—the direct comparisons between paths of different answers.
  • Correcting "Case II" Errors: The authors highlight "Case II" errors, where an incorrect answer has more votes but lower path-level confidence than a correct answer. They found that 69.87% to 91.62% of recoverable majority-voting errors fall into this category, which PGLA is specifically designed to fix.
  • Social Choice Synergy: The Condorcet principle from 18th-century voting theory turns out to be a powerful tool for modern AI. It provides a more nuanced way to aggregate "preferences" (reasoning paths) than simple counting.
  • Efficiency Gains: PGLA isn't just more accurate; it's more efficient. Their "Online PGLA" extension can stop sampling early once the pairwise winner stabilizes, reducing computation costs by up to 73% while still beating full-budget majority voting.

Key Results

  • Consistent Accuracy Boost: PGLA achieved an average accuracy gain of approximately 2% over standard voting baselines across 33 different model-benchmark settings.
  • Significant Math Improvements: On the difficult AIME24 benchmark, PGLA improved the accuracy of Qwen3-8B by 4.61%.
  • Better Calibration: It reduced the Expected Calibration Error (ECE) by an average of 1.42%, meaning the model's confidence scores became more representative of its actual accuracy.
  • Scalability: The benefits persisted as model size increased, showing strong results even on the 32B parameter Qwen3 model.
  • Versatility: It works equally well with internal model confidence (like perplexity) and external reward models (like Process Reward Models or PRMs).

Limitations and Future Work

  • Dependence on Confidence Quality: PGLA relies on the model's ability to produce meaningful confidence scores. If a model is completely "delusional" and assigns high confidence to nonsense, pairwise comparisons won't help.
  • Computational Overhead: While the logit adjustment is a simple addition, calculating the pairwise matrix for a very large number of unique answers could become expensive (though the authors provide an optimized $O(K \log K)$ algorithm to mitigate this).
  • Future Directions: The authors suggest exploring more complex "social choice" rules beyond the ones tested and investigating how this pairwise approach could be integrated directly into the training process (RLHF) rather than just at inference time.

Summary updated

BibTeX
@misc{hua2026compare,
  author = {Cong Hua and Qianqian Xu and Zitai Wang and Zhiyong Yang and Shilong Bao and Linchao Zhang and Qingming Huang},
  title = {{Compare to Correct: Pairwise-Guided Logit Adjustment for LLM Test-Time Scaling}},
  year = {2026},
  eprint = {2610.18583},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.18583},
}
Figure