arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1906.02629cs.LGstat.ML
收藏

标签平滑在什么情况下有帮助?

When Does Label Smoothing Help?

Google Brain(谷歌大脑);Toronto(多伦多大学)

Rafael Müller, Simon Kornblith, Geoffrey Hinton

摘要:

多类神经网络的泛化和学习速度通常可以通过使用软目标来显著提高,软目标是硬目标的加权平均和标签上的均匀分布。以这种方式平滑标签可以防止网络变得过于自信,并且标签平滑已经用于许多最先进的模型中,包括图像分类,语言翻译和语音识别。尽管标签平滑被广泛使用,但人们对它的了解仍然很少。在这里,我们的经验表明,除了提高泛化,标签平滑提高模型校准,可以显着提高波束搜索。然而,我们也观察到,如果教师网络是用标签平滑训练的,那么知识蒸馏到学生网络中的效率要低得多。为了解释这些观察结果,我们可视化了标签平滑如何改变网络倒数第二层学习的表示。我们发现,标签平滑鼓励表示的训练样本从同一个类组在紧密的集群。这导致logit中关于不同类的实例之间的相似性的信息丢失,这对于蒸馏是必要的,但不会损害模型预测的泛化或校准。

英文摘要:

The generalization and learning speed of a multi-class neural network can often be significantly improved by using soft targets that are a weighted average of the hard targets and the uniform distribution over labels. Smoothing the labels in this way prevents the network from becoming over-confident and label smoothing has been used in many state-of-the-art models, including image classification, language translation and speech recognition. Despite its widespread use, label smoothing is still poorly understood. Here we show empirically that in addition to improving generalization, label smoothing improves model calibration which can significantly improve beam-search. However, we also observe that if a teacher network is trained with label smoothing, knowledge distillation into a student network is much less effective. To explain these observations, we visualize how label smoothing changes the representations learned by the penultimate layer of the network. We show that label smoothing encourages the representations of training examples from the same class to group in tight clusters. This results in loss of information in the logits about resemblances between instances of different classes, which is necessary for distillation, but does not hurt generalization or calibration of the model's predictions.

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

↑