Skip to main content
QUICK REVIEW

[Paper Review] Orthogonal Recurrent Neural Networks with Scaled Cayley Transform

Kyle Helfrich, Devin Willmott|arXiv (Cornell University)|Jul 29, 2017
Neural Networks and ApplicationsComputer Science17 references15 citations
TL;DR

This paper proposes the scaled Cayley orthogonal recurrent neural network (scoRNN), a real-valued RNN that maintains orthogonal recurrent weight matrices via a skew-symmetric matrix parametrization using the scaled Cayley transform. By overcoming the eigenvalue singularity issue of the standard Cayley transform, scoRNN enables stable, efficient training with superior performance on sequential tasks, achieving state-of-the-art results using fewer parameters than other unitary RNNs.

ABSTRACT

Recurrent Neural Networks (RNNs) are designed to handle sequential data but suffer from vanishing or exploding gradients. Recent work on Unitary Recurrent Neural Networks (uRNNs) have been used to address this issue and in some cases, exceed the capabilities of Long Short-Term Memory networks (LSTMs). We propose a simpler and novel update scheme to maintain orthogonal recurrent weight matrices without using complex valued matrices. This is done by parametrizing with a skew-symmetric matrix using the Cayley transform. Such a parametrization is unable to represent matrices with negative one eigenvalues, but this limitation is overcome by scaling the recurrent weight matrix by a diagonal matrix consisting of ones and negative ones. The proposed training scheme involves a straightforward gradient calculation and update step. In several experiments, the proposed scaled Cayley orthogonal recurrent neural network (scoRNN) achieves superior results with fewer trainable parameters than other unitary RNNs.

Motivation & Objective

  • To address the vanishing and exploding gradient problem in recurrent neural networks (RNNs) that limits learning of long-term dependencies.
  • To develop a simpler, real-valued alternative to complex-valued unitary RNNs that maintain orthogonal recurrent weight matrices.
  • To overcome the limitation of the standard Cayley transform, which cannot represent orthogonal matrices with eigenvalue -1.
  • To enable stable, efficient training with a straightforward gradient update rule that preserves orthogonality under numerical computation.
  • To achieve state-of-the-art performance on sequential learning tasks with reduced model complexity.

Proposed method

  • Parametrize the recurrent weight matrix W using a skew-symmetric matrix A via the scaled Cayley transform: W = (I - sA)(I + sA)^{-1}, where s is a diagonal scaling matrix with ±1 entries.
  • Use the scaled Cayley transform to avoid the singularity at eigenvalues of -1, which occurs in the standard Cayley transform.
  • Perform gradient descent directly on the skew-symmetric matrix A, with the recurrent weight matrix W reconstructed from A at each training step.
  • Apply a simple additive update rule to A during backpropagation, ensuring that W remains orthogonal throughout training.
  • Use the standard RNN architecture with orthogonal W, but enforce orthogonality via the parametrization instead of complex matrices or constrained optimization.
  • Train the model end-to-end using standard backpropagation through time, with W computed from A using the scaled Cayley transform at each forward pass.

Experimental results

Research questions

  • RQ1Can a real-valued RNN maintain orthogonal recurrent weight matrices without using complex numbers or restricted parameter spaces?
  • RQ2Does the scaled Cayley transform effectively avoid the eigenvalue -1 singularity of the standard Cayley transform?
  • RQ3Can a simple additive update rule on the skew-symmetric matrix preserve orthogonality during training with numerical roundoff?
  • RQ4Does the resulting scoRNN achieve better performance on sequential tasks than existing unitary or orthogonal RNNs with fewer parameters?
  • RQ5How does the gradient flow in scoRNN compare to standard RNNs and LSTMs in long sequences, particularly in terms of vanishing/exploding gradients?

Key findings

  • The scoRNN model achieves superior performance on multiple sequential learning tasks, including the adding problem and unpermuted MNIST, with fewer trainable parameters than other unitary RNNs.
  • On the adding problem with T=500, scoRNN gradients decay by less than an order of magnitude (from 10^{-3} to 10^{-4}) over the entire sequence, while LSTM gradients decay significantly more.
  • The scoRNN with n=170 hidden units is approximately 1.5 times faster than the restricted-capacity uRNN with n=512 and twice as fast as the full-capacity uRNN with n=116, despite similar parameter counts.
  • For models with ~137k parameters, scoRNN takes 11.2 minutes per epoch, compared to 25.8 minutes for the full-capacity uRNN, demonstrating significant speed advantages.
  • The scoRNN achieves smooth and stable convergence curves across all experiments, indicating robust training dynamics.
  • The model maintains stable gradient norms over long sequences, confirming its ability to mitigate vanishing and exploding gradients effectively.

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.