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

直觉微调:迈向将对齐简化为单一过程

Intuitive Fine-Tuning: Towards Simplifying Alignment into a Single Process

Department of Electronic Engineering, Tsinghua University(清华大学电子工程系);Shanghai AI Laboratory(上海人工智能实验室)

Ermo Hua, Biqing Qi, Kaiyan Zhang, Kai Tian, Xingtai Lv, Ning Ding, Bowen Zhou

AI总结:

本文将SFT和PO统一为MDP中的子过程,指出SFT是PO的特例,并提出直觉微调(IFT),通过时间残差连接将对齐简化为单一过程,在多任务中表现优异。

摘要:

监督微调(SFT)和偏好优化(PO)是在预训练后将语言模型(LMs)与人类偏好对齐的关键过程。虽然 SFT 在效率上表现出色,而 PO 在有效性上更优,但它们通常被顺序结合,而没有整合它们的优化目标。这种方法忽视了弥合它们范式差距并取两者所长的机会。在本文中,我们用马尔可夫决策过程(MDP)中在 token 级别定义的两个子过程——偏好估计和转移优化——来解释 SFT 和 PO。这种建模表明 SFT 只是 PO 的一个特例,具有较差的估计和优化。PO 通过模型的完整生成来估计其偏好,而 SFT 仅基于来自真实答案的先前 token 对模型后续预测的 token 进行评分。这些先验偏离了模型的分布,阻碍了偏好估计和转移优化。基于这一观点,我们引入了直觉微调(IFT),将 SFT 和 PO 整合到一个单一过程中。通过时间残差连接,IFT 通过捕捉 LM 对其完整答案的直觉感,带来了更好的估计和优化。但它仅依赖于单一策略和与 SFT 相同数量的非偏好标注数据。我们的实验表明,在多个任务中,IFT 表现出与 SFT 和一些典型 PO 方法相当甚至更优的性能,特别是在那些需要生成、推理和事实遵循能力的任务中。一个可解释的 Frozen Lake 游戏进一步验证了 IFT 在获得竞争性策略方面的有效性。

英文摘要:

Supervised Fine-Tuning (SFT) and Preference Optimization (PO) are key processes for aligning Language Models (LMs) with human preferences post pre-training. While SFT excels in efficiency and PO in effectiveness, they are often combined sequentially without integrating their optimization objectives. This approach ignores the opportunities to bridge their paradigm gap and take the strengths from both. In this paper, we interpret SFT and PO with two sub-processes -- Preference Estimation and Transition Optimization -- defined at token level within the Markov Decision Process (MDP). This modeling shows that SFT is only a special case of PO with inferior estimation and optimization. PO estimates the model's preference by its entire generation, while SFT only scores model's subsequent predicted tokens based on prior tokens from ground truth answer. These priors deviates from model's distribution, hindering the preference estimation and transition optimization. Building on this view, we introduce Intuitive Fine-Tuning (IFT) to integrate SFT and PO into a single process. Through a temporal residual connection, IFT brings better estimation and optimization by capturing LMs' intuitive sense of its entire answers. But it solely relies on a single policy and the same volume of non-preference-labeled data as SFT. Our experiments show that IFT performs comparably or even superiorly to SFT and some typical PO methods across several tasks, particularly those require generation, reasoning, and fact-following abilities. An explainable Frozen Lake game further validates the effectiveness of IFT for getting competitive policy.

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

↑