通过关联焦点损失、温度缩放和适当性来改进校准
Improving Calibration by Relating Focal Loss, Temperature Scaling, and Properness
AI总结:
本文解释了焦点损失训练为何能改善校准,将其分解为置信度提升变换与适当损失,并提出结合焦点校准与温度缩放的焦点温度缩放方法,实验证明其优于标准温度缩放。
摘要:
诸如交叉熵之类的适当损失函数激励分类器在训练数据上产生校准良好的类别概率。由于泛化差距,这些分类器在测试数据上往往变得过度自信,因此需要温度缩放等校准方法。焦点损失不是适当的,但已有研究表明,使用它进行训练通常会使分类器在测试数据上得到更好的校准。我们的第一个贡献是关于为什么焦点损失训练通常比交叉熵训练带来更好校准的一个简单解释。为此,我们证明了焦点损失可以分解为一个置信度提升变换和一个适当损失。这就是为什么焦点损失推动模型在训练数据上提供欠自信的预测,从而由于泛化差距而在测试数据上得到更好的校准。其次,我们通过其置信度提升变换揭示了温度缩放与焦点损失之间的紧密联系,我们将该变换称为焦点校准映射。第三,我们提出了焦点温度缩放——一种结合焦点校准和温度缩放的新的事后校准方法。我们在三个图像分类数据集上的实验表明,焦点温度缩放优于标准温度缩放。
英文摘要:
Proper losses such as cross-entropy incentivize classifiers to produce class probabilities that are well-calibrated on the training data. Due to the generalization gap, these classifiers tend to become overconfident on the test data, mandating calibration methods such as temperature scaling. The focal loss is not proper, but training with it has been shown to often result in classifiers that are better calibrated on test data. Our first contribution is a simple explanation about why focal loss training often leads to better calibration than cross-entropy training. For this, we prove that focal loss can be decomposed into a confidence-raising transformation and a proper loss. This is why focal loss pushes the model to provide under-confident predictions on the training data, resulting in being better calibrated on the test data, due to the generalization gap. Secondly, we reveal a strong connection between temperature scaling and focal loss through its confidence-raising transformation, which we refer to as the focal calibration map. Thirdly, we propose focal temperature scaling - a new post-hoc calibration method combining focal calibration and temperature scaling. Our experiments on three image classification datasets demonstrate that focal temperature scaling outperforms standard temperature scaling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。