Skip to main content
QUICK REVIEW

[Paper Review] projUNN: efficient method for training deep networks with unitary matrices

Bobak T. Kiani, Randall Balestriero|arXiv (Cornell University)|Mar 10, 2022
Domain Adaptation and Few-Shot LearningComputer Science11 citations
TL;DR

This paper proposes projUNN, an efficient method for training deep networks with unitary matrices using rank-$k$ updates that maintain unitarity through projection or transport. It achieves near-optimal $O(kN^2)$ training complexity, matching or exceeding state-of-the-art unitary RNNs and enabling stable, scalable training of orthogonal convolutional networks.

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.

Motivation & Objective

  • To address the high computational cost of training deep or recurrent networks with unitary matrices, which often require $O(N^3)$ operations per gradient step.
  • To enable full parameterization of $N\times N$ unitary matrices while maintaining low training runtime, especially for large $N$.
  • To improve stability and scalability in deep networks by preserving unitarity without expensive SVD or matrix inversion steps.
  • To extend the applicability of unitary/orthogonal matrices to convolutional networks, particularly for deep architectures.

Proposed method

  • projUNN uses rank-$k$ updates to approximate gradients, reducing the computational cost of unitary matrix updates from $O(N^3)$ to $O(kN^2)$.
  • The Direct variant (projUNN-D) projects the updated matrix onto the closest unitary matrix via eigendecomposition of the low-rank update subspace.
  • The Tangent variant (projUNN-T) transports the unitary matrix along the direction of the low-rank gradient using exponential map updates.
  • Both variants parameterize the full unitary manifold and enforce unitarity after each gradient update, ensuring numerical stability.
  • For convolutional layers, projUNN performs orthogonal convolutions in the Fourier domain using FFT, preserving Hermitian symmetry and enabling efficient computation.
  • A specialized optimizer is used for unitary/orthogonal parameters, with learning rates typically set to 1/10th or 1/20th of standard parameters.

Experimental results

Research questions

  • RQ1Can low-rank gradient approximations be used to efficiently train unitary matrices in deep networks without sacrificing performance?
  • RQ2Does the proposed method achieve near-optimal training complexity while maintaining full parameterization of the unitary manifold?
  • RQ3How does projUNN compare to existing unitary RNNs in terms of accuracy and training speed on long sequence tasks?
  • RQ4Can projUNN be effectively extended to orthogonal convolutional networks to improve stability in deep architectures?
  • RQ5What initialization schemes yield better convergence and stability in projUNN compared to Haar random or identity initialization?

Key findings

  • projUNN achieves training complexity of $O(kN^2)$ per gradient step, significantly reducing the $O(N^3)$ cost of prior Lie algebra-based methods.
  • Even with $k=1$, projUNN matches or exceeds the performance of state-of-the-art unitary RNNs on benchmark sequence learning tasks.
  • The Tangent variant (projUNN-T) shows superior numerical stability over many training steps compared to the Direct variant (projUNN-D).
  • projUNN enables efficient training of orthogonal convolutional networks, offering a path to improved stability in very deep models.
  • Empirically, initialization using $2\times2$ skew-symmetric blocks (Henaff-style) outperforms identity or Haar random initialization.
  • Sporadic full projections every $O(N)$ steps can maintain unitarity without degrading average $O(kN^2)$ runtime.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.