[Paper Review] Efficient Orthogonal Parametrisation of Recurrent Neural Networks Using Householder Reflections
This paper proposes a novel, efficient parametrization of recurrent neural network (RNN) transition matrices using Householder reflections to enforce orthogonality, ensuring stable training without exploding gradients. The method achieves time complexity comparable to standard RNNs, outperforms prior orthogonal parametrizations in low-batch settings, and matches or exceeds state-of-the-art results on character-level language modeling and sequence copying tasks.
The problem of learning long-term dependencies in sequences using Recurrent Neural Networks (RNNs) is still a major challenge. Recent methods have been suggested to solve this problem by constraining the transition matrix to be unitary during training which ensures that its norm is equal to one and prevents exploding gradients. These methods either have limited expressiveness or scale poorly with the size of the network when compared with the simple RNN case, especially when using stochastic gradient descent with a small mini-batch size. Our contributions are as follows; we first show that constraining the transition matrix to be unitary is a special case of an orthogonal constraint. Then we present a new parametrisation of the transition matrix which allows efficient training of an RNN while ensuring that the matrix is always orthogonal. Our results show that the orthogonal constraint on the transition matrix applied through our parametrisation gives similar benefits to the unitary constraint, without the time complexity limitations.
Motivation & Objective
- Address the challenge of vanishing and exploding gradients in RNNs when learning long-term dependencies in sequential data.
- Overcome the limitations of existing orthogonal and unitary RNN parametrizations, which suffer from high computational cost or limited expressiveness.
- Develop a parametrization that enforces orthogonality on the RNN transition matrix with minimal computational overhead, especially under small mini-batch sizes.
- Demonstrate that orthogonal constraints via Householder reflections can match or exceed the performance of unitary RNNs while being more scalable and efficient.
Proposed method
- Parametrize the RNN transition matrix as a product of Householder reflections, ensuring it remains orthogonal by construction.
- Use a set of reflection vectors as learnable parameters, enabling gradient-based optimization while maintaining orthogonality.
- Derive exact backpropagation formulas for gradients with respect to the Householder parameters, enabling end-to-end training.
- Design an efficient algorithm to compute the gradient updates in O(n²) time per step, matching the complexity of standard RNNs.
- Apply the parametrization to both character-level language modeling and sequence copying tasks, comparing against LSTM and unitary RNN baselines.
- Use the U activation function (norm-preserving) to improve performance on tasks requiring long-term memory, especially in the absence of residual connections.
Experimental results
Research questions
- RQ1Can orthogonal parametrization via Householder reflections achieve stable training of RNNs with time complexity comparable to standard RNNs?
- RQ2How does the performance of the proposed orthogonal RNN (oRNN) compare to unitary RNNs and LSTMs on long-term dependency tasks?
- RQ3Does the Householder-based parametrization scale better than existing methods under small mini-batch SGD settings?
- RQ4What is the impact of the activation function on oRNN performance when learning long-range dependencies?
- RQ5Can the proposed method be generalized to other deep architectures requiring orthogonal weight matrices?
Key findings
- The proposed oRNN achieved a test cross-entropy of 1.68 bpc on the Penn Treebank one-step prediction task, matching the performance of an LSTM with similar parameters.
- On the five-step-ahead prediction task, the oRNN achieved 3.85 bpc, comparable to the state-of-the-art result of 3.74 bpc reported by Pascanu et al. (2013).
- The oRNN outperformed prior work using soft and hard orthogonality constraints (Vorontsov et al., 2017), which achieved a minimum test cost of 2.20 bpc on a subset of the data.
- The oRNN's time complexity per gradient step is O(n²), matching that of standard RNNs and significantly improving upon other orthogonal methods that scale as O(BTn² + n³) under small mini-batch conditions.
- The oRNN achieved competitive performance on the copying task when using the U activation function, though it underperformed the unitary RNN with ReLU-like activation, suggesting architectural differences matter.
- The method enables efficient training under small mini-batch sizes (e.g., B=1), where other orthogonal parametrizations become computationally prohibitive due to their higher time complexity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.