通过感知预测正确性优化校准
Optimizing Calibration by Gaining Aware of Prediction Correctness
AI总结:
针对交叉熵损失在校准中存在的局限性,本文提出一种基于校准目标的事后校准新目标,通过样本变换版本训练校准器以调整预测置信度,在分布内外测试集上均取得了与现有技术相当的校准性能。
摘要:
模型校准旨在使置信度与预测正确性对齐。交叉熵(CE)损失被广泛用于校准器训练,它强制模型提高对真实类别的置信度。然而,我们发现CE损失存在内在局限性。例如,对于窄分类错误(如测试样本被错误分类且其对真实类别的softmax得分是0.4),由CE损失训练的校准器通常会对错误预测的类别产生高置信度,这是不可取的。在本文中,我们从校准目标出发,提出了一种新的事后校准目标。直观地说,所提出的目标函数要求校准器降低错误预测样本的模型置信度,并提高正确预测样本的置信度。由于单个样本本身不足以指示正确性,我们在校准器训练期间使用其变换版本(如旋转、灰度化和颜色抖动)。在分布内验证集上训练,并对孤立的单个测试样本进行测试,我们的方法在分布内和分布外测试集上均实现了与现有技术相当的校准性能。此外,我们的分析指出了我们的方法与常用目标(如CE损失和均方误差(MSE)损失)之间的差异,后者有时会偏离校准目标。
英文摘要:
Model calibration aims to align confidence with prediction correctness. The Cross-Entropy (CE) loss is widely used for calibrator training, which enforces the model to increase confidence on the ground truth class. However, we find the CE loss has intrinsic limitations. For example, for a narrow misclassification (e.g., a test sample is wrongly classified and its softmax score on the ground truth class is 0.4), a calibrator trained by the CE loss often produces high confidence on the wrongly predicted class, which is undesirable. In this paper, we propose a new post-hoc calibration objective derived from the aim of calibration. Intuitively, the proposed objective function asks that the calibrator decrease model confidence on wrongly predicted samples and increase confidence on correctly predicted samples. Because a sample itself has insufficient ability to indicate correctness, we use its transformed versions (e.g., rotated, greyscaled, and color-jittered) during calibrator training. Trained on an in-distribution validation set and tested with isolated, individual test samples, our method achieves competitive calibration performance on both in-distribution and out-of-distribution test sets compared with the state of the art. Further, our analysis points out the difference between our method and commonly used objectives such as CE loss and Mean Square Error (MSE) loss, where the latters sometimes deviates from the calibration aim.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。