arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.01685cs.LGstat.ML
收藏

深度学习中的测量校准

Measuring Calibration in Deep Learning

Google Brain(谷歌大脑);Google Research(谷歌研究院);Google Inc.(谷歌公司)

Jeremy Nixon, Mike Dusenberry, Ghassen Jerfel, Timothy Nguyen, Jeremiah Liu, Linchuan Zhang, Dustin Tran

摘要:

机器学习分类器中的过度自信和不足自信是通过校准来衡量的:为每个类别预测的概率与分类器在该预测上的准确性相匹配的程度。如何衡量校准仍然是一个挑战:预期校准误差,最流行的指标,有许多缺陷,我们概述,并没有明确的经验理解如何选择影响在实践中的结论,以及有什么建议来抵消它的缺陷。在本文中,我们进行了一个全面的实证研究的选择校准措施,包括测量所有的概率,而不仅仅是最大的预测,阈值概率值,类的条件性,箱数,箱是自适应的数据点密度,以及用于比较准确度的置信度的规范。为了分析校准措施的灵敏度,我们研究了使用重新校准技术直接优化每个变量的影响。在MNIST,Fashion MNIST,CIFAR-10/100和ImageNet中,我们发现重新校准方法的排名顺序的结论受到校准度量的选择的极大影响。我们发现,条件类导致更有效的校准评估,并使用L2规范,而不是L1规范提高了优化校准指标和秩相关测量指标的一致性。自适应分箱方案在箱数变化时使度量秩排序更稳定,也是推荐的。我们开源了一个库,用于我们的校准测量。

英文摘要:

Overconfidence and underconfidence in machine learning classifiers is measured by calibration: the degree to which the probabilities predicted for each class match the accuracy of the classifier on that prediction. How one measures calibration remains a challenge: expected calibration error, the most popular metric, has numerous flaws which we outline, and there is no clear empirical understanding of how its choices affect conclusions in practice, and what recommendations there are to counteract its flaws. In this paper, we perform a comprehensive empirical study of choices in calibration measures including measuring all probabilities rather than just the maximum prediction, thresholding probability values, class conditionality, number of bins, bins that are adaptive to the datapoint density, and the norm used to compare accuracies to confidences. To analyze the sensitivity of calibration measures, we study the impact of optimizing directly for each variant with recalibration techniques. Across MNIST, Fashion MNIST, CIFAR-10/100, and ImageNet, we find that conclusions on the rank ordering of recalibration methods is drastically impacted by the choice of calibration measure. We find that conditioning on the class leads to more effective calibration evaluations, and that using the L2 norm rather than the L1 norm improves both optimization for calibration metrics and the rank correlation measuring metric consistency. Adaptive binning schemes lead to more stablity of metric rank ordering when the number of bins vary, and is also recommended. We open source a library for the use of our calibration measures.

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

↑