通过有效的SVD参数化稳定深度神经网络的参数
Stabilizing Gradients for Deep Neural Networks via Efficient SVD Parameterization
摘要:
梯度消失和梯度爆炸是训练深度神经网络的两个主要障碍,特别是在捕获递归神经网络~(RNN)中的长程依赖关系方面。在本文中,我们提出了RNN的转移矩阵的有效参数化,使我们能够稳定其训练中出现的梯度。具体来说,我们通过奇异值分解(SVD)来参数化转移矩阵,这允许我们显式地跟踪和控制其奇异值。我们通过使用数值线性代数中常见的工具来实现效率,即Householder反射器用于表示SVD中出现的正交矩阵。通过显式控制奇异值,我们提出的Spectral-RNN方法使我们能够轻松解决梯度爆炸问题,并且我们观察到它在很大程度上凭经验解决了梯度消失问题。我们注意到SVD参数化可以用于任何矩形权重矩阵,因此它可以很容易地扩展到任何深度神经网络,例如多层感知器。从理论上讲,我们证明了我们的参数化不会失去任何表达能力,并展示了它如何控制RNN的分类任务的泛化。%,并展示它如何潜在地使优化过程更容易。我们广泛的实验结果也表明,所提出的框架收敛速度更快,具有良好的泛化能力,特别是在捕捉长范围的依赖关系,如合成添加和复制任务,以及MNIST和Penn Tree Bank数据集。
英文摘要:
Vanishing and exploding gradients are two of the main obstacles in training deep neural networks, especially in capturing long range dependencies in recurrent neural networks~(RNNs). In this paper, we present an efficient parametrization of the transition matrix of an RNN that allows us to stabilize the gradients that arise in its training. Specifically, we parameterize the transition matrix by its singular value decomposition(SVD), which allows us to explicitly track and control its singular values. We attain efficiency by using tools that are common in numerical linear algebra, namely Householder reflectors for representing the orthogonal matrices that arise in the SVD. By explicitly controlling the singular values, our proposed Spectral-RNN method allows us to easily solve the exploding gradient problem and we observe that it empirically solves the vanishing gradient issue to a large extent. We note that the SVD parameterization can be used for any rectangular weight matrix, hence it can be easily extended to any deep neural network, such as a multi-layer perceptron. Theoretically, we demonstrate that our parameterization does not lose any expressive power, and show how it controls generalization of RNN for the classification task. %, and show how it potentially makes the optimization process easier. Our extensive experimental results also demonstrate that the proposed framework converges faster, and has good generalization, especially in capturing long range dependencies, as shown on the synthetic addition and copy tasks, as well as on MNIST and Penn Tree Bank data sets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。