Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

To Believe or Not to Believe Your LLM: Iterative Prompting for Estimating Epistemic Uncertainty

Iterative prompting separates epistemic from aleatoric uncertainty in LLMs

  • Problem Uncertainty scores built for one correct answer misread queries with several valid answers. Total uncertainty cannot tell a correct multi-answer model from a wrong one.
  • Method The authors ask the LLM for answers in sequence, placing earlier ones in the prompt. They score the mutual information between answers, a lower bound on epistemic uncertainty.
  • Results On mixed single- and multi-label datasets, the MI score beats semantic entropy at high output entropy.

Why single-answer uncertainty scores fall short

Most uncertainty scores for LLMs assume a single correct answer. Log-likelihood thresholds, entropy estimates and ensembles all look for one dominant response, so a low score is read as a reliable answer. That reading fails once the query has several valid answers.

Such a query carries aleatoric uncertainty, and a perfect predictor can look as uncertain as a useless one. Total uncertainty alone therefore can't separate a correct but multi-answer model from a model that is simply wrong. The authors want a score that isolates epistemic uncertainty, the lack of knowledge about the ground truth.

The key idea: independence across repeated answers

The key idea is that valid answers to one query should be independent of each other. If the model has learned the ground truth, a second answer should not depend on the first one. Asking for several answers in sequence, with each earlier answer placed in the prompt, makes any dependence visible.

The authors build a joint distribution over responses with the chain rule, so each answer is conditioned on the query and the earlier answers. Because the usual conditioning is replaced by prompt functions of the earlier responses, they call the result a pseudo joint distribution. Sampling from it is a simple loop: draw the first answer, then draw each next answer from a prompt that contains the earlier ones.

If earlier answers strongly shift the next one, the model is not confident in what its parameters store. In that case its joint distribution sits far from the ground truth, which is how the paper reads high epistemic uncertainty. The method therefore targets the case where only the epistemic part is large.

Repeated wrong answers can override the model's preference

The authors test this on the query about the capital of the UK. The correct answer London starts at approximately 1, and the incorrect answer Paris is repeated in the prompt. Repetition changes the model's behaviour, but the correct answer keeps a substantial share of the probability.

The normalized probability of London falls only to about 96% after 100 repetitions of the incorrect answer. The authors read this as the model keeping a strong preference for a well-known fact. Other single-label queries show the same pattern, with the correct answer keeping a non-negligible probability.

For the query about the national instrument of Ireland, the two candidate answers both start with substantial probability. Under repetition, the probability of the correct answer collapses to near zero. The authors read this collapse as significant epistemic uncertainty, because the model has no firm preference to protect.

For multi-label queries, the other correct answers stay relatively large when one answer is placed in the prompt. This matches the idea that several valid answers are a form of aleatoric uncertainty, not a sign of hallucination.

Why a repeated answer can take over attention

The authors give a mechanistic explanation in one idealized self-attention head. The query sits in one row of the input matrix, and the context rows hold the earlier responses. The softmax weights each row by how well its key matches the query.

If the query lies along the large principal components of the key-query product, it dominates the softmax whatever the context says. In that case the head returns the response stored in the value matrix, which comes from the training data. So the output reflects the model's stored knowledge.

If the query has little overlap with those components, a repeated element gathers the weight and is copied. Even when the query is in the span, repeating an element many times can raise its total weight enough to win. This is the mechanism the authors offer for the repetition effect seen earlier.

Turning the joint distribution into a computable score

The epistemic metric is the KL divergence between the LLM-derived pseudo joint distribution and the ground-truth one. The authors can't evaluate this divergence directly, because they only have access to the LLM. Under the ground truth independence assumption, however, the divergence is at least the mutual information of the LLM-derived distribution.

This lower bound holds for every ground-truth distribution that satisfies the assumption. It also depends only on the model's own joint distribution, which makes it usable for decisions. The paper notes that the independence assumption almost never holds for the LLM in practice, so the mutual information is in general not zero.

The mutual information itself is the KL divergence between the joint distribution and the product of its marginals. Because the full support of the LLM is potentially infinite, the authors approximate it with a finite sample. Their MI estimator draws k tuples, keeps the unique ones and builds empirical distributions from them. Two stabilization parameters, gamma one and gamma two, account for the probability of unobserved tuples and keep the estimate bounded.

