arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10203cs.CL
收藏

对齐语言模型中的概率—质量权衡及其与采样适配器的关系

A Probability--Quality Trade-off in Aligned Language Models and its Relation to Sampling Adaptors

National University of Singapore(新加坡国立大学);University of Copenhagen(哥本哈根大学);ETH Zürich(苏黎世联邦理工学院)

Naaman Tan, Josef Valvoda, Tianyu Liu, Anej Svete, Yanxia Qin, Kan Min-Yen, Ryan Cotterell

AI总结:

本文研究人类偏好对齐语言模型中采样质量与概率的关系,形式化证明平均奖励与先验模型平均对数似然之间存在权衡,并说明采样适配器可调节二者交换比例。

摘要:

字符串在人类读者看来的质量,与其在语言模型下的概率 $p(\oldsymbol{y})$ 之间的关系,支撑着更优语言模型的开发。例如,许多常用的语言模型采样算法,其设计目标都是调控 $p(\oldsymbol{y})$,使人类认为高质量的字符串获得更高概率。本文考察显式与人类偏好对齐的语言模型中的概率—质量关系,例如通过基于人类反馈的强化学习实现对齐的模型。我们表明,当从对齐后的语言模型采样语料库时,字符串的平均奖励与其在先验语言模型(即与人类偏好对齐之前的同一模型)下的平均对数似然之间存在一种权衡。我们对这一现象进行了形式化分析,并展示了采样适配器的选择如何使我们能够决定用多少似然来交换奖励。

英文摘要:

The relationship between the quality of a string, as judged by a human reader, and its probability, $p(\boldsymbol{y})$ under a language model undergirds the development of better language models. For example, many popular algorithms for sampling from a language model have been conceived with the goal of manipulating $p(\boldsymbol{y})$ to place higher probability on strings that humans deem of high quality. In this article, we examine the probability--quality relationship in language models explicitly aligned to human preferences, e.g., through reinforcement learning through human feedback. We show that, when sampling corpora from an aligned language model, there exists a trade-off between the strings' average reward and average log-likelihood under the prior language model, i.e., the same model before alignment with human preferences. We provide a formal treatment of this phenomenon and demonstrate how a choice of sampling adaptor allows for a selection of how much likelihood we exchange for the reward.

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

↑