A Step-by-Step Method for Writing Prompts That Make a Model Flag Its Own Uncertainty

A pair of mixed dice, representing probability and model confidence estimation

Asking a model “how confident are you?” and reading the number it gives back is close to useless on its own: researchers testing GPT-3, GPT-3.5, GPT-4, and Vicuna found that a single self-reported confidence score is badly overconfident, with most answers landing between 80% and 100% regardless of whether the answer was actually right. Two prompt-based methods from the same study do measurably better — asking for several candidate answers each with its own probability, and sampling the same question multiple times to check agreement — and both are things you can set up in a prompt today, without fine-tuning or access to the model’s internal logits.

Step 1: Stop asking for a single confidence number

The instinct to add “and tell me how confident you are, 0-100%” to a prompt feels like it should work, and it’s the first thing worth ruling out. The paper Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMs tested exactly this — “vanilla verbalized confidence” — and found it miscalibrated across every model tested. The model isn’t lying so much as it has no real mechanism for converting “how sure am I” into a number; it produces a plausible-sounding percentage the same way it produces any other token, which is why the scores cluster stubbornly near the top of the scale regardless of whether the underlying answer turns out to be accurate. If a single confidence number is what your current prompt asks for, that’s the first thing to replace.

Step 2: Ask for multiple candidate answers, each with its own probability

The same study found that “Top-K” prompting — asking the model to produce several possible answers ranked with individual probabilities that don’t need to sum to a clean 100% — reduced calibration error and improved discrimination more than vanilla verbalized confidence did. It works because the model is no longer asserting a single number is correct; it’s distributing its uncertainty across options, which is closer to what it actually “knows” after training. A usable template looks like this:

Answer the question below. Then provide your 3 best guesses,
ranked from most to least likely, each with an independent
probability from 0-100% that it is correct. Do not make the
probabilities sum to 100 - rate each one on its own.

Question: [your question here]

Format:
1. [answer] - [probability]%
2. [answer] - [probability]%
3. [answer] - [probability]%

If the model’s second and third guesses come back with meaningfully high probabilities too, that’s the signal a single-answer prompt was hiding from you.

Step 3: For anything higher-stakes, sample the same question more than once

Consistency-based methods outperformed verbalized confidence across the board in the same research, and by a wide margin on tasks with a checkable answer. On the GSM8K math benchmark, measured discrimination (AUROC) rose from 54.8 with vanilla verbalized confidence to 92.7 using self-consistency. The method itself is simple: run the same prompt several times — five is a reasonable starting point — at a non-zero temperature, and treat the fraction of runs that agree with each other as your real confidence signal, rather than anything the model says about itself in a single pass.

Run 1: [send the prompt, record the answer]
Run 2: [send the same prompt again, record the answer]
Run 3-5: [repeat]

Confidence = (number of runs that agree) / (total runs)

Five identical answers out of five is a genuinely different situation from three out of five, and no single verbalized-confidence prompt can tell you that difference — only running the question more than once can.

The same research also tested a chain-of-thought variant, where the model reports a confidence for each reasoning step and the final score multiplies them together. It lowered calibration error compared to vanilla verbalized confidence, but sometimes reduced discrimination — meaning it got better at not sounding overconfident, while getting slightly worse at actually separating right answers from wrong ones. That’s a useful reminder that “lower error” and “better at distinguishing right from wrong” are not the same property, and a technique can improve one while quietly costing you the other.

Step 4: Combine both if the answer is worth the extra calls

The study’s hybrid approach — sampling multiple candidate answers and checking both their individual verbalized confidence and their agreement with each other — scored best overall, but it costs several times as many model calls as either method alone. That trade-off is usually worth making for something like a medical, legal, or financial answer a person will act on, and usually not worth it for a low-stakes draft where being roughly right is good enough. Treat the extra API cost as the price of an actual calibration signal, not as overhead to eliminate — five to ten extra calls on a question that gates a real decision is a small price next to the cost of acting on a confidently wrong answer, and it’s usually cheaper than the human review time you’d spend double-checking every answer regardless of its actual risk.

Step 5: Know where all of these methods still struggle

Every method in the study performed worse on professional-knowledge tasks, with professional law called out specifically as a weak spot. Law, medicine, and finance are exactly the domains where a wrong answer is most expensive and where a user is least equipped to spot the error themselves, which is the worst possible combination for a miscalibrated score. That’s the domain where getting calibration wrong matters most, which makes it worth treating any confidence signal — verbalized, sampled, or hybrid — as a rough filter for flagging answers worth double-checking, not as a substitute for actually checking them. This is the same caution behind chain-of-verification prompting, which asks a model to generate and then separately check its own claims rather than trusting a single pass, That pairing addresses two different failure modes at once: one tells you whether the model is drawing on the right material, the other tells you how much weight to put on what it drew. It pairs naturally with a grounding prompt that stops a model from answering outside the documents you’ve actually given it — grounding narrows what the model is allowed to draw on, while confidence elicitation tells you how much to trust what it drew.

Why this matters more once an answer feeds into another step

A single wrong answer that a person reads and judges for themselves is a contained problem. The same wrong answer passed automatically into a second prompt, a database write, or another agent’s next step is not — it travels with none of the hedging a human reader would naturally apply, and the system downstream has no way to tell a confidently wrong answer from a confidently right one unless you’ve attached some signal to it. This is exactly why calibration work matters most in agentic chains and pipelines rather than single-turn chat: the self-consistency check or Top-K spread you compute at one step is the only thing standing between an unverified guess and whatever irreversible action depends on it. If you’re already restricting what tools a given step in a chain is allowed to call, pairing that with a confidence gate on its output closes a different part of the same gap.

What to actually do with the number once you have it

A calibration signal is only useful if something downstream reacts to it differently depending on its value, so decide the threshold before you need it rather than after. A reasonable starting split: treat 5-out-of-5 agreement on self-consistency, or a clear single leading candidate in Top-K, as safe to use without a human in the loop; treat a 3-out-of-5 split, or two Top-K candidates within a few points of each other, as a signal to route the answer to a reviewer or ask a follow-up question before acting on it; and treat a near-even split across candidates as functionally equivalent to “the model doesn’t know,” worth surfacing as such rather than picking the top-ranked guess and presenting it with false confidence. None of these thresholds are universal — they depend on how costly a wrong answer is in your specific workflow — but having any explicit threshold beats reading a verbalized percentage and deciding by feel each time.

The mistake this replaces

The common error isn’t using confidence prompting at all — it’s trusting a verbalized number without ever checking whether it’s calibrated for your use case, your model, and your type of question. Calibration isn’t a universal property of a prompt; it’s measured. Before you rely on any of these techniques in production, run them against a set of questions where you already know the right answer, the same way you’d evaluate a model on a benchmark rather than taking a vendor’s word for it, and keep that test in a regression suite so a model upgrade doesn’t quietly change how trustworthy your confidence scores are without you noticing.

Featured image: “Würfel, gemischt” by Dietmar Rabich / Wikimedia Commons, licensed under CC BY-SA 4.0.

Source: Xiong et al., “Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMs,” arXiv:2306.13063.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top