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

似然-效用对齐的语言模型解码

Language Model Decoding as Likelihood-Utility Alignment

EPFL(洛桑联邦理工学院);Microsoft Corporation(微软公司);PSL University(巴黎文理研究大学)

Martin Josifoski, Maxime Peyrard, Frano Rajic, Jiheng Wei, Debjit Paul, Valentin Hartmann, Barun Patra, Vishrav Chaudhary, Emre Kıcıman, Boi Faltings, Robert West

摘要:

成功的语言生成流水线的关键组件是解码算法。然而,指导解码算法选择的一般原则仍然不清楚。以前的作品只比较解码算法在狭窄的情况下,他们的研究结果并没有推广到整个任务。我们认为,模型的可能性和特定任务的效用概念之间的错位是理解解码算法的有效性的关键因素。结构的讨论,我们介绍了一个分类的错位缓解策略(MMS),提供了一个统一的观点解码对齐的工具。MMS分类法根据解码算法对可能性的隐含假设(效用不一致)对解码算法进行分组,得出关于其在任务中的适用性的一般性陈述。具体来说,通过分析的可能性和效用的预测在不同的任务集之间的相关性,我们提供了实证证据支持建议的分类和一组原则,结构推理时,选择解码算法。至关重要的是,我们的分析是第一个将基于可能性的解码算法与依赖于外部信息的算法(如价值导向方法和提示)联系起来的分析,并涵盖了迄今为止最多样化的任务。代码、数据和模型可在https://github.com/epfl-dlab/understanding-decoding上获得。

英文摘要:

A critical component of a successful language generation pipeline is the decoding algorithm. However, the general principles that should guide the choice of a decoding algorithm remain unclear. Previous works only compare decoding algorithms in narrow scenarios, and their findings do not generalize across tasks. We argue that the misalignment between the model's likelihood and the task-specific notion of utility is the key factor to understanding the effectiveness of decoding algorithms. To structure the discussion, we introduce a taxonomy of misalignment mitigation strategies (MMSs), providing a unifying view of decoding as a tool for alignment. The MMS taxonomy groups decoding algorithms based on their implicit assumptions about likelihood--utility misalignment, yielding general statements about their applicability across tasks. Specifically, by analyzing the correlation between the likelihood and the utility of predictions across a diverse set of tasks, we provide empirical evidence supporting the proposed taxonomy and a set of principles to structure reasoning when choosing a decoding algorithm. Crucially, our analysis is the first to relate likelihood-based decoding algorithms with algorithms that rely on external information, such as value-guided methods and prompting, and covers the most diverse set of tasks to date. Code, data, and models are available at https://github.com/epfl-dlab/understanding-decoding.

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

↑