arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.07457cs.LGstat.ML
收藏

估计生成式AI的幻觉率

Estimating the Hallucination Rate of Generative AI

Department of Statistics, Columbia University(统计系,哥伦比亚大学);Department of Computer Science, Columbia University(计算机科学系,哥伦比亚大学);OATML, Department of Computer Science, University of Oxford(OATML,计算机科学系,牛津大学)

Andrew Jesson, Nicolas Beltran-Velez, Quentin Chu, Sweta Karlekar, Jannik Kossen, Yarin Gal, John P. Cunningham, David Blei

AI总结:

本文提出一种估计生成式AI在上下文学习中幻觉率的方法,利用贝叶斯模型视角定义幻觉,仅需生成问题和响应并评估对数概率,在大型语言模型上验证有效。

摘要:

本文提出了一种估计生成式AI在上下文学习(ICL)中幻觉率的方法。在ICL中,条件生成模型(CGM)被提示一个数据集和一个预测问题,并要求生成响应。ICL的一种解释假设CGM计算未知贝叶斯模型的后验预测,这隐式地定义了可观测数据集和潜在机制上的联合分布。该联合分布分解为两个组成部分:机制上的模型先验和给定机制下数据集的模型似然。基于这一视角,我们将幻觉定义为在给定机制下,对预测问题生成的响应具有低模型似然。我们开发了一种新方法,该方法接收一个ICL问题,并估计CGM生成幻觉的概率。我们的方法仅需从CGM生成预测问题和响应,并评估其响应对数概率。我们使用大型语言模型在合成回归和自然语言ICL任务上对我们的方法进行了实证评估。

英文摘要:

This paper presents a method for estimating the hallucination rate for in-context learning (ICL) with generative AI. In ICL, a conditional generative model (CGM) is prompted with a dataset and a prediction question and asked to generate a response. One interpretation of ICL assumes that the CGM computes the posterior predictive of an unknown Bayesian model, which implicitly defines a joint distribution over observable datasets and latent mechanisms. This joint distribution factorizes into two components: the model prior over mechanisms and the model likelihood of datasets given a mechanism. With this perspective, we define a hallucination as a generated response to the prediction question with low model likelihood given the mechanism. We develop a new method that takes an ICL problem and estimates the probability that a CGM will generate a hallucination. Our method only requires generating prediction questions and responses from the CGM and evaluating its response log probability. We empirically evaluate our method using large language models for synthetic regression and natural language ICL tasks.

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

↑