arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.12236cs.CLcs.AIcs.LG
收藏

一致性是关键:通过检查关键事实的不一致性检测LLM生成文本中的幻觉

Consistency Is the Key: Detecting Hallucinations in LLM Generated Text By Checking Inconsistencies About Key Facts

Columbia University(哥伦比亚大学);IIT Bombay(印度理工学院Bombay);Media and Data Science Research (MDSR) Lab, Adobe(Adobe媒体与数据科学研究实验室)

Raavi Gupta, Pranav Hari Panicker, Sumit Bhatia, Ganesh Ramakrishnan

AI总结:

针对LLM生成文本的幻觉检测问题,提出无需外部知识库的CONFACTCHECK方法,通过验证事实探针响应在单LLM内部及跨LLM的一致性,以更少资源实现高效检测,在多数据集上准确率优于现有基线。

摘要:

大型语言模型(LLMs)尽管具备卓越的文本生成能力,但经常会产生幻觉,生成与事实不符且未基于真实世界知识的文本。这在医疗、金融和客户支持等领域带来了严重风险。使用LLMs的典型方式是通过LLM供应商提供的API,这种情况下无法访问模型权重或进行模型微调。在模型访问受限或资源受限的场景中,现有检测幻觉的方法通常需要多次调用LLM API,这会增加延迟和API成本。我们提出CONFACTCHECK,一种高效的幻觉检测方法,无需利用任何外部知识库,其核心直觉是:生成文本中事实性探针的响应在单个LLM内部和不同LLMs之间应保持一致。我们在涵盖事实文本生成和开放生成的多个数据集上进行了严格的实证评估,结果表明,与在类似条件下运行的现有基线相比,CONFACTCHECK能够以更少的资源高效检测幻觉事实,并获得更高的准确率。我们的代码可在此处获取。

英文摘要:

Large language models (LLMs), despite their remarkable text generation capabilities, often hallucinate and generate text that is factually incorrect and not grounded in real-world knowledge. This poses serious risks in domains like healthcare, finance, and customer support. A typical way to use LLMs is via the APIs provided by LLM vendors where there is no access to model weights or options to fine-tune the model. Existing methods to detect hallucinations in such settings where the model access is restricted or constrained by resources typically require making multiple LLM API calls, increasing latency and API cost. We introduce CONFACTCHECK, an efficient hallucination detection approach that does not leverage any external knowledge base and works on the simple intuition that responses to factual probes within the generated text should be consistent within a single LLM and across different LLMs. Rigorous empirical evaluation on multiple datasets that cover both the generation of factual texts and the open generation shows that CONFACTCHECK can detect hallucinated facts efficiently using fewer resources and achieves higher accuracy scores compared to existing baselines that operate under similar conditions. Our code is available here.

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

↑