NeurIPS 2026QuestionsPapersAreasAboutMarkdown

SPANUQ: Span-Level Uncertainty Quantification for Large Language Model Generation

Yimeng Zhang, Yingying Zhuang, Ziyi Wang, Yuxuan Lu, Pei Chen, Aman Gupta, Zhe Su, Ming Tan, Zhilin Zhang, Qun Liu, Manikandarajan Ramanathan, Rajashekar Maragoud, Edward Vul, Jing Huang, Dakuo Wang

NeurIPS page · OpenReview · Open on the map

Category: LLM Agents, Evals & Benchmarks › LLM Uncertainty Quantification · Type: new method · Keywords: span-level uncertainty, LLM confidence estimation, probe distillation, DETR span detection, Beta mixture modeling

Summary

SPANUQ is a lightweight probe that distills uncertainty knowledge from expensive multi-sample inference into a single forward pass over LLM hidden states, providing span-level uncertainty quantification for LLM generation.

Explained to a 5-year-old

Large language models sometimes make mistakes when they write sentences. We want to know how sure they are about each part of what they write. The researchers created a new way to guess the confidence of each piece of text, like a small helper that looks at the model's thoughts and says how sure it is. This helps us find out where the model might be wrong. So we can trust it better.

Explained to a 5-year-old, longer

When computers write stories or answer questions, they sometimes aren't sure about what they're saying. Right now, we can only see how unsure they are for the whole answer or for each word. But knowing which part of the answer might be wrong is really helpful. The researchers wanted to figure out a way to see how unsure the computer is about each small piece of text, like a sentence or a phrase. They built a tiny model that watches how the big computer thinks and learns from many guesses to know how confident it is. This tiny model can look at the big computer's ideas and give a confidence score for each piece of text. It works like a detector that finds important parts and then says how sure the big computer is about them. The confidence scores help us spot errors in specific parts of the answer. This makes it easier to trust the computer's output and fix mistakes where they happen. By using this method, we can improve the reliability of language models in real-world applications.

For a technical reader

SPANUQ is a lightweight probe that extracts span-level uncertainty from LLM hidden states in a single forward pass, using a DETR-style decoder and a mixture of Beta distributions. It is trained with a combination of Beta NLL regression and contrastive ranking objectives, delivering AUROC up to 0.944 and MAE around 0.12 across multiple LLMs. The span detector achieves 0.910 F1, enabling precise error localization that sequence-level methods cannot provide.

Problem

Existing uncertainty estimation methods for language models operate at token or sequence level, which either lack semantic coherence or cannot localize errors. There is a need for uncertainty estimation at a finer, semantically coherent span level to enable trustworthy deployment and self-refinement.

Method

The approach distills uncertainty knowledge from multi-sample inference into a single forward pass over LLM hidden states using a span decoder that simultaneously detects spans and estimates uncertainty via a mixture of Beta distributions, trained with Beta negative log-likelihood regression and contrastive ranking objectives.

Results

The approach achieves AUROC 0.908-0.944 and MAE 0.110-0.129 on five LLM backbones, outperforming sampling-based methods and probe baselines while being 10-20× faster, and its span detector attains 0.910 F1, surpassing heuristics by 39.4%.

Contributions

The paper introduces a new task for estimating uncertainty at the span level, a lightweight probe that distills multi-sample inference into a single forward pass, a DETR-style span decoder with Beta mixture uncertainty modeling, and releases a span-level uncertainty benchmark with 20K prompts and ~293K annotated spans.

Practical relevance

Enables more trustworthy deployment and self-refining generation of LLMs by providing fine-grained uncertainty estimates that can localize errors.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction