arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.17229cs.LGcs.AIcs.CL
收藏

FactSelfCheck: LLMs中的事实级黑盒幻觉检测

FactSelfCheck: Fact-Level Black-Box Hallucination Detection for LLMs

wrocław University of Science and Technology(沃拉布罗德技术大学);University of Technology Sydney(悉尼技术大学)

Albert Sawczyn, Jakub Binkowski, Denis Janiak, Bogdan Gabrys, Tomasz Kajdanowicz

AI总结:

FactSelfCheck通过事实级黑盒采样方法提升LLM幻觉检测精度,实现更详细的事实性分析与纠正。

摘要:

大型语言模型(LLMs)经常生成幻觉内容,这对需要事实准确性的重要应用构成了重大挑战。尽管现有的幻觉检测方法通常在句子级别或段落级别运作,我们提出了FactSelfCheck,一种新颖的零资源黑盒采样方法,能够实现细粒度的事实级检测。我们的方法将文本表示为可解释的知识图谱,由事实三元组形式的事实组成,比传统方法提供更清晰的内容事实性洞察。通过分析多个LLM响应中的事实一致性,我们计算细粒度的幻觉分数,而无需外部资源或训练数据。我们的评估表明,FactSelfCheck在与领先的句子级采样方法竞争的同时,提供了更详细和可解释的洞察。最值得注意的是,我们的事实级方法显著提高了幻觉纠正,与基线相比,事实内容增加了35.5%,而句子级SelfCheckGPT仅提高了10.6%。检测的细粒度性质使能够更精确地识别和纠正幻觉内容。此外,我们贡献了FavaMultiSamples,一个新颖的数据集,通过提供第二个评估采样方法的数据集来填补该领域的空白。

英文摘要:

Large Language Models (LLMs) frequently generate hallucinated content, posing significant challenges for applications where factuality is crucial. While existing hallucination detection methods typically operate at the sentence level or passage level, we propose FactSelfCheck, a novel zero-resource black-box sampling-based method that enables fine-grained fact-level detection. Our approach represents text as interpretable knowledge graphs consisting of facts in the form of triples, providing clearer insights into content factuality than traditional approaches. Through analyzing factual consistency across multiple LLM responses, we compute fine-grained hallucination scores without requiring external resources or training data. Our evaluation demonstrates that FactSelfCheck performs competitively with leading sentence-level sampling-based methods while providing more detailed and interpretable insights. Most notably, our fact-level approach significantly improves hallucination correction, achieving a 35.5% increase in factual content compared to the baseline, while sentence-level SelfCheckGPT yields only a 10.6% improvement. The granular nature of our detection enables more precise identification and correction of hallucinated content. Additionally, we contribute FavaMultiSamples, a novel dataset that addresses a gap in the field by providing the research community with a second dataset for evaluating sampling-based methods.

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

↑