GenSelect: A Generative Approach to Best-of-N

Shubham Toshniwal, Ivan Sorokin, Aleksander Ficek, Ivan Moshkov, Igor Gitman · DOI

Abstract

Test-time scaling via "Best-of-$N$" (BoN) sampling has emerged as a primary method for enhancing the reasoning capabilities of Large Language Models (LLMs). However, traditional selection strategies—pointwise reward modeling and pairwise comparisons—often struggle with either shallow evaluation or prohibitive computational costs. This paper introduces GenSelect, an $N$-ary selection strategy that enables models to evaluate multiple candidate solutions simultaneously. By leveraging structured reasoning prompts and solution summarization, GenSelect achieves significant accuracy gains on high-level mathematics benchmarks while optimizing for inference efficiency.

Introduction

In the pursuit of improved reasoning, researchers have increasingly turned to test-time scaling: generating multiple independent candidate solutions and selecting the optimal one. Current selection methods generally fall into two categories:

  1. Pointwise Evaluation: A reward model scores each solution in isolation. While fast, this "shallow" approach prevents the model from comparing candidates to identify subtle logical discrepancies.
  2. Pairwise Comparison: A model compares solutions in pairs. While this leverages the comparative strengths of LLMs, it scales poorly ($O(N^2)$ or $O(N)$ with high latency), making it impractical for large sampling budgets.

GenSelect addresses these limitations by shifting the paradigm to $N$-ary selection, allowing the model to view and evaluate all $N$ solutions within a single context window.

Methodology: $N$-ary Generative Selection

GenSelect utilizes the long-reasoning capabilities of modern LLMs to perform a holistic evaluation of candidate solutions. The core of the method is a structured prompt that guides the LLM through a systematic verification process.

The GenSelect Prompt

The evaluation process is designed to mimic a rigorous peer-review cycle, instructing the model to group solutions by final answers, identify contradictions, and perform a detailed analysis of the remaining viable paths.

The GenRM evaluation prompt used for N-ary selection, detailing the systematic verification process.

Efficiency via Summarization and Tournaments

To manage context window constraints, GenSelect employs Solution Summarization, which removes internal "thinking" traces (backtracking, self-corrections) to retain only the final logical path. For large budgets (e.g., $N=64$), the authors implement $N$-ary Knockout Tournaments. By comparing 16 solutions at a time, the model can rank 64 candidates in just two rounds, significantly reducing sequential latency compared to standard binary tournaments.

Experimental Setup

The researchers evaluated GenSelect on the Comp-Math-24-25 benchmark, a combined dataset of 256 competition-level problems from the American Invitational Mathematics Examination (AIME) 2024/2025 and the Harvard-MIT Mathematics Tournaments (HMMT) 2024/2025. This high-difficulty dataset provides a more robust evaluation environment than smaller, single-source benchmarks.

Results and Discussion

GenSelect was tested using QwQ-32B and DeepSeek-R1-0528 as both generators and judges. The results demonstrate a clear advantage over traditional selection methods.

Performance Gains

On the Comp-Math-24-25 benchmark, QwQ with GenSelect achieved 73.4% accuracy, significantly outperforming Majority Voting (68.4%) and standard Pointwise GenRM (69.1%). When applied to DeepSeek-R1, GenSelect pushed the aggregate accuracy from 84.0% (majority voting) to 87.1%.

Comparison of GenSelect accuracy against standard Best-of-N methods like Majority Voting and Pointwise Reward Models.

Scaling and Compute Efficiency

A key insight is the "compute sweet spot." For powerful models like DeepSeek-R1, once a base set of solutions is generated, it is more efficient to allocate remaining compute to a GenSelect "judge" rather than generating more candidates. Furthermore, GenSelect's performance remains stable across different values of $N$ (2, 4, 8, or 16), proving its robustness as a selection mechanism.

Conclusion

GenSelect demonstrates that modern reasoning models are "out-of-the-box" experts at comparative selection. By moving to $N$-ary evaluation, researchers can achieve state-of-the-art results on complex reasoning tasks with greater efficiency. Future work will explore the application of GenSelect to other domains such as coding and legal reasoning.

Summary updated

BibTeX
@inproceedings{toshniwal2025genselect,
  author = {Shubham Toshniwal and Ivan Sorokin and Aleksander Ficek and Ivan Moshkov and Igor Gitman},
  title = {{GenSelect: A Generative Approach to Best-of-N}},
  booktitle = {AI4MATH @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=8LhnmNmUDb},
}
Figure