arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.17339cs.AI
收藏

排名是否成立?面向从业者的小型量化端侧大模型幻觉检测器审计

Does the Ranking Hold? A Practitioner-Facing Audit of Hallucination Detectors on Small, Quantized, On-Device LLMs

Shubhra Mittal, Gaurav Naresh Mittal

AI总结:

该研究审计了端侧小型量化大模型的幻觉检测器,发现跨模型排名反转、词汇基线与采样检测器表现无差异,还指出TruthfulQA标注器失效,为从业者提供了部署参考。

摘要:

大语言模型的幻觉检测方法多基于7B-70B规模的研究模型评估,这类模型拥有充足的采样预算,且采用精确匹配或ROUGE作为正确性标签。而从业者实际部署在端侧的小型模型,如Phi-3-mini、Llama-3.2-3B-Instruct、Qwen2.5-3B-Instruct和Gemma-2-2B-Instruct,通常为4位精度,不在上述评估的证据范围内。我们在单个Colab T4 GPU上,对4种覆盖三类范式的检测器开展了可复现的单GPU审计:范式包括长度归一化的token边际校准、词汇n元语法基线,以及两种基于采样的一致性方法(语义熵和SelfCheckGPT-NLI),评估对象为两种小型开源指令微调模型(Llama-3.2-3B-Instruct和Qwen2.5-3B-Instruct),采用4位NF4量化,评估数据集为闭卷TriviaQA。跨模型排名迁移性差:Spearman相关系数为-0.80,Kendall tau-b为-0.667,意味着检测器排名在两个模型间发生了反转;且在95%自助法置信区间下,廉价的词汇基线与基于采样的一致性检测器在两个模型上的表现无统计差异。作为第二项方法学贡献,我们发现TruthfulQA-Generation的标准token重叠多选正确性标注器,在两个模型上对四种检测器的AUROC接近随机水平(0.46-0.59),这是标注器的失效而非检测器的问题,因为相同检测器在同一流程下对TriviaQA的AUROC可达0.69-0.89。我们发布了测试框架、提示词和单样本得分,明确将检测器选择表述为资源受限端侧硬件部署从业者的错误率公平分配问题。

英文摘要:

Hallucination detection for large language models is dominated by methods evaluated on 7B-70B research models with abundant sampling budgets and exact-match or ROUGE correctness labels. The small models practitioners actually ship on-device, Phi-3-mini, Llama-3.2-3B-Instruct, Qwen2.5-3B-Instruct, and Gemma-2-2B-Instruct, typically at 4-bit precision, sit outside this evidence base. We present a reproducible one-GPU audit of four detectors spanning three paradigms: length-normalized token-margin calibration, a lexical n-gram baseline, and two sampling-based consistency methods (semantic entropy and SelfCheckGPT-NLI) on two small open instruction-tuned models (Llama-3.2-3B-Instruct and Qwen2.5-3B-Instruct) loaded at 4-bit NF4 quantization on a single Colab T4 GPU, evaluated on closed-book TriviaQA. Cross-model ranking transfer is poor: Spearman rho is -0.80 and Kendall tau-b is -0.667, meaning the detector ranking actively inverts between the two models, and the cheap lexical baseline is statistically indistinguishable from the sampling-based consistency detectors on both models under bootstrap 95 percent confidence intervals. As a second, methodological contribution, we show that the standard token-overlap-to-multiple-choice correctness labeler for TruthfulQA-Generation produces near-chance AUROC (0.46-0.59) for all four detectors on both models, a labeler failure, not a detector failure, since the same detectors reach 0.69-0.89 AUROC on TriviaQA under the identical pipeline. We release the harness, prompts, and per-item scores and frame the detector choice explicitly as a fairness-of-error-rates allocation problem for practitioners deploying on resource-constrained, on-device hardware.

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

↑