arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.13665cs.CVcs.AI
收藏

用于校准的 Dual Focal Loss

Dual Focal Loss for Calibration

University of Sydney(悉尼大学)

Linwei Tao, Minjing Dong, Chang Xu

AI总结:

本文提出 Dual Focal Loss 损失函数,通过同时关注 ground truth logit 及其后最高的 logit 并最大化其差距,有效平衡了神经网络的过度自信与不自信问题,在多模型和数据集上实现了最先进的校准性能。

摘要:

在现实应用中使用深度神经网络需要经过良好校准的网络,其置信度分数能准确反映实际概率。然而,研究发现这些网络经常给出过度自信的预测,导致校准不佳。近期的努力试图通过 focal loss 来解决此问题以减少过度自信,但该方法也可能导致不自信的预测。尽管已探索了 focal loss 的不同变体,但很难在过度自信和不自信之间找到平衡。在我们的工作中,我们提出了一种关注 dual logits 的新损失函数。我们的方法不仅考虑 ground truth logit,还考虑排在 ground truth logit 之后最高的 logit。通过最大化这两个 logits 之间的差距,我们提出的 dual focal loss 能够在过度自信和不自信之间实现更好的平衡。我们提供了支持该方法的理论证据,并通过在多个模型和数据集上的评估证明了其有效性,取得了 state-of-the-art 的性能。代码可在 https://github.com/Linwei94/DualFocalLoss 获取。

英文摘要:

The use of deep neural networks in real-world applications require well-calibrated networks with confidence scores that accurately reflect the actual probability. However, it has been found that these networks often provide over-confident predictions, which leads to poor calibration. Recent efforts have sought to address this issue by focal loss to reduce over-confidence, but this approach can also lead to under-confident predictions. While different variants of focal loss have been explored, it is difficult to find a balance between over-confidence and under-confidence. In our work, we propose a new loss function by focusing on dual logits. Our method not only considers the ground truth logit, but also take into account the highest logit ranked after the ground truth logit. By maximizing the gap between these two logits, our proposed dual focal loss can achieve a better balance between over-confidence and under-confidence. We provide theoretical evidence to support our approach and demonstrate its effectiveness through evaluations on multiple models and datasets, where it achieves state-of-the-art performance. Code is available at https://github.com/Linwei94/DualFocalLoss

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

↑