TL;DR
Standard RLHF alignment often produces brittle Large Language Model (LLM) policies that easily lose their safety guardrails or prior capabilities during downstream fine-tuning. To fix this, the authors introduce Fine-tuning Robust Policy Optimization (FRPO), a framework that optimizes for "reward flatness" within a KL-bounded neighborhood of potential downstream policies. FRPO prevents catastrophic forgetting without adding any computational overhead during training.
What Problem Does This Paper Address?
When an LLM undergoes multi-stage post-training—such as being aligned for safety via Reinforcement Learning from Human Feedback (RLHF) and then fine-tuned on a downstream task like mathematical reasoning—it frequently suffers from catastrophic forgetting. For instance, a model fine-tuned to solve math problems can completely lose its safety guardrails, a vulnerability that malicious actors can exploit.
Most existing solutions try to mitigate this at downstream time using techniques like data rehearsal, parameter-efficient fine-tuning (PEFT/LoRA), or model merging. However, these methods assume downstream developers will strictly follow specific training recipes.
This paper shifts the responsibility to the upstream alignment phase. The authors argue that standard RLHF objectives optimize only for the current policy, inadvertently steering the model toward brittle, high-reward "sharp peaks" in the policy space. Even a minor policy shift during subsequent fine-tuning can cause the model's performance on the original objective to plummet.
Methods
The authors propose Fine-tuning Robust Policy Optimization (FRPO). Instead of maximizing expected reward solely at the current policy, FRPO uses a max-min formulation to maximize the minimum reward across a KL-bounded neighborhood of all reachable downstream policies.
By deriving the mathematical dual of this optimization problem, they show that this robustness criterion is equivalent to optimizing an entropic-risk objective. This objective naturally penalizes low-reward trajectories and discourages policies with high reward variance.
To implement this efficiently, they modify Group Relative Policy Optimization (GRPO):
- Algorithmic Integration: They swap standard rewards with group-relative advantages in the entropic objective.
- Variance Reduction: They introduce a baseline drift-canceling term to stabilize training when the risk-sensitivity parameter ($\lambda$) is large.
- Bias Correction: They apply the jackknife technique (a leave-one-out resampling method) to eliminate the $O(1/G)$ estimation bias introduced by Monte Carlo approximations of the log-partition function.
Crucially, FRPO achieves this pre-finetuning robustness with zero extra computational cost relative to standard GRPO.
Datasets
The authors evaluated FRPO across two distinct multi-stage training scenarios:
- Safety Alignment $\rightarrow$ Downstream Fine-tuning:
- Safety Training: 1,000 harmful prompts (sourced from WildJailbreak, Aegis AI, and RainbowTeaming) and 1,000 harmless prompts (from OR-Bench to prevent over-refusal).
- Downstream Tasks: Instruction-tuning on Alpaca, math fine-tuning on GSM8K, and preference optimization on UltraFeedback.
- Evaluation Benchmarks: HarmBench (refusal rates) and StrongREJECT (harmfulness scores).
- Math Training $\rightarrow$ Coding Fine-tuning:
- Math Training: MATH dataset (Levels 3–5).
- Downstream Task: Code generation using 25k samples from OpenCodeInstruct.
- Evaluation Benchmarks: MATH500 and MBPP+.
Key Insights and Ideas
- Policy Space vs. Parameter Space: Unlike Sharpness-Aware Minimization (SAM), which seeks flat minima in the parameter space, FRPO optimizes for flatness directly in the policy (output distribution) space. This prevents the model from being distracted by parameter perturbations that don't actually alter text generation behavior.
- The Universal 0.3 KL Boundary: Empirically, across various model sizes (from 3B to 32B parameters), downstream fine-tuning consistently triggers overfitting and capability collapse right around a per-token KL divergence of $\sim0.3$ from the base policy. This justifies modeling downstream adaptation within a tight, predictable KL ball.
Key Results
- Preserving Safety Guardrails: When Mistral and Qwen models were fine-tuned on GSM8K, standard GRPO alignment degraded rapidly. FRPO ($\lambda=0.2$) successfully arrested this decline, maintaining significantly higher refusal rates on HarmBench and lower harmfulness scores on StrongREJECT.
- Continual Learning Success: In the Math-to-Coding experiment, models trained with standard GRPO saw their MATH500 accuracy drop from 73.0% down to 42.3% after coding fine-tuning. FRPO ($\lambda=2.0$) preserved an accuracy of 64.5%—a 22% absolute improvement over GRPO—while matching the exact same performance gains on the downstream coding task (MBPP+).
- No Downstream Penalty: Testing on IFEval and MMLU confirmed that FRPO's robust upstream initialization does not hinder the model's capacity to learn new downstream tasks.
Limitations and Future Work
- KL-Ball Assumption: FRPO assumes that downstream fine-tuning will stay within a moderate KL neighborhood (e.g., via standard learning rates or LoRA). If a downstream developer applies highly aggressive, unconstrained fine-tuning, the implicit boundaries of the max-min formulation may break down.
- Scope of Post-Training: The current framework is designed for RLHF/post-training stages. The authors note that extending the principle of "designing for future adaptation" to the initial pre-training or supervised fine-tuning (SFT) stages remains an open and promising direction.
Summary updated