Testing Calibration in Nearly-Linear Time
Lunjia Hu, Arun Jambulapati, Kevin Tian, Chutong Yang
Abstract
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 draws from a distribution on , our goal is to distinguish between the case where is perfectly calibrated, and the case where is -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 , 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 time, where 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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 482c9937-a98d-4b76-81bd-dd7b50a3edf3Cited by top-tier papers4
- Efficient Calibration for Decision MakingParikshit Gopalan, Konstantinos Stavropoulos, Kunal Talwar, Pranay TankalaSTOC 2026 · 3 citations
- Omnipredicting Single-Index Models with Multi-index ModelsLunjia Hu, Kevin Tian, Chutong YangSTOC 2025 · 1 citation
- Radial Isotropic Position via an Implicit Newton's MethodArun Jambulapati, Jonathan Li, Kevin TianFOCS 2025
- Smooth Calibration Error: Uniform Convergence and Functional Gradient AnalysisFutoshi Futami, Atsushi NitandaICLR 2026
Builds on12
- Revisiting the Calibration of Modern Neural NetworksMatthias Minderer, Josip Djolonga, Rob Romijnders, Frances Hubis et al.NeurIPS 2021 · 633 citations
- Uncertainty Quantification and Deep EnsemblesRahul Rahaman, Alexandre H. ThiéryNeurIPS 2021 · 250 citations
- New Bounds for Matrix Multiplication: from Alpha to OmegaVirginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, Renfei ZhouSODA 2024 · 90 citations
- Minimum cost flows, MDPs, and ℓ1-regression in nearly linear time for dense instancesJan van den Brand, Yin Tat Lee, Yang P. Liu, Thatchaphol Saranurak et al.STOC 2021 · 61 citations
- Solving tall dense linear programs in nearly linear timeJan van den Brand, Yin Tat Lee, Aaron Sidford, Zhao SongSTOC 2020 · 59 citations
Related papers
- A Unifying Theory of Distance from CalibrationJaroslaw Blasiok, Parikshit Gopalan, Lunjia Hu, Preetum NakkiranSTOC 2023 · 7 citations
- Reassessing How to Compare and Improve the Calibration of Machine Learning ModelsMuthu Chidambaram, Rong GeICLR 2025
- Calibration tests beyond classificationDavid Widmann, Fredrik Lindsten, Dave ZachariahICLR 2021 · 23 citations
- Predict to Minimize Swap Regret for All Payoff-Bounded TasksLunjia Hu, Yifan WuFOCS 2024 · 1 citation
- Optimal testing of discrete distributions with high probabilityIlias Diakonikolas, Themis Gouleakis, Daniel M. Kane, John Peebles et al.STOC 2021 · 1 citation