The MI score is then thresholded in an abstention policy. The threshold is tuned on a hold-out sample of the given task, so the policy abstains when the score is at or above it. In the experiments, the MI score is compared with the greedy-response probability, semantic entropy and self-verification.

How much error the finite sample can introduce

The estimation error is controlled by the missing mass, the probability of outcomes that the sample never produced. The theorem gives a high-probability lower bound on the mutual information in terms of the estimator. Its correction term involves the expected missing mass plus a concentration term that decays with the sample size.

The first bound is pessimistic and pays a factor n ln|X| when the samples say little about the support. The second bound uses a smaller effective support, which the authors expect to be small with high probability. In the empirical check, the effective support on two question-answering benchmarks rarely exceeds about 100 at mass 0.95.

The authors also argue that natural language often follows a Zipf distribution. For such a distribution with exponent alpha above one, the expected missing mass should decay fast. At alpha equal to two the decay could approach a rate of 1 over the square root of k.

Does the MI score detect hallucinations better?

The authors use Gemini 1.0 Pro to generate outputs and scores. The base data are a random subset of 50,000 TriviaQA datapoints and all 12038 AmbigQA datapoints. A WordNet-based multi-label dataset of 6015 datapoints is built from entity types, and responses match when their F1 score is at least 0.25.

The baselines are the greedy-response probability, semantic entropy with k equal to 10 samples, self-verification and the MI score. On TriviaQA and AmbigQA, the MI score is better than the greedy-response and self-verification baselines. It performs similarly to semantic entropy, because these datasets are mostly single-label and a first-order method is enough.

On WordNet the methods make no mistakes, so those results are omitted. They pair these 842 datapoints with 842 randomly chosen TriviaQA or AmbigQA datapoints to build two mixed datasets.

On the mixed datasets, semantic entropy degrades noticeably, and the MI score outperforms it. The authors explain this by the mixing of single-label and high-entropy multi-label queries, which need different thresholds. A threshold calibrated on one kind of data is hard to reuse on the other kind.

In a calibration experiment, 500 WordNet datapoints are added to 500 TriviaQA datapoints, with a separate test set. The experiment is repeated 10 times and reports 95% confidence intervals from a Gaussian approximation. Semantic entropy's recall is nearly zero for high-entropy queries, while the M.I. method makes only a few mistakes on them.

Limitations

The independence assumption is the main constraint, since it needs valid earlier responses. Partial answers or prompts that redefine the task can make the later responses depend on the earlier ones. In that case the lower bound no longer follows.

The pessimistic bound carries a factor n ln|X|, which can be large when samples miss the support. The tighter bound applies only when the effective support is small with high probability. The paper's evidence for that comes from two question-answering benchmarks.

The main results use Gemini 1.0 Pro, TriviaQA, AmbigQA and the WordNet-derived dataset. A smaller Gemini 1.0 Nano-1 model is reported only in an appendix. Other models and tasks are not tested in the main text.

Paper info

Authors
Yadkori, Yasin A., Kuzborskij, Ilja, György, András, Szepesvári, Csaba
Venue
Advances in Neural Information Processing Systems · Published
First published
2024-12-16
Added
2026-11-27
DOI
10.52202/079017-1852
Original paper terms
Check in the original ↗
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Yadkori, Yasin A., Kuzborskij, Ilja, György, András, Szepesvári, Csaba (2024). To Believe or Not to Believe Your LLM: Iterative Prompting for Estimating Epistemic Uncertainty. Advances in Neural Information Processing Systems. https://doi.org/10.52202/079017-1852

BibTeX
@article{a2024believe,
  title = {{To Believe or Not to Believe Your LLM: Iterative Prompting for Estimating Epistemic Uncertainty}},
  author = {Yadkori, Yasin A. and Kuzborskij, Ilja and György, András and Szepesvári, Csaba},
  year = {2024},
  journal = {Advances in Neural Information Processing Systems},
  doi = {10.52202/079017-1852},
  url = {https://papers.nips.cc/paper_files/paper/2024/hash/6aebba00fff5b6de7b488e496f80edd7-Abstract-Conference.html}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up