Abstract
Instruction Fine-Tuning (IFT) is essential for aligning Large Language Models (LLMs) with human intent, yet high-quality instruction datasets remain a significant bottleneck. Traditional methods rely on expensive human annotation or distillation from proprietary, closed-source models. We introduce REFINE-AF, a novel framework that enables small, open-source LLMs (7B–13B parameters) to autonomously generate and refine their own instruction-tuning data. By employing Reinforcement Learning from Automated Feedback (RLAF), REFINE-AF filters and improves self-generated examples, leading to significant performance gains on downstream tasks without external dependencies. Our evaluation on the SUPER-NI benchmark demonstrates that REFINE-AF improves performance in up to 66% of tasks compared to standard self-instruction baselines.
Introduction
To make an LLM follow complex instructions, researchers typically use Instruction Fine-Tuning. However, the scarcity of high-quality data presents two major challenges: the high cost of human labor and the dependency on proprietary APIs like GPT-4 for data distillation. Small, open-source models often struggle to generate their own training data because their raw outputs can be noisy or incoherent. REFINE-AF addresses this by using a "refinement" loop that leverages automated feedback to denoise and elevate the quality of model-generated instructions.
Methodology
The REFINE-AF framework consists of a three-stage pipeline designed to bootstrap high-quality data from a minimal human-written seed.
- Stage 1: Instruction Generation: Starting with 175 human-written seed tasks, the model uses in-context learning to generate new instructions. Diversity is maintained by filtering out instructions with high ROUGE-L similarity to the existing pool.
- Stage 2: RLAF (The Refine Step): This core stage uses Proximal Policy Optimization (PPO) guided by a composite reward function. The reward combines a standard reward model (
oasst-rm-pythia-1.4b) with automated UniEval metrics for naturalness and coherence. Notably, the framework penalizes linguistic complexity (Understandability) to favor clear, direct training examples. - Stage 3: Instance Generation & SFT: The RL-refined model generates a final dataset of 15,000 high-quality triplets. The base model then undergoes standard Supervised Fine-Tuning (SFT) on this synthetic corpus.
Key Insights: RL as a Denoising Filter
A critical finding of this work is that Reinforcement Learning acts as a powerful denoising filter for small models. Rather than simply making the model "smarter," the RL process teaches the model to generate training data that is more coherent and better aligned with human communication patterns. Analysis shows that even 7B models can generate a diverse array of over 800 unique verb-noun task pairs, proving that model size is not a hard ceiling for task creativity when guided by proper feedback loops.
Results and Evaluation
We evaluated REFINE-AF using LLaMA 2 (7B, 13B) and Mistral 7B architectures on the SUPER-NI (Super-NaturalInstructions) benchmark.
Performance and Scaling
REFINE-AF consistently outperformed the standard Self-Instruct baseline, showing improvements in 63% to 66% of tasks. Furthermore, we observed a clear scaling trend: as the volume of RL-refined synthetic instructions increased from 5,000 to 15,000, downstream performance continued to improve across all tested architectures.
Human Evaluation
In blind qualitative tests, human raters preferred REFINE-AF outputs significantly more often than baseline outputs. The refined model produced a higher frequency of "Valid and Satisfactory" responses and fewer irrelevant or invalid instances, confirming that the automated reward functions successfully captured human-centric quality preferences.
Conclusion and Future Work
REFINE-AF demonstrates that small, open-source models can effectively align themselves through self-generation and automated refinement. By removing the dependency on proprietary models and expensive human labels, this framework provides a scalable path for specialized model alignment. Future research will explore the application of this self-refining loop to multimodal tasks and further optimize the computational efficiency of the generation process.
Summary updated