Z-loss:属于球面族的平移和尺度不变分类损失
The Z-loss: a shift and scale invariant classification loss belonging to the Spherical Family
摘要:
尽管log-softmax是训练多类神经网络的标准损失函数,但它有两个潜在的局限性。首先,它涉及的计算与输出类的数量呈线性关系,这可能会限制我们能够用当前硬件解决的问题的大小。其次,它与任务损失(如top-k出错率或其他我们最终要优化的不可微评估指标)的匹配程度仍不清楚。在本文中,我们介绍了一种替代的分类损失函数,Z-损失,这是为了解决这两个问题。与log-softmax不同,它具有属于球形损失家族的理想属性(Vincent等人,2015),一类损失函数,可以以独立于输出类的数量的复杂度非常有效地对其执行训练。我们的实验表明,它显着优于其他球形损失函数以前研究。此外,我们在一个单词语言建模任务中表明,它在某些排名分数(如前k分数)方面也优于log-softmax,这表明Z损失具有更好地匹配任务损失的灵活性。因此,这些品质使得Z损失成为非常有效地训练诸如单词-语言模型或其他极端分类问题的大输出网络的吸引人的候选者。On the One Billion Word(Chelba et al.,2014)数据集,我们能够训练一个Z损失比log-softmax快40倍,比分层softmax快4倍以上的模型。
英文摘要:
Despite being the standard loss function to train multi-class neural networks, the log-softmax has two potential limitations. First, it involves computations that scale linearly with the number of output classes, which can restrict the size of problems we are able to tackle with current hardware. Second, it remains unclear how close it matches the task loss such as the top-k error rate or other non-differentiable evaluation metrics which we aim to optimize ultimately. In this paper, we introduce an alternative classification loss function, the Z-loss, which is designed to address these two issues. Unlike the log-softmax, it has the desirable property of belonging to the spherical loss family (Vincent et al., 2015), a class of loss functions for which training can be performed very efficiently with a complexity independent of the number of output classes. We show experimentally that it significantly outperforms the other spherical loss functions previously investigated. Furthermore, we show on a word language modeling task that it also outperforms the log-softmax with respect to certain ranking scores, such as top-k scores, suggesting that the Z-loss has the flexibility to better match the task loss. These qualities thus makes the Z-loss an appealing candidate to train very efficiently large output networks such as word-language models or other extreme classification problems. On the One Billion Word (Chelba et al., 2014) dataset, we are able to train a model with the Z-loss 40 times faster than the log-softmax and more than 4 times faster than the hierarchical softmax.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。