仅用任务定义生成数据,实现高效强化学习微调。
Synthetic Data RL: Task Definition Is All You Need
- 基于任务定义自动生成问答对,动态调节难度并选优训练。
- 在GSM8K等6个数据集上超越指令微调与自动生成方法,提升达29.2%。
- 大幅减少人工标注依赖,适合资源有限但需高效适配的场景。
强化学习(RL)是将基础模型适配到特定任务的强大方式,但其对大规模人工标注数据的依赖限制了广泛应用。我们提出合成数据强化学习(Synthetic Data RL),一种简单通用的框架,仅使用从任务定义生成的合成数据即可进行强化学习微调。该方法首先从任务定义和检索文档中生成问答对,再根据模型求解能力动态调整问题难度,并通过模型在样本上的平均通过率选择训练问题。在Qwen-2.5-7B上,该方法在GSM8K上相比基线模型绝对提升29.2%(较指令微调+2.9 pp,较Self-Instruct+6.6 pp),MATH提升8.7%,GPQA提升13.1%(较SynthLLM+7.0 pp),MedQA提升8.9%,CQA(法律)提升17.7%,CFA(金融)提升13.7%。在相同数据预算下超越监督微调,接近全量人工数据强化学习的表现(如GSM8K+17.2 pp)。增加100条人工示范仅带来0.4 pp提升,表明人工标注增益有限。该方法显著降低人工标注需求,实现可扩展、高效的基于强化学习的模型适配。代码与演示见https://github.com/gydpku/Data_Synthesis_RL/。
原文摘要 · Abstract (English)
Reinforcement learning (RL) is a powerful way to adapt foundation models to specialized tasks, but its reliance on large-scale human-labeled data limits broad adoption. We introduce Synthetic Data RL, a simple and general framework that reinforcement fine-tunes models using only synthetic data generated from a task definition. Our method first generates question and answer pairs from the task definition and retrieved documents, then adapts the difficulty of the question based on model solvability, and selects questions using the average pass rate of the model across samples for RL training. On Qwen-2.5-7B, our method achieves a 29.2% absolute improvement over the base model on GSM8K (+2.9 pp vs. instruction-tuned, +6.6 pp vs. Self-Instruct), 8.7% on MATH, 13.1% on GPQA (+7.0 pp vs. SynthLLM), 8.9% on MedQA, 17.7% on CQA (law) and 13.7% on CFA (finance). It surpasses supervised fine-tuning under the same data budget and nearly matches RL with full human data across datasets (e.g., +17.2 pp on GSM8K). Adding 100 human demonstrations improves the performance of GSM8K only by 0.4 pp, showing a limited added value. By reducing human data annotation, Synthetic Data RL enables scalable and efficient RL-based model adaptation. Code and demos are available at https://github.com/gydpku/Data_Synthesis_RL/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。