$f$-GRPO and Beyond: Divergence-Based Reinforcement Learning Algorithms for General LLM Alignment
Rajdeep Haldar, Lantao Mei, Guang Lin, Yue Xing, Qifan Song
TL;DR
This work develops a unified divergence-based viewpoint for general LLM alignment that spans both verifiable-reward reinforcement learning (RLVR) and preference alignment (PA). It introduces on-policy f-GRPO and hybrid f-HAL losses derived from $f$-divergences, with theoretical guarantees of alignment consistency and average reward improvement. Through extensive experiments on Math Reasoning (RLVR) and Safety Alignment (PA), the framework demonstrates improved performance, robustness, and flexibility over existing methods, while mitigating reward hacking via hybrid objective design. The approach provides a practical, principled foundation for integrating on-policy reinforcement signals and offline preference data in a single, transferable RL framework. Overall, divergence estimation serves as a unifying tool for general LLM alignment with strong theoretical and empirical support.</nobr>
Abstract
Recent research shows that Preference Alignment (PA) objectives act as divergence estimators between aligned (chosen) and unaligned (rejected) response distributions. In this work, we extend this divergence-based perspective to general alignment settings, such as reinforcement learning with verifiable rewards (RLVR), where only environmental rewards are available. Within this unified framework, we propose $f$-Group Relative Policy Optimization ($f$-GRPO), a class of on-policy reinforcement learning, and $f$-Hybrid Alignment Loss ($f$-HAL), a hybrid on/off policy objectives, for general LLM alignment based on variational representation of $f$-divergences. We provide theoretical guarantees that these classes of objectives improve the average reward after alignment. Empirically, we validate our framework on both RLVR (Math Reasoning) and PA tasks (Safety Alignment), demonstrating superior performance and flexibility compared to current methods.
