Skip to content
ML Academy

LLMs, GenAI, RAG, agents, evaluation · insight-0565

Calibrate LLM confidence on labelled data before using it as a threshold

Evidence type
empirical finding
Difficulty
hard
Roles
Data scientist, Applied AI
Industries
insurance, banking

Summary: situation, action, reason, boundary

  1. Situation

    A claims-triage assistant auto-approves cases when the model's token probability or stated confidence exceeds 0.9.

  2. Action

    On a labelled set, plot reliability (stated confidence versus observed accuracy), fit a calibration map or choose the threshold from observed precision at each cut-off, and re-check after every model or prompt change.

  3. Reason

    One technical report showed post-training reduced the calibration of a model's answer probabilities, and research found verbalised confidence tends to be overconfident.

  4. Boundary

    Auto-approval, routing to humans, abstention thresholds.

Symptom or risk

The confidence is systematically too high, so the auto-approval error rate far exceeds what the threshold implies.

Exceptions

Pretrained models on well-formatted multiple-choice questions can be well calibrated, but that does not transfer automatically to your task.

Trade-offs

Needs labelled data and re-calibration after changes.

Pitfalls

Reading 0.9 as 90 percent likely to be correct without measuring it.

Lessons and concepts

Claims and their sources