arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.01245cs.LGcs.AIcs.NAmath.DSmath.NA
收藏

随机正交加性滤波器:深度神经网络梯度消失/爆炸的解决方案

Random orthogonal additive filters: a solution to the vanishing/exploding gradient of deep neural networks

University of Pisa(比萨大学);University of Exeter(埃克塞特大学)

Andrea Ceni

摘要:

自从九十年代早期认识到神经网络(NN)训练中的消失/爆炸(V/E)梯度问题以来,人们已经做出了很大的努力来克服这个障碍。然而,迄今为止,V/E问题的明确解决方案仍然难以捉摸。在这篇手稿中,提出了一种新的NN架构,旨在从数学上防止V/E问题的发生。追求近似动态等距,即输入-输出雅可比矩阵的奇异值紧密分布在1周围的参数配置,导致了NN架构的推导,该架构与流行的残差网络模型具有共同的特征。我们的想法不是跳过层之间的连接,而是正交地过滤先前的激活,并将它们添加到下一层的非线性激活中,从而实现它们之间的凸组合。值得注意的是,梯度更新不可能消失或爆炸,即使在无限深度的情况下也有分析界限。通过反向传播训练一个50 k层的极深多层感知器和一个Elman NN来学习过去10 k个时间步长的输入中的长期依赖关系,经验证明了该方法的有效性。与专门设计用于处理V/E问题的其他架构(例如用于递归NN的LSTM)相比,所提出的模型更简单,但更有效。令人惊讶的是,单层vanilla RNN可以被增强以达到最先进的性能,同时收敛速度超快;例如在psMNIST任务中,可以在第一个epoch中获得超过94%的测试准确度,并且在10个epoch后超过98%。

英文摘要:

Since the recognition in the early nineties of the vanishing/exploding (V/E) gradient issue plaguing the training of neural networks (NNs), significant efforts have been exerted to overcome this obstacle. However, a clear solution to the V/E issue remained elusive so far. In this manuscript a new architecture of NN is proposed, designed to mathematically prevent the V/E issue to occur. The pursuit of approximate dynamical isometry, i.e. parameter configurations where the singular values of the input-output Jacobian are tightly distributed around 1, leads to the derivation of a NN's architecture that shares common traits with the popular Residual Network model. Instead of skipping connections between layers, the idea is to filter the previous activations orthogonally and add them to the nonlinear activations of the next layer, realising a convex combination between them. Remarkably, the impossibility for the gradient updates to either vanish or explode is demonstrated with analytical bounds that hold even in the infinite depth case. The effectiveness of this method is empirically proved by means of training via backpropagation an extremely deep multilayer perceptron of 50k layers, and an Elman NN to learn long-term dependencies in the input of 10k time steps in the past. Compared with other architectures specifically devised to deal with the V/E problem, e.g. LSTMs for recurrent NNs, the proposed model is way simpler yet more effective. Surprisingly, a single layer vanilla RNN can be enhanced to reach state of the art performance, while converging super fast; for instance on the psMNIST task, it is possible to get test accuracy of over 94% in the first epoch, and over 98% after just 10 epochs.

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

↑