Fact-Checking the Output of Large Language Models via Token-Level Uncertainty Quantification

Ekaterina Fadeeva, Aleksandr Rubashevskii, Artem Shelmanov, Sergey Petrakov, Haonan Li, Hamdy Mubarak, Evgenii Tsymbalov, Gleb Kuzmin, Alexander Panchenko, Timothy Baldwin, Preslav Nakov, Maxim Panov

arXiv:2403.04696 · 2026-07-27 공개 · arXiv · PDF

llm-evaluation large-language-models uncertainty-quantification hallucination-detection fact-checking token-level-uncertainty claim-conditioned-probability biography-generation

Abstract

Large language models (LLMs) are notorious for hallucinating, i.e., producing erroneous claims in their output. Such hallucinations can be dangerous, as occasional factual inaccuracies in the generated text might be obscured by the rest of the output being generally factually correct, making it extremely hard for the users to spot them. Current services that leverage LLMs usually do not provide any means for detecting unreliable generations. Here, we aim to bridge this gap. In particular, we propose a novel fact-checking and hallucination detection pipeline based on token-level uncertainty quantification. Uncertainty scores leverage information encapsulated in the output of a neural network or its layers to detect unreliable predictions, and we show that they can be used to fact-check the atomic claims in the LLM output. Moreover, we present a novel token-level uncertainty quantification method that removes the impact of uncertainty about what claim to generate on the current step and what surface form to use. Our method Claim Conditioned Probability (CCP) measures only the uncertainty of a particular claim value expressed by the model. Experiments on the task of biography generation demonstrate strong improvements for CCP compared to the baselines for seven LLMs and four languages. Human evaluation reveals that the fact-checking pipeline based on uncertainty quantification is competitive with a fact-checking tool that leverages external knowledge.

한국어 요약

한 줄 요약

대형 언어 모델의 생성물에 포함된 오류를 토큰 수준 불확실성 측정을 통해 탐지하는 새로운 팩트체킹 파이프라인을 제안한다.

핵심 기여도

핵심 아이디어

대형 언어 모델은 생성물에 자주 **hallucination**(오류)를 포함시키며, 이는 사용자가 정확한 정보를 식별하는 데 어려움을 줌. 기존 팩트체킹 시스템은 외부 지식을 필요로 하며, 계산 비용이 높고 불완전한 경우가 많다. 본 연구는 **LLM 자체 출력 내에 포함된 정보만으로** 오류를 탐지할 수 있는 새로운 접근법을 제안한다.

핵심 아이디어는 **토큰 수준의 불확실성**(Uncertainty Quantification, UQ)을 측정하여, 생성된 문장 내 특정 주장(claim)의 신뢰도를 평가하는 것이다. 기존 방법은 전체 문장 수준의 불확실성을 측정하는 데 초점을 맞추었으나, 본 연구는 **개별 주장 수준**(claim-level)의 불확실성을 추출한다. 이를 위해 **Claim Conditioned Probability (CCP)**라는 새로운 메트릭을 제안하며, 이는 모델이 특정 주장 값을 표현할 때의 불확실성만을 측정한다. CCP는 표면형식(surface form)이나 주장 유형 선택에 따른 불확실성을 제거하여, **정확한 오류 탐지**를 가능하게 한다.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용