Learning Generative Selection for Best-of-N
Shubham Toshniwal, Aleksander Ficek, Siddhartha Jain, Wei Du, Vahid Noroozi, Sadegh Mahdavi, Somshubra Majumdar, Igor Gitman
TL;DR
This work demonstrates that small reasoning models can learn effective generative Best-of-$N$ selection through on-policy reinforcement learning, substantially improving GenSelect performance over prompting and majority voting. By constructing math and code selection tasks with automatic verifiers and nontrivial difficulty, the authors train 1.7B models with the DAPO algorithm that rival much larger models and generalize to higher-quality candidate outputs. The results show larger gains in math than in code and reveal cross-domain transfer when training on math data. Overall, reinforcement learning provides a scalable pathway for strong generative selection, enabling more efficient test-time scaling for reasoning tasks.
Abstract
Scaling test-time compute via parallel sampling can substantially improve LLM reasoning, but is often limited by Best-of-N selection quality. Generative selection methods, such as GenSelect, address this bottleneck, yet strong selection performance remains largely limited to large models. We show that small reasoning models can acquire strong GenSelect capabilities through targeted reinforcement learning. To this end, we synthesize selection tasks from large-scale math and code instruction datasets by filtering to instances with both correct and incorrect candidate solutions, and train 1.7B-parameter models with DAPO to reward correct selections. Across math (AIME24, AIME25, HMMT25) and code (LiveCodeBench) reasoning benchmarks, our models consistently outperform prompting and majority-voting baselines, often approaching or exceeding much larger models. Moreover, these gains generalize to selecting outputs from stronger models despite training only on outputs from weaker models. Overall, our results establish reinforcement learning as a scalable way to unlock strong generative selection in small models, enabling efficient test-time scaling.
