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

InternalInspector $I^2$:通过内部状态实现大语言模型的鲁棒置信度估计

InternalInspector $I^2$: Robust Confidence Estimation in LLMs through Internal States

Virginia Tech(弗吉尼亚理工大学);Meta AI

Mohammad Beigi, Ying Shen, Runing Yang, Zihao Lin, Qifan Wang, Ankith Mohan, Jianfeng He, Ming Jin, Chang-Tien Lu, Lifu Huang

AI总结:

针对大语言模型易产生高置信度幻觉的问题,提出基于全层内部状态对比学习的InternalInspector框架,在多类NLP任务及HaluEval基准上,置信度估计准确率和校准误差表现均优于现有方法。

摘要:

尽管大语言模型(LLM)功能强大,但它们往往难以生成可靠输出,频繁产生被称为幻觉的高置信度错误结果。为应对这一挑战,本研究提出InternalInspector(内部检查器),这一新型框架通过对内部状态(包括所有层的注意力状态、前馈状态和激活状态)进行对比学习,来增强LLM的置信度估计能力。与主要聚焦于最终激活状态的现有方法不同,InternalInspector对每一层的所有内部状态开展全面分析,以准确识别正确和错误的预测过程。我们在多种自然语言理解与生成任务(包括事实问答、常识推理和阅读理解)上,将InternalInspector与现有置信度估计方法进行基准测试,结果显示InternalInspector在让估计的置信度分数与LLM预测的正确性对齐方面,准确率显著更高,且校准误差更低。此外,InternalInspector在幻觉检测基准HaluEval上表现出色,在该任务中优于其他基于内部状态的置信度估计方法。

英文摘要:

Despite their vast capabilities, Large Language Models (LLMs) often struggle with generating reliable outputs, frequently producing high-confidence inaccuracies known as hallucinations. Addressing this challenge, our research introduces InternalInspector, a novel framework designed to enhance confidence estimation in LLMs by leveraging contrastive learning on internal states including attention states, feed-forward states, and activation states of all layers. Unlike existing methods that primarily focus on the final activation state, InternalInspector conducts a comprehensive analysis across all internal states of every layer to accurately identify both correct and incorrect prediction processes. By benchmarking InternalInspector against existing confidence estimation methods across various natural language understanding and generation tasks, including factual question answering, commonsense reasoning, and reading comprehension, InternalInspector achieves significantly higher accuracy in aligning the estimated confidence scores with the correctness of the LLM's predictions and lower calibration error. Furthermore, InternalInspector excels at HaluEval, a hallucination detection benchmark, outperforming other internal-based confidence estimation methods in this task.

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

↑