Testing Calibration in Nearly-Linear Time
Not on the map. Why?
Abstract (arXiv)
In the recent literature on machine learning and decision making, calibration has emerged as a desirable and widely-studied statistical property of the outputs of binary prediction models. However, the algorithmic aspects of measuring model calibration have remained relatively less well-explored. Motivated by [BGHN23], which proposed a rigorous framework for measuring distances to calibration, we initiate the algorithmic study of calibration through the lens of property testing. We define the problem of calibration testing from samples where given n draws from a distribution D on (predictions, binary outcomes), our goal is to distinguish between the case where D is perfectly calibrated, and the case where D is varepsilon-far from calibration. We make the simple observation that the empirical smooth calibration linear program can be reformulated as an instance of minimum-cost flow on a highly-structured graph, and design an exact dynamic programming-based solver for it which runs in time O(nlog2(n)), and solves the calibration testing problem information-theoretically optimally in the same time. This improves upon state-of-the-art black-box linear program solvers requiring Omega(nω) time, where ω > 2 is the exponent of matrix multiplication. We also develop algorithms for tolerant variants of our testing problem improving upon black-box linear program solvers, and give sample complexity lower bounds for alternative calibration measures to the one considered in this work. Finally, we present experiments showing the testing problem we define faithfully captures standard notions of calibration, and that our algorithms scale efficiently to accommodate large sample sizes.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 24 of its 49 references that are in the map. First posted on arXiv 20 Feb 2024.
Builds on
24 of 49 references.
References · 24
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2017On Calibration of Modern Neural Networkscited by 4,860
- 2016CVXPY: A Python-Embedded Modeling Language for Convex Optimizationcited by 633
- 2019Measuring Calibration in Deep Learningcited by 443
- 2021Revisiting the Calibration of Modern Neural Networkscited by 387
- 2019Verified Uncertainty Calibrationcited by 307
- 2017A Rewriting System for Convex Optimization Problemscited by 178
- 2020Uncertainty Quantification and Deep Ensemblescited by 138
- 2018Solving Linear Programs in the Current Matrix Multiplication Timecited by 100
- 2020Outcome Indistinguishabilitycited by 74
- 2021Omnipredictorscited by 71
- 2023Smooth ECE: Principled Reliability Diagrams via Kernel Smoothingcited by 59
12 more
- 2022A Unifying Theory of Distance from Calibrationcited by 51
- 2023When Does Optimizing a Proper Loss Yield Calibration?cited by 35
- 2023New Bounds for Matrix Multiplication: from Alpha to Omegacited by 34
- 2022Maximum Flow and Minimum-Cost Flow in Almost-Linear Timecited by 28
- 2022T-Cal: An optimal test for the calibration of predictive modelscited by 24
- 2020Solving Tall Dense Linear Programs in Nearly Linear Timecited by 21
- 2020Relative Lipschitzness in Extragradient Methods and a Direct Recipe for Accelerationcited by 18
- 2020Solving Sparse Linear Systems Faster than Matrix Multiplicationcited by 10
- 2021Matrix anti-concentration inequalities with applicationscited by 6
- 2013Nearly Maximum Flows in Nearly Linear Timecited by 4
- 2022Nested Dissection Meets IPMs: Planar Min-Cost Flow in Nearly-Linear Timecited by 3
- 2023Revisiting Area Convexity: Faster Box-Simplex Games and Spectrahedral Generalizationscited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 2.
9 papers.
- 2024Omnipredicting Single-Index Models with Multi-Index Modelscited by 7
- 2025A Perfectly Truthful Calibration Measurecited by 4
- 2025Calibration through the Lens of Indistinguishabilitycited by 4
- 2025Efficient Calibration for Decision Makingcited by 3
- 2026The Verification Tax: Fundamental Limits of AI Auditing in the Rare-Error Regimecited by 1
- 2025Uniform convergence of the smooth calibration error and its relationship with functional gradientcited by 0
- 2025Auditability and the Landscape of Distance to Multicalibrationcited by 0
- 2025L2-Regularized Empirical Risk Minimization Guarantees Small Smooth Calibration Errorcited by 0
- 2026Computational and Statistical Hardness of Calibration Distancecited by 0
- 2026The Verification Tax: Fundamental Limits of AI Auditing in the Rare-Error Regime14 Apr 2026
- 2026Computational and Statistical Hardness of Calibration Distance19 Mar 2026
- 2025Efficient Calibration for Decision Making17 Nov 2025
- 2025L2-Regularized Empirical Risk Minimization Guarantees Small Smooth Calibration Error15 Oct 2025
- 2025Auditability and the Landscape of Distance to Multicalibration21 Sep 2025
- 2025Calibration through the Lens of Indistinguishability2 Sep 2025
- 2025A Perfectly Truthful Calibration Measure18 Aug 2025
- 2025Uniform convergence of the smooth calibration error and its relationship with functional gradient26 May 2025
- 2024Omnipredicting Single-Index Models with Multi-Index Models20 Nov 2024