理解标签平滑为何会损害选择性分类以及如何修复它
Towards Understanding Why Label Smoothing Degrades Selective Classification and How to Fix It
AI总结:
本文揭示标签平滑因梯度效应扰乱正确与错误预测的不确定性排序而持续损害选择性分类,并提出可用事后 logit 归一化恢复性能。
摘要:
标签平滑(LS)是一种用于训练神经网络的流行正则化方法,因为它能有效提高测试准确率且实现简单。“硬” one-hot 标签通过将概率质量均匀分配给其他类别而被“平滑”,从而减少过拟合。先前工作表明,在某些情况下 LS 会损害选择性分类(SC)——其目标是利用模型的不确定性拒绝错误分类。在本研究中,我们首先在更广泛的大规模任务和架构上通过实验证明 LS 会持续损害 SC。随后,我们填补现有认识的空白,通过分析 logit 层面的梯度来解释这一行为:LS 会在预测可能正确时更强地抑制最大 logit,而在预测可能错误时抑制较弱,从而破坏正确预测与错误预测之间的不确定性排序。这阐明了此前报道的强分类器在 SC 中表现不佳的实验结果。接着,我们通过实验证明事后 logit 归一化能够有效恢复因 LS 造成的 SC 性能损失。此外,结合我们的梯度分析,我们还解释了这种归一化为何有效。
英文摘要:
Label smoothing (LS) is a popular regularisation method for training neural networks as it is effective in improving test accuracy and is simple to implement. ``Hard'' one-hot labels are ``smoothed'' by uniformly distributing probability mass to other classes, reducing overfitting. Prior work has suggested that in some cases LS can degrade selective classification (SC) -- where the aim is to reject misclassifications using a model's uncertainty. In this work, we first demonstrate empirically across an extended range of large-scale tasks and architectures that LS consistently degrades SC. We then address a gap in existing knowledge, providing an explanation for this behaviour by analysing logit-level gradients: LS degrades the uncertainty rank ordering of correct vs incorrect predictions by suppressing the max logit more when a prediction is likely to be correct, and less when it is likely to be wrong. This elucidates previously reported experimental results where strong classifiers underperform in SC. We then demonstrate the empirical effectiveness of post-hoc logit normalisation for recovering lost SC performance caused by LS. Furthermore, linking back to our gradient analysis, we again provide an explanation for why such normalisation is effective.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。