arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.17311cs.CLcs.AI
收藏

面向大语言模型生成的通用自洽性方法

Universal Self-Consistency for Large Language Model Generation

Google(谷歌)

Xinyun Chen, Renat Aksitov, Uri Alon, Jie Ren, Kefan Xiao, Pengcheng Yin, Sushant Prakash, Charles Sutton, Xuezhi Wang, Denny Zhou

AI总结:

本文提出通用自洽性方法USC,利用大语言模型自身从多个候选答案中选择最一致者,在数学推理、代码生成、长上下文摘要和开放式问答等任务上取得与标准自洽性或执行投票相当的性能。

摘要:

利用思维链提示(CoT)的自洽性方法通过采样大语言模型(LLMs)生成的多条推理路径,已在多种具有挑战性的任务上展现出显著的性能提升。然而,自洽性依赖于答案提取过程来聚合多个解,这不适用于自由形式答案。在本文中,我们提出通用自洽性(Universal Self-Consistency,USC),该方法利用LLMs自身在多个候选中选择最一致的答案。我们在多个基准上评估USC,包括数学推理、代码生成、长上下文摘要和开放式问答。在原始自洽性方法不适用的开放式生成任务上,USC有效利用多个样本并提升性能。对于数学推理,USC在不要求答案格式相似的情况下达到标准自洽性的性能。最后,在无法获得执行结果的情况下,USC在代码生成上也达到了基于执行的投票性能。

英文摘要:

Self-consistency with chain-of-thought prompting (CoT) has demonstrated remarkable performance gains on various challenging tasks, by utilizing multiple reasoning paths sampled from large language models (LLMs). However, self-consistency relies on the answer extraction process to aggregate multiple solutions, which is not applicable to free-form answers. In this work, we propose Universal Self-Consistency (USC), which leverages LLMs themselves to select the most consistent answer among multiple candidates. We evaluate USC on a variety of benchmarks, including mathematical reasoning, code generation, long-context summarization, and open-ended question answering. On open-ended generation tasks where the original self-consistency method is not applicable, USC effectively utilizes multiple samples and improves the performance. For mathematical reasoning, USC matches the standard self-consistency performance without requiring the answer formats to be similar. Finally, without access to execution results, USC also matches the execution-based voting performance on code generation.

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

↑