Calibration and Debiasing
After a busy refund season, someone added four refund emails to the triage prompt's examples. Soon a third of all emails were being labelled refund, including plain repair bookings. And when asked how sure it was, the model said "95 percent" about answers that were right only about three times in four. The prompt had developed a tilt, and its confidence could not be taken at face value.
The rule
Balance the examples, then check that confidence matches accuracy.
Prompt bias here means a systematic lean in answers caused by the prompt itself, not the input. Few-shot prompts are especially prone to it:
- Majority-label bias — if most examples share a label, the model over-predicts that label.
- Recency bias — labels near the end of the prompt pull harder than those at the start.
- Common-token bias — answers that are frequent words in general can be favoured over rarer ones.
Debiasing means removing these tilts: balance the labels across examples, shuffle their order, and use neutral wording that does not hint at an answer.
Calibration is about confidence. A well-calibrated system is right about 80 percent of the time when it says it is 80 percent sure. Models' stated confidence ("I'm 95 percent sure") is often poorly calibrated, so never use it as a probability until you have checked it against real results.
Stated confidence Emails Actually correct
90-100% 120 89 (74%) <- overconfident
70-89% 60 45 (75%)