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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Beigi, Mohammad, Shen, Ying, Yang, Runing, Lin, Zihao, Wang, Qifan, Mohan, Ankith, He, Jianfeng, Jin, Ming, Lu, Chang-Tien, Huang, Lifu
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914837751136256
author Beigi, Mohammad
Shen, Ying
Yang, Runing
Lin, Zihao
Wang, Qifan
Mohan, Ankith
He, Jianfeng
Jin, Ming
Lu, Chang-Tien
Huang, Lifu
author_facet Beigi, Mohammad
Shen, Ying
Yang, Runing
Lin, Zihao
Wang, Qifan
Mohan, Ankith
He, Jianfeng
Jin, Ming
Lu, Chang-Tien
Huang, Lifu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_12053
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle InternalInspector $I^2$: Robust Confidence Estimation in LLMs through Internal States
Beigi, Mohammad
Shen, Ying
Yang, Runing
Lin, Zihao
Wang, Qifan
Mohan, Ankith
He, Jianfeng
Jin, Ming
Lu, Chang-Tien
Huang, Lifu
Computation and Language
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.
title InternalInspector $I^2$: Robust Confidence Estimation in LLMs through Internal States
topic Computation and Language
url https://arxiv.org/abs/2406.12053