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

大型语言模型在推理任务上产生幻觉的来源

Sources of Hallucination by Large Language Models on Inference Tasks

University of Edinburgh(爱丁堡大学);Google Research(谷歌研究院);Macquarie University(麦考瑞大学)

Nick McKenna, Tianyi Li, Liang Cheng, Mohammad Javad Hosseini, Mark Johnson, Mark Steedman

AI总结:

通过受控实验探究LLaMA、GPT-3.5和PaLM等大型语言模型在自然语言推理中的行为,发现句子层面的记忆和语料层面的统计使用模式是导致生成式幻觉的两大预训练偏差来源。

摘要:

大型语言模型(LLMs)被声称具备自然语言推理(NLI)能力,这对于问答和摘要等应用任务是必要的。我们针对几个LLM家族(LLaMA、GPT-3.5和PaLM)提出了一系列行为研究,通过受控实验探究其行为。我们确立了源于预训练的两个偏差,这些偏差能预测其大部分行为,并表明它们是生成式LLMs产生幻觉的主要来源。首先是句子层面的记忆:我们表明,无论前提如何,当假设在训练数据中被证实时,模型都会错误地将NLI测试样本标记为蕴含,并且实体被用作访问记忆数据的“索引”。其次是语料库层面学习到的统计使用模式:我们进一步表明,当前提谓词在训练数据中的出现频率低于假设谓词时,会出现类似效应,这是从以往研究中衍生出的偏差。我们证明,LLMs在不符合这些偏差的NLI测试样本上的表现显著差于符合这些偏差的样本,我们将其作为未来LLM评估的有价值对照。

英文摘要:

Large Language Models (LLMs) are claimed to be capable of Natural Language Inference (NLI), necessary for applied tasks like question answering and summarization. We present a series of behavioral studies on several LLM families (LLaMA, GPT-3.5, and PaLM) which probe their behavior using controlled experiments. We establish two biases originating from pretraining which predict much of their behavior, and show that these are major sources of hallucination in generative LLMs. First, memorization at the level of sentences: we show that, regardless of the premise, models falsely label NLI test samples as entailing when the hypothesis is attested in training data, and that entities are used as ``indices'' to access the memorized data. Second, statistical patterns of usage learned at the level of corpora: we further show a similar effect when the premise predicate is less frequent than that of the hypothesis in the training data, a bias following from previous studies. We demonstrate that LLMs perform significantly worse on NLI test samples which do not conform to these biases than those which do, and we offer these as valuable controls for future LLM evaluation.

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

↑