语义幻觉:基于嵌入的幻觉检测在RAG系统中的认证极限
The Semantic Illusion: Certified Limits of Embedding-Based Hallucination Detection in RAG Systems
AI总结:
研究揭示了基于嵌入的幻觉检测在RAG系统中存在语义幻觉问题,通过符合预测方法发现真实幻觉检测的挑战,证明需通过推理而非表面语义解决。
摘要:
检索增强生成(RAG)系统尽管基于检索到的证据,仍然容易出现幻觉。尽管当前的检测方法利用嵌入相似性和自然语言推理(NLI),其在安全关键环境中的可靠性尚未得到证实。我们应用符合预测方法到RAG幻觉检测中,将启发式分数转换为具有有限样本覆盖保证(1-α)的决策集。使用n=600的校准集,我们证明了一个根本的二元性:在合成幻觉(自然问题)上,嵌入方法在95%的覆盖范围内达到0%的假阳性率(FPR)。然而,在来自RLHF对齐模型(HaluEval)的真实幻觉上,同样的方法却失败了,导致在目标覆盖下产生100%的假阳性率。我们通过分布尾部的视角分析这一失败,显示虽然NLI模型实现了可接受的AUC(0.81),但“最难”的幻觉在语义上与忠实响应无法区分,迫使符合阈值拒绝几乎所有有效的输出。关键的是,GPT-4作为判断者在相同数据上实现了7%的FPR(95%置信区间:[3.4%,13.7%]),证明该任务可以通过推理解决,但对表面语义是不透明的——我们称之为“语义幻觉”现象。
英文摘要:
Retrieval-Augmented Generation (RAG) systems remain susceptible to hallucinations despite grounding in retrieved evidence. While current detection methods leverage embedding similarity and natural language inference (NLI), their reliability in safety-critical settings remains unproven. We apply conformal prediction to RAG hallucination detection, transforming heuristic scores into decision sets with finite-sample coverage guarantees (1-alpha). Using calibration sets of n=600, we demonstrate a fundamental dichotomy: on synthetic hallucinations (Natural Questions), embedding methods achieve 95% coverage with 0% False Positive Rate (FPR). However, on real hallucinations from RLHF-aligned models (HaluEval), the same methods fail catastrophically, yielding 100% FPR at target coverage. We analyze this failure through the lens of distributional tails, showing that while NLI models achieve acceptable AUC (0.81), the "hardest" hallucinations are semantically indistinguishable from faithful responses, forcing conformal thresholds to reject nearly all valid outputs. Crucially, GPT-4 as a judge achieves 7% FPR (95% CI:[3.4%, 13.7%]) on the same data, proving the task is solvable via reasoning but opaque to surface-level semantics--a phenomenon we term the "Semantic Illusion."
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。