Factual Confidence of LLMs: on Reliability and Robustness of Current Estimators

Matéo Mahaut, Laura Aina, Paula Czarnowska, Momchil Hardalov, Thomas Müller +1 more
6/19/2024
cs.CLcs.LG

Official code: amazon-science/factual-confidence-of-llms (17 stars, Apache-2.0, last commit 2024-12-04).

Abstract

Large Language Models (LLMs) tend to be unreliable in the factuality of their answers. To address this problem, NLP researchers have proposed a range of techniques to estimate LLM's confidence over facts. However, due to the lack of a systematic comparison, it is not clear how the different methods compare to one another. To fill this gap, we present a survey and empirical comparison of estimators of factual confidence. We define an experimental framework allowing for fair comparison, covering both fact-verification and question answering. Our experiments across a series of LLMs indicate that trained hidden-state probes provide the most reliable confidence estimates, albeit at the expense of requiring access to weights and training data. We also conduct a deeper assessment of factual confidence by measuring the consistency of model behavior under meaning-preserving variations in the input. We find that the confidence of LLMs is often unstable across semantically equivalent inputs, suggesting that there is much room for improvement of the stability of models' parametric knowledge. Our code is available at (https://github.com/amazon-science/factual-confidence-of-llms).

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for paper "Factual Confidence of LLMs: on Reliability and Robustness of Current Estimators"

172Shell, PythonJun 3, 20241 years agoApache-2.0
confidencefactualfactualityllmllms+1 more

Similar Papers

Cite this paper

@article{mahaut2024factual,
  title  = {Factual Confidence of LLMs: on Reliability and Robustness of Current Estimators},
  author = {Matéo Mahaut and Laura Aina and Paula Czarnowska and Momchil Hardalov and Thomas Müller and Lluís Màrquez},
  year   = {2024},
  eprint = {2406.13415},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.13415v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.13415.svg)](https://codeofpaper.com/paper/2406.13415)

Discussion