liveBook · Manning

Model calibration

As explained in AI Agents in Action, Second Edition

Confidence calibration is the degree to which an agent’s expressed or inferred confidence corresponds to the correctness of its output.

Confidence calibration measures whether an agent’s confidence tracks the correctness of its answers. Saying “I’m not sure” is not enough: verbal confidence can differ from signals that better predict correctness. section 10.1.4

Useful signals include token probabilities, retrieval scores, and consistency among evidence. Token-likelihood measures are described as better predictors of correctness than verbal expressions of confidence. section 10.1.4

To evaluate calibration:

  • Run the same diagnostic queries against two agent configurations; measure correctness, calibration, graceful uncertainty, and average tokens consumed. section 10.4.2
  • Compare an agent with an empty knowledge graph against the same agent after 20 tasks; assess whether accumulated experience improves calibration. section 10.4.2

Measure calibration across queries

For ten queries of varying difficulty, record confidence and ground-truth correctness. Compute their correlation, plot confidence buckets against actual accuracy, and compare the results with a flat ReAct agent. section 10.5

How AI Agents in Action, Second Edition covers it

How deep it goes
Defines calibration, contrasts implicit signals with verbal claims, and outlines correlation and calibration-curve evaluation without detailing a calibration algorithm.
Examples
Uses ten varied-difficulty queries with confidence scores and ground-truth correctness, comparing correlation and confidence-bucket accuracy against a flat ReAct agent.
What you can do after
Evaluate an agent by recording confidence and correctness, computing their correlation, plotting a calibration curve, and comparing a ReAct baseline.
How it connects
Links confidence calibration to metacognition, token likelihoods, retrieval scores, evidence consistency, and knowledge boundary awareness.

Also explained in

Compare how 2 books explain model calibration →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents in Action, Second Edition. The section links point to the parts of the book it draws on.