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

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, extended

Summary

SpanUQ is a lightweight, ~25M-parameter probe designed for Span-Level Uncertainty Estimation (SLUE) in large language model (LLM) generation, addressing the limitations of existing token- and sequence-level methods. It distills uncertainty knowledge from expensive multi-sample inference into a single forward pass over LLM hidden states. Utilizing a DETR-style span decoder and a Mixture of Beta distribution, SpanUQ simultaneously detects semantically coherent text spans and estimates their continuous uncertainty. Evaluated on SpanUQ-Bench, the first span-level uncertainty benchmark with ~293K annotated spans, SpanUQ consistently achieved AUROC 0.908–0.944 and MAE 0.110–0.129 across five LLM backbones (Qwen3-14B/8B/4B/30B-A3B, Mistral-7B). It is 10–20x faster than sampling-based methods, with its DETR detector reaching 0.910 F1, a 39.4% improvement over heuristics.

Key takeaway

For AI Scientists and ML Engineers deploying LLMs in high-stakes applications, SpanUQ offers a critical advancement for ensuring trustworthiness. You should consider integrating this lightweight probe to gain fine-grained, span-level uncertainty estimates, which are 10–20x faster than sampling methods. This enables precise localization of potentially erroneous claims, facilitating targeted human review or automated self-refinement. However, remember that SpanUQ estimates epistemic uncertainty from internal signals; it complements, but does not replace, external verification for factual correctness.

Key insights

SpanUQ provides fine-grained, efficient uncertainty estimates for LLM outputs by detecting semantically coherent text spans.

Principles

Method

SpanUQ fuses multi-layer LLM hidden states, encodes tokens, then uses a DETR-style decoder to detect spans and estimate uncertainty via Mixture of Beta. Uncertainty-Conditioned Iterative Refinement (UCIR) refines these estimates.

In practice

Topics

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.