TL;DR
Supervised Fine-Tuning (SFT) often suffers from overfitting and weak out-of-domain generalization because it relies strictly on offline behavior cloning. Self-Rewarding PPO (SRPPO) introduces a simple, self-derived "coherent reward"—defined as the log-policy ratio between the SFT model and the pretrained base model—to run on-policy Proximal Policy Optimization (PPO) using demonstration data and unannotated prompts alone. By bridging SFT and on-policy RL without requiring human preference labels or an external reward model, SRPPO substantially improves alignment, task generalization, and data efficiency.
What Problem Does This Paper Address?
Aligning pretrained large language models (LLMs) typically follows a two-stage pipeline: supervised fine-tuning (SFT) on prompt-response demonstrations, followed by reinforcement learning from human feedback (RLHF) on pairwise preference annotations.
Standard SFT acts as behavior cloning: it maximizes the likelihood of demonstration tokens, making it prone to distribution shift and overfitting—especially with prolonged training or scarce data. Conversely, RLHF uses on-policy generation to explore dynamic response distributions, but collecting pairwise human preferences is expensive and training external reward models introduces risks like reward hacking and optimization instability. While self-play methods like SPIN attempt to bypass reward modeling via DPO, they rely on rigid assumptions (that human demonstrations are strictly superior to model generations) and cannot easily incorporate newly sourced, unannotated prompts.
The authors ask: Can we leverage on-policy reinforcement learning to improve demonstration-only alignment without requiring preference pairs or separate reward models?
Methods
SRPPO introduces a two-stage framework:
- Supervised Fine-Tuning: Fine-tune a base model $p_{\theta^{(\text{PT})}}$ on high-quality demonstration pairs $\mathcal{D} = \{(x, y)\}$ to obtain the initial aligned policy $p_{\theta^{(\text{SFT})}}$.
-
On-Policy RL with "Coherent Reward": Instead of training a separate reward model, SRPPO defines an implicit coherent reward using the log-likelihood ratio between the SFT model and the base model: $$\tilde{r}(x, y) = \log \frac{p_{\theta^{(\text{SFT})}}(y \mid x)}{p_{\theta^{(\text{PT})}}(y \mid x)}$$ This reward measures how strongly the SFT policy favors response $y$ over the original pretrained baseline, establishing a directional vector that reinforces alignment.
-
PPO Optimization on Novel Prompts: The model uses PPO to maximize this coherent reward over a set of prompts $\mathcal{P}$. Crucially, $\mathcal{P}$ can include diverse, unlabeled prompts that lack demonstration responses.
- Sequence-Level Reward Assignment: To avoid severe verbosity bias where every additional token accumulates positive reward, the entire sequence-level reward $\tilde{r}(x, y)$ is assigned exclusively to the final
[EOS]token.
Datasets
- Training Datasets:
- TULU-v2-mix: A diverse 326k-sample mixture used for baseline SFT.
- UltraFeedback: A 64k-prompt instruction and preference dataset. SRPPO uses UltraFeedback prompts during the PPO phase. In ablation setups ("medium" and "diminished" overlap), a 9k subset annotated by GPT-4 was mixed into SFT.
- Evaluation Benchmarks:
- IFEval: Evaluates instruction-following capability (Loose and Strict Accuracy).
- GSM8k: Tests 5-shot mathematical reasoning (Exact Match).
- GPQA: Graduate-level science reasoning (Chain-of-Thought and Direct Exact Match).
- AlpacaEval: Evaluates conversational win rate against GPT-4 (standard and length-controlled win rates).
Key Insights and Ideas
- The LLM Is Its Own Reward Function: By comparing token distributions against the pretrained base model, the SFT model acts as an implicit, self-contained evaluator. Because the reward model is the policy itself, it is directly sensitive to nuanced behavioral changes during on-policy rollout.
- Mitigating SFT Overfitting via New Prompts: Extended SFT often causes catastrophic forgetting or domain collapse (e.g., repeating epochs on conversational tasks degrades math reasoning). Because SRPPO requires only prompts during PPO, it can expose the model to new prompt distributions, preserving math skills while improving instruction following.
- Token-Level Rewards Cause Length Explosion: Assigning the log-density ratio per-token consistently rewarded longer outputs regardless of quality. Packaging the ratio into a single terminal reward at
[EOS]kept responses concise and coherent.
Key Results
Experiments on Mistral-7B and LLaMA-3-8B demonstrated broad performance gains over SFT and prior self-play techniques:
- Overall Improvements: On the minimal-overlap setup (SFT on TULU-v2-mix, PPO on UltraFeedback prompts):
- Mistral-7B: SRPPO achieved an average score of 32.43%, outperforming standard SFT (29.96%), extended SFT (24.22%), and SPIN (28.29%). AlpacaEval length-controlled win rate rose from 8.95% to 12.47%.
- LLaMA-3-8B: SRPPO achieved an average score of 31.17% (vs. 27.74% for SFT). IFEval loose accuracy surged from 28.42% to 41.49%, and GSM8k exact match improved from 47.69% to 51.10%.
- Avoiding Overfitting: While extended SFT (6 epochs) degraded GSM8k math accuracy (falling to 29.04% on Mistral-7B and 45.19% on LLaMA-3-8B), SRPPO avoided this degradation, maintaining or improving math reasoning while boosting instruction adherence.
- Beating External Reward Models: On LLaMA-3-8B, SRPPO outperformed PPO trained with an off-the-shelf external reward model (Fsfairx-LLAMA3-RM), which only achieved a 31.06% loose accuracy on IFEval compared to SRPPO’s 41.49%.
Limitations and Future Work
- Dependence on Base Model & SFT Quality: The coherent reward hinges on the generalization capabilities of both the pretrained model and the SFT checkpoint. Experiments with smaller models (e.g., Phi-2) showed that weak base representations restrict out-of-distribution reward quality.
- Credit Assignment: Currently, rewards must be tied entirely to the terminal
[EOS]token to prevent verbosity degradation. Developing principled dense, token-level credit assignment without length exploitation remains an open challenge. - Broader Optimization Frameworks: The authors note that the coherent reward can be extended to alternative on-policy RL algorithms (e.g., GRPO, RLOO, REINFORCE) or used offline as a quality filter for SFT data selection.
Summary updated