# Kalibracja pewności modelu

EN: **Confidence calibration** · id `calibration` · aliases: calibration, kalibracja, temperature scaling, ECE, reliability diagram

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Ewaluacja i interpretowalność](https://aiatlasgraph.com/t/evaluation.md) › [Odporność i niepewność](https://aiatlasgraph.com/t/robustness.md) › Kalibracja pewności modelu

## Description

- PL: Czy przewidywane prawdopodobieństwo lub inna miara pewności odpowiada temu, jak często model ma rację — np. czy predykcje z pewnością 80% są trafne w ok. 80% przypadków — i jak skorygować rozbieżność.
- EN: Whether a predicted probability or other confidence score matches how often the model is right — e.g. whether 80%-confidence predictions are correct about 80% of the time — and how to correct a mismatch.

## In one sentence

- PL: To sprawdzanie i poprawianie zgodności pewności modelu z tym, jak często jego odpowiedzi są trafne.
- EN: This checks and improves agreement between model confidence and how often its answers are correct.

## Problem it solves

- PL: Wysoka pewność może sugerować niezawodność, choć model z takim sygnałem myli się częściej, niż oczekujesz.
- EN: High confidence may suggest reliability even when answers carrying that signal are wrong more often than expected.

## What it does

- PL: Grupuje przewidywania według pewności, porównuje ją z rzeczywistą trafnością i dopasowuje sposób przeliczania tych ocen.
- EN: It groups predictions by confidence, compares that confidence with actual accuracy and adjusts how the scores are converted.

## Everyday example

- PL: Sprawdzasz poprawność odpowiedzi oznaczonych jako bardzo pewne i odkrywasz, że wskaźnik trzeba skorygować przed pokazaniem użytkownikom.
- EN: You check answers marked highly confident and find that the confidence display needs correction before users see it.

## This concerns you if you…

- PL: korzystasz ze wskaźników pewności modelu
- PL: chcesz dopasować pewność do obserwowanej trafności
- EN: use model confidence indicators
- EN: want confidence matched to observed accuracy

## Keywords

ECE · reliability diagrams · temperature scaling · Platt scaling · isotonic regression · Brier score

## How it works

- PL: Predykcje grupuje się według pewności i porównuje z empiryczną częstością poprawnych odpowiedzi. Transformacja prawdopodobieństw, dopasowana na oddzielnym zbiorze, koryguje rozbieżności bez konieczności ponownego uczenia całego modelu.
- EN: Predictions are grouped by confidence and compared with empirical correctness frequencies. A probability transformation fitted on a separate dataset corrects discrepancies without necessarily retraining the whole model.

## Limits

- PL: Dobra kalibracja średnia może ukrywać błędy w podgrupach. Zmiana rozkładu osłabia dopasowanie, a poprawa kalibracji nie oznacza wzrostu trafności predykcji.
- EN: Good average calibration can hide subgroup errors. Distribution shifts weaken the fit, and improved calibration does not imply higher prediction accuracy.

## Key terms

- PL: **temperature scaling**: Dopasowanie skali logitów na zbiorze kontrolnym w celu kalibracji prawdopodobieństw.
- PL: **wykres niezawodności**: Porównanie przewidywanej pewności z częstością poprawnych odpowiedzi.
- EN: **temperature scaling**: Fitting logit scale on held-out data to calibrate probabilities.
- EN: **reliability diagram**: A comparison of predicted confidence with observed correctness frequencies.

## Know first

- [Metryki klasyfikacji i regresji (Classification and regression metrics)](https://aiatlasgraph.com/t/classmetrics.md)
- [Rozkłady prawdopodobieństwa (Probability distributions)](https://aiatlasgraph.com/t/distributions.md)

## Examples

- PL: wykres niezawodności · ECE · temperature scaling · Platt scaling · kalibracja LLM-ów
- EN: reliability diagram · ECE · temperature scaling · Platt scaling · LLM calibration

## Related topics

Untyped, symmetric "see also" links.

- [Kalibracja zaufania: cytaty, pewność i wyjaśnienia (Trust calibration)](https://aiatlasgraph.com/t/trustcalibration.md)
- [Predykcja konformalna (Conformal prediction)](https://aiatlasgraph.com/t/conformalprediction.md)
- [Probabilistyczne prognozy pogody (zespoły) (Probabilistic ensemble weather forecasting)](https://aiatlasgraph.com/t/ensembleweather.md)
- [Prognoza czasu do awarii z estymacją niepewności (Uncertainty-aware remaining useful life prediction)](https://aiatlasgraph.com/t/ruluncertainty.md)
- [Wykrywanie halucynacji (Hallucination detection)](https://aiatlasgraph.com/t/hallucinationdetect.md)

## Sources

- [On Calibration of Modern Neural Networks](<https://arxiv.org/abs/1706.04599>) `guo-calibration-2017` · by Chuan Guo, Geoff Pleiss, Yu Sun, Kilian Q. Weinberger

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/calibration · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
