arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.05882cs.LGstat.ML
收藏

通过最优传输实现大语言模型的分布性偏好对齐

Distributional Preference Alignment of LLMs via Optimal Transport

IBM Research(IBM研究院);MIT-IBM Watson Lab(麻省理工学院-IBM沃森实验室)

Igor Melnyk, Youssef Mroueh, Brian Belgodere, Mattia Rigotti, Apoorva Nitsure, Mikhail Yurochkin, Kristjan Greenewald, Jiri Navratil, Jerret Ross

AI总结:

本文提出 AOT 方法,通过最优传输使正样本奖励分布对负样本具有一阶随机占优,从而在分布层面实现大语言模型偏好对齐,并在 7B 模型上取得领先性能。

摘要:

当前的大语言模型(LLM)对齐技术在样本层面使用成对人类偏好,因此并不意味着在分布层面实现了对齐。本文提出了一种名为“通过最优传输对齐”(Alignment via Optimal Transport,AOT)的新方法,用于大语言模型的分布性偏好对齐。AOT 在非成对偏好数据上对齐大语言模型,其方式是使正样本的奖励分布在负样本的分布上具有一阶随机占优性。我们引入了这种一阶随机占优的凸松弛,并将其转化为一个具有光滑凸代价的最优传输问题。由于所得到的最优传输问题具有一维特性且代价是凸的,因此可以通过对经验测度进行排序得到闭式解。我们使用该 AOT 目标对大语言模型进行微调,通过惩罚正样本奖励分布对负样本奖励分布的随机占优违反来实现对齐。我们通过考虑最优传输问题的对偶形式分析了 AOT 的样本复杂度,并证明其以参数化速率收敛。在实验上,我们在多种对齐数据集和大语言模型上表明,在使用 Open LLM Benchmarks 和 AlpacaEval 进行评估时,AOT 在 7B 模型家族中产生了最先进的模型。

英文摘要:

Current LLM alignment techniques use pairwise human preferences at a sample level, and as such, they do not imply an alignment on the distributional level. We propose in this paper Alignment via Optimal Transport (AOT), a novel method for distributional preference alignment of LLMs. AOT aligns LLMs on unpaired preference data by making the reward distribution of the positive samples stochastically dominant in the first order on the distribution of negative samples. We introduce a convex relaxation of this first-order stochastic dominance and cast it as an optimal transport problem with a smooth and convex cost. Thanks to the one-dimensional nature of the resulting optimal transport problem and the convexity of the cost, it has a closed-form solution via sorting on empirical measures. We fine-tune LLMs with this AOT objective, which enables alignment by penalizing the violation of the stochastic dominance of the reward distribution of the positive samples on the reward distribution of the negative samples. We analyze the sample complexity of AOT by considering the dual of the OT problem and show that it converges at the parametric rate. Empirically, we show on a diverse set of alignment datasets and LLMs that AOT leads to state-of-the-art models in the 7B family of models when evaluated with Open LLM Benchmarks and AlpacaEval.

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

↑