arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.05360cs.CLcs.LG
收藏

超越ROUGE:用于大语言模型幻觉检测的N-gram子空间特征

Beyond ROUGE: N-Gram Subspace Features for LLM Hallucination Detection

University of California, Riverside(加州大学河滨分校)

Jerry Li, Evangelos Papalexakis

AI总结:

针对大语言模型幻觉检测,提出基于N-gram频率张量分解的子空间特征,训练MLP分类器,在HaluEval上超越传统基线,媲美最先进LLM评判器。

摘要:

大语言模型(LLMs)在涉及自然语言的广泛任务中已展现出有效性,然而,幻觉这一根本性问题仍然困扰着这些模型,限制了它们在生成一致、真实信息方面的可信度。检测幻觉迅速成为一个重要课题,各种方法如不确定性估计、LLM评判器、检索增强生成(RAG)和一致性检查均显示出潜力。这些方法中的许多都建立在基础指标之上,如ROUGE、BERTScore或困惑度,而这些指标往往缺乏有效检测幻觉所需的语义深度。在这项工作中,我们提出了一种受ROUGE启发的新方法,该方法从LLM生成的文本中构建一个N-gram频率张量。该张量通过编码共现模式捕获更丰富的语义结构,从而能够更好地区分事实性内容与幻觉内容。我们通过应用张量分解方法从每个模式中提取奇异值,并将这些值作为输入特征来训练一个用于幻觉检测的多层感知器(MLP)二分类器来展示这一点。我们的方法在HaluEval数据集上进行了评估,并显示出相对于传统基线的显著改进,以及与最先进的LLM评判器相比具有竞争力的性能。

英文摘要:

Large Language Models (LLMs) have demonstrated effectiveness across a wide variety of tasks involving natural language, however, a fundamental problem of hallucinations still plagues these models, limiting their trustworthiness in generating consistent, truthful information. Detecting hallucinations has quickly become an important topic, with various methods such as uncertainty estimation, LLM Judges, retrieval augmented generation (RAG), and consistency checks showing promise. Many of these methods build upon foundational metrics, such as ROUGE, BERTScore, or Perplexity, which often lack the semantic depth necessary to detect hallucinations effectively. In this work, we propose a novel approach inspired by ROUGE that constructs an N-Gram frequency tensor from LLM-generated text. This tensor captures richer semantic structure by encoding co-occurrence patterns, enabling better differentiation between factual and hallucinated content. We demonstrate this by applying tensor decomposition methods to extract singular values from each mode and use these as input features to train a multi-layer perceptron (MLP) binary classifier for hallucinations. Our method is evaluated on the HaluEval dataset and demonstrates significant improvements over traditional baselines, as well as competitive performance against state-of-the-art LLM judges.

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

↑