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

歧义下大型语言模型的自洽性

Self-Consistency of Large Language Models under Ambiguity

Imperial College London(帝国理工学院);Dalhousie University(达尔豪斯大学);New York University(纽约大学)

Henning Bartsch, Ole Jorgensen, Domenic Rosati, Jason Hoelscher-Obermaier, Jacob Pfau

AI总结:

提出评估LLM在歧义任务中自洽性的基准,发现其自洽性随能力提升而增强,但模型对自身一致性判断未校准,且内部仍计算多种可能响应。

摘要:

大型语言模型(LLMs)在不同上下文中给出不一致的答案,在用于对一致性有期望的任务(例如问答、解释等)时会出现问题。我们的工作提出了一个针对欠规范情况的自洽性评估基准,在这种情况下可能有两个或更多正确答案。我们使用歧义整数序列完成任务对OpenAI模型套件进行了一系列行为实验。我们发现平均自洽性范围为67%至82%,远高于模型自洽性随机时的预测值,并且随着模型能力的提升而增加。此外,我们表明模型在一系列鲁棒性检查中倾向于保持自洽性,包括提示说话者变更和序列长度变更。这些结果表明,自洽性作为一种涌现能力出现,而无需专门训练。尽管如此,我们发现模型在判断自身自洽性时未校准,模型同时表现出过度自信和自信不足。我们还提出了一种非参数检验,用于从token输出分布中确定模型是否对替代答案分配非平凡概率。使用该检验,我们发现尽管自洽性增加,模型通常对替代的、不一致的答案赋予显著权重。这种概率质量分布提供了证据,表明即使是高度自洽的模型在内部也会计算多种可能的响应。

英文摘要:

Large language models (LLMs) that do not give consistent answers across contexts are problematic when used for tasks with expectations of consistency, e.g., question-answering, explanations, etc. Our work presents an evaluation benchmark for self-consistency in cases of under-specification where two or more answers can be correct. We conduct a series of behavioral experiments on the OpenAI model suite using an ambiguous integer sequence completion task. We find that average consistency ranges from 67\% to 82\%, far higher than would be predicted if a model's consistency was random, and increases as model capability improves. Furthermore, we show that models tend to maintain self-consistency across a series of robustness checks, including prompting speaker changes and sequence length changes. These results suggest that self-consistency arises as an emergent capability without specifically training for it. Despite this, we find that models are uncalibrated when judging their own consistency, with models displaying both over- and under-confidence. We also propose a nonparametric test for determining from token output distribution whether a model assigns non-trivial probability to alternative answers. Using this test, we find that despite increases in self-consistency, models usually place significant weight on alternative, inconsistent answers. This distribution of probability mass provides evidence that even highly self-consistent models internally compute multiple possible responses.

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

↑