betaFeedback

WorksComputer Science

Detect Before You Disambiguate: Perturbation-Based Input Ambiguity Detection in LLMs

Abstract

Large language models (LLMs) often answer ambiguous inputs as if they had a single intended meaning. This is problematic because input ambiguity is an upstream source of uncertainty: when a prompt admits multiple valid interpretations, the key question is whether the model should answer directly at all. Existing input uncertainty methods often rely on LLM-generated statements or clarifications, but such transformations may already disambiguate the input before the ambiguity is measured. We propose a label-preserving perturbation framework for input ambiguity detection in which perturbations remain close to the original input while preserving its label. We instantiate this principle with two detectors: a black-box rule-based perturbation library and a white-box importance-guided method using model-internal signals. Experiments across four datasets in open-domain, conversational, and visual QA show that our methods outperform output-side uncertainty baselines and LLM-paraphrase-based perturbation baselines. Our results highlight the importance of detecting ambiguity before attempting to disambiguate it. Our code is available \href{https://github.com/Xiao0o0o/input-ambiguity-detection}{\textcolor{purple}{here}}.

Introduction

Large language models (LLMs) are increasingly deployed as question-answering systems, yet many real-world questions admit more than one legitimate interpretation (Min et al., 2020; Liu et al., 2023; Keyvan and Huang, 2022; Liu et al., 2026). When a question is ambiguous, a model cannot answer it well without first recognizing that an interpretive choice is required. After the ambiguity is recognized, a capable system has several reasonable options: it can ask the user a clarifying question, enumerate the plausible interpretations and answer each, or state the interpretation it is assuming (Zhang et al., 2025; Kuhn et al., 2022). The problematic case is when the model silently commits to a single arbitrary interpretation and generates a single “confident” answer, as if the question had no ambiguity at all. Consider a user who asks "When did the team win the championship?" without specifying which team or which championship: a model that quietly settles on one reading may return a fluent, confident year that happens to answer a question the user never asked, with no recognition that other readings exist. Recent studies find that current models frequently fail at exactly this recognition step (Vijayavargiya et al., 2025; Zhang et al., 2024; Kim et al., 2024).

Detecting whether a question is ambiguous is therefore a prerequisite for trustworthy question answering. If ambiguity can be detected, a system need not gamble on an arbitrary interpretation. We therefore frame the problem as a two-stage objective: first, detect whether a question is ambiguous, and then, conditioned on that detection, mitigate the ambiguity through targeted clarification or enumeration. Reliable detection is the foundation on which mitigation rests.

A natural and widely used strategy for detection is to probe the model’s consistency: rephrase the question several ways, sample answers under each rephrasing, and treat disagreement among the answers as evidence of ambiguity (Hou et al., 2024; Cole et al., 2023; Kuhn et al., 2023). Intuitively, an unambiguous question should yield consistent answers while an ambiguous one should not. However, the existing implementation contains a subtle flaw: When a language model is used to rephrase the question, it must first understand the question, and understanding an ambiguous question entails resolving its ambiguity. The rephrased question tends to encode a single interpretation chosen by the rephrasing model, eliminating the ambiguity that the procedure is meant to detect.

Our core principle is that the step of ambiguity detection should not involve understanding the question. To preserve the ambiguity signal, the transformation applied to the input must be semantics-blind: it should stay close enough to the original input that it does not become a disambiguation step, yet remains expressive enough to expose interpretation-dependent behavior. We model this trade-off in the language of the information bottleneck (Tishby et al., 1999): we seek a perturbation that discards information about the input’s surface form while preserving information about its ambiguity, and we use this principle to motivate our method rather than to strictly optimize it.

We instantiate this principle with two complementary detectors. (1) The white-box detector, which assumes access to model internals, uses internal signals to target a set of important input tokens before perturbing them. (2) The black-box detector, which assumes no access to model internals, applies a library of perturbation rules and measures the dispersion in the model’s answer distribution. Finally, we use the detection output to drive a lightweight re-asking mitigation strategy.

We evaluate on various datasets spanning open-domain, conversational, and visual question answering. We show that perturbation-based detection more reliably separates ambiguous from unambiguous questions than both output-side sampling and paraphrase-based baselines, with downstream gains when its output is used for mitigation.

Related Work

Ambiguity in LLMs Ambiguity is a natural property of user inputs because the same question may license several interpretations. Prior work has studied this issue in open-domain and long-form QA through AmbigQA and ASQA (Min et al., 2020; Stelmakh et al., 2022), and in interactive settings where ambiguity calls for clarification. Abg-CoQA annotates ambiguous conversational questions with clarification turns (Guo et al., 2021), while Abg-SciQA extends ambiguity analysis to scientific questions with labels for ambiguity detection, ambiguity type classification, clarification generation, and clarification-based QA [6]. Other benchmarks cover proactive clarification in domain-specific QA (Deng et al., 2022) and multimodal ambiguity in visual QA [5] (Jian et al. 2025; Jang and Kim 2026). Recent LLM-focused analyses further show that ambiguity is not solved simply by scale or prompting [6]. LLMs can struggle to solve ambiguous problems (Liu et al., 2023; Zhang et al., 2024; Kamath et al., 2024).

To solve the problem, prior work often studies what to do after ambiguity is recognized, including selectively abstaining from ambiguous questions (Cole et al., 2023), prompting models to detect, clarify, and answer (Kuhn et al., 2022), or building clarification-based QA pipelines such as CAmbigNQ (Lee et al., 2023). Our work focuses on detecting whether the original input is ambiguous before resolution. This matters because resolution-oriented transformations, including generated paraphrases, answer sets, or clarification candidates, can potentially choose one interpretation from the ambiguity and remove the ambiguity being measured.

Uncertainty Quantification in LLMs Uncertainty Quantification (UQ) is considered important in trustworthy deployment of LLMs (Liu et al., 2025). Existing UQ methods often estimate reliability from token probabilities, verbalized [1, 4] (Kadavath et al. 2022; Lin et al. 2022; Ren et al. 2023), but the dominant black-box paradigm for free-form generation is multiple sampling, where several generations are drawn and compared [7] (Duan et al. 2024; Lin et al. 2024a; Nikitin et al. 2024; Kuhn et al. 2023; Farquhar et al. 2024). For example, Lin et al. (2024b) treats uncertainty as dispersion over possible predictions for a fixed input, and proposes semantic-dispersion measures based on pairwise relations among sampled outputs. Such output-side methods are natural baselines, but diverse generations can reflect either model unreliability or multiple valid interpretations of an ambiguous input. Input-side UQ (Liu et al., 2025) is therefore closer to our setting, and existing methods probe it mainly through prompt perturbations (Hou et al., 2024; Gao et al., 2024; Yang et al., 2024). However, these transformations may remove ambiguity before it is measured. Our framework instead requires label-preserving perturbations, instantiated by a black-box or white-box method, so that measured variance better reflects input ambiguity rather than disambiguation introduced by the perturbation process.

Methodology

Overall Framework

Theoretical motivation. Pure output-side sampling can reveal disagreement among generated answers, but it cannot tell whether the disagreement comes from model unreliability or from multiple valid readings of the input. Direct paraphrasing or clarification generation probes the input side, but the transformation is high-capacity and can resolve the ambiguity before it is measured. To address both issues, our detector asks whether small, label-preserving interventions can expose answer instability without becoming a disambiguation step. This view is inspired by the information bottleneck objective Tishby et al., 1999:

min⁡p(t∣x)I(X;T)−βI(T;Y),(1)\min_{p(t\mid x)} I(X;T) - \beta I(T;Y), \tag*{(1)}

where I(X;T)I(X;T) penalizes retaining too much information from the input, I(T;Y)I(T;Y) rewards preserving information about the ambiguity label, and β\beta controls this trade-off. We do not optimize a strict IB objective or estimate mutual information. Instead, the bottleneck is imposed by constraining the intervention channel.

Input and perturbation principle. As illustrated in Figure 1, our pipeline starts from an input question and applies valid perturbations under three principles. Let XX be the original question, Y∈{0,1}Y \in\{0,1\} the ambiguity label, and T=E(X)T = E(X) a perturbed question. A valid intervention EE should satisfy three principles. Low capacity. The perturbation should make only a small surface-level change, so that TT remains close to XX. Label-preserving. The perturbation should preserve the ambiguity label, so that TT is ambiguous if and only if XX is ambiguous. Semantic-blind. The perturbation may use lexical rules, surface templates, or importance scores to decide where to intervene, but it should not generate a semantic rewrite or choose among possible interpretations of the question. Together, these principles prevent the perturbation from turning ambiguity detection into ambiguity resolution by perturbation.

Figure 1. Overview of the proposed ambiguity detection framework. Given an input question and perturbation principles, the method generates label-preserving, low-capacity, and semantics-blind perturbations via white-box token-importance methods and black-box rule-based transformations. The perturbed questions are then sampled to obtain multiple model answers, whose pairwise semantic agreement is used to compute an ambiguity signal: low agreement indicates likely ambiguity, while high agreement suggests the question is likely unambiguous.

Perturbation pipeline. The perturbation module produces a small set of perturbed questions Tk(X)={T1,…,Tk}\mathcal{T}_k(X) = \{T_1,\ldots,T_k\}. In the white-box setting, model-internal signals rank input tokens or short spans, and interventions such as replacement or deletion are applied to the top-ranked positions. In the black-box setting, a constrained rule library produces surface-level perturbations without using model internals. The top-kk budget controls the number of perturbation candidates used for scoring rather than defining a separate maximization objective. We describe the white-box and black-box perturbation modules in the next two subsections.

Multiple sampling and scoring. After perturbation, we sample from both the original and perturbed questions. Specifically, we draw m=5m = 5 answers from XX and m=1m = 1 answers from each Tj∈Tk(X)T_j \in T_k(X), then combine all sampled answers into the full answer set:

RXT={ri}i=15∪{r~j}j=1k,(2)R_X^T = \{r_i\}_{i=1}^{5} \cup\{\tilde{r}_j\}_{j=1}^{k}, \tag*{(2)}

The resulting answer set can be scored by different uncertainty estimators. In this work, we use EigV(Agree) from Lin et al. (2024b). And the detail technology of EigV(Agree) can be found in Appendix § 7.

White-Box Perturbation

White-box perturbation uses model access to propose low-capacity interventions that are likely to produce informative answer distortion. We focus on token because sentence-level rewrites are too high capacity and can blur detection with resolution, while token-level changes give the cleanest bottleneck test. The white-box component is not used to rewrite the question. It only identifies where a semantics-blind intervention should be applied. Attention-based scores were less reliable in preliminary experiments, so we use three attribution methods that more directly track output sensitivity. Given token scores a1,…,ana_1,\ldots,a_n, the intervention set is selected as

Sk(X)=TopK⁡i∈[n]ai,Ewb(X)=E(X;Sk),(3)S_k(X) = \operatorname{TopK}_{i \in[n]} a_i,\qquad E_{\mathrm{wb}}(X) = E(X; S_k), \tag*{(3)}

where E(X;Sk)E(X; S_k) masks, deletes, or replaces only the selected tokens. The importance score only proposes EE, while ambiguity is measured by the multiple-sampling distortion described above.

Vanilla Gradient. Vanilla Gradient decodes the first token greedily, y⋆=arg⁡max⁡ypf(y∣X)y^\star= \arg\max_y p_f(y \mid X), backpropagates log⁡pf(y⋆∣X)\log p_f(y^\star\mid X) to the input embeddings, and scores each token by ai=∥∇eilog⁡pf(y⋆∣X)∥2a_i = \lVert\nabla_{e_i}\log p_f(y^\star\mid X)\rVert_2.

DiffMask. DiffMask learns a continuous mask over input embeddings (De Cao et al. (2020)). We adapt it to find a sparse set of tokens whose masking changes the output entropy,

m⋆=arg⁡max⁡m∈[0,1]n∣H(pf(⋅∣Xm))−H(pf(⋅∣X))∣−λ∥m∥1.(4)m^\star= \arg\max_{m \in[0,1]^n} \left|H(p_f(\cdot\mid X_m)) - H(p_f(\cdot\mid X))\right| - \lambda\lVert m\rVert_1. \tag*{(4)}

Here mim_i controls how much token ii is masked, XmX_m is the masked input, H(⋅)H(\cdot) is the entropy of the next-token distribution, and λ\lambda penalizes large masks so that the selected intervention remains low capacity.

Logit Lens. Logit Lens projects intermediate hidden states through the final layer normalization and unembedding matrix to obtain layerwise vocabulary distributions (nostalgebraist (2020); Belrose et al. [3]). We use these latent predictions to identify tokens whose internal trajectory becomes strongly aligned with the final answer or with answer-relevant alternatives. These tokens are plausible places where the model commits to one interpretation, making them useful targets for low-capacity intervention.

Black-Box Perturbation

The black-box setting assumes only sample-level query access to the model. Gradients, hidden states, and token-level scores are all unavailable, so the detector can observe nothing beyond the text the model returns. Under this constraint we cannot inspect where the model allocates attention or how confident it is internally; we can only perturb the input and watch how the output distribution responds. We therefore probe the input through a fixed library of semantics-blind rewrites and identify informative rules as those that induce a large shift in the multi-sample output distribution. By semantics-blind we mean that each rule fires purely on surface features, namely lexical category, orthographic form, or question template, and never consults a model generated reading of the input. This property is what keeps detection separate from mitigation: a rule that does not understand the question cannot quietly resolve its ambiguity before we have had a chance to measure it.

Single-word rules. At the single-word level, we apply part-of-speech-constrained synonym substitutions for verbs, nouns, adjectives, and adverbs using WordNet (Miller (1995)). For each targeted word, we restrict substitution to synonyms drawn from its most frequent synset, filter out multi-word and rare candidates, and reinflect the chosen synonym so that its tense, number, or degree matches the original word form. This keeps each rewrite grammatical while changing only the lexical choice. We additionally include two orthographic rules that operate on the abbreviated forms of function words, namely contraction expansion and its inverse, contraction (for example Who’s ↔\leftrightarrow Who is). Each of these rules alters a single content word or its surface form while leaving the referential structure of the question, and therefore the set of interpretations it admits, intact.

Phrase- and sentence-level rules. At the phrase level, we prepend short prefixes of three registers: test-like (for example According to the passage), conversation-like (for example Hey so), and instruction-like (for example Given the information provided). These prefixes preserve the question stem verbatim and shift only its register, leaving the underlying query unchanged. We further apply two transformations to the leading wh word. WH expansion replaces a bare wh word with an equivalent determiner phrase (for example Who →\to Which person, When →\to At what time), and WH rephrasing substitutes the wh word with a semantically aligned alternative (for example Who →\to What person, How →\to By what means). Both wh rules are guarded so that they do not fire when the wh word is acting as a determiner, as in What color was it, where expansion would distort the question; in such cases, only the conservative what/which swap is permitted. These edits are more disruptive than single-word rewrites but still draw on fixed templates rather than free generation, which keeps them within the semantics-blind regime.

Aggregating the ambiguity signal. Given a question XX, we apply every applicable rule to obtain a set of variants {E1(X),…,EK(X)}\{E_1(X), \ldots, E_K(X)\}, then draw NN samples from the model for the original question and for each variant under the same QA prompt and context. Rather than scoring each rewrite in isolation, we pool the model answers from the original question and all of its variants into a single set and compute one dispersion score over that pooled set using EigV(Agree). The intuition is that an unambiguous question yields answers that remain stable across the entire family of surface variants, whereas an ambiguous one fractures into competing answers as different rewrites nudge the model toward different readings. Aggregating across variants rather than scoring them separately gives a single, lower variance estimate of how much the answer distribution moves under semantics-preserving perturbation, which is precisely the quantity our information bottleneck view identifies with input ambiguity.

Experiments

Our evaluation addresses three research questions:

  • RQ1 (§ 4.2). Does our perturbation-based detector separate ambiguous from unambiguous questions more reliably than existing output-side and prompt-based baselines?

  • RQ2 (§ 4.3). What is the relationship between different perturbations and different importance? When applied in isolation, does each single perturbation type already carry an ambiguity signal, and how consistent are different attribution methods in terms of which words they flag?

  • RQ3 (§ 4.4). When detector output drives downstream mitigation, does it yield higher answer correctness than generation without detection?

Experimental Setting

Models and Datasets. The main results use three base LLMs that span three model families and a 4B–27B scale range. For text QA we use Qwen3-4B-Instruct (Yang et al., 2025), Llama-3.1-8B-Instruct (Grattafiori et al., 2024), and Gemma-3-27B-it (Kamath et al., 2025). For vision QA we use the corresponding vision-language counterparts Qwen2.5-VL-3B-Instruct (Bai et al., [2]), Gemma-3-27B-it, and InternVL3-8B (Zhu et al., 2025). All experiments are run on a single NVIDIA A100 80 GB GPU.

We evaluate on four English QA benchmarks with explicit ambiguity annotations. ABG-CoQA (Guo et al., 2021) is a passage-grounded conversational QA dataset with ambiguity-annotated, from which we use a subsample of 200 items balanced between ambiguous and unambiguous. AmbigQA-w-Ctx is built from the configuration of AmbigQA (Min et al., 2020) by sampling 500 validation items, and we attach a Wikipedia passage as context for each question. AQuA (Jang and Kim, 2026) provides 720 referentially ambiguous and unambiguous visual questions over real images. VQ-FA (Chen et al., [5]) provides visually ambiguous and unambiguous questions and we sample 720 questions as well.

Compared Methods. We compare two variants of our framework against four uncertainty-based baselines. All methods share the same base LLM and the same NLI scorer (deberta-large-mnli (He et al., 2020)) when an agreement matrix is needed.

Direct Prompt (Kadavath et al., 2022) asks the model in a single prompt whether the question is ambiguous, and uses Pr⁡(YES)\Pr(\mathrm{YES}) as the score. EigV(Agree) (Lin et al., 2024b) draws K=10K=10 samples from the original question and reports the eigenvalue dispersion of the NLI agreement matrix. EigV(Disagree) (Lin et al., 2024b) reuses the same samples and use NLI disagreement matrix instead. Semantic Entropy (Kuhn et al., 2023; Farquhar et al., 2024) clusters the same samples by bidirectional NLI entailment and reports the entropy over cluster sizes.

Configurations. Every sampling-based method shares the same decoding strategy with temperature 0.5, top-p 0.9, max_new_tokens=128. Our perturbation variants draw 1 greedy sample (but less samples from the original question) from each perturbed question, with k=3k=3 top-attributed words and up to v=4v=4 part-of-speech-compatible WordNet variants per word. DiffMask uses 30 optimization steps with 4 greedy decode steps per step (λ=0.5\lambda=0.5). For Gemma-3-27B-it we load weights in bf16 with frozen parameters and gradient checkpointing, and the DiffMask attribution additionally runs through INT8 quantization via bitsandbytes to fit its autoregressive forward chain in memory. We report ROC-AUC (AUROC) for binary ambiguity classification on items where every method returns a valid score following previous works (Lin et al., 2024b).

Main Results (RQ1)

This experiment studies whether our perturbation based detector can better tell ambiguous questions from unambiguous questions. In our method, we make small, label preserving, and semantics blind changes to the input, and then check whether the answers become less stable. We do this experiment to test our idea that applying small and semantic-blind changes to the input keeps the true ambiguity signal better than just looking at the output variance. Following the setup in § 4.1, we evaluate on four QA benchmarks across model families and compare our two variants against four uncertainty-based baselines. We show the results in Table 1. We have the following observations:

ModelMethodABG-CoQAAmbigQA-w-CtxAQuAVQ-FAAvg
Qwen3-4B (Qwen2.5-VL-3B)Direct Prompt (Kadavath et al., 2022)0.5420.5250.3590.5250.488
Qwen3-4B (Qwen2.5-VL-3B)EigV(Agree) (Lin et al., 2024b)0.5210.4980.6440.5620.556
Qwen3-4B (Qwen2.5-VL-3B)EigV(Disagree) (Lin et al., 2024b)0.5430.5030.6470.5870.570
Qwen3-4B (Qwen2.5-VL-3B)Semantic Entropy (Kuhn et al., 2023)0.4930.4910.6740.4770.534
Qwen3-4B (Qwen2.5-VL-3B)Ours (Black-Box)0.6150.6300.7550.5630.641
Qwen3-4B (Qwen2.5-VL-3B)Ours (White-Box)0.6290.5300.7080.6130.620
Llama-3.1-8B (InternVL3-8B)Direct Prompt (Kadavath et al., 2022)0.5090.5450.5940.4770.531
Llama-3.1-8B (InternVL3-8B)EigV(Agree) (Lin et al., 2024b)0.5530.5520.6710.5750.588
Llama-3.1-8B (InternVL3-8B)EigV(Disagree) (Lin et al., 2024b)0.5650.5190.5860.5820.563
Llama-3.1-8B (InternVL3-8B)Semantic Entropy (Kuhn et al., 2023)0.5600.5580.6610.5320.578
Llama-3.1-8B (InternVL3-8B)Ours (Black-Box)0.6340.5010.7480.6030.621
Llama-3.1-8B (InternVL3-8B)Ours (White-Box)0.6070.5620.7120.6360.629
Gemma-3-27BDirect Prompt (Kadavath et al., 2022)0.5180.5010.7190.5630.575
Gemma-3-27BEigV(Agree) (Lin et al., 2024b)0.5320.5580.6310.5090.557
Gemma-3-27BEigV(Disagree) (Lin et al., 2024b)0.5090.5270.5510.5170.526
Gemma-3-27BSemantic Entropy (Kuhn et al., 2023)0.5060.5560.5930.5050.540
Gemma-3-27BOurs (Black-Box)0.6500.5160.7900.5850.635
Gemma-3-27BOurs (White-Box)0.5800.5630.7140.5940.613

Table 1. Ambiguity-detection AUROC across three model families and four QA benchmarks. Bold marks the best score within each model block per column, and underline marks the second best. Vision columns use the vision-language counterpart of the text model (Qwen2.5-VL-3B for Qwen, InternVL3-8B for the Llama row, and the same Gemma-3-27B-it checkpoint for Gemma).

  • Across all three model families, at least one variant of our method achieves the best average AUROC, and our two variants together occupy the top two average positions on every model block, with an absolute improvement of up to 0.07 in average AUROC over the strongest baseline. This shows that adding label-preserving input perturbations on top of multi-sample scoring produces a more reliable ambiguity signal.

  • The improvement is largest on the two visual ambiguity benchmarks, where our black-box variant on AQuA goes up to 0.790 AUROC. Referential and visual focus ambiguity is harder to surface from output-side variance alone because the model can return a fluent answer for any chosen referent, so the gain from our perturbation is larger here.

  • On the two text benchmarks, the black-box variant is generally stronger on ABG-CoQA across all

three models, while the gain on AmbigQA-w-Ctx is smaller than on the other three datasets especially for white-box variant. AmbigQA-w-Ctx attaches a long Wikipedia passage to each question, so the model often has enough contextual evidence to commit to one reading regardless of how the question is perturbed. This suggests that input-side perturbation is most useful when the question itself carries the ambiguity, and that long retrieved context can partially mask the ambiguity signal by stabilizing the model’s answer distribution.

across heterogeneous perturbations rather than concentrated in any one, and that aggregating the answer distribution over the full family of rules is what makes detection effective.

Analysis of Different Importance and Perturbations (RQ2)

Choice of Importance Methods. We test whether the importance method inside the white-box detector matters for detection. Using Vanilla Gradient, Logit Lens, and DiffMask (§ 3.2) as three ways to select which tokens to perturb, we report AUROC on ABG-CoQA and AmbigQA in Figure 2. More results can be found in Appendix § 8.§ 1. The results show that three methods achieve similar AUROC scores on each dataset and model, with the gap between the best and worst remaining around 0.02, and Vanilla Gradient being slightly more stable across settings. This indicates that the white-box detector does not rely on one specific importance method chosen by us, and that the ambiguity signal is mainly carried by the perturbation.

Figure 2. Performance comparing different importance methods in two datasets on Llama. The results show that though the performance of importance methods is stable, Vanilla Gradient shows a slightly better result.

Choice of Different Perturbation Rules. Figure 3 reports detection AUROC for each black-box rule individually, alongside the cross-variant setting that pools the answers from the original question and all rules into a single dispersion score. Cross-variant settings achieve the best performance. This confirms that the ambiguity signal is distributed

AUROC comparison across individual perturbation rules and their combined cross-variant setting

Figure 3. AUROC comparison across individual perturbation rules and their combined cross-variant setting. While several single perturbations improve over the original input, combining all perturbation variants achieves the strongest ambiguity detection performance.

Mitigation Performance (RQ3)

Detection is valuable only to the extent that it improves downstream answers. We therefore evaluate whether driving mitigation with the detector’s output yields higher answer correctness than generation without detection. To this end we introduce UQ-Augmented Re-asking (UAR), which reuses the perturbation and uncertainty artifacts produced during detection and spends a single additional forward pass to recover a more reliable answer.

Method. For each question, the detector has already sampled the model under the original phrasing and every rewrite rule. UAR ranks rules by the dispersion they induce relative to the original, δ(r)=U(rule r)−U(ORIGINAL)\delta(r) = U(\text{rule }r) - U(\text{ORIGINAL}), keeps the top kk with positive δ\delta (default k=3k = 3), and for each extracts the rewritten question and its modal answer. These (rewrite, answer) pairs are inserted into the prompt as statements of the form “when rephrased as XX, the model answers YY,” with an instruction to weigh the passage and commit to a single answer. A question for which no rule has a positive δ\delta gets the unchanged baseline prompt, so re-asking fires only when the detector has localized interpretation-sensitive behavior.

Setup and results. We compare against Original, the model’s first answer to the question with no uncertainty information; both conditions share the same model, context, and decoding setup (greedy, single sample), so any difference comes from the prompt. As Table 2 shows, UAR improves Exact Match on every subset of both datasets, by +8.15 to +18.07 points. The gain also appears on the gold non-ambiguous subset because re-asking fires on questions whose model answers disagree across rewrites, a broader signal than the human label: many gold non-ambiguous questions still destabilize the model, and the injected evidence helps it commit to a single answer. Additional controlled comparisons with generic re-prompting and self-sampling are provided in Appendix § 8.§ 3.

ConfigGroupOriginalUARΔ\Deltaacc
AmbigQA-w-Ctxambiguous12.1926.52+14.33
AmbigQA-w-Ctxnon_ambig.16.2834.35+18.07
ABG-CoQAambiguous22.7634.15+11.39
ABG-CoQAnon_ambig.17.0625.21+8.15

Table 2. UAR vs. the original baseline on Qwen3-4B, greedy decoding. UAR re-prompts the model with detector-derived evidence; Original is the model’s first answer to the unperturbed question.

Ablation Study

Influence of Semantic-blind Perturbation This experiment tests whether the semantic-blind constraint on the perturbation step is actually necessary. As discussed in § 3.1, our framework requires the perturbation to be low-capacity and semantics-blind, so that the input is rewritten without choosing among its possible readings. A natural alternative is to let an LLM directly paraphrase the question, which is a high-capacity transformation that may resolve the ambiguity during rewriting. We report both the absolute uncertainty value and the AUROC in Figure 4 using Qwen2.5-VL-3B and AquA. The results show that replacing our semantic-blind perturbation with LLM paraphrasing lowers the absolute uncertainty value to even below the EigV(Agree) baseline that uses no input perturbation, and the AUROC also drops from 0.708 to 0.637. This shows that LLM paraphrasing does not just fail to add a useful signal, it can potentially remove ambiguity that the baseline could still pick up from sampling alone.

Figure 4. Comparison of performance and absolute value of uncertainty on ambiguous questions from AquA. The results show that directly using LLM-paraphrasing can actually reduce the uncertainty.

Rule Execution: Ours vs. LLM-based. In the black-box setting, a fixed rule can be executed either deterministically, with WordNet synonyms and string templates, and the rewrite is strictly semantics-blind, or by handing the same rule to an LLM as an instruction. Unlike free LLM paraphrasing, the rule is fixed in advance; the question

is whether this constraint is enough to stop the LLM from understanding, and thereby disambiguating, the original question. The two realizations share an identical rule inventory and differ only in the capacity of the mechanism that executes them. As shown in Table 4, across four dataset settings spanning text (Qwen3-4B) and vision (Qwen2.5-VL-3B), ours perform better than the LLM-based one. It shows that even a tightly constrained rule, once routed through a model that must understand the input, erodes rather than preserves the ambiguity signal, which supports our use of semantics-blind rewrites for detection.

ModelDatasetOursLLM
Qwen3-4BABG-CoQA0.6150.598
AmbigQA0.6300.617
Qwen2.5-VL-3BAQuA0.7550.715
VQ-FA0.5630.538

Table 4. Detection AUROC for two realizations of the same rule set. Our perturbations outperform LLM-based ones, while remaining semantics-blind and cheaper.

Semantic Consistency of Perturbations. To verify that our perturbations remain close to the original inputs, we compute the cosine similarity between original and perturbed inputs using Qwen3-Embedding-0.6B and Qwen3-Embedding-4B. For text QA, we compare the full textual context; for visual QA, we compare only the edited question since the image is unchanged. As shown in Table 3, the average cosine similarities range from 0.883 to 0.999 across all datasets and model families, indicating that our perturbations introduce only limited semantic drift and supporting the intended label-preserving design.

ModelDataset0.6B4B
QwenABG-CoQA0.99600.9989
AmbigQA-w-Ctx0.97810.9842
AQuA0.91070.9191
VQ-FA0.88430.8923
Llama/InternVLABG-CoQA0.99520.9985
AmbigQA-w-Ctx0.97490.9835
AQuA0.90370.9097
VQ-FA0.88340.8903

Table 3. Cosine similarity between original and perturbed inputs using Qwen3 embedding models.

Failure Case Analysis

To better understand the limitations of our detector, we analyze its errors on AQuA with Gemma-3-27B using the black-box setting. At the Youden-optimal threshold, the detector produces 376 true positives, 164 false negatives, 46 false positives, and 134 true negatives. Most false negatives are referential or deictic questions: 154 of the 164 missed ambiguous examples fall into this category, and 69 of them produce at most two distinct answers across perturbations. This suggests that the model can sometimes silently commit to one salient referent, making the ambiguity difficult to expose through surface perturbations. Among the 46 false positives, 22 are counting questions and many others require fine-grained visual perception, indicating that answer instability can also arise from model or perceptual uncertainty rather than input ambiguity.

Conclusion

This work studies ambiguity detection as a prerequisite for reliable question answering. We propose a perturbation-based framework that preserves ambiguity signals by avoiding semantic rephrasing, and instantiate it with both white-box and black-box detectors. Experiments across open-domain, conversational, and visual QA datasets show that our method more effectively distinguishes ambiguous from unambiguous questions than output-side sampling and paraphrase-based baselines. When its output drives evidence-augmented re-asking, the detector further improves downstream answer accuracy on under-specified questions.

Limitations

First, the black-box detector relies on a manually designed rule library built for English, so applying it to other languages requires reconstructing these rules. Second, the white-box detector depends on access to model internals, which is unavailable in many deployment settings such as closed-source APIs.

Acknowledgments

The work was partially supported by Toyota InfoTech Labs and NSF awards #2442477, #2550203, #2616632, #2623317, #2536297, and #2613637. The views and conclusions in this paper should not be interpreted as representing any funding agencies.

Detail Technology of Uncertainty Estimation

We first use an NLI model to compute a pairwise semantic agreement matrix AA over answers in RXTR_X^T. For answers rir_i and rjr_j, we set

Aij=12(pent(ri⇒rj)+pent(rj⇒ri)),(5)A_{ij} = \frac{1}{2}\left(p_{\mathrm{ent}}(r_i \Rightarrow r_j) + p_{\mathrm{ent}}(r_j \Rightarrow r_i)\right), \tag*{(5)}

where pentp_{\mathrm{ent}} is the entailment probability assigned by the NLI model, with Aii=1A_{ii}=1. We then build the degree matrix DD, where Dii=∑jAijD_{ii}=\sum_j A_{ij}, and compute the symmetric normalized graph Laplacian

L=I−D−1/2AD−1/2.(6)L = I - D^{-1/2} A D^{-1/2}. \tag*{(6)}

Let λ1,…,λN\lambda_1,\ldots,\lambda_N be the eigenvalues of LL, where N=∣RXT∣N=|R_X^T|. Following the spectral clustering motivation in Generating with Confidence, smaller eigenvalues indicate semantic clusters among sampled answers. We compute

U(X)=EigV⁡(Agree⁡(RXT))=∑q=1Nmax⁡(0,1−λq).(7)U(X) = \operatorname{EigV}(\operatorname{Agree}(R_X^T)) = \sum_{q=1}^{N} \max(0,1-\lambda_q). \tag*{(7)}

A larger value indicates that the combined original and perturbed samples separate into more semantic modes, which is the signal we use for ambiguity.

More Experiments

More Results on Different White-box Importance

We test whether the importance method inside the white-box detector matters for detection using all models we used for text-only datasets and the full results can be found at Figure 6. The conclusion is consistent with the main text that our choice of importance is stable and Vanilla Gradient is slightly better.

Figure 6. Performance comparing different white-box importance methods in text-only datasets. The results show that though the performance of importance methods is stable, Vanilla Gradient shows a slightly better result.

Comparison with Ambiguity-Aware Prompting

Most baselines in the main experiments quantify uncertainty from sampled outputs. We additionally compare with Proactive Chain-of-Thought (ProCoT) prompting (Deng et al., 2023), an ambiguity-aware prompting approach that explicitly asks the model to determine whether a question is ambiguous before answering or requesting clarification.

Table 5 reports the mean AUROC across the four datasets for each model family. ProCoT substantially improves over directly asking the model

MethodQwenLlama/InternVL
Direct Prompt0.4880.531
ProCoT0.5740.585
Ours (Black-Box)0.6410.621
Ours (White-Box)0.6200.629

Table 5. Mean ambiguity-detection AUROC across the four datasets. ProCoT provides a stronger ambiguity-aware prompting baseline than Direct Prompt, while our perturbation-based detectors achieve higher average AUROC for both model families.

whether the question is ambiguous, showing that explicit ambiguity-aware prompting is a stronger baseline than a direct prompt. Nevertheless, both variants of our perturbation-based detector achieve higher average AUROC. This supports our central motivation that ambiguity can be detected more reliably by measuring response instability under constrained, semantics-blind perturbations than by asking the model to reason about the ambiguity directly.

Controlled Analysis of UQ-Augmented Re-asking

To test whether the gain of UAR comes from ambiguity-aware evidence rather than simply re-prompting with additional context, we compare against two controls on Qwen3-4B. Hint uses a generic re-prompt indicating that the answer may be uncertain, while SelfSample uses the same evidence budget as UAR but replaces detector-selected evidence with additional answers sampled from the original question. As shown in Table 6, UAR consistently outperforms both controls, indicating that detector-derived evidence provides benefits beyond generic re-prompting or additional sampled context.

DatasetGroupOriginalHintSelfSampleUAR
AmbigQA-w-Ctxambiguous12.1912.3620.9226.52
non-ambig.16.2816.7925.1934.35
ABG-CoQAambiguous22.7624.3928.4634.15
non-ambig.17.0617.9220.2825.21

Table 6. Exact Match comparison between UAR and controlled re-prompting baselines on Qwen3-4B.

Sensitivity to Perturbation Budget

We further study whether the black-box detector depends on the full perturbation library by varying the number of available rules on AmbigQA with Qwen3-4B. As shown in Table 7, performance generally improves as more perturbation rules are included and saturates around nine rules, suggesting that the detector benefits from broader perturbation coverage rather than relying on a single specific rule.

# Rules1357911
AUROC0.5870.6070.6000.6180.6300.630

Table 7. Ambiguity-detection AUROC under different black-box perturbation budgets on AmbigQA with Qwen3-4B.

More Ablation

More White-box Importance To test whether our choice of white-box importance makes sense, we compare with our white-box methods with more white-box importance methods:

  • attention: recursively multiplies per-layer attention matrices to compute the total information flow from each input token to the output.

  • predictive entropy: assigns each input token an importance score equal to the entropy of the model’s next-token distribution at that position.

We show the results in Figure 5, which shows that simply using attention or entropy cannot get better results, and our choice of importance methods is reasonable.

Figure 5. Performance comparing more white-box importance methods on Abg-CoQA and Qwen3. The results show that our choice is better than simple attention or predictive entropy.

Detail Methods for Black-Box Perturbation

This appendix lists the full set of rules used by the black-box perturbation module described in § 3.3. All rules are semantics-blind, meaning that each rule fires on surface features such as part-of-speech tag, orthographic form, or the leading word, and never consults a model-generated reading of the input. The rules are organized into two groups according to the granularity of the edit.

Group A: Single Word Level

Rules A1 to A4 substitute a single content word with a WordNet (Miller, 1995) synonym drawn from the first synset of the target word, with multi-word, very short, length-mismatched, and rare candidates filtered out. The selected synonym is then reinflected to match the tense, number, or degree of the original word.

  • A1: Verb Synonym. Replace a verb with a WordNet synonym, reinflected to match the original verb form. Example: Who won the game? → Who prevailed the game?

  • A2: Noun Synonym. Replace a noun with a WordNet synonym, with number preserved. Example: When was the building completed? → When was the structure completed?

  • A3: Adjective Synonym. Replace an adjective with a WordNet synonym, with degree preserved. Example: What is the largest city? → What is the biggest city?

  • A4: Adverb Synonym. Replace an adverb with a WordNet synonym. Example: How quickly does it grow? → How rapidly does it grow?

  • A5: Abbreviation Expand. Expand a contraction into its full form. Example: Who’s the author? → Who is the author?

  • A6: Abbreviation Contract. The inverse of A5, contracting a full function-word sequence into its abbreviated form. Example: Who is the author?

→ Who’s the author?

Group B: Sentence and Phrase Level

Rules B1 to B3 keep the question stem verbatim and only change its leading register through a short prefix. Rules B4 and B5 act on the wh word at the beginning of the question through a small fixed mapping table, and both are guarded so that they do not fire when the wh word is acting as a determiner, as in What color was it.

  • B1: Test-like Prefix. Prepend a short test-style phrase. Examples include According to the passage, Based on the text above, and As stated in the document.

  • B2: Conversation-like Prefix. Prepend a short conversational opener. Examples include Hey so, Quick question, and By the way.

  • B3: Instruction Prefix. Prepend a short instruction-style phrase. Examples include Please answer the following question, Your task is to answer, and Respond to this question.

  • B4: WH Expansion. Replace a bare wh word with an equivalent determiner phrase. Example: Who won? → Which person won?

  • B5: WH Rephrase. Replace the wh word with a semantically aligned alternative. Example: How did it happen? → By what means did it happen?

References

  1. [1]Amos Azaria and Tom Mitchell. 2023. The internal state of an LLM knows when it’s lying. arXiv preprint arXiv:2304.13734.arxiv.org/abs/2304.13734
  2. [2]Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, and 1 others. 2025. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631.arxiv.org/abs/2511.21631
  3. [3]Nora Belrose, Zach Furman, Logan Smith, Danny Halawi, Igor Ostrovsky, Lev McKinney, Stella Biderman, and Jacob Steinhardt. 2023. Eliciting latent predictions from transformers with the tuned lens. arXiv preprint arXiv:2303.08112.arxiv.org/abs/2303.08112
  4. [4]Chao Chen, Kai Liu, Ze Chen, Yi Gu, Yue Wu, Mingyuan Tao, Zhihang Fu, and Jieping Ye. 2024. INSIDE: LLMs’ internal states retain the power of hallucination detection. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2402.03744
  5. [5]Chongyan Chen, Yu-Yun Tseng, Zhuoheng Li, Anush Venkatesh, and Danna Gurari. 2025a. Acknowledging focus ambiguity in visual questions. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 1228–1238.arxiv.org/abs/2501.02201
  6. [6]Tiejin Chen, Kuan-Ru Liou, Mithun Shivakoti, Aaryan Gaur, Pragya Kumari, Meiqi Guo, and Hua Wei. 2025b. Abg-SciQ:A: A dataset for understanding and resolving ambiguity in scientific questions. In ICLR 2025 Workshop on Data Problems.
  7. [7]Tiejin Chen, Huaiyuan Yao, Jia Chen, Evangelos E Papalexakis, and Hua Wei. 2026. Every response counts: Quantifying uncertainty of llm-based multi-agent systems through tensor decomposition. arXiv preprint arXiv:2604.08708.arxiv.org/abs/2604.08708

Paper details

vlnc:W_ydnxfz8w
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents