Unconditional Truthfulness: Learning Unconditional Uncertainty of Large Language Models

Artem Vazhentsev, Ekaterina Fadeeva, Rui Xing, Gleb Kuzmin, Ivan Lazichny +5 more
8/20/2024
cs.CL

No confident code implementation found for this paper.

Abstract

Uncertainty quantification (UQ) has emerged as a promising approach for detecting hallucinations and low-quality output of Large Language Models (LLMs). However, obtaining proper uncertainty scores is complicated by the conditional dependency between the generation steps of an autoregressive LLM because it is hard to model it explicitly. Here, we propose to learn this dependency from attention-based features. In particular, we train a regression model that leverages LLM attention maps, probabilities on the current generation step, and recurrently computed uncertainty scores from previously generated tokens. To incorporate the recurrent features, we also suggest a two-staged training procedure. Our experimental evaluation on ten datasets and three LLMs shows that the proposed method is highly effective for selective generation, achieving substantial improvements over rivaling unsupervised and supervised approaches.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{vazhentsev2024unconditional,
  title  = {Unconditional Truthfulness: Learning Unconditional Uncertainty of Large Language Models},
  author = {Artem Vazhentsev and Ekaterina Fadeeva and Rui Xing and Gleb Kuzmin and Ivan Lazichny and Alexander Panchenko and Preslav Nakov and Timothy Baldwin and Maxim Panov and Artem Shelmanov},
  year   = {2024},
  eprint = {2408.10692},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.10692v2}
}

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/2408.10692.svg)](https://codeofpaper.com/paper/2408.10692)

Discussion