Inferensys

Glossary

Calibration Score

A metric measuring the alignment between a model's predicted confidence probability and its actual empirical accuracy, indicating the trustworthiness of its self-assessment.
Risk analyst performing AI risk assessment on laptop, risk matrices visible, casual office risk session.
PROBABILISTIC TRUSTWORTHINESS

What is Calibration Score?

A metric measuring the alignment between a model's predicted confidence probability and its actual empirical accuracy, indicating the trustworthiness of its self-assessment.

Calibration Score quantifies the statistical consistency between a model's predicted probability and the observed frequency of correctness. A perfectly calibrated model assigning 70% confidence to a set of predictions will be correct exactly 70% of the time, making its self-assessment a reliable input for downstream decision logic.

This metric is critical for risk-sensitive applications where raw accuracy is insufficient. A high-accuracy model with poor calibration may exhibit dangerous overconfidence on specific inputs. Common measurement tools include Expected Calibration Error (ECE) and reliability diagrams, which visually plot predicted confidence against empirical accuracy to identify systematic over- or under-confidence.

PROBABILISTIC TRUSTWORTHINESS

Key Characteristics of Calibration Score

A calibration score quantifies the statistical alignment between a model's predicted confidence and its actual empirical accuracy. A well-calibrated model's 70% confidence predictions should be correct exactly 70% of the time.

01

Expected Calibration Error (ECE)

The primary metric for measuring miscalibration. ECE partitions predictions into M equally-spaced confidence bins and computes the weighted average of the absolute difference between accuracy and confidence within each bin.

  • Formula: ECE = Σ (|B_m|/n) * |acc(B_m) - conf(B_m)|
  • Perfect calibration: ECE = 0
  • Lower ECE indicates better alignment between predicted probabilities and observed frequencies
  • Commonly visualized using reliability diagrams that plot accuracy against confidence
ECE < 0.05
Well-Calibrated Threshold
02

Reliability Diagrams

A graphical diagnostic tool that visually exposes calibration errors. The diagram plots observed accuracy on the y-axis against predicted confidence on the x-axis.

  • A perfectly calibrated model follows the diagonal identity line (y = x)
  • Underconfidence: points lie above the diagonal — the model is more accurate than it claims
  • Overconfidence: points lie below the diagonal — the model is less accurate than its predictions suggest
  • Gap analysis between the curve and diagonal reveals systematic bias in probability estimates
03

Temperature Scaling

A post-hoc calibration technique that applies a single scalar parameter T (temperature) to the logits before the softmax function, without altering the model's accuracy or ranking.

  • T > 1: Softens probabilities, reducing overconfidence
  • T < 1: Sharpens probabilities, reducing underconfidence
  • T = 1: Original uncalibrated probabilities
  • Optimized on a held-out validation set using negative log-likelihood
  • Preserves AUC and accuracy while dramatically improving ECE
04

Platt Scaling

A parametric calibration method that fits a logistic regression model on top of a classifier's raw scores, transforming them into well-calibrated posterior probabilities.

  • Learns two scalar parameters A and B such that P(y=1|x) = 1 / (1 + exp(A * f(x) + B))
  • Originally developed for Support Vector Machines but widely applicable
  • Works best when miscalibration is sigmoid-shaped in reliability diagrams
  • Requires a separate calibration dataset distinct from training data to avoid overfitting
05

Brier Score

A strictly proper scoring rule that measures the mean squared error between predicted probabilities and actual binary outcomes. Unlike ECE, it decomposes into refinement and calibration components.

  • Formula: BS = (1/N) Σ (p_i - o_i)² where p_i is predicted probability and o_i is the actual outcome
  • Range: 0 (perfect) to 1 (worst)
  • Penalizes both discrimination (separation of classes) and calibration
  • A lower Brier score indicates both accurate and well-calibrated predictions
BS < 0.10
Strong Calibration
06

Isotonic Regression

A non-parametric calibration method that learns a monotonically increasing piecewise constant function mapping uncalibrated scores to calibrated probabilities, making no assumptions about the shape of miscalibration.

  • More flexible than Platt scaling — can correct any monotonic distortion
  • Prone to overfitting on small datasets due to high capacity
  • Best suited for large validation sets where parametric assumptions fail
  • Produces step-function transformations visible in calibrated reliability curves
CALIBRATION SCORE INSIGHTS

Frequently Asked Questions

Explore the critical metric that measures the trustworthiness of a model's self-assessment, distinguishing between confident correctness and overconfident error.

A calibration score is a statistical metric that quantifies the alignment between a model's predicted confidence probability and its actual empirical accuracy. It works by comparing the model's self-reported confidence (e.g., 'I am 90% sure this answer is correct') against the observed frequency of correctness. A perfectly calibrated model will be correct exactly 90% of the time when it claims 90% confidence. The most common implementation is the Expected Calibration Error (ECE) , which partitions predictions into discrete confidence bins and computes the weighted average of the absolute difference between accuracy and confidence within each bin. A lower ECE indicates better calibration, signifying that the model's probability estimates are reliable for downstream decision-making and risk assessment.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.