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

Top-k分类精度对深度学习损失的权衡

Trade-offs in Top-k Classification Accuracies on Losses for Deep Learning

NEC Corporation(日本电气股份有限公司)

Azusa Sawada, Eiji Kaneko, Kazutoshi Sagi

摘要:

本文提出了一个实验分析的权衡在top-k分类精度的损失,深度学习和建议的一个新的top-k损失。常用的交叉熵(CE)不能保证在没有无限训练数据和模型复杂性的情况下优化top-k预测。我们的目标是澄清当CE牺牲前k的准确性,以优化前1预测,并设计损失,提高前k的准确性,在这种条件下。我们的新损失基本上是通过将时间前k类分组为单个类来修改的CE。为了获得鲁棒的决策边界,我们引入了从正常CE到我们的损失的自适应过渡,因此将其称为top-k过渡损失。在我们的实验中,CE并不总是学习top-k预测的最佳选择。首先,我们探索了合成数据集上的top-1和top-k(=2)准确度之间的权衡,并发现当我们具有给定模型的复杂数据分布以表示最佳top-1预测时,CE在优化top-k预测方面失败。其次,我们比较了CIFAR-100数据集上的前k个准确度,目标是深度学习中的前5个预测。虽然CE在top-1准确度中表现最好,但在top-5准确度中,我们的损失比CE表现得更好,除了使用一个实验设置。此外,我们的损失已被发现提供更好的top-k精度相比,CE在k大于10。因此,使用我们的损失训练的ResNet 18模型在k=25个候选项时达到了99%的准确率,这比CE的候选项数量少了8个。

英文摘要:

This paper presents an experimental analysis about trade-offs in top-k classification accuracies on losses for deep leaning and proposal of a novel top-k loss. Commonly-used cross entropy (CE) is not guaranteed to optimize top-k prediction without infinite training data and model complexities. The objective is to clarify when CE sacrifices top-k accuracies to optimize top-1 prediction, and to design loss that improve top-k accuracy under such conditions. Our novel loss is basically CE modified by grouping temporal top-k classes as a single class. To obtain a robust decision boundary, we introduce an adaptive transition from normal CE to our loss, and thus call it top-k transition loss. It is demonstrated that CE is not always the best choice to learn top-k prediction in our experiments. First, we explore trade-offs between top-1 and top-k (=2) accuracies on synthetic datasets, and find a failure of CE in optimizing top-k prediction when we have complex data distribution for a given model to represent optimal top-1 prediction. Second, we compare top-k accuracies on CIFAR-100 dataset targeting top-5 prediction in deep learning. While CE performs the best in top-1 accuracy, in top-5 accuracy our loss performs better than CE except using one experimental setup. Moreover, our loss has been found to provide better top-k accuracies compared to CE at k larger than 10. As a result, a ResNet18 model trained with our loss reaches 99 % accuracy with k=25 candidates, which is a smaller candidate number than that of CE by 8.

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

↑