魔鬼在边际:基于边际的标签平滑用于网络校准
The Devil is in the Margin: Margin-based Label Smoothing for Network Calibration
AI总结:
本文提出基于不等式约束和可控边际的标签平滑方法,在保持判别性能的同时显著提升深度网络校准性能。
摘要:
尽管深度神经网络具有主导性性能,但最近的研究表明它们校准不佳,导致过度自信的预测。由于训练过程中最小化交叉熵会促使预测的 softmax 概率与 one-hot 标签分配相匹配,过拟合可能加剧误校准。这导致正确类别的 pre-softmax 激活显著大于其余激活。文献中的近期证据表明,嵌入隐式或显式预测熵最大化的损失函数能够实现最先进的校准性能。我们为当前最先进的校准损失提供了一个统一的约束优化视角。具体而言,这些损失可被视为对 logit 距离施加等式约束的线性惩罚(或拉格朗日函数)的近似。这指出了此类底层等式约束的一个重要局限性:其产生的梯度不断推向非信息性解,这可能阻碍在基于梯度的优化过程中达到模型判别性能与校准之间的最佳折衷。基于我们的观察,我们提出了一种简单且灵活的基于不等式约束的推广方法,该方法对 logit 距离施加可控的边际。在多种图像分类、语义分割和 NLP 基准上的综合实验表明,我们的方法在网络校准方面为这些任务设立了新的最先进结果,同时不影响判别性能。代码可在 https://github.com/by-liu/MbLS 获取。
英文摘要:
In spite of the dominant performances of deep neural networks, recent works have shown that they are poorly calibrated, resulting in over-confident predictions. Miscalibration can be exacerbated by overfitting due to the minimization of the cross-entropy during training, as it promotes the predicted softmax probabilities to match the one-hot label assignments. This yields a pre-softmax activation of the correct class that is significantly larger than the remaining activations. Recent evidence from the literature suggests that loss functions that embed implicit or explicit maximization of the entropy of predictions yield state-of-the-art calibration performances. We provide a unifying constrained-optimization perspective of current state-of-the-art calibration losses. Specifically, these losses could be viewed as approximations of a linear penalty (or a Lagrangian) imposing equality constraints on logit distances. This points to an important limitation of such underlying equality constraints, whose ensuing gradients constantly push towards a non-informative solution, which might prevent from reaching the best compromise between the discriminative performance and calibration of the model during gradient-based optimization. Following our observations, we propose a simple and flexible generalization based on inequality constraints, which imposes a controllable margin on logit distances. Comprehensive experiments on a variety of image classification, semantic segmentation and NLP benchmarks demonstrate that our method sets novel state-of-the-art results on these tasks in terms of network calibration, without affecting the discriminative performance. The code is available at https://github.com/by-liu/MbLS .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。