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

从解码到元生成:大语言模型的推理时算法

From Decoding to Meta-Generation: Inference-time Algorithms for Large Language Models

Carnegie Mellon University(卡内基梅隆大学);University of Southern California(南加州大学);EleutherAI;Meta FAIR;University of Washington(华盛顿大学)

Sean Welleck, Amanda Bertsch, Matthew Finlayson, Hailey Schoelkopf, Alex Xie, Graham Neubig, Ilia Kulikov, Zaid Harchaoui

AI总结:

本文综述了大语言模型推理时算法,在统一数学框架下梳理词元级解码、元生成与高效生成方法,并融合NLP、LLMs和ML系统三个研究视角。

摘要:

现代大语言模型(LLMs)研究中最引人注目的发现之一是,在训练期间扩大计算规模能够带来更好的结果。然而,推理期间扩大计算规模所带来的益处却较少受到关注。本综述聚焦于这些推理时方法。我们在统一的数学形式化框架下探讨三个领域:词元级生成算法、元生成算法和高效生成。词元级生成算法,通常被称为解码算法,通过一次采样一个词元或构建词元级搜索空间并选择输出来运行。这些方法通常假设可以访问语言模型的 logits、下一词元分布或概率分数。元生成算法作用于部分或完整序列,融入领域知识,支持回溯,并整合外部信息。高效生成方法旨在降低词元成本并提高生成速度。我们的综述统一了来自三个研究社区的视角:传统自然语言处理、现代 LLMs 和机器学习系统。

英文摘要:

One of the most striking findings in modern research on large language models (LLMs) is that scaling up compute during training leads to better results. However, less attention has been given to the benefits of scaling compute during inference. This survey focuses on these inference-time approaches. We explore three areas under a unified mathematical formalism: token-level generation algorithms, meta-generation algorithms, and efficient generation. Token-level generation algorithms, often called decoding algorithms, operate by sampling a single token at a time or constructing a token-level search space and then selecting an output. These methods typically assume access to a language model's logits, next-token distributions, or probability scores. Meta-generation algorithms work on partial or full sequences, incorporating domain knowledge, enabling backtracking, and integrating external information. Efficient generation methods aim to reduce token costs and improve the speed of generation. Our survey unifies perspectives from three research communities: traditional natural language processing, modern LLMs, and machine learning systems.

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

↑