Sparse-softmax: A Simpler and Faster Alternative Softmax Transformation
Cardiff University(卡迪夫大学);Osaka City University(大阪市立大学);Beijing Jiaotong University(北京交通大学);Shenzhen University(深圳大学);Shenzhen Zhuiyi Technology Co., Ltd.(深圳追一科技有限公司);Chinese Academy of Science(中国科学院)
Shaoshi Sun, Zhenyuan Zhang, BoCheng Huang, Pengbin Lei, Jianlin Su, Shengfeng Pan, Jiarun Cao
The softmax function is widely used in artificial neural networks for the multiclass classification problems, where the softmax transformation enforces the output to be positive and sum to one, and the corresponding loss function allows to use maximum likelihood principle to optimize the model. However, softmax leaves a large margin for loss function to conduct optimizing operation when it comes to high-dimensional classification, which results in low-performance to some extent. In this paper, we provide an empirical study on a simple and concise softmax variant, namely sparse-softmax, to alleviate the problem that occurred in traditional softmax in terms of high-dimensional classification problems. We evaluate our approach in several interdisciplinary tasks, the experimental results show that sparse-softmax is simpler, faster, and produces better results than the baseline models.
Faculty of Automatic Control, Electronics and Computer Science, Silesian University of Technology(自动化控制、电子与计算机科学学院,西里西亚技术大学);Łukasiewicz Research Network –- Institute of Innovative Technologies EMAG(卢卡西维茨研究网络——创新技术研究所EMAG)
The Z-loss: a shift and scale invariant classification loss belonging to the Spherical Family
MILA(蒙特利尔学习算法研究所);University of Montréal(蒙特利尔大学);CIFAR(加拿大高等研究院)
尽管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倍以上的模型。