Stabilizing Gradients for Deep Neural Networks via Efficient SVD Parameterization
arXiv:1803.09327
Abstract
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.
arXiv commentmain text 13 pages, 22 pages including reference and appendix
References in corpus (8)
- Adam: A Method for Stochastic Optimization
- Deep Residual Learning for Image Recognition
- Recurrent Neural Network Regularization
- A Simple Way to Initialize Recurrent Networks of Rectified Linear Units
- Unitary Evolution Recurrent Neural Networks
- Spectrally-normalized margin bounds for neural networks
- Parseval Networks: Improving Robustness to Adversarial Examples
- On orthogonality and learning recurrent networks with long term dependencies
Cited by in corpus (8)
- Neural Network for Low-Memory IoT Devices and MNIST Image Recognition Using Kernels Based on Logistic Map
- A Method for Medical Data Analysis Using the LogNNet for Clinical Decision Support Systems and Edge Computing in Healthcare
- On Generalization Bounds of a Family of Recurrent Neural Networks
- Can SGD Learn Recurrent Neural Networks with Provable Generalization?
- Stable and expressive recurrent vision models
- PAC-Bayes Generalisation Bounds for Dynamical Systems Including Stable RNNs
- One Size Does Not Fit All: Multi-Scale, Cascaded RNNs for Radar Classification
- SVMax: A Feature Embedding Regularizer