arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.17145stat.MLcs.AIcs.LG
收藏

大间隔Softmax中的概率依赖梯度衰减

Probability-Dependent Gradient Decay in Large Margin Softmax

School of Internet of Things Engineering(物联网工程学院);Jiangnan University(江南大学);Key Laboratory of Advanced Process Control for Light Industry (Ministry of Education)(轻工过程先进控制教育部重点实验室)

Siyuan Zhang, Linbo Xie, Ying Chen

AI总结:

该研究在Softmax中引入概率依赖的梯度衰减超参数,经多数据集实验验证其对泛化的影响,揭示大间隔Softmax与局部Lipschitz约束、课程学习的关联,并提出加速收敛的预热策略。

摘要:

近年来,Softmax已成为神经网络框架中的常用组件。本文在Softmax中引入一个梯度衰减超参数,用于控制训练过程中依赖概率的梯度衰减速率。结合在MNIST、CIFAR-10/100和SVHN数据集上训练的多种模型架构的理论分析与实证结果,我们发现泛化性能显著依赖于置信概率上升时的梯度衰减速率,即梯度随样本概率增加呈凸或凹下降趋势。此外,小梯度衰减的优化呈现出类似课程学习的序列:难样本仅在易样本被充分确信后才成为关注焦点,且分离良好的样本会获得更高梯度以缩小类内距离。基于分析结果,我们可提供证据表明,大间隔Softmax会通过调节依赖概率的梯度衰减速率,影响损失函数的局部Lipschitz约束。本文通过分析梯度衰减速率,为大间隔Softmax、局部Lipschitz约束和课程学习概念间的关系提供了新视角与新理解。此外,我们提出一种预热策略以在训练中动态调整Softmax损失,该策略让梯度衰减速率从过小值开始逐步提升,从而加快收敛速度。

英文摘要:

In the past few years, Softmax has become a common component in neural network frameworks. In this paper, a gradient decay hyperparameter is introduced in Softmax to control the probability-dependent gradient decay rate during training. By following the theoretical analysis and empirical results of a variety of model architectures trained on MNIST, CIFAR-10/100 and SVHN, we find that the generalization performance depends significantly on the gradient decay rate as the confidence probability rises, i.e., the gradient decreases convexly or concavely as the sample probability increases. Moreover, optimization with the small gradient decay shows a similar curriculum learning sequence where hard samples are in the spotlight only after easy samples are convinced sufficiently, and well-separated samples gain a higher gradient to reduce intra-class distance. Based on the analysis results, we can provide evidence that the large margin Softmax will affect the local Lipschitz constraint of the loss function by regulating the probability-dependent gradient decay rate. This paper provides a new perspective and understanding of the relationship among concepts of large margin Softmax, local Lipschitz constraint and curriculum learning by analyzing the gradient decay rate. Besides, we propose a warm-up strategy to dynamically adjust Softmax loss in training, where the gradient decay rate increases from over-small to speed up the convergence rate.

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

↑