Modern Preference Alignment & Reasoning RL algorithms—Direct Preference Optimization (DPO) vs Group Relative Policy Optimization (GRPO)—govern safety alignment and advanced logical reasoning in LLMs; 1) DPO: mathematically bypasses explicit Reward Model fitting and PPO loops by expressing optimal rewards directly via the policy ratio under the Bradley-Terry preference model, yielding a closed-form binary cross-entropy loss over
(x,yw,yl):
LDPO(θ)=−E[lnσ(βlnπref(yw∣x)πθ(yw∣x)−βlnπref(yl∣x)πθ(yl∣x))]; 2) GRPO (Group Relative Policy Optimization, pioneered by DeepSeek-Math/R1): discards the memory-heavy Critic value model entirely, sampling a group of
G outputs per prompt and standardizing relative advantages
Ai=std({r})ri−mean({r}) within the cohort, slashing RL VRAM by 50% for long-chain reasoning tasks.