A reliability diagram is a graphical plot that compares a model's average predicted confidence against its observed empirical accuracy across multiple confidence bins, providing an intuitive visual assessment of calibration performance. A perfectly calibrated model yields a diagonal line where predicted confidence equals observed accuracy; deviations from this line reveal systematic overconfidence (points below the diagonal) or underconfidence (points above the diagonal).
Glossary
Reliability Diagram

What is a Reliability Diagram?
A reliability diagram is a primary visual diagnostic tool for assessing the calibration of a probabilistic classifier or regressor.
The diagram is constructed by grouping predictions into bins based on their output confidence scores, calculating the average confidence and the actual accuracy within each bin, and plotting these paired values. It serves as a critical companion to scalar metrics like Expected Calibration Error (ECE) by revealing the shape and location of miscalibration, informing the selection of corrective techniques such as temperature scaling or Platt scaling.
Key Characteristics of a Reliability Diagram
A reliability diagram is a graphical tool that plots a model's predicted confidence against its observed empirical accuracy, providing an intuitive visual diagnosis of its calibration performance.
Binning Strategy
The core mechanism of a reliability diagram involves grouping predictions into bins based on their predicted confidence scores. Common strategies include:
- Equal-width bins: Dividing the confidence range [0,1] into fixed intervals (e.g., 10 bins of width 0.1).
- Equal-mass bins: Creating bins so each contains roughly the same number of prediction instances. The choice of binning strategy and the number of bins can affect the diagram's granularity and the interpretation of miscalibration patterns.
Perfect Calibration Line
A diagonal reference line from (0,0) to (1,1) represents the ideal state of perfect calibration. For any given confidence level, the empirical accuracy should match the prediction. Points or bars lying above this line indicate underconfidence (the model is more accurate than it claims), while points below the line indicate overconfidence (the model is less accurate than its confidence suggests). This visual baseline is critical for rapid assessment.
Empirical Accuracy vs. Predicted Confidence
For each bin, the diagram plots two key values:
- X-coordinate (Predicted Confidence): The average of the confidence scores for all predictions in that bin.
- Y-coordinate (Empirical Accuracy): The proportion of those predictions that were actually correct. A well-calibrated model will have points where the accuracy (y) equals the average confidence (x), causing them to fall along the perfect calibration line. Large deviations form a visible 'gap' representing miscalibration.
Visual Representation of Miscalibration
The diagram makes specific miscalibration patterns immediately apparent:
- Systematic Overconfidence: A curve that lies consistently below the diagonal, often seen in modern deep neural networks.
- Systematic Underconfidence: A curve that lies consistently above the diagonal.
- Non-Monotonic Miscalibration: A zig-zag pattern where the model is overconfident in some confidence ranges and underconfident in others, indicating more complex miscalibration that simple scaling cannot fix.
Relationship to ECE
The Expected Calibration Error (ECE) is a scalar summary statistic directly derived from the reliability diagram. It is computed as the weighted average of the absolute vertical gaps between each bin's empirical accuracy and its average predicted confidence, with the weights being the proportion of samples in each bin. The reliability diagram provides the visual decomposition of the ECE, showing which confidence regions contribute most to the overall miscalibration score.
Post-Calibration Validation
The primary use case for a reliability diagram is to validate the effectiveness of post-hoc calibration methods like temperature scaling or Platt scaling. Practitioners generate two diagrams: one for the uncalibrated model and one for the calibrated model. A successful calibration technique will shift the points or bars significantly closer to the diagonal line, providing visual proof that the confidence scores have been corrected. It is the standard diagnostic tool for comparing calibration techniques.
Interpreting Common Reliability Diagram Patterns
This table provides a diagnostic guide for common visual patterns observed in reliability diagrams, linking each pattern to its underlying calibration issue and recommended corrective action.
| Diagram Pattern | Visual Description | Indicated Calibration Issue | Common Causes | Recommended Action |
|---|---|---|---|---|
Well-Calibrated | Points lie on or very near the diagonal (y=x) line across all confidence bins. | Minimal miscalibration. Model's confidence is an accurate reflection of its empirical accuracy. | Proper training with calibration-aware techniques (e.g., label smoothing), or successful post-hoc calibration. | Monitor for drift. No immediate corrective action required. |
Overconfident | Points form a curve below the diagonal. High confidence predictions are less accurate than claimed. | Systematic overconfidence. The model is more confident than it is correct. | Overfitting, lack of regularization, training with cross-entropy loss without mitigation, or using models with high capacity on simple tasks. | Apply post-hoc calibration (Temperature Scaling, Platt Scaling). Consider regularization, label smoothing, or focal loss in future training. |
Underconfident | Points form a curve above the diagonal. Model accuracy is higher than its predicted confidence. | Systematic underconfidence. The model is less confident than its performance warrants. | Excessive regularization, underfitting, or the use of calibration methods that are too aggressive. | Re-calibrate using a simpler method (e.g., reduce temperature parameter). Review regularization strength and model capacity. |
Sigmoidal / 'S'-Shaped | Points form an 'S' shape, crossing the diagonal. Underconfident at mid-range confidences, overconfident at extremes. | Non-linear miscalibration. The mapping from scores to probabilities is distorted. | Inherent biases in the model's scoring function, or using a linear calibration method (like Platt Scaling) on a problem requiring a non-linear transform. | Apply a non-parametric calibration method like Isotonic Regression. |
Inverse Sigmoid / Reverse 'S' | Points form an inverted 'S' shape, crossing the diagonal. Overconfident at mid-range, underconfident at extremes. | Complex, non-linear miscalibration. Opposite distortion of the sigmoidal pattern. | Less common, but can arise from specific dataset artifacts or the failure mode of certain model architectures. | Apply Isotonic Regression. Investigate dataset balance and label noise. |
Binned Artifacts / 'Zig-Zag' | Points show high variance and do not follow a smooth curve, jumping above and below the diagonal erratically. | High variance in calibration estimate, often due to insufficient data per bin or noisy accuracy estimates. | Using too many bins for the size of the evaluation set, or evaluating on a very small dataset. | Reduce the number of bins in the reliability diagram. Collect more evaluation data for a stable estimate. |
Confidence Collapse | Points are clustered at one or two confidence values (e.g., near 0.0, 1.0, or 0.5), not spanning the full range. | The model is not producing meaningful, discriminative confidence scores. Output probabilities are not refined. | Use of a poorly chosen or incorrectly applied temperature parameter (e.g., T >> 1), or a model with a saturated softmax output. | Audit the calibration transformation. Ensure the model's logits have sufficient variance. Re-train with calibration-aware loss. |
Frequently Asked Questions
A reliability diagram is a fundamental visual diagnostic for assessing a machine learning model's calibration. This FAQ addresses common questions about its interpretation, construction, and role in evaluation-driven development.
A reliability diagram is a visual diagnostic tool that plots a model's average predicted confidence against its observed empirical accuracy across binned predictions, providing an intuitive graphical representation of its calibration performance. It answers a core question in evaluation-driven development: does the model's stated confidence match reality? For each bin of predictions (e.g., instances where the model predicted a probability between 0.6 and 0.7), the diagram plots the bin's average predicted probability on the x-axis against the bin's actual accuracy (the fraction of correct predictions within that bin) on the y-axis. A perfectly calibrated model yields a plot where all points lie on the diagonal line y = x, meaning confidence equals accuracy. Deviations from this diagonal visually reveal the nature and severity of miscalibration, such as overconfidence (points below the diagonal) or underconfidence (points above the diagonal).
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
A reliability diagram is a core diagnostic within the broader practice of model calibration. The following terms define the quantitative metrics, correction methods, and operational frameworks used to measure and ensure a model's confidence scores are trustworthy.
Expected Calibration Error (ECE)
Expected Calibration Error (ECE) is the primary scalar metric derived from a reliability diagram. It quantifies miscalibration by computing a weighted average of the absolute difference between a model's average predicted confidence and its empirical accuracy across multiple bins.
- Calculation: ECE = ÎŁ (|acc(b) - conf(b)| * n_b / N) across all bins.
- Interpretation: A lower ECE indicates better calibration. It provides a single number to track and compare models, but its value can be sensitive to the number of bins chosen.
Post-Hoc Calibration
Post-hoc calibration refers to techniques applied to a trained model's outputs—without retraining—to correct its confidence scores. A reliability diagram is used to diagnose the need for these methods and to validate their effectiveness.
- Common Methods: Include Temperature Scaling, Platt Scaling, and Isotonic Regression.
- Process: A held-out calibration set is used to fit simple scaling functions (e.g., a single temperature parameter) that map the model's original logits to better-calibrated probabilities.
Proper Scoring Rules
Proper scoring rules are loss functions that measure the overall quality of probabilistic predictions, evaluating both calibration and sharpness. They provide a training signal for calibration-aware models and a final evaluation metric.
- Brier Score: Measures mean squared error between predicted probabilities and true binary outcomes. Lower is better.
- Negative Log-Likelihood (NLL): Penalizes models for assigning low probability to the correct class. It is the standard loss for training classification models and a proper scoring rule.
Calibration in Production
Calibration in production encompasses the MLOps practices required to maintain calibration after deployment. A reliability diagram generated on live data can reveal calibration drift due to changing data distributions.
- Monitoring: Requires periodic re-evaluation using a calibration pipeline that automatically scores new data, updates diagrams, and triggers retraining or recalibration.
- Challenge: Must address out-of-distribution (OOD) calibration, where models often become overconfident on unfamiliar inputs.
Multi-Class Calibration
Multi-class calibration extends the binary concepts visualized in a reliability diagram to classification problems with more than two classes. The diagnostic becomes more complex, often focusing on the confidence of the top predicted class.
- Diagnosis: A reliability diagram can be constructed by binning the model's maximum predicted probability for each sample and comparing it to the accuracy of the top-class prediction.
- Methods: Techniques like matrix scaling (a multi-class extension of Platt scaling) are used for post-hoc correction.
Selective Calibration
Selective calibration is a strategy where a model is allowed to abstain from making predictions on low-confidence inputs. The goal is to maintain high calibration only on the subset of instances for which it does predict, increasing trust in its active outputs.
- Relationship to Reliability: A reliability diagram for a selective model would only include bins for confidence levels above the abstention threshold.
- Use Case: Critical in high-stakes applications like medical diagnosis or autonomous systems, where wrong but confident predictions are unacceptable.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us