arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.11220cs.LGcs.CL
收藏

修补分布不匹配:用于稳定离策略SFT的RL重写代理

Patch the Distribution Mismatch: RL Rewriting Agent for Stable Off-Policy SFT

School of Computer Science & Technology, Beijing Institute of Technology(计算机科学与技术学院,北京理工大学)

Jiacheng Wang, Zhijie Liu, Ping Jian, Zirong Chen, Ke Ren Liao, Zhen Yang, Zhongbin Guo

AI总结:

本文提出基于强化学习的RL重写代理,通过优化分布对齐和多样性,提升下游SFT效果并减少遗忘。

摘要:

大型语言模型(LLMs)已经取得了快速进展,但将其适应到下游场景时,仍然普遍依赖于监督微调(SFT)。当下游数据与模型先前训练分布存在显著分布偏移时,SFT可能导致灾难性遗忘。为了缩小这一差距,数据重写作为一种数据导向的方法,在SFT之前重写下游训练数据。然而,现有方法通常从提示诱导的条件分布中采样重写,因此生成的目标不一定与模型的自然问答式生成分布对齐。此外,依赖固定模板可能导致多样性崩溃。为了解决这些问题,我们将数据重写视为一个策略学习问题,并学习一个重写策略,以更好地匹配基础模型的问答式生成分布,同时保持多样性。由于分布对齐、多样性和任务一致性可以自动评估但难以通过可微目标端到端优化,我们利用强化学习来优化重写分布并在奖励反馈下进行优化,并提出基于RL的数据重写代理。该代理在硬任务一致性门控下联合优化问答式分布对齐和多样性,从而构建一个更高质量的重写数据集用于下游SFT。大量实验表明,我们的方法在下游任务中获得的收益与标准SFT相当,同时在非下游基准测试中减少遗忘的平均幅度为12.34%。我们的代码可在https://anonymous.4open.science/r/Patch-the-Prompt-Gap-4112上获得。

英文摘要:

Large language models are commonly adapted to downstream tasks through supervised fine-tuning (SFT), but substantial distribution mismatch between downstream supervision and a model's generation distribution can intensify catastrophic forgetting. Data rewriting offers a data-centric way to narrow this mismatch before SFT. Existing methods, however, typically sample rewrites from a prompt-induced conditional distribution, which need not align with the backbone's natural question-answering generation distribution, and fixed templates can reduce output diversity. We formulate data rewriting as a policy-learning problem and train a lightweight LoRA rewriting policy with reinforcement learning. The policy optimizes question-answering-style distributional alignment and semantic diversity under a hard task-consistency gate, producing verified supervision for downstream SFT. Across three instruction-tuned backbones, the resulting models attain downstream gains broadly comparable to standard SFT while reducing degradation on non-downstream benchmarks in every evaluated setting. Additional experiments on logical reasoning and medical question answering provide preliminary evidence that a rewriting policy can be reused across domains for the same backbone.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