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

算术采样:面向大语言模型的并行多样化解码

Arithmetic Sampling: Parallel Diverse Decoding for Large Language Models

Google Research(谷歌研究院)

Luke Vilnis, Yury Zemlyanskiy, Patrick Murray, Alexandre Passos, Sumit Sanghai

AI总结:

本文提出 Arithmetic Sampling 框架,利用大语言模型隐式定义的算术码本实现可并行、可证明多样且无偏一致的采样,并在 WMT 翻译上显著降低奖励估计方差、缩小与束搜索的 BLEU 差距。

摘要:

大语言模型的解码方法通常需要在输出多样性与计算并行性之间进行权衡。beam search(束搜索)和 Gumbel top-k sampling 等方法能够保证束中的每个元素产生不同输出,但不易并行化。另一方面,temperature sampling(温度采样)及其变体(包括 top-k sampling、nucleus sampling、typical decoding 等)具有极佳的并行性,却无法保证样本不重复。我们提出一个根据由大语言模型隐式定义的算术码本进行采样的框架。该框架兼容常见采样变体,在特定条件下具有可证明的束多样性,同时天然易于并行,并能提供来自原始模型的无偏且一致的期望估计。我们在 WMT 机器翻译任务上验证了该方法的有效性:在估计期望 BLEU 分数奖励时,将标准差降低了一半以上;并将独立采样与束搜索之间的 BLEU 分数差距缩小至多 63%。

英文摘要:

Decoding methods for large language models often trade-off between diversity of outputs and parallelism of computation. Methods such as beam search and Gumbel top-k sampling can guarantee a different output for each element of the beam, but are not easy to parallelize. Alternatively, methods such as temperature sampling and its modifications (top-k sampling, nucleus sampling, typical decoding, and others), are embarrassingly parallel, but have no guarantees about duplicate samples. We present a framework for sampling according to an arithmetic code book implicitly defined by a large language model, compatible with common sampling variations, with provable beam diversity under certain conditions, as well as being embarrassingly parallel and providing unbiased and consistent expectations from the original model. We demonstrate the effectiveness of our approach on WMT machine translation, more than halving the standard deviation when estimating expected BLEU score reward, and closing the BLEU score gap between independent sampling and beam search by up to 63%.

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

↑