arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.01850stat.MLcs.LG
收藏

T-Cal:一种用于预测模型校准的最优检验

T-Cal: An optimal test for the calibration of predictive models

Univ. of Pennsylvania(宾夕法尼亚大学)

Donghwan Lee, Xinmeng Huang, Hamed Hassani, Edgar Dobriban

AI总结:

本文将有限验证集上的模型失校准检测形式化为假设检验,提出基于去偏 ℓ2-ECE 插件估计量的极小极大最优检验 T-Cal 及自适应版本,并通过深度网络与事后校准方法实验验证其有效性。

摘要:

机器学习方法的预测准确率正在稳步提升,但其不确定性预测的校准构成了一项重大挑战。大量研究聚焦于获得良好校准的预测模型,但对于如何可靠评估模型校准,人们所知较少。这限制了我们判断以下问题的能力:改进校准的算法何时具有真实效果,以及何时这些改进仅仅是有限数据集中随机噪声导致的假象。在本研究中,我们将使用有限验证数据集检测预测模型的失校准问题视为一个假设检验问题。原假设是预测模型已校准,而备择假设是其与校准状态的偏离足够大。我们发现,只有当各类别的条件概率是预测结果的足够光滑函数时,检测失校准才是可能的。当条件类别概率具有 Hölder 连续性时,我们提出 T-Cal,这是一种基于 ℓ2-期望校准误差(ECE)去偏插件估计量的极小极大最优校准检验。我们进一步提出 Adaptive T-Cal,这是一个可适应未知光滑度的版本。我们通过广泛实验验证了理论发现,其中包括多种流行的深度神经网络架构和若干标准的事后校准方法。T-Cal 是一种实用的通用工具,与针对离散值预测器的经典检验相结合,几乎可用于检验任何概率分类方法的校准情况。

英文摘要:

The prediction accuracy of machine learning methods is steadily increasing, but the calibration of their uncertainty predictions poses a significant challenge. Numerous works focus on obtaining well-calibrated predictive models, but less is known about reliably assessing model calibration. This limits our ability to know when algorithms for improving calibration have a real effect, and when their improvements are merely artifacts due to random noise in finite datasets. In this work, we consider detecting mis-calibration of predictive models using a finite validation dataset as a hypothesis testing problem. The null hypothesis is that the predictive model is calibrated, while the alternative hypothesis is that the deviation from calibration is sufficiently large. We find that detecting mis-calibration is only possible when the conditional probabilities of the classes are sufficiently smooth functions of the predictions. When the conditional class probabilities are Hölder continuous, we propose T-Cal, a minimax optimal test for calibration based on a debiased plug-in estimator of the $\ell_2$-Expected Calibration Error (ECE). We further propose Adaptive T-Cal, a version that is adaptive to unknown smoothness. We verify our theoretical findings with a broad range of experiments, including with several popular deep neural net architectures and several standard post-hoc calibration methods. T-Cal is a practical general-purpose tool, which -- combined with classical tests for discrete-valued predictors -- can be used to test the calibration of virtually any probabilistic classification method.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