Source-linked AI summary

PairJudge RM: Perform Best-of-N Sampling with Knockout Tournament

Yantao Liu, Zijun Yao, Rui Min, Yixin Cao, Lei Hou, Juanzi Li

arXiv:2501.13007v2cs.CL

TL;DR

Reward models used in Best-of-N sampling can assign arbitrary and inconsistent scores. PairJudge RM instead judges candidate correctness pairwise in a knockout tournament. It outperforms baseline reward models on the evaluated benchmarks, with a reported 40% to 60% relative improvement on the top 50% challenging MATH-500 problems.

  • Problem

    Reward models can assign arbitrary and inconsistent scores, limiting their effectiveness for Best-of-N sampling.

    Source: §1 · p. 1
  • Method

    PairJudge RM uses chain-of-thought reasoning to judge two candidates' correctness simultaneously, and a knockout tournament iteratively eliminates incorrect candidates.

    Source: §1 · p. 1, §8 · p. 8
  • Results

    PairJudge RM significantly outperforms baseline reward models on MATH-500 and Olympiad Bench, with 40% to 60% relative improvement on the top 50% challenging MATH-500 problems.

    Source: §1 · p. 2
  • Takeaways & Limitations

    Pairwise comparison can distinguish candidates when a pointwise critic judges multiple solutions with different answers as correct.

    Source: §6.2 · p. 7

    The multiple rounds of pairwise verification are time-consuming and may not suit latency-sensitive applications.

    Source: Limitation · p. 9

Abstract

from arXiv · show

Best-of-N (BoN) sampling, a common strategy for test-time scaling of Large Language Models (LLMs), relies on reward models to select the best candidate solution from multiple generations. However, traditional reward models often assign arbitrary and inconsistent scores, limiting their effectiveness. To address this, we propose a Pairwise Judge Reward Model (PariJudge RM) combined with a knockout tournament for BoN sampling. Instead of assigning absolute scores, given one math problem, PariJudge RM judges two candidate solutions' correctness with chain-of-thought reasoning simultaneously. This approach eliminates the need for scoring and enables cross-validation of solutions through parallel judgment. In the knockout tournament, PariJudge RM conducts pairwise Judgment between candidate solutions and eliminates the incorrect ones iteratively. We construct PairJudge-432K, a large-scale dataset of 432K pairwise judgments derived from NumiaMath and annotated using \texttt{gemini-1.5-flash}, and train the PariJudge RM via supervised fine-tuning. Experiments on MATH-500 and the Olympiad Bench demonstrate significant improvements over baseline reward models. And a 40\% to 60\% relative improvement is achieved on the top 50\% challenging problems.

1 Introduction

Traditional reward models can assign arbitrary and inconsistent scores, limiting their usefulness for Best-of-N sampling. The paper proposes pairwise correctness judgments in a knockout tournament and reports improvements over baseline reward models.

1 Introduction

  • PairJudge RM judges two candidate solutions' correctness instead of assigning absolute scores, addressing the arbitrariness and inconsistency of reward-model scores.The approach is combined with a knockout tournament for Best-of-N sampling.Source: §1 · p. 1
  • PairJudge RM significantly outperforms baseline reward models on MATH-500 and Olympiad Bench, with 40% to 60% relative improvement on the top 50% challenging MATH-500 problems.The 40% to 60% comparison is against baseline models.Source: §1 · p. 2
  • PAIRJUDGE-432K contains 432K pairwise judgments derived from NumiaMath and annotated using gemini-1.5-flash.The dataset is used to train PairJudge RM via supervised fine-tuning.Source: §1 · p. 2

2 Preliminaries

Best-of-N sampling selects one candidate solution from an LLM's multiple generations using an external selection mechanism. The preliminaries describe outcome and process reward models as two such mechanisms.

2 Preliminaries

  • Best-of-N sampling selects the best of N candidate solutions for a math problem using an external selection mechanism.The preliminaries distinguish outcome and process reward models as the two types of reward models serving this role.Source: §2 · p. 2
  • An outcome reward model assigns each candidate a numerical score and selects the candidate with the highest score.It is typically trained on chosen and rejected response pairs to assign the chosen response a higher reward.Source: §2 · p. 2
  • A process reward model scores each reasoning step, averages those scores for the solution, and selects the solution with the highest score.It is typically trained to predict whether each reasoning step is correct or incorrect.Source: §2 · p. 3

3 PairJudge RM and Knockout

PairJudge RM evaluates two candidate solutions together, and a knockout tournament uses its judgments to select a final candidate.

