Enhancing Reinforcement Learning Fine-Tuning with an Online Refiner
Organizations: School of Artificial Intelligence, University of Chinese Academy of Sciences · Institute of Automation, Chinese Academy of Sciences
Abstract
Constraints are essential for stabilizing reinforcement learning fine-tuning (RFT) and preventing degenerate outputs, yet they inherently conflict with the optimization objective because stronger constraints limit the ability of a fine-tuned model to discover better solutions. We propose dynamic constraints that resolve this tension by adapting to the evolving capabilities of the fine-tuned model based on the insight that constraints should only intervene when degenerate outputs occur. We implement this by using a reference model as an online refiner that takes the response from the fine-tuned model and generates a minimally corrected version which preserves correct content verbatim while fixing errors. A supervised fine-tuning loss then trains the fine-tuned model to produce the refined output. This mechanism yields a constraint that automatically strengthens or relaxes based on output quality. Experiments on dialogue and code generation show that dynamic constraints outperform both KL regularization and unconstrained baselines, achieving substantially higher task rewards while maintaining training stability.
Figures & tables
| Model | HumanEval | HumanEval+ | MBPP | MBPP+ | Avg. |
|---|---|---|---|---|---|
| Qwen2.5-Coder-1.5B-Instruct | 12.8 | 11.6 | 36.2 | 40.2 | 25.2 |
| DAPO | 18.0 (+40.6%) | 15.9 (+37.1%) | 39.4 (+8.8%) | 43.9 (+9.2%) | 29.3 (+16.3%) |
| Dynamic | 20.7 (+61.7%) | 19.9 (+71.6%) | 44.4 (+22.7%) | 46.8 (+16.4%) | 33.0 (+30.8%) |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Prompt-Collection-v0.1 | APPS |
|---|---|---|
| Actor Learning Rate | 1e-6 | 1e-6 |
| Critic Learning Rate | 9e-6 | 9e-6 |
| Epochs | 1 | 7 |
| PPO Epoch | 1 | 4 |
| Batch Size | 64 | 128 |
| Mini Batch Size | 16 | 16 |
| Hyperparameter | DAPO | Dynamic |
|---|---|---|
| Actor Learning Rate | 1e-6 | 1e-6 |
| Epochs | 5 | 5 |
| Batch Size | 64 | 64 |
| Mini Batch Size | 8 | 8 |
| Samples per Prompt | 8 | 8 |
| Iterations | 150 | 150 |
RL Fine-Tuning
Reinforcement learning fine-tuning adapts pretrained models and policies through task rewards, preference feedback, or environment interaction.
See all 230 papers