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

通过潜在偏好优化实现自适应解码

Adaptive Decoding via Latent Preference Optimization

FAIR at Meta(Meta FAIR研究院);ETH Zürich(苏黎世联邦理工学院)

Shehzaad Dhuliawala, Ilia Kulikov, Ping Yu, Asli Celikyilmaz, Jason Weston, Sainbayar Sukhbaatar, Jack Lanchantin

AI总结:

提出Adaptive Decoding层与LPO方法,在推理时动态选择采样温度以优化语言模型性能,在多种任务上超越固定温度解码。

摘要:

在语言模型解码过程中,已知使用较高温度采样能产生更具创造性的回答,而较低温度在事实准确性上表现更好。然而,此类模型通常被应用于通用指令遵循场景,该场景同时包含创造性任务和事实查询任务,但在所有样本和词元上均使用单一固定温度。在本研究中,我们引入了Adaptive Decoding(自适应解码),这是一个添加到模型中的层,用于在推理时在词元或样本级别动态选择采样温度,以优化性能。为了学习其参数,我们提出了Latent Preference Optimization(LPO,潜在偏好优化),这是一种训练离散潜变量(如温度选择)的通用方法。我们的方法在需要不同温度的一系列任务上优于所有固定解码温度,包括UltraFeedback、Creative Story Writing和GSM8K。

英文摘要:

During language model decoding, it is known that using higher temperature sampling gives more creative responses, while lower temperatures are more factually accurate. However, such models are commonly applied to general instruction following, which involves both creative and fact seeking tasks, using a single fixed temperature across all examples and tokens. In this work, we introduce Adaptive Decoding, a layer added to the model to select the sampling temperature dynamically at inference time, at either the token or example level, in order to optimize performance. To learn its parameters we introduce Latent Preference Optimization (LPO) a general approach to train discrete latent variables such as choices of temperature. Our method outperforms all fixed decoding temperatures across a range of tasks that require different temperatures, including UltraFeedback, Creative Story Writing, and GSM8K.

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

↑