3.1 Pairwise Judge Reward Model

  • PairJudge RM takes a math problem and two candidate solutions and judges whether each solution is correct.It generates chain-of-thought reasoning to verify both solutions before generating their correctness labels.Source: §3.1 · p. 3

3.2 Knockout Tournament

  • The tournament groups candidates sharing the same final answer into teams, then pairs candidates from different teams for matches.The tournament continues until one candidate remains or all candidates are from the same team.Source: §3.2 · p. 4
  • In each match, a candidate labeled correct advances; if both are labeled correct, one advances at random, and if both are incorrect, both are eliminated.The procedure returns the last remaining candidate as the best solution.Source: §3.2 · pp. 3–4

4 PAIRJUDGE-432K dataset collection

PAIRJUDGE-432K is a dataset of 432K annotated pairwise judgments for training PairJudge RM. Its collection pipeline formats math problems and candidate-solution pairs, then filters tournament judgments for correctness and instruction compliance.

4 PAIRJUDGE-432K dataset collection

  • PAIRJUDGE-432K contains 432K pairwise judgments derived from NumiaMath (LI et al., 2024) and annotated using gemini-1.5-flash.The judgments train PairJudge RM via supervised fine-tuning.Source: §4 · p. 4

4.1 Dataset Format

  • Each prompt pairs a math problem with two candidate solutions, and its completion gives chain-of-thought judgments and correctness labels for both.The training data uses a prompt-completion format suited to supervised fine-tuning.Source: §4.1 · p. 4

4.2 Math Problem Collection

  • NumiaMath problems with messy formatting, OCR errors, or missing answers were removed, as were multiple-choice, true/false, and proof problems.The stated reasons include avoiding random guessing on selected-answer questions and difficulty verifying proof solutions.Source: §4.2 · p. 4

4.3 Candidate Solution Generation

  • For each problem, 24 candidate solutions were generated with Llama-3.1-8B-Instruct using four-shot prompts, temperature 1.0, and top-p 0.5.The decoding settings were chosen to balance diversity and quality.Source: §4.3 · p. 4

4.4 Pairwise Judgment Annotation

  • The annotation pipeline retained correct pairwise judgments from 343K tournaments and filtered for instruction compliance, yielding 432K training samples.The tournaments recorded 2.2M comparisons; 1.3M correctly evaluated both solutions before the final filtering.Source: §4.4 · p. 4

5 Experiments

Experiments compare PairJudge RM with reward-model and voting baselines on MATH-500 and Olympiad Bench using three language models. PairJudge RM improves on the strongest non-majority baseline across both datasets, with larger relative gains on harder MATH-500 problems.

5 Experiments

  • The experiments assess PairJudge RM with a knockout tournament for Best-of-N sampling at test time.The section introduces the evaluation setup, results, and subsequent analysis.Source: §5 · pp. 4–5

5.1 Experimental Setup

  • The evaluation covers MATH-500 and Olympiad Bench with Llama-3.1-8B-Instruct, Llama-3.1-70B-Instruct, and Qwen2.5-7B-Instruct.Baselines include outcome and process reward models and majority voting.Source: §5.1 · pp. 5–6

5.2 Results

  • 6.7% on MATH-500 and 3.9% on Olympiad Bench are PairJudge RM’s average improvements over the strongest baseline model, excluding majority voting.The reported comparison spans datasets and generation models; Table 2 summarizes accuracy for Best-of-16, Best-of-32, and Best-of-64.Source: Table 2 · p. 5, §5.2 · p. 6

5.3 Difficulty Analysis

  • 40%–60% relative improvement over baseline models is reported for the hardest 50% of MATH-500 problems.Difficulty is the fraction of incorrect candidate answers, measured with 64 candidates; PairJudge RM outperforms baselines except on the easiest problems.Source: §5.3 · pp. 6–7, Figure 2 · p. 6

6 Comparison with Critic Model

PairJudge RM is compared with the Critic Model, which uses pointwise judgments, on correctness verification and Best-of-N sampling. The section reports stronger performance for PairJudge RM and describes why pairwise judgments fit tournament selection.

6.1 Comparison on Correctness Verification

  • PairJudge RM outperforms the Critic Model on correctness verification across both MATH-500 and Olympiad.Table 3 reports accuracy; the supplied text gives no numerical values.Source: §6.1 · p. 7, Table 3 · p. 7

