大型语言模型的准随机多样本推理
Quasi-random Multi-Sample Inference for Large Language Models
AI总结:
本文提出利用准随机算术采样为LLM高效生成多样本,克服了传统解码缺乏并行性和多样性的局限,在推理与翻译任务上显著提升了性能且无额外计算开销。
摘要:
大型语言模型(LLMs)通常配备多样本解码策略。LLM隐式定义了一个算术码本,从而支持高效且高度可并行化的算术采样,以利用准随机码生成多个样本。传统文本生成方法(如beam search和基于采样的技术)存在显著局限:缺乏可并行性或采样序列的多样性。本研究探讨了算术采样的潜力,并在两个采用多样本推理的解码任务中将其与ancestral sampling进行了对比:带有自洽性的chain-of-thought推理以及采用minimum Bayes risk解码的机器翻译。结果表明,算术采样能产生更多样化的样本,随着样本量增加,显著提升了推理和翻译性能。我们观察到,在GSM8K数据集上准确率提高了3-5个百分点,在WMT19任务上COMET得分提高了0.45-0.89个百分点,且无显著计算开销。
英文摘要:
Large language models (LLMs) are often equipped with multi-sample decoding strategies. An LLM implicitly defines an arithmetic code book, facilitating efficient and embarrassingly parallelizable \textbf{arithmetic sampling} to produce multiple samples using quasi-random codes. Traditional text generation methods, such as beam search and sampling-based techniques, have notable limitations: they lack parallelizability or diversity of sampled sequences. This study explores the potential of arithmetic sampling, contrasting it with ancestral sampling across two decoding tasks that employ multi-sample inference: chain-of-thought reasoning with self-consistency and machine translation with minimum Bayes risk decoding. Our results demonstrate that arithmetic sampling produces more diverse samples, significantly improving reasoning and translation performance as the sample size increases. We observe a $\mathbf{3\text{-}5\%}$ point increase in accuracy on the GSM8K dataset and a $\mathbf{0.45\text{-}0.89\%}$ point increment in COMET score for WMT19 tasks using arithmetic sampling without any significant computational overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。