arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.12800cs.LGcs.CVstat.ML
收藏

基于样条函数的神经网络标定

Calibration of Neural Networks using Splines

Australian National University(澳大利亚国立大学);Data61, CSIRO(联邦科学与工业研究组织 Data61);Google Research(谷歌研究院)

Kartik Gupta, Amir Rahimi, Thalaiyasingam Ajanthan, Thomas Mensink, Cristian Sminchisescu, Richard Hartley

摘要:

校准神经网络是最重要的,当采用它们在安全关键的应用程序,下游决策取决于预测的概率。测量校准误差相当于比较两个经验分布。在这项工作中,我们引入了一个免费的binning校准措施的灵感来自经典的Kolmogorov-Smirnov(KS)统计检验,其主要思想是比较各自的累积概率分布。由此,通过使用样条函数的可微函数来近似经验累积分布,我们获得了一个重新校准函数,该函数将网络输出映射到实际(校准)的类分配概率。使用保持的校准集进行脊柱拟合,并在看不见的测试集上评估所获得的重新校准函数。我们在各种图像分类数据集上测试了我们的方法与现有的校准方法,并且我们基于样条的重新校准方法在KS误差以及其他常用校准措施上始终优于现有方法。我们的代码可在https://github.com/kartikgupta-at-anu/spline-calibration上获得。

英文摘要:

Calibrating neural networks is of utmost importance when employing them in safety-critical applications where the downstream decision making depends on the predicted probabilities. Measuring calibration error amounts to comparing two empirical distributions. In this work, we introduce a binning-free calibration measure inspired by the classical Kolmogorov-Smirnov (KS) statistical test in which the main idea is to compare the respective cumulative probability distributions. From this, by approximating the empirical cumulative distribution using a differentiable function via splines, we obtain a recalibration function, which maps the network outputs to actual (calibrated) class assignment probabilities. The spine-fitting is performed using a held-out calibration set and the obtained recalibration function is evaluated on an unseen test set. We tested our method against existing calibration approaches on various image classification datasets and our spline-based recalibration approach consistently outperforms existing methods on KS error as well as other commonly used calibration measures. Our Code is available at https://github.com/kartikgupta-at-anu/spline-calibration.

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

↑