TL;DR
The method teaches an LLM to tell apart two different kinds of uncertainty before it does anything. At every step, the model first rates how clear the task itself is (ut — request uncertainty), and only then how confident it is in a specific action (ct — action confidence). If the task isn't clear enough, the model asks instead of guessing.
The pain it fixes. Give Claude a vague assignment — "make me an investor deck" — and it will enthusiastically get to work. Three slides in, you find out it had a different target audience, a different tone and the wrong funding round in mind. The model doesn't distinguish "I don't know the audience size" (an unclear task) from "I'm not sure which color scheme is better" (execution difficulty) — so it confidently drives off in the wrong direction.
The method adds a mandatory checkpoint before acting to the prompt: first rate the task on a 0–0.5–1 scale, explain what's unclear, and act only if the task is clear enough. Both signals are kept in the conversation history so later steps can take them into account.
Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.
Method Blueprint
Everything happens in a single prompt, one step after another:
STEP 1: Rate the task uncertainty (ut)
→ 0 (all clear) / 0.5 (some gaps) / 1 (critical details missing)
STEP 2: Routing
→ if ut ≥ 0.5: ask a clarifying question (stop)
→ if ut < 0.5: move on to the action
STEP 3: Perform the action + rate your confidence in it (ct)
→ 0-1, how confident you are that you're moving toward the goal
STEP 4: Write both signals to the history
→ the next step will take them into account
The key point: ut is rated BEFORE the model generates an action — so the task's ambiguity doesn't get a chance to "infect" the solution itself.
Example in Action
Task: You're the founder of a small EdTech startup, raising money. You ask Claude to help with your pitch for Y Combinator.
Prompt:
You are an assistant who works step by step and always checks that the task is clear before acting.
Before every response, you must use this format:
<thinking>
[reasoning about the task and what needs to be done]
</thinking>
<task_uncertainty>
[a single value: 0, 0.5 or 1]
0 — the task is completely clear, there is only one correct interpretation
0.5 — there are gaps, the user most likely has a preference they haven't stated
1 — critical details are missing, too many equally valid interpretations
</task_uncertainty>
<uncertainty_explanation>
[what exactly is unclear — or why the task is considered clear]
</uncertainty_explanation>
<action>
[if task_uncertainty ≥ 0.5 → ask a clarifying question, do not perform the task]
[if task_uncertainty < 0.5 → perform the task]
</action>
<confidence>
[0.0–1.0, how confident you are that the action moves toward the goal]
</confidence>
<confidence_explanation>
[why this level of confidence — what helps, what worries you]
</confidence_explanation>
Task: Help me write a pitch for my Y Combinator application.
Result:
The model won't start writing the pitch right away. The <task_uncertainty> block will show 1 or 0.5. In <uncertainty_explanation> you'll get a list of concrete gaps: what's the product? what stage is the startup at? which batch are you applying to? what do the YC partners look for? In <action> — a clarifying question about the most critical one. Only after you answer does the model move on to real help — with <confidence> in the 0.7–0.9 range and an explanation of what it took into account.
If you give it a specific request ("write a market-problem slide for a B2B EdTech product, the audience is YC partners with a technical background, we have 3 minutes for the pitch") — the model will set ut = 0 and get straight to work.
Why It Works
The LLM's weakness. A model is a next-token generator. When a task is fuzzy, it doesn't freeze up and ask. It fills in the gaps on its own — picks the most likely interpretation and keeps going. In a short exchange you won't notice; in long multi-step tasks, one early assumption drags a whole chain of wrong decisions behind it.
The LLM's strength. If you explicitly ask a model to rate how clear an instruction is, it does a good job. Models are good at spotting missing details and phrasing questions. The problem isn't ability — it's that without an explicit instruction, the model skips this step and jumps straight to generating an answer.
How the method exploits this. The XML structure turns "rate the clarity" from a nice-to-have into a mandatory step before acting. The model can't step over <task_uncertainty> and <uncertainty_explanation> — they come earlier in the text than <action>. The order of the tags sets the order of thinking.
Control knobs:
- Trigger threshold (
≥ 0.5) → the paper tested 0.25, 0.5 and 0.75: 0.25 and 0.5 caught unclear tasks about equally well (0.25 slightly better on average), while 0.75 missed many more. Lowering the threshold means more questions; raising it much above 0.5 is not supported by the paper - The 0/0.5/1 scale → our idea: you can add in-between anchors (0.25, 0.75) for finer granularity; the paper did not test this
- History → drop the
<confidence>and<uncertainty>blocks from the history if you're saving tokens; put them back when tasks are long and multi-step - Tag names → rename them in your own language; they're not syntax, just hints to the model about the structure
Prompt Template
You are an assistant who works step by step and checks that the task is clear before acting.
Respond to every request strictly in the following format:
<thinking>
[reasoning: what the task is, what's clear, what isn't, how I plan to proceed]
</thinking>
<task_uncertainty>
[a single value: 0, 0.5 or 1]
0 — the task is completely clear, one correct interpretation
0.5 — there are gaps, the user most likely has a preference
1 — critical details are missing, too many interpretations
</task_uncertainty>
<uncertainty_explanation>
[what specifically is unclear, or why the task is considered clear]
</uncertainty_explanation>
<action>
[if task_uncertainty ≥ 0.5:
— ask one clarifying question about the most critical gap
— do not perform the main task]
[if task_uncertainty < 0.5:
— perform the task]
</action>
<confidence>
[a number from 0.0 to 1.0: how confident you are that the action moves toward the goal]
</confidence>
<confidence_explanation>
[what makes you confident, what worries you, what's missing]
</confidence_explanation>
Task: {task}
Placeholders:
- {task} — your request; paste it as is, even if it's vague — the method will find the gaps itself
🚀 Quick start — paste into the chat:
Here is the Uncertainty Decomposition template. Adapt it to my task: {your task}.
Ask me questions to fill in the fields.
[paste the template above]
The LLM will ask what kind of tasks you usually work on and how specific they tend to be — because how often you want it to ask depends on that (0.5 by default; a lower threshold means more questions).
Limitations
⚠️ Simple, unambiguous tasks: The method adds extra steps with no payoff. If you ask "translate this sentence into Spanish," a clarity check is pointless — you're just burning tokens.
⚠️ Token overhead: Six tags at every step make the conversation noticeably longer. For short tasks, simplify — keep only
<task_uncertainty>and<action>.
⚠️ Systematic LLM overconfidence: The paper found that the action-confidence score (
ct) is systematically too high: models report more confidence than their actual success rate. It did not measure whetherutis under-rated. Our tip: if you notice the model rarely asks questions, lower the threshold.
⚠️ Tested only on agent tasks: The paper evaluated multi-step agents (online shopping, household tasks in a simulation). It did not test one-off chat questions, so the gain there is unknown. It also found that asking more clarifying questions did not raise the task success rate (27.0% on average vs 28.6% for the simple baseline).
How It Was Studied
A researcher from ITMO University (St. Petersburg) started from a real problem: existing methods for estimating LLM-agent confidence either require access to internal token probabilities (not available through APIs), run the model several times (expensive and slow), or need training on labeled data. That left only one viable niche — prompt-based methods.
The idea was simple: what if you split one uncertainty signal into two? To test it, the author built two new benchmarks — WebShop-Clarification (an agent shops for products online) and ALFWorld-Clarification (an agent does household tasks in a simulation). In both, 50% of the tasks are deliberately written vaguely: the agent has to either spot the gap and ask, or guess wrong. That made it possible to measure not just "how confident the agent is" but "how accurately the agent recognizes that a task is unclear."
Five models were tested — GPT-5.1, GPT-OSS-120B, DeepSeek-v3.2-exp, GLM-4.7 and Qwen3.5-35B — with three approaches: simply appending a confidence request to the end of the prompt (ReAct+UE), confidence with memory (UAM), and the proposed two-signal method. The gain in spotting unclear tasks was substantial — averaged across the five models, clarification F1 on ALFWorld-Clarification was 73% higher than the simple baseline (relative gain) and 36% higher than UAM, with no fine-tuning. The method had the best F1 on all five models on WebShop-Clarification and on four of five on ALFWorld-Clarification. Absolute scores still varied a lot by model (on WebShop-Clarification, F1 from 0.15 for GPT-5.1 to 0.76 for GLM-4.7), and the overall task success rate did not improve.
An interesting detail: the author deliberately excluded from the comparison every method that requires code or fine-tuning — not out of laziness, but because in real-world conditions those are unavailable. That makes the results more honest: they compare things you can actually use.
The Original from the Paper
Here is the agent output format from the paper (Section 4.1, Eq. 11):
<think> rt </think>
<u_request> ut ∈ [0, 1] </u_request>
<u_request_explanation> explanation of what's unclear </u_request_explanation>
<action> at </action>
<confidence> ct ∈ [0, 1] </confidence>
<explanation> explanation of the confidence </explanation>
With routing from Algorithm 1:
if ut ≥ θ (default θ = 0.5):
at* ← request_clarification
else:
at* ← at
Both variables — ut and ct — and both explanations are written to the agent's history so later steps can refer back to them.
Context: This is the output format the author tested on five LLMs (the tag contents are paraphrased here). In the paper ut is a number in [0, 1]; the prompt describes three anchor points (0 — the goal fully specifies everything, 0.5 — at least one parameter is left open, 1 — critical details are missing). The paper gives no calibration reason for using three anchors.
Adaptations and Extrapolations
1. Adaptation: A short version for chat (no agent)
If you don't need memory across steps and just want protection against a "confidently wrong answer" to one tricky question:
💡 Adaptation for one-off tasks: Drop the history and the multi-step setup, keep only the core check.
Before answering the task:
<uncertainty>
0 — the task is clear / 0.5 — there are gaps / 1 — critically few details
</uncertainty>
<if_unclear>
[if ≥ 0.5: ask one question, stop]
[if < 0.5: answer]
</if_unclear>
Task: {task}
2. Technique: A persona instead of a faceless agent → sharper critique
🔧 Swap "agent" for a specific role → the model plays it more precisely
Instead of a generic "you are an assistant," add a role:
You are a seasoned product manager from Google who has seen hundreds of vague specs.
Before taking on a task, you always check: do we actually understand this task the same way?
This changes the behavior: the model starts asking sharper, more professional clarifying questions, because "a PM from Google" knows exactly what people usually forget to specify.
3. Extrapolation: Combo with Chain-of-Thought
The "rate the clarity first, then act" principle can be built into any CoT prompt as step zero:
Before thinking about the solution:
Step 0: Are there any ambiguities in the task?
[yes/no + what exactly, if yes] → [if yes: ask for clarification]
Step 1: [regular CoT...]
This works even without the XML structure — just numbered steps with a step zero for the clarity check.
Resources
Paper: Matsnev, G. (2026). Uncertainty Decomposition for Clarification Seeking in LLM Agents. Preprint.
Code: github.com/PE51K/udcs-in-llm-agents
Author: Gregory Matsnev, AI Talent Hub, ITMO University, St. Petersburg
Related methods from the paper: ReAct (Yao et al.), UAM — Uncertainty-Aware Memory (Zhang et al.), Self-Consistency (Wang et al.), Semantic Entropy