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

校准的语言模型必然会产生幻觉

Calibrated Language Models Must Hallucinate

OpenAI(开放人工智能公司);Georgia Tech(佐治亚理工学院)

Adam Tauman Kalai, Santosh S. Vempala

AI总结:

本研究证明校准的语言模型对无法从训练数据确定真实性的任意事实必然存在幻觉统计下界,其概率接近数据中仅出现一次事实的比例,需通过后训练缓解;但对多次出现或系统性事实则无此限制。

摘要:

近期的语言模型以惊人的频率生成错误但听起来合理的文本。这种“幻觉”阻碍了基于语言的AI系统的可用性,并可能伤害依赖其输出的人。本研究表明,预训练语言模型对某些类型事实产生幻觉的频率存在固有的统计下界,这与transformer LM架构或数据质量无关。对于其真实性无法从训练数据中确定的“任意”事实,我们表明,对于满足适合生成式语言模型的统计校准条件的语言模型,幻觉必然以一定频率发生。具体而言,如果任何事实的最大概率是有界的,我们证明生成幻觉的概率接近于训练数据中恰好出现一次的事实比例(一种“Good-Turing”估计),即使假设训练数据是理想且无错误的。一个结论是,预训练为足够好的预测器(即校准的)的模型可能需要后训练来缓解对训练集中往往只出现一次的任意事实的幻觉。然而,我们的分析也表明,没有统计理由认为预训练会导致对在训练数据中往往出现多次的事实(如对文章和书籍等出版物的引用,其幻觉尤为显著且成问题)或系统性事实(如算术计算)产生幻觉。因此,不同的架构和学习算法可能缓解后几种类型的幻觉。

英文摘要:

Recent language models generate false but plausible-sounding text with surprising frequency. Such "hallucinations" are an obstacle to the usability of language-based AI systems and can harm people who rely upon their outputs. This work shows that there is an inherent statistical lower-bound on the rate that pretrained language models hallucinate certain types of facts, having nothing to do with the transformer LM architecture or data quality. For "arbitrary" facts whose veracity cannot be determined from the training data, we show that hallucinations must occur at a certain rate for language models that satisfy a statistical calibration condition appropriate for generative language models. Specifically, if the maximum probability of any fact is bounded, we show that the probability of generating a hallucination is close to the fraction of facts that occur exactly once in the training data (a "Good-Turing" estimate), even assuming ideal training data without errors. One conclusion is that models pretrained to be sufficiently good predictors (i.e., calibrated) may require post-training to mitigate hallucinations on the type of arbitrary facts that tend to appear once in the training set. However, our analysis also suggests that there is no statistical reason that pretraining will lead to hallucination on facts that tend to appear more than once in the training data (like references to publications such as articles and books, whose hallucinations have been particularly notable and problematic) or on systematic facts (like arithmetic calculations). Therefore, different architectures and learning algorithms may mitigate these latter types of hallucinations.

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

↑