用Squentropy减少损失
Cut your Losses with Squentropy
摘要:
几乎所有用于分类的实用神经模型都是使用交叉熵损失进行训练的。然而,这种普遍存在的选择几乎没有理论或经验证据支持。最近的工作(Hui & Belkin,2020)表明,使用(重新缩放的)平方损失的训练通常在分类准确性方面更优越。在本文中,我们提出了“squentropy”损失,这是两个术语的总和:交叉熵损失和不正确类的平均平方损失。我们提供了一个广泛的多类分类问题的实验表明,squentropy损失优于纯交叉熵和重新缩放平方损失的分类精度。我们还证明,它提供了显着更好的模型校准比这些替代损失,而且,相对于随机初始化的方差较小。此外,与平方损失相比,平方熵损失通常可以使用与标准交叉熵损失完全相同的优化参数(包括学习率)进行训练,使其成为真正的“即插即用”替代品。最后,与重标度平方损失不同,多类平方熵不包含需要调整的参数。
英文摘要:
Nearly all practical neural models for classification are trained using cross-entropy loss. Yet this ubiquitous choice is supported by little theoretical or empirical evidence. Recent work (Hui & Belkin, 2020) suggests that training using the (rescaled) square loss is often superior in terms of the classification accuracy. In this paper we propose the "squentropy" loss, which is the sum of two terms: the cross-entropy loss and the average square loss over the incorrect classes. We provide an extensive set of experiments on multi-class classification problems showing that the squentropy loss outperforms both the pure cross entropy and rescaled square losses in terms of the classification accuracy. We also demonstrate that it provides significantly better model calibration than either of these alternative losses and, furthermore, has less variance with respect to the random initialization. Additionally, in contrast to the square loss, squentropy loss can typically be trained using exactly the same optimization parameters, including the learning rate, as the standard cross-entropy loss, making it a true "plug-and-play" replacement. Finally, unlike the rescaled square loss, multiclass squentropy contains no parameters that need to be adjusted.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。