arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.08198cs.CLcs.LG
收藏

三元组优于对:迈向稳定且有效的自play微调方法用于大语言模型

Triplets Better Than Pairs: Towards Stable and Effective Self-Play Fine-Tuning for LLMs

National Key Laboratory for Novel Software Technology, Nanjing University(新型软件技术国家重点实验室);School of Artificial Intelligence, Nanjing University(人工智能学院);Alibaba International Digital Commerce(阿里巴巴国际数字商务);Pazhou Laboratory (Huangpu)(琶洲实验室(黄埔))

Yibo Wang, Hai-Long Sun, Qing-Guo Chen, Zhao Xu, Weihua Luo, Kaifu Zhang, Lijun Zhang

AI总结:

T-SPIN通过引入历史优势和熵约束,提升自play微调在稀缺标注数据下的稳定性和性能

摘要:

最近,自play微调(SPIN)已被提出,通过迭代地生成模型自身的合成响应,来适应大型语言模型以适应下游应用,尤其是在专家标注数据稀缺的情况下。然而,SPIN旨在优化当前标注响应相对于现有合成响应的优势,这可能导致在迭代过程中逐渐消失,从而导致优化不稳定。此外,参考策略的使用会导致训练奖励公式和生成指标之间出现不对齐的问题。为了解决这些限制,我们提出了一种新的三元组基于的自play微调(T-SPIN)方法,该方法集成了两个关键设计。首先,除了当前优势外,T-SPIN还结合了迭代生成响应与初始策略产生的原型合成响应之间的历史优势。即使当前优势减少,历史优势仍然有效,从而稳定整体优化。其次,T-SPIN在自play框架中引入了熵约束,这在理论上被证明可以支持无参考的微调,消除训练生成的不一致。在各种任务上的实验证明了T-SPIN不仅在性能上优于SPIN,而且在迭代过程中表现出稳定的演变。值得注意的是,与监督微调相比,T-SPIN在仅使用25%样本的情况下实现了可比或更好的性能,突显了其在面对稀缺标注数据时的有效性。

英文摘要:

Recently, self-play fine-tuning (SPIN) has been proposed to adapt large language models to downstream applications with scarce expert-annotated data, by iteratively generating synthetic responses from the model itself. However, SPIN is designed to optimize the current reward advantages of annotated responses over synthetic responses at hand, which may gradually vanish during iterations, leading to unstable optimization. Moreover, the utilization of reference policy induces a misalignment issue between the reward formulation for training and the metric for generation. To address these limitations, we propose a novel Triplet-based Self-Play fIne-tuNing (T-SPIN) method that integrates two key designs. First, beyond current advantages, T-SPIN additionally incorporates historical advantages between iteratively generated responses and proto-synthetic responses produced by the initial policy. Even if the current advantages diminish, historical advantages remain effective, stabilizing the overall optimization. Second, T-SPIN introduces the entropy constraint into the self-play framework, which is theoretically justified to support reference-free fine-tuning, eliminating the training-generation discrepancy. Empirical results on various tasks demonstrate not only the superior performance of T-SPIN over SPIN, but also its stable evolution during iterations. Remarkably, compared to supervised fine-tuning, T-SPIN achieves comparable or even better performance with only 25% samples, highlighting its effectiveness when faced with scarce annotated data.

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

↑