TL;DR
When an LLM tells you it’s only "30% confident," is it hallucinating, or did you just write a vague prompt? ShaQ (Shapley-based input uncertainty Quantification) goes beyond telling you that your prompt is ambiguous—it highlights the exact phrases causing the confusion. By treating ambiguous phrases as players in a cooperative game, ShaQ untangles how different parts of a sentence interact, giving you surgical, actionable feedback on how to clarify your question.
What Problem Does This Paper Address?
Uncertainty in machine learning generally comes in two flavors: epistemic (the model lacks knowledge) and aleatoric (the input itself is noisy or ambiguous). When you’re using a frozen, black-box LLM via an API, you can’t update its weights to fix its knowledge gaps. Your main lever for improving reliability is fixing the input.
Most existing LLM uncertainty methods only look at the output, handing you a single confidence score that conflates model hallucination with prompt ambiguity. Recent input-centric methods try to isolate prompt ambiguity, but they still output a single scalar score for the entire prompt—essentially flashing a "Check Engine" light without telling you what's broken.
Consider the query: "The man in the suit walked into the bank. Did he go there to make a deposit?" Here, "the man in the suit" could be a businessman or a robber, and "the bank" could be a financial institution or a riverbank. Worse, these ambiguities interact: if you clarify that the man is a bank robber, "the bank" is suddenly no longer a riverbank. Leaving out one span at a time misses these dependencies. How do we fairly credit each phrase for the model's overall confusion?
Methods
To untangle interdependent phrases, the authors turn to cooperative game theory—specifically, Shapley values, a classic method for fairly distributing a total "payoff" among players who work in coalitions.
In ShaQ, the "players" are individual ambiguous spans in the prompt, and the "payoff" is the total input-induced uncertainty (measured via mutual information—how much the entropy of the LLM's answer drops once the prompt is clarified). A span's Shapley value is the average reduction in answer uncertainty achieved by clarifying that span across all possible combinations of other clarified spans.
To estimate this practically without access to model weights, ShaQ orchestrates four specialized LLM roles across a modular pipeline:
- Localizer & Generator: Extracts candidate ambiguous spans and generates concrete clarifying statements (called premises) for each—e.g., "the city refers to Sydney" vs. "New York".
- Answerer & Clusterer: Generates multiple answers for every combination of premises, then groups all answers across the entire pool into a single, shared set of semantic clusters so probability distributions can be compared apples-to-apples.
- Bottom-Up Marginalization (Novel Algorithm): Instead of querying the LLM separately for partial subsets of clarifications (which causes noisy, inconsistent probability estimates and impossible negative information gains), ShaQ only samples answers at the finest level (where all spans are clarified). It then computes probabilities for partial coalitions mathematically by averaging over the unclarified spans' premises, provably guaranteeing non-negative uncertainty scores.
Datasets
ShaQ is evaluated entirely zero-shot/few-shot on three existing benchmarks:
- AmbigQA: Open-domain questions that admit multiple valid answers due to ambiguity.
- AmbiEnt: A natural language inference benchmark featuring complex, compositional linguistic ambiguities.
- MediTOD: Simulated doctor-patient clinical dialogues. The authors also curate a balanced 110-utterance evaluation subset from MediTOD (annotated via an LLM) specifically targeting unclear patient symptom descriptions that prompted physician follow-up questions.
Key Insights and Ideas
- Global uncertainty is just the sum of local parts: Because Shapley values satisfy the efficiency axiom, adding up ShaQ's span-level scores recovers the exact total input uncertainty used in prior monolithic methods (like Input Clarification Ensembles). ShaQ mathematically generalizes prior work while giving you X-ray vision into the prompt.
- Unguided clarification can backfire: In simulated user-clarification experiments, giving an LLM user a single prompt-level uncertainty score resulted in bulky rewrites that actually increased predictive entropy (confusion went up!). Highlighting specific spans enabled minimal, surgical edits that reliably reduced uncertainty.
- Self-correcting localization: What if the
LocalizerLLM hallucinates an "ambiguous" span that is actually crystal clear? Clarifying it won't change theAnswerer's output distribution, meaning ShaQ naturally assigns it a near-zero Shapley value, neutralizing extraction errors.
Key Results
- Ambiguity Detection: ShaQ achieves state-of-the-art ambiguity detection across GPT and Gemini backbones. On AmbiEnt (with GPT-5.4-mini), ShaQ reaches 77.80 AUROC and 74.60 F1, substantially outperforming the strongest input-level baseline, ICE (55.40 AUROC, 57.33 F1), and leave-one-out ablations (52.66 AUROC). On multi-span inputs, ShaQ's AUROC jumps to 81.31 vs. ICE's 53.40.
- Targeted Clarification: On AmbigQA, ShaQ-guided prompt revisions achieved the largest drop in predictive entropy ($\Delta \mathcal{H} = +0.0389$) with the fewest word edits (5.52 words), whereas ICE and Deep Ensembles required more edits (6.79 and 7.45) and degraded entropy ($-0.0633$ and $-0.0076$).
- Clinical Utility: On the MediTOD subset, ShaQ outperformed ICE in detecting ambiguous patient utterances (83.12 vs. 59.44 AUROC), and its top-ranked ambiguous span matched the doctor's actual follow-up question 72.09% of the time.
Limitations and Future Work
Not discussed in the paper. (Note: While pages 1–10 do not contain a dedicated Limitations or Future Work section, readers may notice from the pipeline formulation that evaluating all joint combinations of premises scales exponentially with the number of ambiguous spans—though the authors mitigate this in Stage 1 by restricting localization to a small set of minimal, coherent spans.)
Summary updated