English

RSPO: Risk-Seeking Policy Optimization for Pass@k and Max@k Metrics in Large Language Models

Machine Learning 2025-08-05 v1 Artificial Intelligence

Abstract

Current large language model post-training optimizes a risk-neutral objective that maximizes expected reward, yet evaluation relies heavily on risk-seeking metrics like Pass@k (at least one success in k trials) and Max@k (maximum reward across k responses). This mismatch in risk preferences can inevitably lead to suboptimal performance. To bridge this gap, we propose Risk-Seeking Policy Optimization (RSPO), a novel method that directly targets Pass@k and Max@k during training. A key challenge in optimizing these metrics is the "hitchhiking" problem: low-reward responses are inadvertently reinforced if they co-occur with a high-reward response within a sample of k generations, resulting in inefficient optimization. RSPO addresses this problem by leveraging the closed-form probability that a given response is the maximum among k samplings. Despite the complexity of nested gradients over multiple responses, RSPO produces efficient, unbiased gradient estimators for both metrics. We validate our approach with both rigorous theoretical analysis and comprehensive experimental results.

Keywords

Cite

@article{arxiv.2508.01174,
  title  = {RSPO: Risk-Seeking Policy Optimization for Pass@k and Max@k Metrics in Large Language Models},
  author = {Kaichen Zhang and Shenghao Gao and Yuzhong Hong and Haipeng Sun and Junwei Bao and Hongfei Jiang and Yang Song and Hong Dingqian and Hui Xiong},
  journal= {arXiv preprint arXiv:2508.01174},
  year   = {2025}
}