使用PercentDelta按比例更新梯度
Proportionate gradient updates with PercentDelta
摘要:
深度神经网络通常使用迭代梯度更新来训练。梯度的大小受许多因素影响,包括激活函数的选择和初始化。更重要的是,梯度幅度在各层之间可能有很大差异,某些层接收的梯度比其他层小得多。导致某些层比其它层更慢地训练,并因此减慢整体收敛。我们分析解释这种不确定性。然后,我们建议以相同的速度显式地训练所有层,通过缩放梯度w.r.t.每个可训练的张量与其当前值成比例。特别是,在每一批中,我们希望更新所有可训练张量,使得张量的L1范数的相对变化在整个训练时间内在网络的所有层上都是相同的。MNIST上的实验表明,我们的方法适当地缩放梯度,使得可训练张量的相对变化在各层之间近似相等。此外,测量测试精度与训练时间,表明我们的方法比其他方法训练得更快,在相同的训练步骤预算下提供更高的测试精度。
英文摘要:
Deep Neural Networks are generally trained using iterative gradient updates. Magnitudes of gradients are affected by many factors, including choice of activation functions and initialization. More importantly, gradient magnitudes can greatly differ across layers, with some layers receiving much smaller gradients than others. causing some layers to train slower than others and therefore slowing down the overall convergence. We analytically explain this disproportionality. Then we propose to explicitly train all layers at the same speed, by scaling the gradient w.r.t. every trainable tensor to be proportional to its current value. In particular, at every batch, we want to update all trainable tensors, such that the relative change of the L1-norm of the tensors is the same, across all layers of the network, throughout training time. Experiments on MNIST show that our method appropriately scales gradients, such that the relative change in trainable tensors is approximately equal across layers. In addition, measuring the test accuracy with training time, shows that our method trains faster than other methods, giving higher test accuracy given same budget of training steps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。