Softmax的卡方损失:神经网络结构的回声
Chi-square Loss for Softmax: an Echo of Neural Network Structure
摘要:
Softmax与交叉熵一起工作广泛用于分类,它评估两个离散分布列(预测和真实标签)之间的相似性。受卡方检验的启发,我们设计了一个新的损失函数,称为卡方损失,这也适用于Softmax。卡方损失具有统计学背景。我们证明了它在最优化中是无偏的,并阐明了它的使用条件(它的公式决定了它必须与标号平滑一起工作)。另外,我们通过可视化的方法研究了这种损失函数的样本分布,发现这种分布与神经网络的结构有关,与交叉熵相比有明显的区别。在过去,结构的影响往往被忽视时,可视化。卡方损失可以注意到神经网络结构的变化,因为它非常严格,我们解释了这种严格的原因。研究了标签平滑对训练结果的影响,讨论了标签平滑与训练精度和稳定性的关系。由于卡方损失是非常严格的,当处理非常多类的样本时,性能会下降。
英文摘要:
Softmax working with cross-entropy is widely used in classification, which evaluates the similarity between two discrete distribution columns (predictions and true labels). Inspired by chi-square test, we designed a new loss function called chi-square loss, which is also works for Softmax. Chi-square loss has a statistical background. We proved that it is unbiased in optimization, and clarified its using conditions (its formula determines that it must work with label smoothing). In addition, we studied the sample distribution of this loss function by visualization and found that the distribution is related to the neural network structure, which is distinct compared to cross-entropy. In the past, the influence of structure was often ignored when visualizing. Chi-square loss can notice changes in neural network structure because it is very strict, and we explained the reason for this strictness. We also studied the influence of label smoothing and discussed the relationship between label smoothing and training accuracy and stability. Since the chi-square loss is very strict, the performance will degrade when dealing samples of very many classes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。