atlas

Research map / Large language models / Language, safety and interpretability

Semantic Density: Uncertainty Quantification for Large Language Models through Confidence Measurement in Semantic Space

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Uncertainty quantification for LLMs · 6 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes semantic density, a response-wise, off-the-shelf confidence metric that weights NLI-based semantic distances to sampled reference responses by their LLM sequence probabilities, outperforming six uncertainty baselines on seven LLMs and four QA benchmarks.

Problem

Existing LLM uncertainty quantification methods are restricted to classification, need extra training or labels, use only lexical information, or are prompt-wise rather than response-wise, so they cannot give each free-form response a trustworthiness score.

Approach

Treats sampled responses as a probability distribution in a semantic space and estimates a response's density via a kernel over semantic distances (derived from NLI class probabilities) weighted by sequence probabilities, yielding a response-wise confidence in [0,1] with no training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use semantic density instead of existing uncertainty metricsLLM response confidence estimation · CoQA, TriviaQA, SciQ, and NQAUROCMixed
Use semantic density instead of semantic entropyLLM response confidence estimation · DUC-2004 summarizationAUROCMixed
Reduce the number of reference responses from 10 toward 1 (ablation)Semantic density · CoQA, TriviaQA, SciQ, and NQAUROCHurt
Use at least four reference responses instead of fewer (ablation)Semantic density · CoQA, TriviaQA, SciQ, and NQAUROCHelped
Vary target-response sampling from more greedy to more diverse beam groups (ablation)Semantic density · CoQA, TriviaQA, SciQ, and NQAUROCNo clear effect
Use semantic density instead of other metrics as the correctness threshold variesLLM response confidence estimation · CoQA, TriviaQA, SciQ, and NQAUROCHelped

Surprising findings

Limitations

Experimental setup

Datasets: CoQA TriviaQA SciQ Natural Questions DUC-2004

Benchmarks: CoQA TriviaQA SciQ NQ DUC-2004

Metrics: AUROC AUPR paired t-test p-value

Baselines: semantic entropy P(True) degree matrix uncertainty length-normalized likelihood length-normalized entropy predictive entropy

Builds on: semantic entropy kernel density estimation diverse beam search Epanechnikov kernel

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy