arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1909.10155cs.LGstat.ML
收藏

经验证的不确定度校准

Verified Uncertainty Calibration

Stanford University(斯坦福大学)

Ananya Kumar, Percy Liang, Tengyu Ma

摘要:

天气预报和个性化医疗需求模型等应用程序,这些应用程序输出校准的概率估计值--代表预测的真实可能性。大多数模型不是开箱即用的,而是通过后处理模型输出进行重新校准。在这项工作中,我们发现流行的重新校准方法,如普拉特缩放和温度缩放(i)校准比报告的少,(ii)目前的技术无法估计它们的校准误差。另一种方法,直方图分箱,具有可测量的校准误差,但样本效率低--与缩放方法的$O(1/ε^2)$相比,它需要$O(B/ε^2)$样本,其中$B$是模型可以输出的不同概率的数量。为了两全其美,我们引入了缩放分箱校准器,它首先拟合参数函数以减少方差,然后对函数值进行分箱以实际确保校准。这只需要$O(1/ε^2 + B)$样本。接下来,我们展示了我们可以使用气象界的估计器更准确地估计模型的校准误差-或者等效地用更少的样本测量其校准误差($O(\sqrt{B})$而不是$O(B)$)。我们通过CIFAR-10和ImageNet上的多类校准实验验证了我们的方法,在那里我们获得了比直方图分箱低35%的校准误差,并且与缩放方法不同,保证了真正的校准。在这些实验中,我们还估计校准误差和ECE比常用的插件估计更准确。我们在Python库中实现所有这些方法:https://pypi.org/project/uncertainty-calibration

英文摘要:

Applications such as weather forecasting and personalized medicine demand models that output calibrated probability estimates---those representative of the true likelihood of a prediction. Most models are not calibrated out of the box but are recalibrated by post-processing model outputs. We find in this work that popular recalibration methods like Platt scaling and temperature scaling are (i) less calibrated than reported, and (ii) current techniques cannot estimate how miscalibrated they are. An alternative method, histogram binning, has measurable calibration error but is sample inefficient---it requires $O(B/ε^2)$ samples, compared to $O(1/ε^2)$ for scaling methods, where $B$ is the number of distinct probabilities the model can output. To get the best of both worlds, we introduce the scaling-binning calibrator, which first fits a parametric function to reduce variance and then bins the function values to actually ensure calibration. This requires only $O(1/ε^2 + B)$ samples. Next, we show that we can estimate a model's calibration error more accurately using an estimator from the meteorological community---or equivalently measure its calibration error with fewer samples ($O(\sqrt{B})$ instead of $O(B)$). We validate our approach with multiclass calibration experiments on CIFAR-10 and ImageNet, where we obtain a 35% lower calibration error than histogram binning and, unlike scaling methods, guarantees on true calibration. In these experiments, we also estimate the calibration error and ECE more accurately than the commonly used plugin estimators. We implement all these methods in a Python library: https://pypi.org/project/uncertainty-calibration

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

↑