6.2 Comparison on Best-of-N Sampling

  • Pairwise judgments directly compare candidates, whereas pointwise Critic Model judgments can leave the better of two solutions marked correct unresolved.The section identifies this difference as a challenge for using the Critic Model in Best-of-N sampling.Source: §6.2 · p. 7
  • The section describes majority voting after incorrect candidates are removed and probabilistic scoring that selects the candidate with the highest “correct” token probability.These are presented as two approaches for enabling Critic Model Best-of-N sampling.Source: §6.2 · pp. 7–8
  • PairJudge RM consistently outperforms the Critic Model on MATH-500 Best-of-N sampling.The evaluation reuses the models trained in Section 6.1 and uses the MATH-500 test split with Qwen-2.5-7B-Instruct candidate solutions.Source: §6.2 · p. 8
  • The Critic Model's probabilistic-score approach underperforms majority voting, and similarly correct solutions can receive scores of 0.0006 and 0.9999.The paper attributes the probabilistic-score result likely to highly polarized scores and notes robustness and stability issues.Source: §6.2 · p. 8, Figure 4 · p. 8

7 Related Work

Related work situates Best-of-N among test-time scaling approaches and contrasts PairJudge RM with reward and critic models. It distinguishes the paper's knockout method by its candidate grouping and generative pairwise judgments.

7.1 Test Time Scaling and Best-of-N Sampling

  • The knockout method groups candidates with identical answers to avoid unnecessary comparisons and uses generative chain-of-thought judgment rather than discriminative scoring.The passage contrasts this method with tournament-style selection previously introduced for instruction-following tasks.Source: §7.1 · p. 8

7.2 Reward Models and Critic Models

  • PairJudge RM judges two responses' correctness simultaneously with chain-of-thought reasoning, unlike pointwise Critic Models and numerically scoring reward models.The related-work discussion describes Best-of-N as generating N candidates and selecting the best via a reward model.Source: §7.2 · p. 8, §7.1 · p. 8

8 Conclusion

The conclusion presents PairJudge RM with a knockout tournament for Best-of-N sampling and reports a 432K pairwise-judgment training dataset. Experiments show improved benchmark performance over baseline reward models.

8 Conclusion

  • PairJudge RM uses chain-of-thought reasoning to evaluate two candidate solutions simultaneously, while the knockout tournament iteratively eliminates incorrect solutions through pairwise judgments.The approach is presented for Best-of-N sampling and is described as eliminating arbitrary scoring and enabling cross-validation.Source: §8 · p. 8
  • The authors create a 432K pairwise-judgment dataset to train PairJudge RM.The conclusion does not specify the dataset construction details in this passage.Source: §8 · p. 9
  • Experiments show PairJudge RM significantly outperforms baseline reward models in benchmark Best-of-N sampling.Source: §8 · p. 9

Limitation

The method's main stated limitation is inference time: selecting a candidate requires several rounds of pairwise verification, which may not suit latency-sensitive applications.

Limitation

  • Several rounds of pairwise verification make inference time-consuming and may make the method unsuitable for latency-sensitive applications.The authors note that independent verifications could be parallelized across multiple GPUs to speed inference.Source: Limitation · p. 9

Ethical Considerations

The work uses public datasets and pretrained models and involves no human subjects. The authors caution that pretrained-model hallucination and bias warrant care in real-world use, including checking students’ homework.

A Dataset Information

The appendices describe the evaluation datasets and computational setup, then outline possible extensions and supporting research artifacts. They also provide replication resources and materials for constructing and prompting the PairJudge RM.

A Dataset Information

  • MATH-500 contains 500 problems, Olympiad Bench contains 8,476 competition problems, and NuminaMath-CoT contains 860k math problems with chain-of-thought solutions.Source: A Dataset Information · p. 11

B Computational Resources

  • Training Qwen-2.5-7B-Instruct on PAIRJUDGE-432K used an 8-GPU H100 server for about 24 hours, while dataset construction incurred about $2,000 in Gemini API costs.Source: B Computational Resources · pp. 11–12

Application in Reinforcement Learning

  • The paper focuses on test-time Best-of-N sampling but proposes deriving reinforcement-learning reward signals from candidates’ knockout-tournament winning rates as future work.Source: Application in Reinforcement Learning · p. 12

Alternative Tournament Strategies

  • Knockout is chosen for its O(N) time complexity, while round-robin, Swiss-system, and double-elimination tournaments are noted as possible alternatives for future exploration.Source: Alternative Tournament Strategies · p. 12

D Potential Improvement

  • Potential improvements include a larger judge, more candidate-generation and annotation models to expand training data, and pairing the method with long-chain-of-thought models.Source: D Potential Improvement · p. 12

E Artifacts in Our Research

F Experiments Replication; G Prompt Templates; H Math Problem Filtering Criteria

Loading 2501.13007v2…