Papers › A Consistent and Differentiable Lp Canonical Calibration Error Estimator

A Consistent and Differentiable Lp Canonical Calibration Error Estimator

13 Oct 2022arXiv:2210.07810archive 2025-07-28

Teodora Popordanoska, Raphael Sayer, Matthew B. Blaschko

Calibrated probabilistic classifiers are models whose predicted probabilities can directly be interpreted as uncertainty estimates. It has been shown recently that deep neural networks are poorly calibrated and tend to output overconfident predictions. As a remedy, we propose a low-bias, trainable calibration error estimator based on Dirichlet kernel density estimates, which asymptotically converges to the true Lₚ calibration error. This novel estimator enables us to tackle the strongest notion of multiclass calibration, called canonical (or distribution) calibration, while other common calibration methods are tractable only for top-label and marginal calibration. The computational complexity of our estimator is 𝒪(n²), the convergence rate is 𝒪(n^(-1/2)), and it is unbiased up to 𝒪(n⁻²), achieved by a geometric series debiasing scheme. In practice, this means that the estimator can be applied to small subsets of data, enabling efficient estimation and mini-batch updates. The proposed method has a natural choice of kernel, and can be used to generate consistent estimates of other quantities based on conditional expectation, such as the sharpness of a probabilistic classifier. Empirical results validate the correctness of our estimator, and demonstrate its utility in canonical calibration error estimation and calibration error regularized risk minimization.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2210.07810")

Code

Syntology Ran 10 of 16 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 5 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tpopordanoska/ece-kde officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 10 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · our draft was wrong
1ran · fixture could not drive it
4ran
6unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tpopordanoska/ece-kde. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dirichlet_kernel tpopordanoska/ece-kde/ece_kde.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 9bc246bd29ace132 · report
get_ece_kde tpopordanoska/ece-kde/ece_kde.py official repository ran · our draft was wrong MIT (permissive) · b0a9bed5ef6c4741 · report
get_ece_kde tpopordanoska/ece-kde/ece_kde.py official repository ran · our draft was wrong MIT (permissive) · 33dce314122602ee · report
get_kernel tpopordanoska/ece-kde/ece_kde.py official repository ran · our draft was wrong MIT (permissive) · c78951863d26681b · report
get_ratio_binary tpopordanoska/ece-kde/ece_kde.py official repository ran · fixture could not drive it MIT (permissive) · 6b46daa5f7c4ef39 · report
get_ratio_binary tpopordanoska/ece-kde/ece_kde.py official repository ran MIT (permissive) · 0bda15c6f233eb5e · report
get_ratio_canonical tpopordanoska/ece-kde/ece_kde.py official repository ran MIT (permissive) · 1279552d0b4571d1 · report
get_ratio_canonical_log tpopordanoska/ece-kde/ece_kde.py official repository ran MIT (permissive) · b6fec1cfc955ec72 · report
get_ratio_toplabel tpopordanoska/ece-kde/ece_kde.py official repository ran MIT (permissive) · b1690d11037e0673 · report
isnan tpopordanoska/ece-kde/ece_kde.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 75ac62b189ead8eb · report
beta_kernel tpopordanoska/ece-kde/ece_kde.py official repository unverified MIT (permissive) · 1229a437a6fcfedf · report
check_input tpopordanoska/ece-kde/ece_kde.py official repository unverified MIT (permissive) · 5c6e3a10d18a0b2d · report
get_bandwidth tpopordanoska/ece-kde/ece_kde.py official repository unverified MIT (permissive) · 8c9800fbef285941 · report
get_kde_for_ece tpopordanoska/ece-kde/ece_kde.py official repository unverified MIT (permissive) · 20c0edbda0d40b3a · report
get_kde_for_ece_vect tpopordanoska/ece-kde/ece_kde.py official repository unverified MIT (permissive) · 489d7eeee8368ef1 · report
get_ratio_marginal_vect tpopordanoska/ece-kde/ece_kde.py official repository unverified MIT (permissive) · e3bed5deae86a699 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections