Albstadt-Sigmaringen University, Albstadt 72458, Germany
Neural Comput. 2021 Jul 26;33(8):2193-2225. doi: 10.1162/neco_a_01407.
Supervised learning corresponds to minimizing a loss or cost function expressing the differences between model predictions yn and the target values tn given by the training data. In neural networks, this means backpropagating error signals through the transposed weight matrixes from the output layer toward the input layer. For this, error signals in the output layer are typically initialized by the difference yn- tn, which is optimal for several commonly used loss functions like cross-entropy or sum of squared errors. Here I evaluate a more general error initialization method using power functions |yn- tn|q for q>0, corresponding to a new family of loss functions that generalize cross-entropy. Surprisingly, experiments on various learning tasks reveal that a proper choice of q can significantly improve the speed and convergence of backpropagation learning, in particular in deep and recurrent neural networks. The results suggest two main reasons for the observed improvements. First, compared to cross-entropy, the new loss functions provide better fits to the distribution of error signals in the output layer and therefore maximize the model's likelihood more efficiently. Second, the new error initialization procedure may often provide a better gradient-to-loss ratio over a broad range of neural output activity, thereby avoiding flat loss landscapes with vanishing gradients.
监督学习对应于最小化损失或成本函数,该函数表示模型预测 yn 和训练数据给出的目标值 tn 之间的差异。在神经网络中,这意味着通过从输出层到输入层的权重矩阵的逆传播误差信号。为此,输出层中的误差信号通常通过 yn-tn 的差异初始化,对于几种常用的损失函数(例如交叉熵或均方误差),这是最优的。在这里,我使用 q>0 的幂函数 |yn-tn|q 评估一种更通用的误差初始化方法,这对应于一种广义交叉熵的新损失函数家族。令人惊讶的是,在各种学习任务上的实验表明,q 的适当选择可以显著提高反向传播学习的速度和收敛性,特别是在深度和递归神经网络中。结果表明,观察到的改进有两个主要原因。首先,与交叉熵相比,新的损失函数更有效地拟合输出层中误差信号的分布,从而更有效地最大化模型的似然。其次,新的误差初始化过程通常可以在广泛的神经输出活动范围内提供更好的梯度与损失的比例,从而避免梯度消失的平坦损失景观。