projUNN: efficient method for training deep networks with unitary matrices
Preprint
Abstract
In learning with recurrent or very deep feed-forward networks, employing unitary matrices in each layer can be very effective at maintaining long-range stability. However, restricting network parameters to be unitary typically comes at the cost of expensive parameterizations or increased training runtime. We propose instead an efficient method based on rank-$k$ updates -- or their rank-$k$ approximation -- that maintains performance at a nearly optimal training runtime. We introduce two variants of this method, named Direct (projUNN-D) and Tangent (projUNN-T) projected Unitary Neural Networks, that can parameterize full $N$-dimensional unitary or orthogonal matrices with a training runtime scaling as $O(kN^2)$. Our method either projects low-rank gradients onto the closest unitary matrix (projUNN-T) or transports unitary matrices in the direction of the low-rank gradient (projUNN-D). Even in the fastest setting ($k=1$), projUNN is able to train a model's unitary parameters to reach comparable performances against baseline implementations. In recurrent neural network settings, projUNN closely matches or exceeds benchmarked results from prior unitary neural networks. Finally, we preliminarily explore projUNN in training orthogonal convolutional neural networks, which are currently unable to outperform state of the art models but can potentially enhance stability and robustness at large depth.
Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- Lyapunov spectra of chaotic recurrent neural networksPhysical Review Research, 2023
- Accelerated Variational Quantum EigensolverPhysical Review Letters, 2019
- Progress towards practical quantum variational algorithmsPhysical Review A, 2015
- Read the fine printNature Physics, 2015
- Stochastic Gradient Descent on Riemannian ManifoldsIEEE Transactions on Automatic Control, 2013
- An Introduction to Lie Groups and Lie Algebras2008
- Fast Monte Carlo Algorithms for Matrices II: Computing a Low-Rank Approximation to a MatrixSIAM Journal on Computing, 2006
- Learning algorithms utilizing quasi-geodesic flows on the Stiefel manifoldNeurocomputing, 2005
- Fast monte-carlo algorithms for finding low-rank approximationsJournal of the ACM, 2004
- Latent Semantic Indexing: A Probabilistic AnalysisJournal of Computer and System Sciences, 2000