arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2003.03182cs.LGstat.ML
收藏

SimLoss:交叉熵中的类相似性

SimLoss: Class Similarities in Cross Entropy

Julius-Maximilians University Würzburg(维尔茨堡尤利乌斯-马克西米利安大学)

Konstantin Kobs, Michael Steininger, Albin Zehe, Florian Lautenschlager, Andreas Hotho

摘要:

神经网络分类任务中的一个常见损失函数是分类交叉熵(CCE),它对所有错误分类进行同等惩罚。然而,类通常具有固有的结构。例如,将玫瑰的图像分类为“紫罗兰色”比分类为“卡车”更好。我们介绍SimLoss,CCE的替代品,结合类相似性以及两种技术来构建这样的矩阵,从特定于任务的知识。我们测试SimLoss的年龄估计和图像分类,发现它带来了显着的改进,在CCE的几个指标。因此,SimLoss允许通过简单地交换损失函数来对背景知识进行显式建模,同时保持神经网络架构相同。代码和其他资源可以在https://github.com/konstantinkobs/SimLoss上找到。

英文摘要:

One common loss function in neural network classification tasks is Categorical Cross Entropy (CCE), which punishes all misclassifications equally. However, classes often have an inherent structure. For instance, classifying an image of a rose as "violet" is better than as "truck". We introduce SimLoss, a drop-in replacement for CCE that incorporates class similarities along with two techniques to construct such matrices from task-specific knowledge. We test SimLoss on Age Estimation and Image Classification and find that it brings significant improvements over CCE on several metrics. SimLoss therefore allows for explicit modeling of background knowledge by simply exchanging the loss function, while keeping the neural network architecture the same. Code and additional resources can be found at https://github.com/konstantinkobs/SimLoss.

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

↑