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

大语言模型的偏好微调应利用次优的、在线策略数据

Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Data

Stanford University(斯坦福大学);Carnegie Mellon University(卡内基梅隆大学);UW-Madison(威斯康星大学麦迪逊分校);Google DeepMind(谷歌DeepMind)

Fahim Tajwar, Anikait Singh, Archit Sharma, Rafael Rafailov, Jeff Schneider, Tengyang Xie, Stefano Ermon, Chelsea Finn, Aviral Kumar

AI总结:

本文严格分析了多种LLM偏好微调技术,发现使用在线策略采样或“负梯度”的方法优于离线和最大似然方法,并基于分类分布的模式寻找目标概念统一了这些方法,为偏好微调与数据收集提供了可操作的指导。

摘要:

从偏好标签中学习在大语言模型的微调中起着至关重要的作用。目前存在几种不同的偏好微调方法,包括监督学习、在线策略强化学习(RL)和对比学习。不同方法在实现上存在不同的权衡和性能差异,且现有的实证研究得出了不同的结论:例如,一些结果表明在线RL对于获得良好的微调结果非常重要,而另一些研究则发现(离线)对比甚至纯监督方法就足够了。这自然引出了一个问题:什么样的方法对于利用偏好数据进行微调是重要的,以及为什么?在本文中,我们通过对教学和全规模LLM问题上的多种微调技术进行严格分析来回答这个问题。我们的主要发现是,总体而言,使用在线策略采样或试图降低某些响应似然(即采用“负梯度”)的方法优于离线和最大似然目标。我们将这些见解概念化,并在分类分布的模式寻找目标概念下,统一了使用在线策略采样或负梯度的各种方法。与最大似然相比,模式寻找目标能够以更快的速度改变分类分布特定区间上的概率质量,从而更有效地在区间之间重新分配质量。我们的分析为LLM的偏好微调提供了可操作的见解,并为如何收集数据以实现最大程度的改进提供了指导。

英文摘要:

Learning from preference labels plays a crucial role in fine-tuning large language models. There are several distinct approaches for preference fine-tuning, including supervised learning, on-policy reinforcement learning (RL), and contrastive learning. Different methods come with different implementation tradeoffs and performance differences, and existing empirical findings present different conclusions, for instance, some results show that online RL is quite important to attain good fine-tuning results, while others find (offline) contrastive or even purely supervised methods sufficient. This raises a natural question: what kind of approaches are important for fine-tuning with preference data and why? In this paper, we answer this question by performing a rigorous analysis of a number of fine-tuning techniques on didactic and full-scale LLM problems. Our main finding is that, in general, approaches that use on-policy sampling or attempt to push down the likelihood on certain responses (i.e., employ a "negative gradient") outperform offline and maximum likelihood objectives. We conceptualize our insights and unify methods that use on-policy sampling or negative gradient under a notion of mode-seeking objectives for categorical distributions. Mode-seeking objectives are able to alter probability mass on specific bins of a categorical distribution at a fast rate compared to maximum likelihood, allowing them to relocate masses across bins more effectively. Our analysis prescribes actionable insights for preference fine-tuning of LLMs and informs how data should be collected for maximal improvement.

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

↑