atlas

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

Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Uncertainty quantification for LLMs · 3 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 Kernel Language Entropy (KLE), which computes the von Neumann entropy of NLI-derived semantic unit-trace kernels to give fine-grained uncertainty estimates for LLM outputs, generalizing semantic entropy.

Problem

Estimating semantic uncertainty of free-form LLM generations is hard because semantic entropy only uses hard equivalence clusters and ignores graded semantic similarity between answers, which hurts hallucination detection.

Approach

Encode semantic similarity between generations (or clusters) as a unit-trace PSD kernel built from NLI-derived weighted graphs (heat or Matérn graph kernels), and measure uncertainty as the von Neumann entropy of that kernel; this provably generalizes semantic entropy.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use KLE(K_heat) instead of semantic entropyLlama 2 70B Chat · Trivia QAAUROC: 0.77 ± 0.03 -> 0.84 ± 0.03Helped
Use KLE(K_heat) instead of semantic entropyFalcon 40B Instruct · BioASQAUROC: 0.85 ± 0.02 -> 0.92 ± 0.01Helped
Use KLE(K_heat) instead of semantic entropyFalcon 40B Instruct · NQAUROC: 0.78 ± 0.03 -> 0.76 ± 0.03Hurt
Use KLE(K_heat) instead of semantic entropyFalcon 40B Instruct · NQAUARC: 0.43 ± 0.03 -> 0.42 ± 0.03Hurt
Use KLE(K_heat) instead of KLE(K_full) (ablation)KLE · Llama 2 70B Chat, Trivia QAAUROC: 0.80 ± 0.03 -> 0.84 ± 0.03Helped
Use KLE(K_heat) instead of KLE(K_full) (ablation)KLE · Falcon 40B Instruct, SVAMPAUROC: 0.69 ± 0.03 -> 0.77 ± 0.02Helped
Use default kernel hyperparameters selected from entropy convergence plots rather than validation-set selection (ablation)KLE · 60 experimental scenariosAUROCNo clear effect
Use heat kernel rather than other evaluated kernel design choices (ablation)KLE · 48 experimentsoverall performanceHelped
Use KLE rather than existing uncertainty methodsInstruction-tuned models · 60 experimental scenariosAUROCHelped
Use KLE rather than existing uncertainty methodsNon-instruction-tuned models · 60 experimental scenariosAUROCMixed
Include semantic probabilities by using variations of K_full (ablation)KLE on non-instruction-tuned models · Non-instruction-tuned scenariosuncertainty quantification performanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: TriviaQA SQuAD BioASQ Natural Questions SVAMP

Benchmarks: TriviaQA SQuAD BioASQ Natural Questions SVAMP

Metrics: AUROC AUARC

Baselines: semantic entropy discrete semantic entropy token predictive entropy embedding regression P(True)

Builds on: semantic entropy discrete semantic entropy P(True) DeBERTa-Large-MNLI

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