[论文解读] Triplets Better Than Pairs: Towards Stable and Effective Self-Play Fine-Tuning for LLMs
论文提出基于三元组的自对弈微调(T-SPIN),在自对弈微调中加入历史与原型合成三元组以及熵约束以稳定优化,在标注数据有限的情况下也能获得强劲结果。
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.
研究动机与目标
- 解决现有自对弈微调(SPIN)在LLMs中的不稳定性与错配问题。
- 提出一个基于试验的三元输入框架,以充分利用历史样本与原型合成样本。
- 引入一个具有熵约束、无参考的训练目标,以对齐训练与生成。
提出的方法
- 引入三元输入:真实(带标注)、合成以及来自初始策略的原型合成,以稳定优化。
- 采用主策略/对手更新模式,在主策略从同时具备当前与历史优势的三元组中学习。
- 用一个基于置信度的损失来替代SPIN的参考策略奖励,使其与生成对齐(r(z|x) = α log πθ(z|x))。
- 利用受IPM启发的目标,结合一个学习到的置信度c(x,y)和一个闭式形式的对手策略,其等价于对c的softmax。
- 将端到端损失L_T-SPIN(θ)定义如式(7),在不依赖参考信号的训练情况下整合当前与历史优势。
- 提供算法1,详述主对手双方交替优化的过程。

实验结果
研究问题
- RQ1将三元输入(带标注、合成、原型合成)引入自对弈微调对稳定性和性能有何影响?
- RQ2在不使用参考策略且引入基于熵的对手后,是否能够实现训练奖励与生成之间更好的对齐?
- RQ3历史优势对迭代微调中的收敛性有何影响?
- RQ4在标注数据有限的情况下,T-SPIN相对于SPIN和SFT在多任务上的表现如何?
主要发现
- T-SPIN在Zephyr-7B上比SPIN具有更好的性能并且迭代过程更稳定地演进。
- 与使用全部数据的SFT相比,T-SPIN仅使用5万条标注样本时,平均结果达到或超过SFT。
- T-SPIN使训练奖励与生成指标对齐,缓解了SPIN中的错配问题。
- 仅使用25%的标注数据时,T-SPIN在所给任务上达到的性能相当于或优于使用完整数据的监督微调。
- 在Zephyr-7B和Mistral-7B上,使用Ultrachat200k中的5万条标注样本,尤其在数学与指令执行任务上取得显著提升。
- T-SPIN在多次迭代中表现稳定,而SPIN在早期高峰后可能退化。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。