mlsanityData to 7 Oct 2026

Testing Calibration in Nearly-Linear Time

arXiv 2402.13187 ↗First posted 20 Feb 2024cs.LG cs.DS stat.COcited by 9

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

  1. 2016Densely Connected Convolutional Networkscited by 6,691
  2. 2017On Calibration of Modern Neural Networkscited by 4,860
  3. 2016CVXPY: A Python-Embedded Modeling Language for Convex Optimizationcited by 633
  4. 2019Measuring Calibration in Deep Learningcited by 443
  5. 2021Revisiting the Calibration of Modern Neural Networkscited by 387
  6. 2019Verified Uncertainty Calibrationcited by 307
  7. 2017A Rewriting System for Convex Optimization Problemscited by 178
  8. 2020Uncertainty Quantification and Deep Ensemblescited by 138
  9. 2018Solving Linear Programs in the Current Matrix Multiplication Timecited by 100
  10. 2020Outcome Indistinguishabilitycited by 74
  11. 2021Omnipredictorscited by 71
  12. 2023Smooth ECE: Principled Reliability Diagrams via Kernel Smoothingcited by 59
12 more
  1. 2022A Unifying Theory of Distance from Calibrationcited by 51
  2. 2023When Does Optimizing a Proper Loss Yield Calibration?cited by 35
  3. 2023New Bounds for Matrix Multiplication: from Alpha to Omegacited by 34
  4. 2022Maximum Flow and Minimum-Cost Flow in Almost-Linear Timecited by 28
  5. 2022T-Cal: An optimal test for the calibration of predictive modelscited by 24
  6. 2020Solving Tall Dense Linear Programs in Nearly Linear Timecited by 21
  7. 2020Relative Lipschitzness in Extragradient Methods and a Direct Recipe for Accelerationcited by 18
  8. 2020Solving Sparse Linear Systems Faster than Matrix Multiplicationcited by 10
  9. 2021Matrix anti-concentration inequalities with applicationscited by 6
  10. 2013Nearly Maximum Flows in Nearly Linear Timecited by 4
  11. 2022Nested Dissection Meets IPMs: Planar Min-Cost Flow in Nearly-Linear Timecited by 3
  12. 2023Revisiting Area Convexity: Faster Box-Simplex Games and Spectrahedral Generalizationscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 6; 2026: 2.

9 papers.