SetPO: Set-Level Policy Optimization for Diversity-Preserving LLM Reasoning
Chenyi Li, Yuan Zhang, Bo Wang, Guoqing Ma, Wei Tang, Haoyang Huang, Nan Duan
TL;DR
SetPO introduces a set-level diversity objective for large language model reasoning by computing a kernelized semantic diversity measure over grouped rollouts. Each trajectory receives a leave-one-out marginal credit that captures its contribution to the batch's diversity, which is added to the standard group-based policy optimization objective with a tunable weight. The authors prove, via a diversity influence function and a precise s_i decomposition, that rarer trajectories yield larger diversity gains and that the marginal contribution is anti-redundant. Empirically, SetPO consistently improves Pass@1 and Pass@K across model scales from 1.5B to 32B on diverse math benchmarks while increasing diversity scores and maintaining modest compute overhead, demonstrating both effectiveness and robustness.
Abstract
Reinforcement learning with verifiable rewards has shown notable effectiveness in enhancing large language models (LLMs) reasoning performance, especially in mathematics tasks. However, such improvements often come with reduced outcome diversity, where the model concentrates probability mass on a narrow set of solutions. Motivated by diminishing-returns principles, we introduce a set level diversity objective defined over sampled trajectories using kernelized similarity. Our approach derives a leave-one-out marginal contribution for each sampled trajectory and integrates this objective as a plug-in advantage shaping term for policy optimization. We further investigate the contribution of a single trajectory to language model diversity within a distribution perturbation framework. This analysis theoretically confirms a monotonicity property, proving that rarer trajectories yield consistently higher marginal contributions to the global diversity. Extensive experiments across a range of model scales demonstrate the effectiveness of our proposed algorithm, consistently outperforming strong baselines in both Pass@1 and Pass@K across various benchmarks.
