Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

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

Related benchmarks

TaskDatasetResultRank
Confidence EstimationVLCB Pooled Aggregate (test)
ECE4.29
48
Large Vision-Language Model EvaluationUnweighted Average
ECE9.8
29
Vision-Language Question AnsweringPooled Shared (GQA, POPE, LLaVA-Wild, MMMU Pro, GMAI-MMBench, MME-Finance) (test)
Expected Calibration Error (ECE)5.4
22
Multimodal UnderstandingCross-LVLM (Aggregate of GQA, GMAI-MMBench, POPE, MME-Finance, MMMU_Pro, LLaVA-Wild) (test)
ECE18
8
Truthfulness and Calibration EvaluationCross-LVLM Pooled Average (GQA, POPE, etc.)
ECE8.3
8
Calibration and DiscriminationShared pooled aggregation (test)
Brier Score (BS)1
4
Uncertainty EstimationShared (GQA, POPE, etc.) (test)
ECE0.007
4
Showing 7 of 7 rows

Other info

Follow for update